StepByStep Guide for LSMW Using ALE IDOC Method

Embed Size (px)

Citation preview

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    1/13

    Step-By-Step Guide for LSMW using ALE/IDOC Method

    Part One: To create IDOC structure

    Step One: Run transaction WE31.Create Segment with name ZEMP_SEG.

    Step Two: Input the fields for the segment structure, which would be required in LSMW for mapping purpose.

    Step Three: Now, Go to Edit -> Set Release, so that you can use this segment in the R/3 system further.

    Step Four: Run transaction we30 and enter IDOC structure name we want to create.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    2/13

    Here, IDOC structure name is ZEMP_IDC.

    Step Five: (A) Add segment created earlier to this IDOC type ZEMP_IDC.

    The maximum and minimum repetitions can be from 000000000000 to 99999999999.

    Choose any number rang as per requirement.

    Now, Go back to earlier page and Click Edit-> Set Release.

    (B)Create new Message type in transaction WE81.

    (C) Attach message type and IDOC type w ith the help of transaction WE82.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    3/13

    Step Six:Go to transaction SALE. Click as marked in red color.

    Now add two logical system names for sender and receiver ex. IDC64 and IDC87.

    Step Seven: Now assign clients to the logical systems created.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    4/13

    Select the client of your current system as per decision to make that system sender or receiver.

    After clicking on to Goto->Details , you come to following screen. Input receiver system IDC87 to client 800.

    Here in our LSMW using IDOC method, no need to assign client to sender as we are doing Inbound IDOC Processing (i.e.Receiver side).

    Step Eight: Run transaction WE21 to create File port. Give directory name as the location of your file to be read. Givedummy name for Outbound file

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    5/13

    field. Step Nine: Run

    SM59 transaction to create RFC connection. Please make sure here connection type is T for

    TCP/IP .

    Step Ten: Run transaction WE20 to create partner profile for partner of receiver system (IDC87) i.e. sender system(IDC64).

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    6/13

    Step Eleven: Create process code using WE42.

    After saving this data, you go screen as below to attach function module to the process code. The process code is therepresentation of the function module for inbound idoc processing.

    Step Twelve: Now you can use this process code in the inbound parameters of the partners profile.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    7/13

    Part Two:

    Following are the steps to be performed on LSMW side.

    Step One:

    Enter the project, sub-project and Object name for our scenario.

    Step Two:

    Click the first radio buttonMaintain Object Attributes, execute and enter the message name and IDOC name into thescreen as follows.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    8/13

    Step Three:

    Click radio button Maintain Source Structuresand execute to create new source structure as follows.

    Step Four:

    Click radio button Maintain Source Fields and execute to enter the fields in the source structure. Here these fields aresame as the fields in segment of the IDOC created earlier.

    Step Five:

    Click radio button Maintain Structure Relations and execute to create relationship between source and target structure.Here target structure is Message type ZEMP_MSG.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    9/13

    Step Six:

    Click radio button Maintain Field Mapping and Conversion Rules and execute to create field mapping and a conversionrules between source structure and target structure.

    Step Seven:

    Click radio button Maintain Fixed Values, Translations, User-Defined Routinesand execute to assign fixed values to anyfield, to call user defined routines etc. These activities are not required in our scenario.

    Step Eight:

    Click radio button Specify Filesand execute to assign file on the local workstation to the LSMW to read. The file has

    contents as shown below.

    And now we specify the location of file here.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    10/13

    Step Nine:

    Click radio button Specify Filesand execute to specify file to source structure as follows.

    Step Ten:

    Click radio button Read Dataand execute to read file from local workstation as per path specified.

    Step Eleven:

    Click radio button Display Read Dataand execute to display data just read.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    11/13

    Step Twelve:

    Click radio button Convert Dataand execute to create a file with extension .conv .

    Step Thirteen:

    Click radio button Display Converted Dataand execute to display the converted data.

    Step Fourteen:

    Click radio button Start IDoc Generationand execute to generate the IDOC from the data provided and structuremapping done earlier in this document. For this purpose, we cam use the converted file in step twelve. After successfulgeneration of IDOC, below shown message is displayed.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    12/13

    Step Fifteen:

    Click radio button StartIDoc Processing and execute to process the IDOC by inputting necessary selectionparameters.

    Step Sixteen:

    Click radio button Create IDoc Overviewand execute to show status and details of IDOC generated. This screen issimilar to WE02 or WE05 transaction.

    Here , as you can see , the status of IDOC is OK (Green color Bubble) and hence confirms successful processing ofIDOC.

    Step Seventeen:

    Click radio button Start IDoc Follow-Upand execute to reprocess the IDOC if not posted or generated properly initially.

  • 7/27/2019 StepByStep Guide for LSMW Using ALE IDOC Method

    13/13