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

Idoc Inbound function module creation

former_member186078
Active Participant
0 Likes
725

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

4 REPLIES 4
Read only

Former Member
0 Likes
473

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

Read only

Former Member
Read only

Former Member
0 Likes
473
Read only

Former Member
0 Likes
473

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