ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » import header files from sap system

Post new topic  Reply to topic
 import header files from sap system « View previous topic :: View next topic » 
Author Message
vijsam
PostPosted: Wed Jun 01, 2011 4:46 am    Post subject: import header files from sap system Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 01, 2011 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message
vijsam
PostPosted: Wed Jun 01, 2011 4:59 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 01, 2011 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
vijsam
PostPosted: Wed Jun 01, 2011 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 01, 2011 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vijsam
PostPosted: Thu Jun 02, 2011 4:02 am    Post subject: Reply with quote

Apprentice

Joined: 01 Jun 2011
Posts: 46

Thnku jeff............

we have idoc converter which convets the variable segments into fixed length ie in a single line
http://www-01.ibm.com/support/docview.wss?uid=swg24000623
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » import header files from sap system
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.