Skip to Content
avatar image
Former Member

LSMW - Direct Input - RMDATIND

Hi Experts!

We face a Problem with our LSMW, we use to create new materials. For that we use Object 0020 and Method 0000 with programm name RMDATIND. My question about that, is there any possibility to get in the structure relations the structur BMMH6 a second time in the structure?

Best regards
Florian

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 20, 2017 at 08:40 AM

    Hi Jürgen!

    The mean point is, that i will implement more than one unit of measure in the additional data.
    My file is an simple *.txt File, one line one data set. I know i could make a second LSMW and so one, but i would try to fix it with one LSMW. Encolsedlsmw-structure.png there is a screenshot of my structure relation.

    BR
    Florian

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      O.K. Jürgen thanks for your hint´s, we will try it with an ABAP coding in the LSMW. I think we will get the solution how the Users expects.

      Best Regards, thank you
      Florian Demling.

      P.S. In the "old" SCN there was simple to Close a answer, how can i do this in the new platform?

  • Mar 17, 2017 at 12:22 PM

    why?

    Are you really wanting the structure twice or just more data records for this structure per material?

    How is your structure relation right now in LSMW and how does your source file look like.

    Screenshots would be good to start with

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 01 at 02:29 PM

    Hi Florian,

    In the end (the converted file) you have to have 2 BMMH6 lines for 2 different units of measure, for a same material. Now those 2 lines should be linked to one line for main material data.

    I see 2 options:

    Option 1: The "clean" one:

    This means maintaining 2 files ==> one for main data (MARA) and 1 file with 2 records for unit of measure (BMMH6/MARM)

    I you do it, then define 2 structures in the the source structures, one main (MARA) as a father and one child (MARM) SAP will automatically define a "key" with the field MATNR in the source structure definition.

    Now your files should look like that:

    MARA file, key is : "material1 "

    material1 description1 Division1 etc..

    MARM file:

    material1 unitofmeasure1 length1 height1 width1

    material1 unitofmeasure2 length2 height 2 width2

    Option 2: the "less clean" one

    Another option is to use the "transfer_record" option in a loop. in that case you could map from the "same one only file" the fields you want to pass and ask the system to pass it twice.

    it would say for example (written here just for you to understand the idea...)

    Do 2 times.

    (first time):

    BMMH6-MEINH = myfile1-unitofmeasure1

    BMMH6-UMREZ= myfile1-denominator1

    transfer_record

    (second time):

    BMMH6-MEINH = myfile1-unitofmeasure2

    BMMH6-UMREZ= myfile1-denominator2

    transfer_record.

    enddo.

    and remove the "transfer_record" in the end of the record

    Anyways, and whatever the option you like to use, the LSMW will need two or more entries for BMMH6 (which is MARM) in the end...There is no way you can map several times the same structure..

    Tell me if you need more explanations,

    Cheers

    Yoram

    Add comment
    10|10000 characters needed characters exceeded