2006 Jun 02 7:32 AM
Hi all,
BAPI_PO_CHANGE can be used for changing quantity of more than one line items at a time or should it be called for each line item?
Regards,
Shanthini
2006 Jun 02 7:33 AM
Hi shanthini,
1. This bapi will change the whole purchase order.
2. Hence, we can give all items, in one shot.
regards,
amit m.
Hi all,
BAPI_PO_CHANGE can be used for changing quantity of more than one line items at a time or should it be called for each line item?
Regards,
Shanthini
2006 Jun 02 7:33 AM
Hi shanthini,
1. This bapi will change the whole purchase order.
2. Hence, we can give all items, in one shot.
regards,
amit m.
2006 Jun 02 7:47 AM
Hi Amit,
Thanks for responding immediately.In that case, could you please tell me what are the tables to be populated.
Have i missed something in the following code?
LOOP AT sel_tab WHERE sel = 'X'
AND NOT ebelp IS INITIAL.
t_head-po_number = po_number.
t_head-item_intvl = sel_tab-ebelp.
APPEND t_head.
CLEAR t_head.
t_headx-po_number = 'X'.
t_headx-item_intvl = 'X'.
APPEND t_headx.
CLEAR t_headx.
t_itemx-po_item = sel_tab-ebelp.
t_itemx-po_itemX = 'X'.
APPEND t_itemx.
CLEAR t_itemx.
t_sche-po_item = sel_tab-ebelp.
t_sche-quantity = sel_tab-labst.
APPEND t_sche.
CLEAR t_sche.
t_schex-po_item = sel_tab-ebelp.
t_schex-quantity = 'X'.
APPEND t_schex.
CLEAR t_schex.
ENDLOOP.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = po_number
poheader = t_head
poheaderx = t_headx
TABLES
return = h_retur
poitem = t_item
poitemx = t_itemx
poschedule = t_sche
poschedulex = t_schex.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |