This website is not affiliated with, sponsored by, or approved by SAP AG.

Problem with CLFMAS01 IDOC (Characateristics) [RESOLVED]

Interfaces (ALE, IDOC, RFC, EDI etc.)

Moderators: Snowy, thx4allthefish

Problem with CLFMAS01 IDOC (Characateristics) [RESOLVED]

Postby DrSidewalk » Thu Feb 07, 2013 8:43 am

The structure for CLFMAS01 is:

E1OCLFM
E1KSSKM
E1AUSPM
E1DATEM

When I look at the IDOC that I have produced (in WE05) I can see the following segments (for two characteristic values against the same material):

E1OCLFM
E1KSSKM
E1AUSPM
E1DATEM
E1KSSKM
E1AUSPM
E1DATEM

So, I only have one E1OCLFM segment per material, but have two characteristic values. However, I receive an IDOC error 60 which complains about the E1KSSKM segment, saying that the possible causes could be either:

The segment E1KSSKM is assigned to a group whose header segment does not occur.
The segment E1KSSKM does not exist in the syntax description of the basic type CLFMAS01 (extension ).
The sequence of segments in the group in which the segment appears is incorrect.

If I just process with one characteristic then I receive a status 50 and 64 which means it's ready for processing. It's only when I attempt to process two or more characteristics for the same material that I encounter this error 60 code. Does anyone have any idea what he problem could b?.

Of the three possible causes I'm assuming that it's not the first one as I can process one characteristic okay. I have checked and re-checked the sequence and that looks perfectly okay, as can be see above.
After the the three possible causes it says 'Previous errors ('mandatory' segment or group missing) may be due to this error.'. So I thought that maybe I need to add in the E1OCLFM segment again, but did not work, giveing an error saying that the segment can only be used once.

The values of the first and second E1KSSKM segment are:

MSGFN 009
CLASS Z_TN
AENNR 0000000001
DATUV 20130207
STATU 1

MSGFN 009
CLASS Z_TW
AENNR 0000000002
DATUV 20130207
STATU 1

Any suggestions would be much appreciated. I'm willing to try anything to get this problem resolved.

Dr Sidewalk
Last edited by DrSidewalk on Mon Feb 11, 2013 12:32 pm, edited 3 times in total.
DrSidewalk
 
Posts: 180
Joined: Thu May 03, 2012 9:35 am

Re: Problem with CLFMAS01 IDOC (Characateristics)

Postby Gothmog » Thu Feb 07, 2013 9:53 am

According to the IDoc structure, you should have:
E1OCLFM (only one)
E1KSSKM
E1KSSKM (if neccessary, as many as there are class assignments)
E1AUSPM
E1AUSPM (... as many as you need for all characteristic valuations)
E1DATEM (only one)
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Problem with CLFMAS01 IDOC (Characateristics)

Postby DrSidewalk » Thu Feb 07, 2013 1:30 pm

Okay, That sounds logical, except, I assume that E1KSSM is linked to the appropriate E1AUSPM segemnt via the chnage number field (AENNR). However, I was wondering why the last segment (E1DATEM) also has a change number field if there's only supposed to be one of them.

I'll try it though. It's got to better than creating an IDoc per characteristic, which is painful.

Many thanks

Dr Sidewalk
DrSidewalk
 
Posts: 180
Joined: Thu May 03, 2012 9:35 am

Re: Problem with CLFMAS01 IDOC (Characateristics)

Postby DrSidewalk » Fri Feb 08, 2013 7:42 am

That seemed to work fine.

Although I'm still not sure why they placed the change number field into the last DATEM segment, as there can ONLY be 1 segment in the IDoc, so why does it need a change number. Probably a structure used elsewhere I guess.

Anyway, all looks well.

My thanks go to Gothmog.

My next task is to find out what needs to be done to populate the Z fields for MARA and MARC via IDoc (MATMAS03). ;)
DrSidewalk
 
Posts: 180
Joined: Thu May 03, 2012 9:35 am

Re: Problem with CLFMAS01 IDOC (Characateristics)

Postby Gothmog » Fri Feb 08, 2013 9:28 am

DrSidewalk wrote:My thanks go to Gothmog.
You're welcome. :)
DrSidewalk wrote:My next task is to find out what needs to be done to populate the Z fields for MARA and MARC via IDoc (MATMAS03). ;)
Can't you use MATMAS_BAPI01 (message MATMAS_BAPI) and fill segments E1BPPAREX/E1BPPAREXX (provided the Z-fields have been added to structures BAPI_TE_MARA/BAPI_TE_MARC)?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1942
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home


Return to Interfaces

Who is online

Users browsing this forum: No registered users and 7 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.