07-23-2012 5:25 AM
Dear Friends,
I’m using FM: SD_SALESDOCUMENT_CREATE to upload open Sales Order of type OR. I passing following fields in BAPI:
Issue: Target Qty in order is not getting updated. Am I missing some parameter or ABAPer needs to do something in his coding in BAPI?
Kindly help. I’m uploading open Sales Order for the first time, as a fresher. <removed by moderator>
Thanks a lot
Message was edited by: Thomas Zloch
07-23-2012 8:22 AM
Dear friends,
Qty updation issue resolved. But another issue has come up. It is as follows:
There is one cond type (ZA04) in pric procd. This cond type
When we are uploading Sales Orders with this cond type maintained in KSCHL field and rate in KBETR field in XL, then system is bringing this cond type twice in the order. One with value and other w/out value.
When we create this order type manually (VA01), then this cond type (ZA04) comes in non-editable mode but price field is open.
Pls suggest how to handle this in BAPI. Or a separate BDC is required to upload the value of this cond type.
Thanks a lot.
07-23-2012 8:41 AM
07-23-2012 1:47 PM
are you checking all the fields, that need to be updated , in SALES_ITEMS_INX table in SD_SALESDOCUMENT_CREATE bapi
for example SALES_ITEMS_INX-TARGET_QTY = 'X'.
08-02-2012 10:17 AM
Try This
ls_order_items_in-itm_number = '00010'.
ls_order_items_in-target_qty = '99'.
append ls_order_items_in to lt_order_items_in.
ls_order_items_inx-itm_number = '00010'.
ls_order_items_inx-target_qty = 'X'.
append ls_order_items_inx to lt_order_items_inx.
then pass the table to sa FM.