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

LSMW help with DIRs by using BAPi method

Hi experts,

I am learning LSMW and I have been given exercise which I have to finish. The question is:

Create a LSMW object for creation of DIRs by using BAPI method (UPLOAD_DOCUMENT)???

Can anyone tell me how should I go forward and what DIRs stands for... ??

I really appreciate your help..

Regards,

-Ashok Hansraj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:43 PM

    Please check this posting. This may be useful.

    lsmw---using-a-bapi

    I am assuming DIR stands for directory services. Please confirm.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 09:22 PM

    Hey Naren,

    The pointer which you send has some information about BAPI but its not the excat one which I am looking for... Well, just wanted to know like what will be the source files and fields in this case.. They have just given blind to me and I have to figure it out..

    Well, reply me and I will appreciate..

    Regards,

    -Ashok Hansraj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Ashok,

      If you need a step - by - step approach for loading data using LSMW with various import techniques (like batch input, BAPI, IDOCS etc) you have to go thru this LSMW manual.

      And the files with DIR information, you should receive those fields from your business. Because you should know the structure of the data in those files in order to maintain source and target structures.

      Ask your business people over the format of the file you will be provided. In mean you can go thru this manual on this link.

      http://www.sapgenie.com/saptech/lsmw.htm

      Thanks,

      Naren

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 01:41 AM

    hi, if you want to call BAPI in LSMW, it's something different from you call a BAPI in programming way.

    First you need to open BAPI explorer(tcode BAPI), to find out your BAPI, and get the associated ALE message type.

    The way LSMW call BAPI is like this:

    LSMW read the file, and mapping the data from file to the strure for ALE message, it will be sent to the ALE Layer as a IDOC to sap, and at last, SAP will handle them and do a call BAPI in the associated FM(E.G. IDOC_INPUT_XXXXX)

    you need to do the mapping from file structure to BAPI structure. but a configuration in the ALE layer is also necessary, don't forget. If not ALE message, you should create one for the BAPI(tcode BDBG), and configuration the IDOC partner profile, to make the system receive this kind of ALE message.

    Hope it will be helpful

    thanks

    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.