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 new material with BAPI_MATERIAL_MAINTAINDATA_RT

Former Member
0 Likes
585

Hello Abaper,

I'm trying create a new master material record using the bapi BAPI_MATERIAL_MAINTAINDATA_RT, but i can't. I try with several example in this forum but it's imposible. I alwais get the message:

Messages for material 10000000025 : log number 0000000000000020.

I think the best bapi for do this is: BAPI_MATERIAL_SAVEDATA but it's no possible because it isn't available in my system 4.5B.

There is anyway for Interpret the logs? if possible emulate the transaction mm01, whit the bapi BAPI_MATERIAL_MAINTAINDATA_RT?

thanks in advance.

Manolo

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
528

Hi,

Please check FM MATERIAL_MAINTAIN_DARK.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
528

Hello Ferry,

thanks for your help. I check the function Material_maintain_dark, I try with some exambles, but Although I get sy-subrc = 0, any material is created.

Do you know some example for check? or do you kow wha I'm doing wrong?

thanks.

Manolo.