handling multiple recordings in lsmw

Post on 02-Jun-2018

263 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

  • 8/10/2019 Handling Multiple Recordings in LSMW

    1/22

    Handling multiple recordings in LSMW

    By Dhanalakshmi Dhivanand

    Target Audience:

    The readers must be able to create LSMW and they should be familiar with ABAP reportprogramming.

    Purpose of this tutorial:

    This Blog explains on how to use Multiple ecordings in LSMW. This is applicable for thetransactions which has multiple access se!uences li"e #$%%& T$%%& etc. 'Pricing (onditions&)reight (onditions& etc.*

    Introduction:

    LSMW is the SAP pro+ided plug,in& in which users can upload mass data. -f the re!uirementdoes not suit the standard a+ailable programs in SAP LSMW& users can create their ownrecordings for the transactions through LSMW recording.

    TCODE: LSMW

    (reate new Proect& Sub Proect and /bect0

    Main Screen:

    Step 1: Maintain Object Attributes

    1xecute Maintain /bect Attributes step and create the recording. -n this example& let us create

    Pricing conditions for the condition type& which has 2 access se!uences.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    2/22

    Select Batch -nput ecording radio button and clic" on the /+er+iew button as shown in thebelow screenshot.

    )rom the appearing screen& clic" on the (reate button to start with your recording.

    3ame the recording and its description.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    3/22

    4i+e the entries as below

    Press 1nter& you will get a pop up& where you can enter the transaction code.

    This (ondition type has 2 access se!uences.

    %. Select the first radio button and press 1nter.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    4/22

    Pro+ide +alues and clic" on sa+e in #$%% transaction for %staccess se!uence.

    Sample input is gi+en in the below screen for recording.

    When the transaction is sa+ed& Batch input recording screen appears as shown in the belowscreenshot.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    5/22

    (lic" on 5efault ALL button& you will get the corresponding )-1L5 name and description for therecorded parameters. Sa+e it.

    ecording for the first $ey combination 'adio Button* has been completed

    2. (reate recording for the 2ndaccess se!uence as follows.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    6/22

    The difference between %stand 2ndaccess se!uence is the number of fields. -n the 2ndaccessse!uence& Sales 5ocument Type is the difference.

    (lic" here to continue...

    Please send us your fee

    Handling multiple recordings in LSMW

    ...Previous

    Below is the sample data for recoding

    http://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page2.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Index.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page2.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Index.htm
  • 8/10/2019 Handling Multiple Recordings in LSMW

    7/22

    (lic" 5efault All to map the field name and description for all the recorded parameters.

    Sa+e it. 3ow recording is done for the second $ey (ombination'adio Button*

  • 8/10/2019 Handling Multiple Recordings in LSMW

    8/22

    4o bac" to the /bect Attributes screen and enter the recording names in ecording field asshow in the below screenshot.

    To add multiple recordings& clic" on -nter+al button

    Press 1nter and Sa+e it.

    Step : Maintain Source Structures

    4o bac" to the main screen and create the source structure.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    9/22

    Place the cursor on Source Structures and clic" on (reate button.

    Sa+e and clic" on Bac" button

    Step !: Maintain Source "ields

    (lic" on the Table Maintenance button and add fields to the source structure.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    10/22

    Add fields as shown in the below screenshot.

    Below is the list of fields created so far.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    11/22

    Sa+e and 4o bac" to the Main Screen

    Step #: Maintain Structure $elations

    (lic" here to continue...

    Handling multiple recordings in LSMW

    ...Previous

    Place the cursor on each source structure and clic" the (reate elationship button. Mapping willbe done as show in the below screenshot.

    http://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page3.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page2.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page3.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page2.htm
  • 8/10/2019 Handling Multiple Recordings in LSMW

    12/22

    Sa+e and 4o Bac" to the main screen.

    Step %: Maintain "ield Mapping and Con&ersion $ules

    (lic" on 1xtrasAuto,)ield Mapping to map the source and target structure fields. 'This wor"s

    when both source and target structure fields are in the same name*.

    5ouble (lic" on A6AT field& in the appearing field editor& write the below code.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    13/22

    S$-P71(/5 transfers the control to next recording.

    Based on the data the recording will be selected in this step.

    Sa+e and go bac" to the Main screen.

    Step ': Maintain "i(ed )alues* Translations* +ser,Defined $outines

    This Step is /ptional. 3o need to gi+e any +alue in this step.

    Step -: Specif. "iles

    Specify the file which has data in this step.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    14/22

    Sa+e and 4o bac" to the main screen.

    Step /: Assign "iles

    Place the cursor on source file and clic" on the (reate Assignment button.

    Sa+e and go bac" to the main screen

    Step 0: $ead "iles

  • 8/10/2019 Handling Multiple Recordings in LSMW

    15/22

    -n this step& all the data will be read from Presentation ser+er.

    1xecute it.

    Step 1 : Displa. $ead Data

    4o bac" to the Main screen

    To ensure that all the data ha+e been read properly& execute this step.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    16/22

    Step 11 : Con&ert Data

    This step will actually executes the con+ersion program& which was done in field mapping step.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    17/22

    (lic" here to continue...

    Handling multiple recordings in LSMW

    ...Previous

    Step 1 : Displa. Con&erted Data

    The con+erted data appears as shown in the below screenshot.

    http://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page4.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page4.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page3.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page4.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page4.htmhttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/Page3.htm
  • 8/10/2019 Handling Multiple Recordings in LSMW

    18/22

    Step 1! : Create 2atch Input Session

    (lic" on 1xecute Button. The below application ser+er path has the con+erted data.

    Step 1# : $un 2atch Input Session

  • 8/10/2019 Handling Multiple Recordings in LSMW

    19/22

    1xecute the below Batch input session.

    Select the session and execute it in foreground.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    20/22

    According to the data& first access se!uence is selected and data is filled in the screen as shownin the below screenshot.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    21/22

    Sa+e the transaction.

    The second record in the attached text file& is for the 2ndaccess se!uence. According to the data&second access se!uence is selected.

  • 8/10/2019 Handling Multiple Recordings in LSMW

    22/22

    Sa3ple Data:

    (lic" here for the test data used.

    Summary0

    As a result of this tutorial& the user will be able to

    (reate multiple recordings in LSMW

    Switch to the appropriate recording according the data from the flat file.

    Cond.Type SELKZ VKORG AUART Amount UoM Per Unit

    Val.From Val.ToZSAL X !!! ZCO "! US# MSC "$"%$"!

    "$&$%%%%

    ZSAL X !!! ! US# MSC "$"%$"!

    "$&$%%%%

    http://saptechnical.com/Tutorials/LSMW/MultipleRecordings/vk11.txthttp://saptechnical.com/Tutorials/LSMW/MultipleRecordings/vk11.txt

top related