Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling separate LSMW steps from ABAP program

Former Member
0 Kudos

Hai all,

anybody know if I can call sepearte LSWM step from a ABAP programm,

I only need to:

Specify Files

Import Data

Convert Data

Create Batch Input Session

Run Batch Input Session

Need this steps so i can provide backoffice user a tool which imports data using predefined LWSM.

Grtz

Richard

Edited by: Richard van Veen on Jun 7, 2010 1:15 PM

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

If you mark the LSMW object as "periodic" in the first step, there will be a new menu entry at the bottom of the step list called "frame program". This seems to be what you need here.

Thomas

10 REPLIES 10

ThomasZloch
Active Contributor
0 Kudos

If you mark the LSMW object as "periodic" in the first step, there will be a new menu entry at the bottom of the step list called "frame program". This seems to be what you need here.

Thomas

Former Member
0 Kudos

This solution is to complex for our backoffice users, i found the seperate FM's which are used within transaction LSMW

with this list i can do the trick.

010 Maintain Object Attributes OBJ /SAPDMC/LSM_OBJ_ATTRIBUTES

020 Maintain Source Structures OBJ /SAPDMC/LSM_OBJ_SOURCE_STRUCS

030 Maintain Source Fields OBJ /SAPDMC/LSM_OBJ_SOURCE_FIELDS

040 Maintain Structure Relations OBJ /SAPDMC/LSM_OBJ_STRUCT_RELATNS

050 Maintain Field Mapping and Conversion Rules OBJ /SAPDMC/LSM_OBJ_FIELDMAPPING

070 Maintain Fixed Values, Translations, User-Defined Routines RUL /SAPDMC/LSM_RUL_ADMINISTRATION

080 Specify Files OBJ /SAPDMC/LSM_OBJ_FILES_SPECIFY

090 Assign Files OBJ /SAPDMC/LSM_OBJ_FILES_ASSIGN

110 Import Data EXE /SAPDMC/LSM_EXE_READPROG_RUN

120 Display Imported Data DSP /SAPDMC/LSM_DSP_READ_DATA_SHOW

130 Convert Data EXE /SAPDMC/LSM_EXE_CONVPROG_RUN

140 Display Converted Data DSP /SAPDMC/LSM_DSP_CONV_DATA_SHOW

300 Create Batch Input Session EXE /SAPDMC/LSM_EXE_BI_PROGRAM_RUN

310 Run Batch Input Session EXE /SAPDMC/LSM_EXE_BI_SESSION_RUN

600 Frame Program for Periodic Data Transfer EXE /SAPDMC/LSM_EXE_INTERFACE

0 Kudos

Sounds good, please tell us once you got this working, could be useful for other folks as well.

Thomas

0 Kudos

I made a lsmw and after completing all steps i tested step 080/100/300 and 310 from se37, it seems to work fine, i will update when completed

010 Maintain Object Attributes OBJ /SAPDMC/LSM_OBJ_ATTRIBUTES

020 Maintain Source Structures OBJ /SAPDMC/LSM_OBJ_SOURCE_STRUCS

030 Maintain Source Fields OBJ /SAPDMC/LSM_OBJ_SOURCE_FIELDS

040 Maintain Structure Relations OBJ /SAPDMC/LSM_OBJ_STRUCT_RELATNS

050 Maintain Field Mapping and Conversion Rules OBJ /SAPDMC/LSM_OBJ_FIELDMAPPING

070 Maintain Fixed Values, Translations, User-Defined Routines RUL /SAPDMC/LSM_RUL_ADMINISTRATION

080 Specify Files OBJ /SAPDMC/LSM_OBJ_FILES_SPECIFY

090 Assign Files OBJ /SAPDMC/LSM_OBJ_FILES_ASSIGN

110 Import Data EXE /SAPDMC/LSM_EXE_READPROG_RUN

120 Display Imported Data DSP /SAPDMC/LSM_DSP_READ_DATA_SHOW

130 Convert Data EXE /SAPDMC/LSM_EXE_CONVPROG_RUN

140 Display Converted Data DSP /SAPDMC/LSM_DSP_CONV_DATA_SHOW

300 Create Batch Input Session EXE /SAPDMC/LSM_EXE_BI_PROGRAM_RUN

310 Run Batch Input Session EXE /SAPDMC/LSM_EXE_BI_SESSION_RUN

600 Frame Program for Periodic Data Transfer EXE /SAPDMC/LSM_EXE_INTERFACE

0 Kudos

Thomas' way would provide you with exactly the same - you would only have to create a variant for /SAPDMC/SAP_LSMW_INTERFACE - and if you absolutely wanted to: assign this to a new Z-transaction-code. - you wouldn't even need to program ...

Edited by: Mylène Dorias on Jun 7, 2010 3:09 PM

Former Member
0 Kudos

I allready tried Thomas his solution, the only problem with that is that the selection screen is to complex for our backoffice users, calling sepearte FM's is i think a cleaner way.

We also want a limitation of LSMW's a user can execute so a custom screen is neccesary.

P.s.

in /SAPDMC/SAP_LSMW_INTERFACE users are not able to change filename and location of the file with has to be processed

Edited by: Richard van Veen on Jun 7, 2010 3:16 PM

0 Kudos

>

> I allready tried Thomas his solution, the only problem with that is that the selection screen is to complex for our backoffice users, calling sepearte FM's is i think a cleaner way.

... which is, why I wrote: create variant. You can decide which fields to show .. which to make obligatory etc.

>

> in /SAPDMC/SAP_LSMW_INTERFACE users are not able to change filename and location of the file with has to be processed

... yes, they are: that's what the section: General Parameters is for ...

and to create a transaction for it - simply use PFCG.

Former Member
0 Kudos

Can i when making a variant for programm /SAPDMC/SAP_LSMW_INTERFACE also let backoffice users choice their own input tekst file and path where the file is stored?

0 Kudos

Van,

I used to do these things thru BDC. if you want to work on BDC let me know. i will give u details.

Jiban

0 Kudos

Hi Jiban

Can I have BDC details please?

Thanks

Yogesh