IS-Retail: LSMW for Assigning Characteristics to ... will be one source structure: YMERCHSRC...
Transcript of IS-Retail: LSMW for Assigning Characteristics to ... will be one source structure: YMERCHSRC...
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
2
TABLE OF CONTENTS
STEP1: INITIAL SCREEN................................................................................................................................. 3
STEP 2: MAINTAIN OBJECT ATTRIBUTES ................................................................................................... 4
STEP 3: MAINTAIN SOURCE STRUCTURES ................................................................................................ 5
STEP 4: MAINTAIN SOURCE FIELDS ............................................................................................................ 5
STEP 5: MAINTAIN STRUCTURE RELATIONS ............................................................................................. 6
STEP 6: MAINTAIN FIELD MAPPINGS AND CONVERSION RULES ........................................................... 7
STEP 7: SPECIFY FILES................................................................................................................................ 10
STEP 8: ASSIGN FILES ................................................................................................................................. 11
STEP 9: READ DATA ..................................................................................................................................... 12
STEP 10: DISPLAY READ DATA .................................................................................................................. 14
STEP 11: CONVERT DATA............................................................................................................................ 15
STEP 12: DISPLAY CONVERTED DATA ...................................................................................................... 16
STEP 13: START IDOC GENERATION ......................................................................................................... 17
STEP 14: START IDOC PROCESSING ......................................................................................................... 18
STEP 15: CREATE IDOC OVERVIEW ........................................................................................................... 20
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
3
STEP1: INITIAL SCREEN
Project YG_LSMW Subproject SUBPRJ Object MERCH
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
4
STEP 2: MAINTAIN OBJECT ATTRIBUTES
IDoc (Intermediate Document) Message Type CLSMAS Basic Type CLSMAS04
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
5
STEP 3: MAINTAIN SOURCE STRUCTURES
There will be one source structure: YMERCHSRC Merchandise Category Assignment Source Structure
STEP 4: MAINTAIN SOURCE FIELDS
Field Name Type Length Description
MSGFN CHAR 3 Function
KLART CHAR 3 Class Type
CLASS CHAR 18 Class number
ATNAM CHAR 30 Characteristic Name
RELEV CHAR 1 Relevancy Indicator
KEY_DATE CHAR 8 Current Date of Application Server
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
6
STEP 5: MAINTAIN STRUCTURE RELATIONS
SAP structures
Source structure
Field
E1KLAHM YMERCHSRC MATKL
E1KSMLM YMERCHSRC ATNAM
E1DATEM YMERCHSRC CHARACT_DTYPE
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
7
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 :
EDI_DC40 - IDoc Control Record for Interface to External System
Fields Description ,Rule and Code
TABNAM Name of Table Structure
Rule : Default Settings
Code: EDI_DC40-TABNAM = 'EDI_DC40_U'.
MANDT Client
Rule : Default Settings
Code: EDI_DC40-MANDT = SY-MANDT.
DOCNUM IDoc number
Rule : Default Settings
Code: if p_trfcpt = yes or sy-saprl >= '46A'.
EDI_DC40-DOCNUM = g_cnt_transactions_transferred + 1.
endif.
DOCREL SAP Release for IDoc
Rule : Default Settings
Code: EDI_DC40-DOCREL = SY-SAPRL.
STATUS Status of IDoc
DIRECT Direction
Rule : Default Settings
Code: EDI_DC40-DIRECT = '2'.
OUTMOD Output mode
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
8
EXPRSS Overriding in inbound processing
TEST Test flag
IDOCTYP Name of basic type
Rule : Default Settings Modified
Code: EDI_DC40-IDOCTYP = g_idoctyp.
CIMTYP Extension (defined by customer)
Rule : Default Settings
Code: EDI_DC40-CIMTYP = g_cimtyp.
MESTYP Message type
Rule : Default Settings Modified
Code: EDI_DC40-MESTYP = g_mestyp.
MESCOD Message code
Rule : Default Settings Modified
Code: EDI_DC40-MESCOD = g_mescod
MESFCT Message Function
Rule : Default Settings
Code: EDI_DC40-MESFCT = g_mesfct.
STD EDI standard, flag
SNDPOR Sender port (SAP System, external subsystem)
Rule : Default Settings Modified
Code: if p_filept = yes. EDI_DC40-SNDPOR = g_fileport. elseif p_trfcpt = yes. EDI_DC40-SNDPOR = g_trfcport. endif.
SNDPRT Partner type of sender
Rule : Default Settings Modified
Code: EDI_DC40-SNDPRT = 'LS'.
SNDPFC Partner Function of Sender
SNDPRN Partner Number of Sender
Rule : Default Settings Modified
Code: EDI_DC40-SNDPRN = g_partnernr.
SNDSAD Sender address (SADR)
SNDLAD Logical address of sender
RCVPOR Receiver port
Rule : Default Settings
Code: concatenate 'SAP' sy-sysid into EDI_DC40-RCVPOR.
RCVPRT Partner Type of Receiver
Rule : Default Settings Modified
Code: EDI_DC40-RCVPRT = g_partnertype.
RCVPFC Partner function of recipient
RCVPRN Partner Number of Receiver
Rule : Default Settings Modified
Code: EDI_DC40-RCVPRN = g_partnernr.
RCVSAD Recipient address (SADR)
RCVLAD Logical address of recipient
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
9
CREDAT Created on
Rule : Default Settings
Code: EDI_DC40-CREDAT = SY-DATUM.
CRETIM Created at
Rule : Default Settings
Code: EDI_DC40-CRETIM = SY-UZEIT.
REFINT Transmission file (EDI Interchange)
REFGRP Message group (EDI Message Group)
REFMES Message (EDI Message)
ARCKEY Key for external message archive
SERIAL Serialization Segment E1KLAHM - Master class basic data
FUNCTION Function
Source: YMERCHSRC- MSGFN (Function)
Rule : Transfer (MOVE)
Code: E1KLAHM-MSGFN = YMERCHSRC-MSGFN.
KLART Class Type
Source: YMERCHSRC-KLART (Class Type)
Rule : Transfer (MOVE)
Code: E1KLAHM-KLART = YMERCHSRC-KLART.
CLASS Source: YMERCHSRC-CLASS (Class number)
Rule : Transfer (MOVE)
Code: E1KLAHM-CLASS = YMERCHSRC-CLASS.
E1KSMLM
MSGFN Function
Source: YMERCHSRC-MSGFN (FUNCTION)
Rule : Transfer (MOVE)
Code: E1KSMLM-MSGFN = YMERCHSRC-MSGFN.
ATNAM Char. name
Source: YMERCHSRC-ATNAM (Characteristic Name)
Rule : Transfer (MOVE)
Code: E1KSMLM-ATNAM = YMERCHSRC-ATNAM.
RELEV Char. Data Type
Source: YMERCHSRC-RELEV (Relevancy Indicator)
Rule : Transfer (MOVE)
Code: E1KSMLM-RELEV = YMERCHSRC-RELEV.
E1DATEM
MSGFN Source: YMERCHSRC-MSGFN (FUNCTION)
Rule : Transfer (MOVE)
Code: E1DATEM-MSGFN = YMERCHSRC-MSGFN.
KEY_DATE Source: YMERCHSRC-KEY_DATE (Current Date of Application Server)
Rule : Transfer (MOVE)
Code: E1DATEM-KEY_DATE = YMERCHSRC-KEY_DATE.
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
10
STEP 7: SPECIFY FILES
File Layout with sample test data: MSGFN KLART CLASS ATNAM RELEV
009 026 A31060101 CAA15071 1 Sample Tab delimited text file:
Charact_to_Merch.txt
Local file path will be provided: C:\Users\I061163\Desktop\CT04Upload.txt Imported Data File for Imported Data (Application Server)
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
11
Imported Data YG_LSMW_SUBPRJ_MERCHLOAD.lsmw.read Converted Data File for Converted Data (Application Server) Converted Data YG_LSMW_SUBPRJ_MERCHCHLOAD.lsmw.conv STEP 8: ASSIGN FILES
Assign the respective files defined in Step 7 to the source structures Input files Source structure C:\MerchUpload.txt YMERCHSRC
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
12
STEP 9: READ DATA
Read the data file uploaded on above step
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
13
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
14
STEP 10: DISPLAY READ DATA
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
15
STEP 11: CONVERT DATA
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
16
STEP 12: DISPLAY CONVERTED DATA
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
17
STEP 13: START IDOC GENERATION
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
18
STEP 14: START IDOC PROCESSING
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
19
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
20
STEP 15: CREATE IDOC OVERVIEW
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
21
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
22
In order to verify if Characteristic 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:
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
23
IS-Retail: LSMW for Assigning Characteristics to Merchandise Categories
24
© 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.
www.sap.com