05-01-2007 5:54 AM
Hi,all:
anybody can tell how to add a PO item using 'BAPI_PO_CHANGE' or 'BAPI_PO_CREATE', <b>PO number is given</b>. tks!
05-01-2007 5:56 AM
05-01-2007 6:18 AM
Hi
Check the fun module
CALL FUNCTION 'MEPO_DOC_ITEM_PROCESS'
EXPORTING
im_itemx = imt_ekpox
im_ekpvx = l_bapi_ekpvx
IMPORTING
ex_ebelp = h_ebelp
TABLES
cht_schedules = lt_eket
cht_conditions = lt_komv
cht_accountings = lt_ekkn
cht_service_accountings = lt_eskn
imt_bapi_eket = lt_bapi_eket
imt_bapi_eketx = imt_eketx
imt_bapi_ekkn = lt_bapi_ekkn
imt_bapi_ekknx = imt_ekknx
CHANGING
ch_item = ls_ekpo
ch_item_service_data = ls_comsrv
ch_ekpv = ls_ekpv
ch_eipo = ls_eipo
EXCEPTIONS
invalid_call = 1
error_message = 2
OTHERS = 3.
reward if useful
regards
Anji