on 06-08-2011 8:35 AM
Hi ,
In my project there is one requirement of creating 2 line items in one billing order one is for rejected status and other is for cancellation of invoice.
i am using 2 function modules in which order_read and order_maitane FM is been called.
After calling first FM it is successfully adding new line item for rejected status but after that when calling other FM to add new line The FM order_maintane is throwing exception as document locked.
I have also seen in SM12 and found lock created by first FM called.
Please help me unlocking the document through program.
Thanks
Hi,
Use the FM crm_order_maintain_ow and then CRM_ORDER_SAVE_OW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to put following statement after first call of CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE..
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
Exporting
WAIT = 'X'.
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.