‎2008 Mar 11 12:15 PM
Can anybody tell me what are is the algorithm of the the inbound idoc function module ?
tell me the steps in the program !
‎2008 Mar 11 12:29 PM
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.
‎2008 Mar 11 12:44 PM
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.
‎2008 Mar 11 12:46 PM
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.
‎2008 Mar 11 1:13 PM
I am asking What an inbound function module does !
What should be my algorithm if I want to write a custom inbound function module ?????
‎2008 Mar 11 1:28 PM
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.