Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

To create multiple target IDoc node E1BPMEPOTEXT

$
0
0

Hi All,

 

Scenario is HTTP to IDoc.

 

Sender is sending multiple POLINE(occurence 1toUnbound) in which ITEM_DESCRIPTION(1to1) is different for each POLINE. And the ITEM_DISCRIPTION is mapped to TEXT_LINE(0to1) of E1BPMEPOTEXT(0to999999999). TEXT_LINE length is 132.

 

ITEM_DESCRIPTION is mapped with E1BPMEPOTEXT using UDF for multiple creation of E1BPMEPOTEXT

 

for (int i=0; i<=((itemText[0].length()/132)); i++)

{

result.addValue("");

}

 

Capture.JPG

The sender PO_NUMBER is mapped using useOneAsMany as first input, in second input the ITEM_DESCRIPTION is mapped using above udf, and again in third input ITEM_DESCRIPTION again mapped using same udf. useOneAsMany mapped to SplitByValue(EachValue) and to PO_NUMBER of IDoc.

 

The same mapping using useOneAsMany the LINE_NUM is mapped to PO_ITEM.

 

For TEXT_LINE, the ITEM_DESCRIPTION is mapped using another udf to SplitByValue(EachValue) and to TEXT_LINE.

 

This mapping is working fine as long as only one POLINE is generating in sender structure. But when multiple POLINEs occuring with multiple different ITEM_DESCRIPTIONs the logic is not becoming ideal.

 

Now requirement is, multiple ITEM_DESCRIPTIONs should create multiple E1BPMEPOTEXT along with its elements, where TEXT_LINE lenght is 132. Is this possible?

 

Please suggest me some solution.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>