Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Bapi_po_change Remove lock indicator of line items in

Hi Experts ,

How can i remove the lock indicator of line item in Purchase order , if the line item is in trash .I have tried the follwing condition but it is not working.

clear t_bapi_poitem.

t_bapi_poitem-po_item = t_poitem-item.

t_bapi_poitem-delete_ind = ' '.

CLEAR t_bapi_poitemx.

t_bapi_poitemx-po_item = t_poitem-item.

t_bapi_poitemx-po_itemx = c_x.

t_bapi_poitemX-delete_ind = 'X'.

*

APPEND t_bapi_poitem.

APPEND t_bapi_poitemx.

clear t_bapi_poitem.

clear t_bapi_poitemx.

  • endloop.

DATA : l_msgty TYPE c,

l_msgid(2) TYPE c,

l_msgno(3) TYPE c,

l_msgtx(100) TYPE c,

l_errflag TYPE c.

CLEAR: t_bapireturn.

REFRESH: t_bapireturn.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

PURCHASEORDER = T_Poitem-PO

  • POHEADER = T_BAPI_POHEADER

  • POHEADERX = T_BAPI_POHEADERX

TABLES

RETURN = T_BAPIRETURN

POITEM = T_BAPI_POITEM

POITEMX = T_BAPI_POITEMX.

can any one kindly provide their valuable inputs.

regards

Prasun

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question