‎2006 Apr 28 9:57 AM
Hi all,
Can I get information on the topic "How to Create Inbound function module/Outbound fn module?" Actually, I have written one to two function modules till now, by looking at the standard function modules, but I want somewhat more details about the generic statements that are being used in the function modules and their significance like?
IN_UPDATE_TASK = ''.
CLEAR CALL_TRANSACTION_DONE.
Thanks & Regards,
Adithya K
‎2006 Apr 28 10:04 AM
Hi,
UPDATE TASK --- This calls the function in a separate thread which executes in the background.
CLEAR --- This is clearing a variable which is used for some purpose in the standard program.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 Apr 28 10:04 AM
Hi,
Refer this link:
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7df143d711d1893e0000e8323c4f/frameset.htm
Regards,
Gayathri
‎2006 Apr 28 11:14 AM
HI
GOOD
GO THROUGH THE FOLLOWING LINKS
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7dbd43d711d1893e0000e8323c4f/content.htm
THANKS
MRUTYUN
‎2006 Apr 28 4:00 PM
Hi Adithya,
Since you have created one or two FM's already, it will be easy for you to create inbound or outbound FM. I am referring to inbound function module creation in this case. Just follow few standard subroutines while creating the Inbound FM.
For example, consider the FM "IDOC_INPUT_ORDERS" . the only thing you are concerned most is, importing input method,mass processing , exporting work flow result and tables idoc_control, idoc_data and idoc_status. Rest you can leave (for basic processing and posting ).
In the FM,
1) write a subroutine to initialize organizational data.
2) Interpret idoc.
3) check for idoc segments and raise exception if any error occurs, otherwise post the data using the BDC or BAPI.
4) Read the status message and change the idoc_status according to the status message.
Hope this will be helpful for you
Thanks,
Vicky