2010 Feb 02 12:55 PM
Can any one help me with peice of code to create a outbound delivery from PO .
Please help me with the feilds in the tables parameter that needs to be passed and any valuable inputs will be of help
Can any one help me with peice of code to create a outbound delivery from PO .
Please help me with the feilds in the tables parameter that needs to be passed and any valuable inputs will be of help
2010 Feb 02 1:04 PM
Hi,
Hope this will help you
DATA: it_stock_trans_items TYPE TABLE OF bapidlvreftosto,
wa_stock_trans_items TYPE bapidlvreftosto.
wa_stock_trans_items-ref_doc = exppurchaseorder. " pass the PO number
APPEND wa_stock_trans_items TO it_stock_trans_items.
CLEAR wa_stock_trans_items.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CREATE_STO'
IMPORTING
delivery = delivery
TABLES
stock_trans_items = it_stock_trans_items
return = return2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = wa_return2_commit.Regards,
Aditya
Edited by: aditya on Feb 2, 2010 6:34 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |