Skip to Content
author's profile photo Former Member
Former Member

LSMW: how to incorporate a new DMIG-Program into LSMW?

Hi all,

I need a recomendation from someone who is familiar with LSMW.

My task is to incorporate a NON-Standard data migration program into the LSMW.

It is a non-Standard program as it is filling data for a non-standard object (Z-tables).

I see that in LSMW we have the options of

a) Recording => not possible in my case as we have different screen sequence depending on contract types

b) Batch-Input/Direct Input: I see there are SAP standard programs.

Is there a way to include a Z-Migration Object with a Z-Program.

Any step-by-step instructions that could guide me?

c) BAPI

I am wondering if I create a new BOR-object and then encapsulate my migration program into a BAPI.

However this seems very difficult as I have no idea how to create for my z-migration program a

BAPI method, Message Type and Basic Type that LSWM is asking for.

Please let know which would be the best posible way to incorporate my Z-data-migration-program into LSMW.

Thanks!

Philip

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 06, 2015 at 06:50 PM

    Hi Philip ,

    The batch input option is good for this requirement.


    Batch-Input/Direct Input: I see there are SAP standard programs.

    Appears you have a custom program , if you already have a custom Program( program) which reads data from the Application Server(AL11 ) and processes and puts it onto those tables . If not then you need to develop one , and then create a LSMW to leverage that program and required configuration .

    steps will be :

    • Create a Z program which reads data from using the Open dataset from AL11 path.
    • Process the data read into internal tables , do the validations , update your tables .
    • Close and commit the Program .
    • Link the program to DX object using the table SXDA1 and the input file structures using the SXDA2 tables .You may maintain these tables through SM30 and transport through customizing transport request.
    • Create a LSMW using the Direct input use the Program details in object attributes then create the LSMW mapping of structures and that should serve all your purpose .

    If you have any specific questions with respect to steps above , let me know.

    Anjan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 06, 2015 at 05:45 PM

    Maybe table SXDA0 could be a starting point.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.