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 Retail Article

0 Likes
523

I am fail to use BAPI_MATERIAL_MAINTAINDATA_RT to create new retail article.

I check two errors:

The field MARA-MEINS/BAPIE1MARART-BASE_UOM(_ISO) is defined as a required field; it does not contain an entry

The field MARA-TRAGR/BAPIE1MARART-TRANS_GRP is defined as a required field; it does not contain an entry

The following is part of the code I declare for the input data:

lw_header-material = 'CS123456'.

lw_header-matl_type = 'ZCSM'.

lw_header-matl_group = 'ZCS001'.

lw_header-matl_cat = '00'.

lt_data-material = 'CS123456'.

lt_datax-material = 'X'.

lt_data-base_uom = 'PAA'.

lt_datax-base_uom = 'X'.

lt_data-tax_class = '1'.

lt_datax-tax_class = 'X'.

lt_data-trans_grp = '1009'.

lt_datax-trans_grp = 'X'.

APPEND: lt_data, lt_datax.

So, do I miss anything else?

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
462

Hi,

Also fill the table of UNITSOFMEASURE with unit of measurement ,and the table UNITSOFMEASUREX

with appropriate check...

Thanks,

Shailaja Ainala.

Read only

0 Likes
462

Thanks for your reply.

I make a silly mistake:

lt_datax-material = 'X'. <--- I should put article number here