BAPI_GOODSMVT_CREATE

BAPI_GOODSMVT_CREATE

REPORT zppmm_mb1b.

TABLES:mseg,

mkpf,

rm07m,

t158b,

t001l,

msegk.

DATA: mat_doc LIKE bapi2017_gm_head_ret-mat_doc.

DATA:save_code LIKE sy-ucomm,

ok_code LIKE sy-ucomm,

loc_msg(50),

gmnga LIKE afru-gmnga,

mtsnr LIKE rm07m-mtsnr,

errflag..

DATA:BEGIN OF gt_afpo OCCURS 0.

INCLUDE STRUCTURE afpo.

DATA:END OF gt_afpo.

DATA:gmhead LIKE bapi2017_gm_head_01.

DATA: BEGIN OF gmcode.

INCLUDE STRUCTURE bapi2017_gm_code.

DATA: END OF gmcode.

DATA: BEGIN OF mthead.

INCLUDE STRUCTURE bapi2017_gm_head_ret.

DATA: END OF mthead.

DATA: BEGIN OF itab OCCURS 100.

INCLUDE STRUCTURE bapi2017_gm_item_create.

DATA: END OF itab.

DATA: BEGIN OF errmsg OCCURS 10.

INCLUDE STRUCTURE bapiret2.

DATA: END OF errmsg.

INITIALIZATION.

t001l-lgort = '1051'.

mseg-lgort = '1050'.

mseg-werks = '1000'.

BAPI_GOODSMVT_CREATE相关文档

最新文档

返回顶部