Delete PO line item using BAPI
ls_poitem-po_item = l_po_item
ls_poitem-delete_ind = 'X'.
APPEND ls_poitem TO lt_poitem.
ls_poitemx-po_item = l_po_item.
ls_poitemx-po_itemx = 'X'.
ls_poitemx-delete_ind = 'X'.
APPEND ls_poitemx TO lt_poitemx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = ls_poheader-po_number
testrun = p_test
TABLES
return = lt_return
poitem = lt_poitem
poitemx = lt_poitemx.
*-- if there were no errors for the PO then commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
LSMW for VB01 - Create Listing and Exclusion using Batch Input Recording
LSMW Administration
*
Use Administration to change or delete the LSMW.
T-Code: LSMW
Path: Goto --> Administration (Ctrl+F1)
Use Administration to change or delete the LSMW.
T-Code: LSMW
Path: Goto --> Administration (Ctrl+F1)
Subscribe to:
Posts (Atom)