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

Former Member
0 Likes
776

I have created a custom idoc and attached a process code to it. The proceesing function module, reads values from the idoc and inserts into a database table.

My question is will this function module be invoked simultaneously? If so, should I first lock the table before inserting and then unlock it?

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
559

Sneha,

When an inbound Idoc is posted into SAP, through process code function module gets picked up and executed. Are you updating the custom table or standard table through your logic? then we can decide on next option.

Regards,

Savitha

Read only

Former Member
0 Likes
559

Hi,

As soon as the idoc reaches SAP, it will trigger the function module you have connected through process code.

If the table is used only by your function module no need to lock the same.

It is always good to lock the table before updating the same.

Regards,

Baburaj

Read only

Former Member
0 Likes
559

Hi,

As far as I know, the function module will take care of the locking and unlocking of the db tables.

As soon as the idoc comes to SAP, the inbound FM is triggered and it will automatically update the database.

Thanks,

Sandeep.