2005 Jun 14 5:50 PM
Hi All!...
I'm having a problem with this BAPI, the problem is that I'm trying to change the quantity of the materials, and the bapi returns the following message: "Missing item number when you changed the schedule line". And I don't know why because as you can see on my code the item number is present in both structures.
es_bapisdh1x-updateflag = 'U'.
APPEND es_bapisdh1x.
es_bapischdl_2-itm_number = ti_vbap-posnr.
es_bapischdl_2-req_qty = ti_pos_pedido-cant_vend.
APPEND es_bapischdl_2.
es_bapischdlx-itm_number = ti_vbap-posnr.
es_bapischdlx-updateflag = 'U'.
es_bapischdlx-req_qty = 'X'.
APPEND es_bapischdlx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = vbeln
order_header_inx = es_bapisdh1x
TABLES
return = es_bapiret2_2
schedule_lines = es_bapischdl_2
schedule_linesx = es_bapischdlx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Hope any of you knows whats happening..
Thanks a lot
Maria
2005 Jun 14 6:31 PM
I believe that you need to give the scheudule line number as well. How else would it know which schedule line to update. There can be multiple schedule lines to a line item.
Give it a try.
es_bapischdl_2-SCHED_LINE = '0001'.
Regards,
Rich Heilman
2005 Jun 14 6:31 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |