cancel
Showing results for 
Search instead for 
Did you mean: 

Automated LSMW

Former Member
0 Kudos

Hi Fellows,

Can anyone tell how do I go about creating/getting the automated LSMW functionality.

I've been using the manual LSMW execution steps for sometime and it's frustating me.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello!

I have same problem with function module '/SAPDMC/LSM_RUN_FROM_DXWB'.

I run it with se37 and filled next fields:

Project

Subproject

Object.

After running a function i receive a return message 522.

What does it mean?

I need to customize automatic run this function from another program.

Manual running LSMW with this Proj, SubProj, Object work perfectly.

Former Member
0 Kudos

Problem Solved.

Thanks Fellows

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Check function module '/SAPDMC/LSM_RUN_FROM_DXWB' to read and convert data.

For information :

'/SAPDMC/LSM_EXE_READPROG_RUN' to read the data

'/SAPDMC/LSM_EXE_CONVPROG_RUN' to convert the data

Then call program : /SAPDMC/SAP_LSMW_BI_RECORDING

And submit the Batch input using : RSBDCSUB.

That should do the trick !

If you build a job for this I guess your automation is not very far...

Best regards,

Guillaume

Former Member
0 Kudos

Hi Fellow

Please break the process down for me as I've never used SE37 before.

Former Member
0 Kudos

Fellow

I managed to execute function module '/SAPDMC/LSM_RUN_FROM_DXWB'

I specified Project,Subproj,Object,File Read and File Conv

But now I'm getting an error message '/SAPDMC/LSMW' 087

I think it has something to do with my File Read or File Conv.

What I did is on File Read I putted a path file of my legacy data

and on File Conv I putted a path of where I want my converted file to be stored.

Was this the way it should be done?

guillaume-hrc
Active Contributor
0 Kudos

Hi,

The paths are (usually) case-sensitive. If the path is completely upper-cased, it means you haven't check the checkbox on the top of the execution screen in SE37.

Otherwise, you may very well leave both path fields empty and the default paths in your LSMW will be taken into account.

To call the FM you should create a new report in SE38 and use this kind of code.

CALL FUNCTION '/SAPDMC/LSM_RUN_FROM_DXWB'
  EXPORTING
    project                = 'PROJECT'
    subproj                = 'SUBPROJ'
    object                 = 'OBJECT'
*    FILE_READ              =
*    FILE_CONV              =
*  IMPORTING
*    RETURN                 =
*  TABLES
*    T_SRCSTRFILE           =
  EXCEPTIONS
    NO_AUTHORIZATION       = 1
    NO_SUCH_OBJECT         = 2
    OTHERS                 = 3.

Best regards,

Guillaume

Former Member
0 Kudos

Hi,

One of the alternate is to get a BDC program to upload data and if required, schedule it as a background job.

Param

Former Member
0 Kudos

I'm not intending to change from LSMW, the only thing I need is the process of automating the execution.