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
645

Hi all,

I am having custom idoc (Customer Idoc) requirement to send from sender to receiver system. So i have made all the configuration & Programming part in the sender system, but now i am facing the problem when i am going to create an inbound idoc FM. This is the first time i am dealing with the inbound method.So please help me out how to create the FM for the customer related data.

Regards,

Santosh

4 REPLIES 4
Read only

Former Member
0 Likes
603

Hi,

Instead of creating a new FM just try using the FM 'MASTER_IDOC_DISTRIBUTE' for the idoc.

Hope it works,

Thanks,

Sandeep.

Read only

0 Likes
603

Hi Sandeep,

I am using the FM 'MASTER_IDOC_DISTRIBUTE' to trigger the idoc in the sending system. Now my requirement is to update the Z DB table when the idoc is passed to the receiver system. So for that i need to create the process code in the WE42, in that i need to use the option " Processing by FM". So for that reason i need to create the FM.

I am not getting what is the logic written in the FM in inbound idoc.

Regards,

Santosh

Read only

0 Likes
603

First you need to read the content of the idoc segements after that validation.

In side the Function you need to Validate the data. If every thing fine then update your ZDB table.

check the standard inbound FM.

IDOC_INPUT_ORDERS

your interface should be similar to the above fm, copy and modify the FM.

Read only

Former Member
0 Likes
603

Hi Santosh,

I think what you can do is create a FM in SE37 and write a code in it just as you write to do a normal update of the database.You could use the FM BAP_TRANSACTION_COMMIT to carry out the update after you have transferred all the relevant data to an internal table.

Also you could refer to the FM IDOC_INPUT_DESADV1 which is for DELVRY05 basic idoc type.Sometime back I had used this FM.Maybe it could be of some help.Also you could check out the different process codes and their logic in WE64.

Hope it helps,

Thanks,

Sandeep.