cancel
Showing results for 
Search instead for 
Did you mean: 

CLFMAS overwrite existing class data

Former Member
0 Kudos

I Use the CLFMAS IDOC to update class data in SAP. I maintain the data in MDM and uses and IDOC CLFMAS to post the new data in SAP. My problem is that "old class data is lost". I have tried to change the MSGFN to different values, but I still get the same problem.

Do anyone have an idea how to solve this?

Regards

John-Kjell

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

No good answer,

Former Member
0 Kudos

Has anyone found a solution for this yet ?

When i create a CLFMAS02 IDOC the data in the class gets wiped out even if I am not sending that charactersitc in the IDOC.

Hope someone has an aswer . . .

Former Member
0 Kudos

Hi, I've encountered the same problem. Please advise.

Former Member
0 Kudos

I have the same problem........

Has anyone out there successfully used a CLFMAS idoc to update certain characteristics of a class while not blanking out other characteristics of that class?

Edited by: Brenton Harris on May 7, 2010 1:33 PM

0 Kudos

Hi,

You can use the customer exit 'EXIT_SAPLCLFM_002' for this requirement.

This customer exit is triggered before saving the Class / Char data for a material in the database during CLFMAS processing.

Sample code:

DATA: wl_allkssk LIKE LINE OF t_allkssk,

wl_allausp LIKE LINE OF t_allausp.

IF i_appl = space.

CLEAR: t_delcl, t_delob.

LOOP AT t_allkssk INTO wl_allkssk WHERE vbkz = 'D'.

CLEAR wl_allkssk-vbkz.

MODIFY t_allkssk FROM wl_allkssk INDEX sy-tabix TRANSPORTING vbkz .

ENDLOOP.

LOOP AT t_allausp INTO wl_allausp WHERE statu = 'L'.

CLEAR wl_allausp-statu.

MODIFY t_allausp FROM wl_allausp INDEX sy-tabix TRANSPORTING statu.

ENDLOOP.

e_active = 'X'.

ENDIF.

Hope this would solve your problem

Regards,

Bhawit

Former Member
0 Kudos

Bhawit,

I want to update multiple characteristic values for an Equipment class type 002. When i process the Idoc it updates the last record of characteristic value but the other char values of the same equipment are not updated. How do i make the IDOC work to update multiple characteristic values for the same equipment?

Thanks

Former Member
0 Kudos

Hello Brenton,

Did you get the solution to update multiple characteristic values for an object using LSMW Idoc CLFMAS?

Thanks

Praveen

Former Member
0 Kudos

Hello,

You will have to send the existing values as well as the new values, to be updated in the SAP.

Else design a custom function for the idoc, with the logic to store the existing values and append the new values.

Since the standard will always replace the existing values

Regards,

Abhishek

Former Member
0 Kudos

Thanks for your response Abhishek.

I am passing all the characteristic values for an object, it only updates the last char value of that object and skipping the above char values associated to the same object.

If you have used custom logic with in Idoc to successfully load multiple char values, can you guide me with the steps/logic for Equipment Characteristic values update?

I am able to use the LSMW standard direct input to load classification data and it works fine, but it takes many hrs to load 20 million char values. As we know that Idoc's will load faster than any other load method..So trying to get this LSMW CLFMAS work for multiple char values.

Praveen

Edited by: Chikku on Feb 7, 2012 3:01 PM

Former Member
0 Kudos

Hello,

we used the standard idoc for clfmas,

we used the message function functionality for its values.

Dont remember the exact values but either of these 004 or 005.

Will update once i find the details.

Regards,

Abhishek

0 Kudos

Hi Abhishek,

The standard feature is that in the destination SAP server, if the class in without the flag "Local Class", will be  overwriting

Use the transaction CL02 to mark "Local Class" the class, and will be without change by indound CLFMAS idocs

Best regards,

Antonio

Former Member
0 Kudos

Hi Statoil,

You can go through the below link,it could be of help to you:

https://www.sdn.sap.com/irj/scn/thread?messageID=5067072#5067072

https://www.sdn.sap.com/irj/scn/thread?messageID=7147819#7147819

Hope It Helped

Thanks & Regards

Simona Pinto

Former Member
0 Kudos

Hi Simona Pinto

Thank you for the reply.

The links are to how to transfer Class data, that is not my problem. I use the CLFMAS Idoc into SAP. The problem is that "existing" class infromation on the products are deleted in SAP.

Regards

John-Kjell

Former Member
0 Kudos

You mean to say after updating MSGFN field the old value is not captured in the "Display change" of the material ?