Sorry to say, but your problem is not resolved.
In IS-Retail, a merchandise category must first be created as a class (CLSMAS) and then also as a merchandise category (W_WGRP). Yes, you must process two IDoc per merchandise category, and in that order.
To understand how to load data using LSMW, the best approach to watch what the system does naturally. In this case, use T-Code WGSE to send the merchandise category hierarchy via ALE from one system-client to another. For understanding, you needn't configure the entire ALE scenario, just the outbound portion. Then watch the outbound IDocs be created; there's your example!
For merchandise category hierarchy (including merchandise categories), there are four message types that will be sent: W_WGRP, CHRMAS, CLFMAS, and CLSMAS.
IDoc Serialization using message types (serialization groups) is used when several different message types are dependent on each other, as is the case here. For example, if a merchandise category is assigned to a merchandise category hierarchy level, the merchandise category hierarchy level must first exist. How you use LSMW and IDocs is informed by the sequence.
To understand the IDoc sequence for creating the merchandise category hierarchy (including merchandise categories), use T-Code BD44 to view the Serialization Group GRP_W_WGRP includes the 4 desired message types in sequence:
CHRMAS04 Distr. of Characteristics with Dependencies and Long Texts
CLFMAS02 Master object classification
CLSMAS04 Classes with Long Texts, Document Links, and E1UPSLINK
W_WGRP01 Distribution of material groups
CHRMAS04 is only relevant of Characteristics are being assigned to merchandise categories. Let us leave Characteristics aside for now.
Step 1: Create Merchandise Category Hierarchy Nodes
Step 2: Merchandise Categories - Create as a Class
Step 3: Merchandise Categories - Change as a Retail MC
Step 4: Merchandise Categories - Assign Category Hierarchy Nodes each other, and assign MC class to MCH node.
For this, use these messages:
Step 1: CLSMAS04
Step 2: CLSMAS04
Step 3: W_WGRP01
Step 4: CLFMAS02
- Paul
----------------------------
Paul R. Gendreau, Jr.
SAP Retail