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

Adding some code before sending the IDOCs

Former Member
0 Likes
473

Hi all,

I have one query. When I am doing some transaction system is generating the IDOC with status 03. Now My requirement is to send this IDOCs to the destination system after checking some conditions. So I want to insert to some code in the ALE configuration, so that it can filter the IDOCs based on my bussiness requirement. This is not simply checking one field, i have to write some logic after that only system should send the IDOC, Can you please tell me how to include the code?

Thanks & Regards,

Raghu

2 REPLIES 2
Read only

raja_thangamani
Active Contributor
0 Likes
365

Hi,

There are two ways you can do it:

1. Using Filters(Tcode BD64) & Convertion rules(Tcode BD55, BD62 & BD79).

<b>Filter:</b>

http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm

<b>Conversion Rule:</b>

/people/kevin.wilson2/blog/2005/12/07/changing-fields-in-an-idoc-segment

2. Check for the user-exit or BADI to add your business requirement.

To get the exact solution please add the business scenario.

<b>Note:</b> Reward each useful reply.

Raja T

Message was edited by:

Raja T

Read only

0 Likes
365

Hi Raja,

Thanks for the suggestion. My business senario is:

In the landscape we have SAP R/3 system and SRM system. SAP R/3 system will send the purchase requistions to the SRM system. In SRM these requistions will convert to PO and these PO's will send to the venodr from the SRM system for procurement. When venodr sends the Goods, SRM system will post the GR(PO confirmations) for the respective PO. Now for sync purpose SRM has to send the GRs(PO confirmations) to the SAP R/3 system using the IDoc type MBGMCR01 and standard SAP message type MBGMCR. When GR is posted in the SRM system , system is able to create the IDOC , now the requirement is we have to send the IDOC to the R/3 system. We should not send all the GR, we have to send only GR which are created for the PO originated from SAP R/3 system. Fo this we have to write some logic like we have to pick up the PO number from segments and we have to go the PO table and find the from which system it is comming.

Thanks & Regards,

Raghu,