Skip to Content
0

IDOC Sequencing Issue from PI (Inbound to SAP ECC)

Oct 24, 2016 at 06:08 PM

122

avatar image

We are receiving an EDI 974 File from a Third Party system via AS2. We are using EDI separator to process the file as per the File Type.

Here is the content from one sample file -

ISA|00| |00| |ZZ|ABCTHIRDPARTY |ZZ|ABCRECEIVER |160912|1504|^|00403|000000172|0|T|>
GS|AW|ABCRECEIVER|ABCDEV|20161024|17291632|172|X|004030
ST|947|0001
W15|20161024|3071955|0
N1|WH|TEST|54|N346
G62|AB|20161024|W|1348
W19|AK|50|EA||VN|900125|PJ|20171231|BATCHNO
N9|PRT|AH
N9|TD|CH
N9|ACC|QUA
SE|9|0001
ST|947|0002
W15|20161024|1872793|0
N1|WH|Test|54|N346
G62|AB|20161024|W|1350
W19|AC|-50|EA||VN|900125|PJ|20171231|BATCHNO
N9|PRT|AH
N9|TD|CH
N9|ACC|QUA
W19|AC|50|EA||VN|900125|PJ|20171231|BATCHNO
N9|PRT|AH
N9|TD|CH
N9|ACC|PCK
SE|13|0002
ST|947|0003
W15|20161024|1872794|0
N1|WH|Test|54|N346
G62|AB|20161024|W|1350
W19|AC|-50|EA||VN|900125|PJ|20171231|BATCHNO
N9|PRT|AH
N9|TD|CH
N9|ACC|PCK
W19|AC|50|EA||VN|900125|PJ|20171231|BATCHNO
N9|PRT|AG
N9|TD|CH
N9|ACC|FTS
SE|13|0003
GE|3|172
IEA|1|000000172

We receive one EDI file from Sender system and Create IDOCs per ST segment in the File. As per message monitor in PI the message processing started in the right sequence but end time for message one is greater than 2 & 3. When the IDOCs are created in SAP, The IDOC for ST (003) is first IDOC and ST(001) is the last IDOC. This is causing issues in IDOC posting.

We tried to using field serialization in IDOC control record. We pass it time in milliseconds and even though the time passed correctly, the IDOCs are not serialized.

Please suggest on how can we send these IDOCs in right sequence to ECC from PI.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Harish Mistri Oct 24, 2016 at 11:19 PM
0

Hi Amit,

Did you used "maintain order at run time" in ICO? and then please check the queue processing option in receiver IDOC channel.

regards,

Harish

Share
10 |10000 characters needed characters left characters exceeded
Praveen Gandepalli Oct 25, 2016 at 03:14 AM
0

Hi Amith,

Is all three messages individual messages or child messages in PI?? if these messages are child messages then child message sequence ID has following format SUBSEQ_XXXX where XXXX is random four digit number.

So each child message have different sequence ID and send it to ERP system, in ECC system they are processed in different queues based on their sequence ID's so IDocs are processed in incorrect order.

If your PI system at least PI 7.31 SP15 then you can configure the parameter UseParentQueueId under advanced tab set additional parameters in IDOC_AAE receiver channel.

Or you can set globally this parameter UseParentQueueId in JavaIdocAdapter resource adapter in NWA.

Check more details in below sap note.

2341291 - The original queueID is not propagated to the receiver system as queue name in case of mapping split

Regards,

Praveen.

Share
10 |10000 characters needed characters left characters exceeded