Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

E D I / IDOC

Former Member
0 Likes
485

Hi,

We want to receive an outbound EDI 855 IDOC only if E2EDP20 -scheduling confirmation segment is present. Else get an "error" status preventing triggering the EDI subsystem.

Thanks,

Ashish.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

Hi,

User exit logic has to be added in function IDOC_INPUT_ORDRSP.

  1. Set up a test flag and set it off when the IDOC header is read.

  2. Turn the flag ON when the EDP20 segment is read.

  3. Interrogate this flag when the next segment after EDP20 in the same IDOC comes in. If it is on ,you have an EDP20 coming in.

  4. Issue an error status 51 with suitable message for whichever condition you don't want the IDOC to be processed, This will stop the IDOC from posting.

Reward if helpful...

Cheers,

Sundar.

Hi,

We want to receive an outbound EDI 855 IDOC only if E2EDP20 -scheduling confirmation segment is present. Else get an "error" status preventing triggering the EDI subsystem.

Thanks,

Ashish.

2 REPLIES 2
Read only

Former Member
0 Likes
453

Hi,

User exit logic has to be added in function IDOC_INPUT_ORDRSP.

  1. Set up a test flag and set it off when the IDOC header is read.

  2. Turn the flag ON when the EDP20 segment is read.

  3. Interrogate this flag when the next segment after EDP20 in the same IDOC comes in. If it is on ,you have an EDP20 coming in.

  4. Issue an error status 51 with suitable message for whichever condition you don't want the IDOC to be processed, This will stop the IDOC from posting.

Reward if helpful...

Cheers,

Sundar.

Read only

Former Member
0 Likes
452

Hi,

Write your own outbound FM to generate the IDOC. In that include a logic to check for that segment data. If not present create IDOC with error status.

Change your process code to point to this newly created FM and change the partnet profile details accordingly.

Reward points if helpful.

Thanks and Regards,

Lakshmi.