LSMW For Assigning Characteristics Profile To Merchandise Categories
LSMW For Assigning Characteristics Profile To Merchandise Categories
LSMW For Assigning Characteristics Profile To Merchandise Categories
TABLE OF CONTENTS
STEP1: INITIAL SCREEN ................................................................................................................................ 3 STEP 2: MAINTAIN OBJECT ATTRIBUTES ................................................................................................... 4 STEP 3: MAINTAIN SOURCE STRUCTURES ................................................................................................ 5 STEP 4: MAINTAIN SOURCE FIELDS ............................................................................................................ 6 STEP 5: MAINTAIN STRUCTURE RELATIONS ............................................................................................. 8 STEP 6: MAINTAIN FIELD MAPPINGS AND CONVERSION RULES ........................................................... 9 STEP 7: SPECIFY FILES ............................................................................................................................... 13 STEP 8: ASSIGN FILES ................................................................................................................................. 15 STEP 9: READ DATA ..................................................................................................................................... 16 STEP 10: DISPLAY READ DATA .................................................................................................................. 18 STEP 11: CONVERT DATA ........................................................................................................................... 19 STEP 12: DISPLAY CONVERTED DATA ...................................................................................................... 24 STEP 13: START IDOC GENERATION ......................................................................................................... 25 STEP 14: START IDOC PROCESSING ......................................................................................................... 26 STEP 15: CREATE IDOC OVERVIEW ........................................................................................................... 27
STEP 2: MAINTAIN OBJECT ATTRIBUTES IDoc (Intermediate Document) Message Type Basic Type CLFMAS CLFMAS02
STEP 3: MAINTAIN SOURCE STRUCTURES There will be one header and one item source structure: MERCHCATSRCHDR ITEM Header Item
Header Structure Field Name RECORDNO OBJEK MSGFN OBTAB KLART MAFID OBJECT_TABLE Type C C C C C C C Length 4 50 3 10 3 1 30 Description Record Number OBJEK Function OBTAB KLART Record type OBJECT_TABLE
Item Structure Field Name RECORDNO CLASS DATUV STATU KEY_DATE Type C C C C C Length 4 18 8 1 8 Description Record Number Class number Character field, 8 characters long Classification status Key date
STEP 6: MAINTAIN FIELD MAPPINGS AND CONVERSION RULES Control record Information In order to see complete details of below control record reated information , click on variant butoon and select all checkboxes :
Fields TABNAM
MANDT
DOCNUM
Description ,Rule and Code Name of Table Structure Rule : Default Settings Code: EDI_DC40-TABNAM = 'EDI_DC40_U'. Client Rule : Default Settings Code: EDI_DC40-MANDT = SY-MANDT. IDoc number Rule : Default Settings Code: if p_trfcpt = yes or sy-saprl >= '46A'. EDI_DC40-DOCNUM = g_cnt_transactions_transferred + 1. endif.
DOCREL Rule : Code: STATUS DIRECT Rule : Code: OUTMOD EXPRSS TEST IDOCTYP Rule : Code: CIMTYP Rule : Code: MESTYP Rule : Code: MESCOD Rule : Code: MESFCT Rule : Code: STD SNDPOR Rule : Code:
SNDPRT Rule : Code: SNDPFC SNDPRN Rule : Code: SNDSAD SNDLAD RCVPOR Rule : Code: RCVPRT
SAP Release for IDoc Default Settings EDI_DC40-DOCREL = SY-SAPRL. Status of IDoc Direction Default Settings EDI_DC40-DIRECT = '2'. Output mode Overriding in inbound processing Test flag Name of basic type Default Settings Modified EDI_DC40-IDOCTYP = g_idoctyp. Extension (defined by customer) Default Settings EDI_DC40-CIMTYP = g_cimtyp. Message type Default Settings Modified EDI_DC40-MESTYP = g_mestyp. Message code Default Settings Modified EDI_DC40-MESCOD = g_mescod Message Function Default Settings EDI_DC40-MESFCT = g_mesfct. EDI standard, flag Sender port (SAP System, external subsystem) Default Settings Modified if p_filept = yes. EDI_DC40-SNDPOR = g_fileport. elseif p_trfcpt = yes. EDI_DC40-SNDPOR = g_trfcport. endif. Partner type of sender Default Settings Modified EDI_DC40-SNDPRT = 'LS'. Partner Function of Sender Partner Number of Sender Default Settings Modified EDI_DC40-SNDPRN = g_partnernr. Sender address (SADR) Logical address of sender Receiver port Default Settings concatenate 'SAP' sy-sysid into EDI_DC40-RCVPOR. Partner Type of Receiver
10
RCVPFC RCVPRN
CRETIM
Rule : Default Settings Modified Code: EDI_DC40-RCVPRT = g_partnertype. Partner function of recipient Partner Number of Receiver Rule : Default Settings Modified Code: EDI_DC40-RCVPRN = g_partnernr. Recipient address (SADR) Logical address of recipient Created on Rule : Default Settings Code: EDI_DC40-CREDAT = SY-DATUM. Created at Rule : Default Settings Code: EDI_DC40-CRETIM = SY-UZEIT. Transmission file (EDI Interchange) Message group (EDI Message Group) Message (EDI Message) Key for external message archive Serialization
E1OCLFM
Lets consider MSGFN as constant 009 Original: First message for process
MSGFN
OBTAB
OBJEK
KLART
MAFID
Function Source: MERCHCATSRC-MSGFN (Function) Rule : Transfer (MOVE) Code: E1OCLFM-MSGFN = 009 Name of database table for object Source: MERCHCATSRC-OBTAB () Rule : Transfer (MOVE) Code: E1OCLFM-OBTAB = MERCHCATSRC-OBTAB. Key of object to be classified Source: MERCHCATSRC-OBJEK () Rule : Transfer (MOVE) Code: E1OCLFM-OBJEK = MERCHCATSRC-OBJEK. Class Type Source: MERCHCATSRC-KLART () Rule : Transfer (MOVE) Code: E1OCLFM-KLART = MERCHCATSRC-KLART. Indicator: Object/Class Source: MERCHCATSRC-MAFID () Rule : Transfer (MOVE) Code: E1OCLFM-MAFID = MERCHCATSRC-MAFID.
11
E1KSSKM
Lets consider MSGFN as constant 009 Original: First message for process
MSGFN
CLASS
AENNR DATUV
STATU
Function Source: MERCHCATSRC-MSGFN (Function) Rule : Transfer (MOVE) Code: E1KSSKM-MSGFN = 009 Class number Source: MERCHCATSRC-CLASS (Class number) Rule : Transfer (MOVE) Code: E1KSSKM-CLASS = MERCHCATSRC-CLASS. Change Number Valid-From Date Source: MERCHCATSRC-DATUV (Character field, 8 characters long) Rule : Transfer (MOVE) Code: E1KSSKM-DATUV = MERCHCATSRC-DATUV. Classification status Source: MERCHCATSRC-STATU (Classification status) Rule : Transfer (MOVE) Code: E1KSSKM-STATU = MERCHCATSRC-STATU
E1DATEM MSGFN
Master Key Date and Change Number Function Source: MERCHCATSRC-MSGFN (Function) Rule : Transfer (MOVE) Code: E1DATEM-MSGFN = MERCHCATSRC-MSGFN. Current Date of Application Server Source: MERCHCATSRC-KEY_DATE (Key date) Rule : Transfer (MOVE) Code: E1DATEM-KEY_DATE = SY-DATUM
KEY_DATE
12
Local file path will be provided : Header Item C:\CharProfile_To_MerchCat_TestData_header.txt C:\ CharProfile_To_MerchCat_TestData_item.txt
File for Imported Data (Application Server) YG_LSMW_SUBPRJ_MERCH_PRFTST.lsmw.read File for Converted Data (Application Server) YG_LSMW_SUBPRJ_MERCH_PRFTST.lsmw.conv
13
RECORDNO 1 1 1
DATUV
STATU 1 1 1
Local file path will be provided: Header C:\CharProfile_To_MerchCat_TestData_header.txt Item C:\ CharProfile_To_MerchCat_TestData_item.txt
File for Imported Data (Application Server) YG_LSMW_SUBPRJ_MERCHLOAD.lsmw.read File for Converted Data (Application Server) YG_LSMW_SUBPRJ_MERCHCHLOAD.lsmw.conv
14
15
16
17
18
Before Processing step : Convert data , Pls make sure to maintain File Port and Partner Type and Partner No. Settings using Idoc Inbound Processing menu :
19
Maintain Ports:
20
21
22
23
24
25
26
In order to verify if Characteristic Profile has been assigned to Merchandise Category, use transaction WG24 and enter merchandise category or follow below mentioned path in SAP Easy Access using tcode W10T:
27
28
29
30
www.sap.com
2013 SAP AG. All rights reserved. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company. Crossgate, m@gic EDDY, B2B 360, and B2B 360 Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.