SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to change the articles in article master

Sharadha1
Active Contributor
0 Kudos

Hi all,

Can you please let me know the BAPI to change the details of an article in the article master.

regards,

Sharadha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

The BAPI to change Article Master is BAPI_MATERIAL_MAINTAINDATA_RT.

Thanks,

Venu

View solution in original post

7 REPLIES 7

Former Member
0 Kudos

Hello,

The BAPI to change Article Master is BAPI_MATERIAL_MAINTAINDATA_RT.

Thanks,

Venu

0 Kudos

Hi Venu,

Thanks..

I had found this BAPI by myself.

can you please let me know if there is any BAPI which i can use for MASS update of articles instead of calling the above BAPI in a Loop.

Regards,

Sharadha

Former Member
0 Kudos

Hello Sharadha,

This BAPI works with one article across multiple sites. I believe transaction MASS also uses this BAPI.

Thanks,

Venu

0 Kudos

Hi Venu,

I would like to create an article thru this BAPI, BAPI_MATERIAL_MAINTAINDATA_RT. As part of Import parameter, in Header data there is a field called Material, here what should I give to create a new article. I have only article type, Marchandise category and article category. Please suggest me how can I create a new carticle thru this input.

bjoern_panter
Product and Topic Expert
Product and Topic Expert
0 Kudos

external article numbers: no problem

internal number: use BAPI_MATERIAL_GETINTNUMBERRET to get a free next article number

bjoern_panter
Product and Topic Expert
Product and Topic Expert
0 Kudos

and the most important step,

Loop over your articles to be created.

call the BAPI_MATERIAL_MAINTAINDATA_RT

and do a BAPI_TRANSACTION COMMIT

ENDLOOP

Important!!!!! Do a commit work after every article Bapi Call !!!

If you will not follow this rule, you will have a data inconsistency in classification data

chirdeeprastogi
Explorer
0 Kudos

Hi Venu,

While trying to create article using bapi: BAPI_MATERIAL_MAINTAINDATA_RT. i',m always getting error msg:Messages for material 283: log number 0000000000000150 .MG-537.

Correct me in below code suppose am passing wrong parameter.

DATA: bapi_head LIKE bapie1mathead,
bapi_mbew1 LIKE bapie1mbewrt OCCURS 0 WITH HEADER LINE,
bapi_mbewx LIKE bapie1mbewrtx OCCURS 0 WITH HEADER LINE,
bapi_return LIKE bapireturn1 OCCURS 0 WITH HEADER LINE.

START-OF-SELECTION.

* Header
bapi_head-material = '000000000000000283'.
bapi_head-logst_view = 'X'.
bapi_head-matl_type = 'HAWA'.
bapi_head-matl_group = 'MEN'.