cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping - JDBC to IDoc

Former Member
0 Kudos

Hi,

I trying to map the resultset from a JDBC adapter (sender) to Inbound IDoc into SAP. I have problems with message mapping and after reading through a number of threads, I followed the following steps:

1. Download the IDoc definition as XSD.

2. Change occurrence of node IDOC to 1..unbounded.

3. Upload changed XSD as external definition and

4. use the external definition in the mapping.

After importing the external XSD definition the IDOC node turned red. How do I map this node, now that it is unbounded?

Example from Message mapping:

MT_ETA_RMX................ZSDETA01

..EtaNode........................IDOC (unbounded = RED)

....CARID.................................BEGIN

...............................................EDI_DC40

...............................................Z1RETA

.................................................SEGMENT

.................................................CARID

Thanks,

Henk

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hendrik,

whichever data record is occuring multiple on your sender JDBC message should be mapped to IDoc segment. It really depends on your JDBC message structure.

If EtaNode is occuring multiple times, and if based on EtaNode an IDoc has to be created, map that to IDOC and if per every CARID one idoc needs to be created, then use CreateIf and exists node functions to IDoc.

regards

SKM