‎2008 Mar 12 11:03 AM
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.
‎2008 Mar 12 11:29 AM
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
‎2008 Mar 12 11:30 AM
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
‎2008 Mar 12 11:41 AM
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.