Skip to Content
0
Former Member
Feb 01, 2007 at 02:38 PM

create a material master data.

15 Views

Hello,

this code doesn't create a material master data.

Does it make sense to put additional views?

Thank you in advance.

DATA: w_bapimathead TYPE bapimathead.

DATA: i_bapi_makt TYPE TABLE OF bapi_makt,

w_bapi_makt TYPE bapi_makt.

w_bapimathead-basic_view = 'X'.

w_bapimathead-material = 'AAABBBCCCDDD'.

CLEAR w_bapi_makt.

w_bapi_makt-langu = 'EN'.

w_bapi_makt-matl_desc = 'Screwdriver'.

APPEND w_bapi_makt TO i_bapi_makt.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = w_bapimathead

TABLES

materialdescription = i_bapi_makt.

write:/.