cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in handlng context change

Former Member
0 Kudos

Hi All,

I have the following requirement :

Consider for example there are 4 idocs sent from SAP ECC system . At the target end we have a segment called Records which repeats based on the number of times unique payment id exists.

So , in the 4 IDOCs which was posted to XI . First 2 IDOCs contain same payment run id and the next 2 different payment run id . So , finally we will be generated 3 Records (target segments).

While doing so , we have a segment called abc inside the 2nd IDOC . The data under this segment (for the 2nd IDOC) should occur in the 1st Record segment (which is repeating based on the 1st IDOC) aking with 1st IDOC abc segment details . In short , I want the following occurence :

Records (1st IDOC)

- abc (1st IDOC)

- abc (2nd IDOC).

Records(3rd IDOC)

- abc(3rd IDOC)

Recrords(4th IDOC)

- abc (4th IDOC).

I am facing an issue regarding 1st IDOC , 2nd abc segment which should come from the 1st IDOC . How can we solve this issue,

Regards

Vinay P.

Accepted Solutions (0)

Answers (1)

Answers (1)

RKothari
Contributor
0 Kudos

Try the below logic:

                                                 abc(Idoc segment)-----\
PaymentId-->removeContext-->sort-->splitbyValue(value change)--> formatByExample-->abc node(Target)