LSMW Recording for CLW1 - Multiple entries

Hi,
  I am doing a recording in LSMW for Tcode CLW1.   This I thought was relatively simple but I have an issue with the second screen after the first screen is processed.  The second screen has multiple entries for this Hierarchy level.  I am reading an excel spreadsheet that the users created for the Hierarchy level assignments.  There are multiple records for the same Hierarchy level but with different Hierarchy level assignments that need to populate the second screen.   Also, I don't know how many entries this second screen will take for the HL assignments.  I know one of the business users told me one Hierarchy level has 98 different HL assignments!  I have searched on the internet and in the forum to try and find the resolution to this problem, with no luck yet.  I am hoping someone out there has had this same issue.   I know I can add a loop to the LSMW code but I'm not sure how to handle it.   I am new to LSMW (Also ABAP only a year) and am learning but need a little guidance if possible or maybe some code examples.
                                 Thanks for you time and knowledge in advance!

Hi,
The same problem we have faced.  As it is having multiple entries in second level.  It is easy to do with BDC Program than LSMW.  U can use table control logic in BDC, So that You can easily upload the data.
Rewardpoint if useful.
Regards
(YUGANDHAR.P)

Similar Messages

  • Is it possible LSMW recording method using multiple structures

    Hi,
    can any body tell me, is it possible LSMW recording method using multiple structures
    i,e using Header details one flat file structure and Item details another flat file structures

    Hi,
    Check this link..
    LSMW multiple structure migration

  • How to make RECORD for saving multiple rows for each employee..

    Hi,
    How can I create a record for saving multiple rows for each employee... (parent child relationship)
    I have created all required fields, then created a record, and then created a page. in that page i dragged-n-dropped a scroll area on that page and dropped all required fields from record into that scroll-area.
    whats is happening that its saving ONE (the first) record fine, but for the second record its not storing EMPLID for that row..
    Will I have to make some change at RECORD level ?
    OR Will i have to make some configuration in parent component ?

    Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

  • Handling lsmw recording for multiple items

    how to handle one header and multiple line items  using lsmw recording. can anyone please send the code for that for iw31 transaction.
    Regards,
    Sridhar

    Hi Sridhar,
    You have to define two structures. One as header and the other as Its subordinate in Maintain Source Structures.
    Then you can define what are all the fields at header level and what are the fields at Item level in maintain Source fields.
    Then you can map the corresponding fields to the target structure in the Maintain fixed values, translations, user-defined routines step.
    Regards,
    Ravi

  • LSMW Recording for multiple line items

    Hello Gurus,
    I just wanted to know if task list has more than one operation can be loaded thru LSMW recording ? If yes,
    COuld anyone tell me the process of recording step by step as I am new to recording and not sure what is the flow.
    I have created spreadsheet with some data to test and went into LSMW and assign the mode as recording and also had given the values in the respective tcode and save it..after that do I need to perform all the 14 steps ?
    Pls advice
    Mahee

    Hi
    Please go through the below document. It is difficult to explain you completely.
    LSMW while creating first 6 steps need to be once. Later on same LSMW can be used directly from step 7.
    The below explain is for some other tcode. but steps will remain same in LSMW for your tcode.
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc

  • LSMW recording for different numbers of materials

    Dear all,
    In the LSMW recording-trcode at VBO1- I enter material codes. But the number of  material codes are changeble. For instance for a customer I can enter 5 material codes; for another customer I can enter 12 material codes. For this reason,
    I created recording template for 15 materials.
    When I run the LSMW it gives errror. because I entered 3 material for a spesific customer. It wants other 12 material codes.
    As result;
    How can I create a template for various numbers of materials?
    For example
    customer1 I want to run LSMW for  3 materials
    customer2 I want to run LSMW for  5 materials.
    Thanks

    Hi
    I am not exactly sure of the problem, but you have 15 material columns refering to the line items possible in ALL sales orders/contracts.  Ensure that you have a ZERO in the colomns not being posted to.  The zero in Excel has to set to text I think, but check the SDN for further on that matter.  When you save as a text file, or CSV file, open it with wordpad.  You should see the 0 there, if not search SDN.
    Something else you can do is the have the field names that become you source field in the LSMW.  See Maintain source fields in the LSMW.  Use the field names that you have given there as the excel file's header line.  i.e.  line 'A'.  When you select your file to be loaded under 'specify fields', tick the box : - Field names at start of file.
    It will then only take the amounts that are there and not put the amount in the next place.  I am not sure with recording in SD, but record the item numbers from a static 10,20,30,40,50 .....ETC TO 150.  Then have source fields for all 15 line items.
    You could have another material created as a non-valuated material and so it won't post anywhere.  Add this material where necessary.
    Hope this is of help
    Kind regards
    Dawn

  • LSMW (recording)  for  Z - Tcode

    Hi experts,
    Is it possible to do LSMW(recording type)   with  Z   T-code... or not...
    Thanksin advance,
    Anthyodaya.

    Hi,
    Yes it is possible to do recording for ZTCODE,
    In the first step of the LSMW when you select
    the radio button - Batch Input Recording then by
    giving a Zname for your recording then entering
    it will again ask for the recording name and the
    TCODE name there you can specify your ZTCODE name.
    Hope it helps
    Regards
    Mansi

  • LSMW   RECORDING FOR   ME01

    Hi Gurus,
    I am trying to do LSMW - recording method. for t-code ME01 but i am not abule to results.
    i am not abul to do proper recording for ME01. is there any way to recording t-code ME01
    Thanksing advance,
    Anthyodaya

    Hi,
    What is the error your are getting?

  • Regarding LSMW Recording for Custom TCodes

    Hi Experts,
    Can we do the recording in LSMW for Custom TCodes.Actually I have created a table(fields with data elements,provided technical settings) through LSMW Batch Input Method Recording.When I specify the file in 7th step it goes to dump.Could you please help me how to do this problem?

    Yes LSMW recording can be used for Custom TCodes, that is actually the main purpose for the recording option.
    Why you get a dump can only be determined by reading the dump. Usually this info is among the first 7 pages .

  • LSMW Recording for SPRO

    I would like to upload a list of Material Groups using LSMW in SPRO T-Code.
    I've tried recording but it doesn't work. Can anyone please guide me?

    hi ,
    Check out the following steps
    For validity across plan versions
    Organizational Management > Basic settings > Maintaining Number Ranges> Set Up Number Assignment for All Plan Versions
    Table : V_T77S0SC ( T-code : SM30)
    maintain
    NUMRG COMP X
    Organizational Management > Basic settings > Maintaining Number Ranges> Maintain Number range
    Table : T77IV ( T-code : SM30)
    Create new entries with $$X , where $$ indicates the plan version and X is Object type like O is the org unit .
    after this Selecting the object (Org unit, Job, Position and task) click on number range button
    This will take u to the Screen saying number range for personnel planning.
    click on change Interval button
    maintain the no ranges with the range u want keeping the current number range
    0 while creating for the first time.
    Regards
    Saurabh Goel

  • MB1C LSMW Recording fails with missing Prod Date for Batch Managed Material

    An LSMW recording for transaction MB1C that was batch managed was successfully recorded.  This included the entry of the Production Date before pressing enter to post the Good Receipts.  However, when the transaction was executed, the error came back, "Enter the date of production".  In looking at the screen in the lsmw batch results, it shows the date in the production date field.
    I also tried to create the recording in the Transaction Recorder (trancode SHDB), and process the recording simulating the background mode and got the same results.
    Any ideas why it seems to be ignoring the production date?  Any help will be greatly appreciated.

    An LSMW recording for transaction MB1C that was batch managed was successfully recorded.  This included the entry of the Production Date before pressing enter to post the Good Receipts.  However, when the transaction was executed, the error came back, "Enter the date of production".  In looking at the screen in the lsmw batch results, it shows the date in the production date field.
    I also tried to create the recording in the Transaction Recorder (trancode SHDB), and process the recording simulating the background mode and got the same results.
    Any ideas why it seems to be ignoring the production date?  Any help will be greatly appreciated.

  • Authority check in infoset query for field with multiple entries

    how can i perform the authority check in sq02 "at selection screen" for a multiple entry field
    e.g. EKORG low  0001 - high  0005
    or EKORG 0001, 0004, 0005
    I already added the following statements
    How the field for EKORG check must be filled
    if EKORG is initial.
      message 'Bitte Einkaufsorganisation wählen' TYPE 'E'.
    endif.
    AUTHORITY-CHECK OBJECT 'M_BEST_EKO'
             ID 'ACTVT' FIELD '03'
             ID 'EKORG' FIELD ?????.
    IF sy-subrc = 4.
      MESSAGE 'Keine Berechtigung für EKORG  sy-subrc 4'  TYPE 'E'.
    ENDIF.

    hi,
    which event do you use for your coding ?
    it must be AT SELECTION-SCREEN
    A.

  • N81 Call Log - Multiple entry for same number

    Hi,
    Earlier I was using Nokia 7250, in it the call log for missed/dialled/received calls have the facility for storing multiple entries for the same number.
    i.e., say I received calls from no. XX @ 1 Am, 2 AM & 3 Am. Then the received call log for the no. XX will have an entry with these three time stamps
    Where as in N81 only the most recent entry i.e., 3AM is been shown and I couldn't find a way to find out the earlier calls (1 AM & 2 AM)
    Is there a way to find it out?
    Thanks.

    Hi
    This is the normal effect of SAP DBSL SQL code translation.
    You can find a lot of post on SCN that will help you to understand this behavior...
    Regards
    About rsdb/prefer_join and rsdb_prefer_union_all
    634263 - Selects with FOR ALL ENTRIES

  • Data in the cube is showing multiple entries when compared with ODS

    Hello BW Gurus,
    We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figures are not matching when compared to ODS) where as the ODS records are showing correctly as it was in R/3. There are totally 6 key figures out of which 4 pulled from R/3 and 2 are populated in BW.
    An Example:
    Waste report in PP run for plant 1000 for 12/2005 and process order 123456. The operational scrap should be 2.46% and the component scrap should be 3.00% for material 10000000. The report is showing 7.87% for planned operational waste % and 9.6% for planned component waste %. These values are not correct. The ODS values for order 123456 matched the data in R/3 for component and operational scrap.
    There is a Start routine to the ODS and also to the cube. I am not good at ABAP so requesting your Help.
    Here is the ODS Code:
    tables: /BI0/PPRODORDER.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    modify data_package.
    endloop.
    Here is Cube Code:
    tables: /BI0/PPRODORDER,
    /BIC/ODS.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit,
    e_factor type p decimals 5.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    data_package-agsu = 'GSU'.
    data_package-agsu_qty = 0.
    select single gr_qty
    base_uom
    into (/BIC/ODS-gr_qty,
    /BIC/ODS-base_uom)
    from /BIC/ODS
    where prodorder = data_package-prodorder
    and material = data_package-material.
    if sy-subrc = 0.
    if /BIC/ODS-base_uom = 'GSU'.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    else.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = data_package-material
    AND mat_unit = 'GSU'
    AND objvers = 'A'.
    IF sy-subrc = 0.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-denomintr /
    l_s_mat_unit-numerator.
    multiply /BIC/ODS-gr_qty by e_factor.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    ENDIF.
    else.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
    EXPORTING
    INPUT = /BIC/ODS-gr_qty
    NO_TYPE_CHECK = 'X'
    ROUND_SIGN = ' '
    UNIT_IN = /BIC/ODS-base_uom
    UNIT_OUT = 'GSU'
    IMPORTING
    OUTPUT = DATA_PACKAGE-gsu_qty
    EXCEPTIONS
    CONVERSION_NOT_FOUND = 1
    DIVISION_BY_ZERO = 2
    INPUT_INVALID = 3
    OUTPUT_INVALID = 4
    OVERFLOW = 5
    TYPE_INVALID = 6
    UNITS_MISSING = 7
    UNIT_IN_NOT_FOUND = 8
    UNIT_OUT_NOT_FOUND = 9
    OTHERS = 10.
    endif.
    endif.
    endif.
    modify data_package.
    endloop.
    some how the AGSU qyt is not populating in the cube and when I dbug the code, I could see a clean record in the internal table but not in the cube.
    your suggestion and solutions would be highly appreciated.
    thanks,
    Swathi.

    Hi Swathi
    In ODs we have option of overwriting and addition however in Cube we have only adition.Thats why you are getting multiple enteries.
    If you are running daily full load on the cube then please delete the earlier requests.
    So at one point of time there should be only one full load request in cube. Hope this will solve your problem.
    Regards,
    Monika

  • How to handle the pop-up Screen in LSMW - Recording

    Hi,
       I am doing the LSMW-Recording for Pricing Conditions.there are so many condition types are there.
    my problem is while uploading the data from flat file,if record alredy exists in SAP system, it will display one Pop up screen,  says "the record already exists do you want to overlap it".so that time it has to hit enter and has to overlap the existing records.
    can any one please help me..this is very urget to me.
    Points will be awarded for correct response.
    Thanks,
    Shobha

    Hi,
    Go to Maintain Field Mapping and Conversion Rules
    Insert coding at __BEGIN_OF_PROCESSING.
    Like:
    Select .....
    if sy-subrc = 0. "Record found
      skip_record.
    endif.

Maybe you are looking for

  • Stock transfer between plants - Material used is Asset material

    Hi All, We are using TAXINJ. We are doing stock transfer of an asset material from Plant A to Plant B. Proceedure followed as below: Supplying Plant - STO PO - ME21N Outbound Delivery -  VL10B PGI - VL02N Billing - VF01 Invoice DOc - J1IIN Receiving

  • Listener issue

    Hi forum members, In this moment I'm working on gentoo linux and I' new in oracle, I could install oracle and created a test database called "oracle.gentoo" , but I don't know if the listener it's really registering a service in order to access to th

  • Recipient error. []: [CrystalEnterprise.Smtp] error

    I am getting the following error message when scheduling a Crystal Report in InfoView: recipient error. []: CrystalEnterprise.Smtp The email is sent successfully, but this error is returned indicating it failed.  The schedule is set to run the Crysta

  • Expdp with some rows

    Hi, maybe execute the expdp for some rows (for example 100) for all tables in one schema? I know that I can execute this for all rows, but not for a subset of rows. many thanks to all. Lain

  • I'm stuck at a login screen I've never seen.

    across the bottom of the dialogue box, I have the options to click cancel, back, forgot password, sleep, restart, shutdown, continue and login. I've clicked every button but nothing happens.