Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PO item create

Former Member
0 Kudos

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!

2 REPLIES 2

Former Member
0 Kudos

if you have any other ways, tell plz. tks a lot

Former Member
0 Kudos

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