cancel
Showing results for 
Search instead for 
Did you mean: 

CRM: Billing document lock exception in CRM_ORDER_MAINTANE Fm

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member191572
Contributor
0 Kudos

Hi,

Use the FM crm_order_maintain_ow and then CRM_ORDER_SAVE_OW

former_member227595
Active Participant
0 Kudos

Use FM  CRM_ORDER_INITIALIZE

Regards

Former Member
0 Kudos

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

Former Member
0 Kudos

Ya i have already written that code but its not working .....

Former Member
0 Kudos

Try using 'BAPI_BUSPROCESSND_SAVE' instead of crm_order_save.