cancel
Showing results for 
Search instead for 
Did you mean: 

Counter in SAP Cloud Integration

rrmalgi
Participant
0 Kudos
400

Hi,

I have a requirement where we would get different lines of an order as different messages to sap cloud integration.

However we need to keep track, in the form of a counter, regarding lines of particular order and send the counter value to target system. Is there a way to do this in SAP Cloud Integration?

For Ex:

Lets say, we receive an order 1001, with 5 line items coming as individual messages. We need to process them individually and send the counter values 1, 2, 3 , 4 , 5 as and when it is processed.

When another order 1002, with 3 line items arrives, we need to send 1,2,3

Please advise

Best Regards

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Kudos

Hello Rajashekar,

Please share some sample input and expected output with counter.

Regards,

Sriprasad Shivaram Bhat

rrmalgi
Participant
0 Kudos

Hi sriprasad.shivarambhat

Assume we have 2 files coming in for same DocumentReferenceNumber-100.

The first input with Order number 1001 has 2 line items

The second input with Order number 1002 has 3 line items

We will have one output for each of the line items.

Note that the counter for DocumentReferenceNumber-100 will be 1,2,3,4,5 in each of the output files

Please find the sample file attached

Best Regards

input.txt

output.txt