cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PO mapping split

JuanManuelC
Explorer
0 Kudos
875

Hi experts! (sorry if my english is not good)

Thanks in advance for your time to reply.

I am developing a mapping whose scenario is from a PROXY to a REST service.

The REST API has a limitation of 10,000 records per post, and the proxy output can take up to 300,000 records, so I need to do a split for every 10,000 to inject them to the REST call.

What I have done so far allows me to separate by type of output message, but I am not managing to generate the "children" nodes to complement the call.

This is my way (to this moment): the signature of my mapping is one (source) and 0...unbounded (target)

This is my way to create a new message for the split:

The constant element (3 in this little examplo ), must create a MT_Request with 3 element items, and every 3 must create a new MT_Request .

But, when i run the test, i only have one element item (it is wrong), i need the row / row[1] / row[2] must be inside of the first MT_Request .

I need the first MT_Request containts the 1 , 2 and 3 elements of the source row ; then the second MT_Request, must cointant the 4, 5 and 6 elements of the source row.

What is wrong?

View Entire Topic
Harish
Active Contributor

Hi Juan,

Please check the context of input field row. The data should be in one context to split.

You can also refer the below blog to solve similar problem

https://blogs.sap.com/2016/09/28/splitting-of-messages-dynamically-using-parameterize-mapping/

regards,

Harish

JuanManuelC
Explorer

Thanks Harish, i will read the blog and try it.