Application Development 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: 

hi guys this is related to idoc please do help me

Former Member
0 Kudos

i have extended the orders05 idoc type, iam doing the outbound idoc for example sap to other applications, form me the before i send the idoc, i need to check wether the Purchase orders is released or not, the idoc needs to be generated only when Purchase orders is released.

please do give the code if you have, in which segment do i have to populate that,

currently iam thinking in E1EDP01: SEGMENT FOR DOCUMENT ITEM GENRAL DATA,

PLEASE DO HELP ME , I WILL REWARD POINTS IF THE ISSUE IS SOLVED,

best regards,

prasadnn.

1 REPLY 1

Former Member
0 Kudos

If you already configured release strategy idoc output won't trigger if purchase order is not released.

For output trigger you have implement logic in requirement.

If you customized release straegy

1. Go to transaction VOFM

2. Go to menu item Requirements->Output Control

3. Start with a copy of Routine ***: Put your cursor on the number ***, give it a new number such as 902 and hit enter. A copy of this routine will be made

4. Go to your new routine and add your logic to check

5. If you do not want to trigger set sy-subrc = 4.

6. Finally activate requirement

7. Add this requirement in

1) Go to NACE trasaction

2) Select EF and click procedure.

3) Select your procedure and click control file(located in left menu).

4) Select your output type and add your new requirement.

Thanks,

Narayan