cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SALESORDER_CHANGE is able to remove delivery block but confirmed quantity remain 0

rohit_singhal
Active Contributor
0 Kudos

Hi Experts,

I wanted to post a question regarding BAPI_SALESORDER_CHANGE.

When I use this BAPI to remove delivery block from schedule lines, I am able to do so. However, the confirmed quantity remains 0.

Checks done:

Before removing the delivery block from schedule line, I am checking if the req quantity is available for the material, only then removing the delivery block. Additionally I am passing ATP_WRKMOD as X in the header. I had assumed that doing this will update the confirmed quantity in the schedule lines.

Am I missing something obvious?

Best Regards,R

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

Not sure, in which version you are working but check whether you need to carry out code corrections as recommended in OSS note 1015868

venkateswaran_k
Active Contributor
0 Kudos

Dear Rohit

Hope you have the following code in the BAPI. Please let me know otherwise. (show your code)

Regards, Venkat

order_header_in-dlv_block = ' '.
order_header_inx-dlv_block = 'X'.
"=====================================================================================
schedule_lines-ITM_NUMBER = < your line item number>
schedule_lines-SCHED_LINE = <schd line no>   
schedule_lines-REQ_DLV_BL = ' '.

schedule_linesx-ITM_NUMBER = <line item number>
schedule_linesx-SCHED_LINE = <schd line no>   
schedule_linesx-REQ_DLV_BL = 'X'
rohit_singhal
Active Contributor
0 Kudos

Hi Venkat,

Thanks for your response.

Yes, I have the above lines in my code.

Best Regards,

Rohit