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

Inbound Interface using RFC

Former Member
0 Likes
773

Hi Experts,

We are using RFC to get idoc from other sap system.

Now i have written a code calling bapi for material master . In which user passes the idoc number. Is there any way to automate it . I mean when we get idoc the material master should be created.

Thanks and Regards

Neha Kapoor

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
496

Hi Neha,

Instead of writing a Code to post the data from IDoc, you can check any standard posting funtion module exists for the message type of the IDoc.

This standard FM you can configure in the Inbound parameters of the WE20 using the process code (Partner profile configuration). Later you can schedule the transaction BD20 to post the IDoc.

If you dont have the standard FM, you can create Z Fm and assign it to a process code and the you can configure it in WE20.

Hope this helps.

2 REPLIES 2
Read only

Former Member
0 Likes
497

Hi Neha,

Instead of writing a Code to post the data from IDoc, you can check any standard posting funtion module exists for the message type of the IDoc.

This standard FM you can configure in the Inbound parameters of the WE20 using the process code (Partner profile configuration). Later you can schedule the transaction BD20 to post the IDoc.

If you dont have the standard FM, you can create Z Fm and assign it to a process code and the you can configure it in WE20.

Hope this helps.

Read only

Former Member
0 Likes
496

Hi Neha,

In general if all configurations setting have done properly, when ever the idoc has received from the sender based on setting the idoc has to be processed and create the material without manula interaction.

The following are the basic and mandatory setting :

- create the logical system (Identification of system like employee code for a each employee) in both sender and recevier and assign the clients to those logical system: these are the basic setting which already done by some one so no need to care these basic sttings.

- Second one is create the RFC destination which in this step we have to give the receiver system details like user id, client number, password etc.. to which the run th F.M module remotely. I think this step is also done be some one .

- Third step is you need to be check it out name of the process code for material master and which already they assigned the bapi F.M. this you can be checkit out in WE42

- Fourth and more important step is patner profile configuration which contain the sender information along with IDOC and Message type, process code which it will tell the which F.M it needs to be run for IDOC processing. This can be done by using the WE20- in that u have to identify the patner no, undert that you have to add the entry in ‘Inbound’ area.Press the ‘+’ button symbol it will opens the screen in that you have to give the idoc, message type, process code, and the sender information etc…

- And also you have to check out the port information by using the WE21 which it identifyed the medium through which idoc can pass.

If all these steps are done well you can automatically create the material master whenever the idoc get from sender that is Bapi F.M which you have written code that one triggered automaticallly when all these settings are done properly.

Hope you will understan some what from above points.

If you have any doubts please free to send a mail to me or you can reach me at 09886869625.

Regards,

vijay