Application Development 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: 

Inbound IDoc CLFMAS don't update MM Classification.

Former Member
0 Kudos

Hi,

I receive a CLFMAS01 IDoc from SAP XI.

First time I received the IDOC the segments E1OCLFM, E1KSSKM and E1AUSPM contained 009 in the function field (MSGFN) and Material Master classification were inserted.

Every time since the IDOC ends with status 53 but it have not updated the classifications.

I have tried functions:

009 (Original: First message for process)

004 (Change: Message contains changes)

005 (Replace: This message replaces previous messages)

018 (Resend)

The Segment E1DATEM are in all cases present but empty.

Does anybody have the same problem, and eventually a solution to the problem?

Best regards

Brian Strunge

1 ACCEPTED SOLUTION

former_member214131
Active Contributor
0 Kudos

Hello,

Sorry, there is a mention in your post about the IDoc status 53.

Please note that MSGFN = '009' is the code when you want to create. If you want to update the existing one, then MSGFN should be '004'.

Also please note that MSGFN is present in all the segments of CLFMAS01.

I woud suggest you to make a trial / test in Tx WE19.

Hope this helps you.

Best Regards, Murugesh AS

6 REPLIES 6

former_member214131
Active Contributor
0 Kudos

Hello,

I checked the same in system. I have IDocs with MSGFN = '004' only. All the IDocs do have data in segment E1DATEM, with MSGFN = 004; with a data in field KEY_DATE. But do you have any problem in IDoc status ( Green / Red light )?

Best Regards, Murugesh AS

former_member214131
Active Contributor
0 Kudos

Hello,

Sorry, there is a mention in your post about the IDoc status 53.

Please note that MSGFN = '009' is the code when you want to create. If you want to update the existing one, then MSGFN should be '004'.

Also please note that MSGFN is present in all the segments of CLFMAS01.

I woud suggest you to make a trial / test in Tx WE19.

Hope this helps you.

Best Regards, Murugesh AS

Former Member
0 Kudos

Hi again,

Thanks for your answer.

Tried to insert function 004 and today's date in the E1DATEM fields MSGFN and KEY_DATE. And I have MSFGN = 004 in all segments.

I use Tx WE19 for test.

I use following fields:


  Segment E1OCLFM:
    MSGFN = 004
    OBTAB = MARA
    OBJEK = Material number to be updated
    KLART = 001
    MAFID = O
  Segment E1KSSKM:
    MSGFN = 004
    CLASS = FI_SK
  Segment E1AUSPM:
    MSFGN = 004
    ATNAM = EMS_REMARK2  (The characteristic name)
    ATWRT = HARDWARE     (The Characteristic value)
  Segment E1DATEM:
    MSFGN = 004
    KEY_DATE = 17.06.2005

Am I missing something or am I doing it wrong?

0 Kudos

Hello,

I am not very sure of the characteristic values on classification for a Material. I can give you a sample values for which I tried for a Document. For sure, Classification w.r.t Material or a Document is quite similar.

Please see the sample test data for various segment fields:


E1OCLFM
MSGFN:004     
OBTAB:DRAW     
OBJEK:DRW9999999999               00000     
KLART:099    
MAFID:O     
OBJECT_TABLE:DRAW

E1KSSKM
MSGFN:004
CLASS:999999DRW
DATUV:00000000
STATU:1
     
<i>* Comment: Characteristic for PLANT</i>
E1AUSPM 
MSGFN:004
ATNAM:ANTA9898
<i>* PLANTCode</i>
ATWRT: 9999 
ATCOD:1


E1DATEM
MSGFN:004
KEY_DATE:17.06.2005

Hope this gives you some idea to proceed further. Please refer to Tx. WE60 which gives the details of the each segment field.

Best Regards, Murugesh AS

Message was edited by: Murugesh Arcot

0 Kudos

Hello,

Here's a little information if you have the same problem as I.

In Tx CL02 where I define the classes I have set the 'local class' field.

As long as the 'local class' field is set, I can insert classes and class Characteristics, but I can't update.

If I remove the 'local class', I can update.

But I have two different classes to update on the same material, so when the 'local class' is not set, I delete the other class when I update the first and the other way round. This is as described in the manual.

So the problem is Why can't I update the Class Characteristics when the 'local class' is set.

I have made an OSS to the solve the problem. When the problem is solved I describe it here.

Best regards

Brian Strunge.

Hello again,

Here's the answer from OSS.

You are not able to update local classes with IDoc CLFMAS. Instead you can use the UserExit CLF00200 (A copy of SAMPLE_INTERFACE_CLF00200) where you program the update yourself.

Best Regards

Brian Strunge.