Author |
Message
|
vijsam |
Posted: Wed Jun 01, 2011 4:46 am Post subject: import header files from sap system |
|
|
Apprentice
Joined: 01 Jun 2011 Posts: 46
|
Hello Everyone,
I have an idoc structure with different lengths
EDI_DC40 6000000000000000073701 3014 PEXR2003 PAYEXT SAPV21 LS V15CLNT600 PAYFILE B 20090693123821 20090693123821
E2IDKU1 600000000000000007300000100000001PEXEXTENDED ORDER 2000000003 ORG111
E2EDK03 60000000000000000730000020000000200920090693123821
can we create c header files from these sap sample inputs?? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 01, 2011 4:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes, you certainly can create c header files from these.
There are not tools available with the Message Broker toolkit to make this easy for you to do, however.
There are, however, other mechanisms for discovering and importing IDOC structures. At least in v6.1 and v7. |
|
Back to top |
|
 |
vijsam |
Posted: Wed Jun 01, 2011 4:59 am Post subject: |
|
|
Apprentice
Joined: 01 Jun 2011 Posts: 46
|
Hi,
Thnx for the quick response..
can u please explain me the mechanism to import idoc structures??
Thnku..............for the support
Last edited by vijsam on Wed Jun 01, 2011 5:42 am; edited 1 time in total |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 01, 2011 5:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There is not any kind of thing supplied with message broker toolkit that will HELP you create a c header file from this data.
You can certainly use the text editor to WRITE a c header file.
Please review the product documentation on connecting with SAP for the rest of your question. |
|
Back to top |
|
 |
vijsam |
Posted: Wed Jun 01, 2011 5:12 am Post subject: |
|
|
Apprentice
Joined: 01 Jun 2011 Posts: 46
|
I have created c header file previously using text editor which has sap data in a single line .ie fixed length.
typedef struct E1EDK03segment
{
char iddat[3];
char pad997[997];
}e1edk03;
my 1st question:what is the pad value is it 1000(1000-3=997) or 1064?Plz clarify
2nd question now my new idoc has different lengths so how can i add each segment and what will be the padding value??there are different lengths in differnt lines...
using v6.1
we dont have any configuration details to connect to sap system using sap adaptor.so we have to mannually create the header file.... |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 01, 2011 1:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
vijsam wrote: |
I have created c header file previously using text editor which has sap data in a single line .ie fixed length.
typedef struct E1EDK03segment
{
char iddat[3];
char pad997[997];
}e1edk03;
my 1st question:what is the pad value is it 1000(1000-3=997) or 1064?Plz clarify
2nd question now my new idoc has different lengths so how can i add each segment and what will be the padding value??there are different lengths in differnt lines...
using v6.1
we dont have any configuration details to connect to sap system using sap adaptor.so we have to mannually create the header file.... |
Talk to your SAP team. They can generate the c headers for the different structures of the IDOC. You will be missing the padding though. Pad the segment SDATA field which is described by your e1edk03 structure with spaces up to 1000 bytes/chars.
Note that as of 7.0.0.x the IDOC domain is obsolete and the JCO and SAP will use xml (I think behind the scenes it will still be an IDOC)
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
vijsam |
Posted: Thu Jun 02, 2011 4:02 am Post subject: |
|
|
Apprentice
Joined: 01 Jun 2011 Posts: 46
|
|
Back to top |
|
 |
|