Application Development and Automation 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: 
Read only

create a material master data.

Former Member
0 Likes
507

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:/.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

Ilhan,

We already take the time to reply to YOU here :

Erwan

3 REPLIES 3
Read only

Former Member
0 Likes
473

u need to pass...

HEADDATA

CLIENTDATA

PLANTDATA

STORAGELOCATIONDATA

SALESDATA

Read only

Former Member
0 Likes
473

did u called BAPI_TRANSACTION_COMMIT fm after caling BAPI_MATERIAL_SAVEDATA fm

Read only

Former Member
0 Likes
474

Ilhan,

We already take the time to reply to YOU here :

Erwan