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

characteristic values update using lsmw BAPI mehtod

Former Member
0 Likes
3,304

Hi Experts,

I have a bapi 'BAPI_MATERIAL_MAINTAINDATA_RT' which will update characteristics value for the material and i have following details as below

HEADDATA:

FUNCTION = ‘009’

MATERIAL = From file

BASIC_VIEW = ‘X’

CHARACTERISTICVALUE

FUNCTION = ‘009’

MATERIAL = From file

CHAR_NAME = From File

CHAR_VALUE = From File

 

CHARACTERISTICVALUEX

FUNCTION = ‘009’

MATERIAL = From File

CHAR_NAME =  From File

CHAR_VALUE = From File


For this i want to use bapi method in lsmw, can you please suggest which bapi method(business object) is suitable for this requirement and what is the relation ship structure can be used.Please help.


Thanks &Regards

Syed Fayyaz

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
2,440

BAPI_MATERIAL_MAINTAINDATA_RT corresponds to method CLONE of LSMW BAPI BUS1001001

Hi Experts,

I have a bapi 'BAPI_MATERIAL_MAINTAINDATA_RT' which will update characteristics value for the material and i have following details as below

HEADDATA:

FUNCTION = ‘009’

MATERIAL = From file

BASIC_VIEW = ‘X’

CHARACTERISTICVALUE

FUNCTION = ‘009’

MATERIAL = From file

CHAR_NAME = From File

CHAR_VALUE = From File

 

CHARACTERISTICVALUEX

FUNCTION = ‘009’

MATERIAL = From File

CHAR_NAME =  From File

CHAR_VALUE = From File


For this i want to use bapi method in lsmw, can you please suggest which bapi method(business object) is suitable for this requirement and what is the relation ship structure can be used.Please help.


Thanks &Regards

Syed Fayyaz

9 REPLIES 9
Read only

Former Member
0 Likes
2,440

Dear Syed Fayyaz,

Please use direct input with :

Object : 0130

Method : 002

Program Name : RCCLBI03

Please refer the below Link :

LSMW | SAP Material Management

I hope this link will help you to upload Material Characteristic.

Regards,

Yance

Read only

0 Likes
2,440

Hi,

i want to use this 'BAPI' to add characteristic values for the article.Can anyone please help me with example what parameters should i pass for this 'BAPI' to update the characteristic values for the article.

Thanks &Regards,

Syed Fayyazuddin

Read only

0 Likes
2,440

Dear Fayyaz,

Please see the below link :

SAP123 - Loading Material Master Characteristics with LSMW Direct Input method

for LSMW.

Is it right for your question?

Regards,

Yance

Read only

JL23
Active Contributor
0 Likes
2,441

BAPI_MATERIAL_MAINTAINDATA_RT corresponds to method CLONE of LSMW BAPI BUS1001001

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,440

Browse table SWOTDV, look for ABAPNAME = 'BAPI_MATERIAL_MAINTAINDATA_RT'.

Regards,

Raymond

Read only

0 Likes
2,440

Hi,

Now i am getting LSMW idoc error as 'Function module not allowed: AFS_RETAIL_ARTMAS_IDOC_INPUT' and status '51'.

Can you please help.

Thanks &Regards,

Syed Fayyaz

Read only

0 Likes
2,440

compare your settings with the info from OSS note 318927 - COM: MATMAS process code defaulting to AFSA

Read only

0 Likes
2,440

Hi,

Yes, this is done through some configuration settings, thanks for your post.

I have one more issue when generation IDOC for this LSMW BAPI method, Like for one article and its multiple characteristic values multiple IDOC's are generating  as i am expecting only one IDOC for article and its multiple characteristic values.

Can you please help if you have any idea.

Thanks &Regards,

Syed Fayyazuddin

Read only

0 Likes
2,440

I actually do not know since I am not working in a retail system, in the core ERP system classification cannot be loaded with the same BAPI as the material master. characteristics, classes and classification have to be loaded  individually.

However, the usual way would be to repeat the segment which holds the information.

If I am really curious then I usually investigate how SAP is doing this. I setup a ALE scenario and send a material that I created as example. Then I can check the IDOC and see how it is structured and which segments I find the relevant data.