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 IDOC function module !

Former Member
0 Likes
17,300

Can anybody tell me what are is the algorithm of the the inbound idoc function module ?

tell me the steps in the program !

5 REPLIES 5
Read only

Sm1tje
Active Contributor
0 Likes
6,347

What exactly do you mean by an algorithm?

There are a few example function modules in function group BDBG, like BAPI_IDOC_INPUT1 and BAPI_IDOC_INPUTP. It is this interface (import, export, tables parameters) you should use for you custom function module. This function module you than can link via de message type and the process type in transaction WE20 (maintain partner profiles).

In your function module you than can do whatever it is you like.

Kind regards,

Micky.

Read only

Former Member
0 Likes
6,347

Hi Bluefox,

Step1: Check the recieving Logival system of the IDoc.

Step2: Use Tcode WE20, Provide Logical System name and type as LS. Click on Inbounb Parameters.

Step3: Select The message type (Ex: MATMAS). Go for Details to find the Process Code.

Step4: Use Tcode WE42, Expand "ALE With FM", Now search for the requird procees code in the list and double click.

Step5: This takes to a screen, where you can find the inbound function module. Double click on the same to view the source code of FM.

Regards,

Sunil.

Read only

Former Member
0 Likes
6,347

Use WE20, to get Process Code.

Goto WE42, and search for the requird procees code in ALE with Function Module.

Double click on the Process code to view the inbound Function Module.

Cheers,

Julian.

Read only

0 Likes
6,347

I am asking What an inbound function module does !

What should be my algorithm if I want to write a custom inbound function module ?????

Read only

0 Likes
6,348

Like I said, your custom function module can do anything you want it to do..create a user, create a purchase order, or anything actually.

There is no standard algorithm for this, it just depends on your requirements.

If you're incoming (inbound) idoc has user data, you can use your function module to extract the data from the IDoc segments and use it to create a user in SAP, by calling BAPI_USER_CREATE (or something like that).

Regards,

Micky.