Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping issue

Hi,

I have problems with queue after reading database table with JDBC. For each detail line I have also the header information repeated. This causes problems when I want to create an IDoc per Header. What do I have to do so that only one IDoc is created per "real" Header information?

For example:

Header Header1 Header2 Header3 Detail1 Detail2 Detail3

8888 abc 1111 1123374 rrr sss bbb

8888 ajc 222 1122334 ttr sss bbb

8888 afc 1441 1126664 rhh sss bbb

8888 ajj 1551 1123348 rnr sss bbb

8888 agj 11661 1123349 rdf sss bbb

9999 agj 11661 1123349 rdf sss bbb

9999 agj 11661 1123349 rdf sss bbb

9999 agj 11661 1123349 rdf sss bbb

9999 agj 11661 1123349 rdf sss bbb

So in the example above I want to create only 2 IDocs. The first one with 5 detail segements and the second one with 4 detail segment.

The first column is the identifier field which when changes from 8888 to 9999 then I need to create a new IDOC.

How do i take care of all the detail segments and make sure they go with the respective Header segment for each IDOC?

Thanks,

Teresa

Edited by: Teresa lytle on Jun 13, 2011 5:32 PM

Former Member
replied
<body><p>Another useful &#91;link |http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3194&#93 <b>[original link is broken]</b> <b>[original link is broken]</b> <b>[original link is broken]</b>;for formatbyexample node function</p></body>
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question