We are implementing Employee Self-Service 60.2 (Uses WebDynpro) through Enterprise Portal on SAP ECC 6.0.
The Address data application for US is being enhanced by adding a customer-defined checkbox on the Permanent address edit screen. This checkbox is to be used as a flag by the User to indicate that his Mailing address is also same as his Permanent address. So when the checkbox in checked, on the R/3 side two identical Infotype 6 records should get created/updated: one for Permanent address and other for Mailing address.
The SAP delivered application only creates/updates the permanent address record. Hence we created a custom RFC function module which has logic to create/update the Infotype 6 mailing address record. It is being called from US/Per Webdynpro Component.
But the custom function module isnt able to update the database. It cannot procure a lock on the PERNR being edited, since the SAP delivered application has a lock on the PERNR. Even the execution of function BAPI_EMPLOYEE_DEQUEUE in the custom function module does not release the lock.