2010 Jun 07 12:10 PM
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
2010 Jun 07 1:43 PM
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
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
2010 Jun 07 1:43 PM
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
2010 Jun 07 1:47 PM
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
2010 Jun 07 1:50 PM
Sounds good, please tell us once you got this working, could be useful for other folks as well.
Thomas
2010 Jun 07 2:04 PM
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
2010 Jun 07 2:09 PM
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
2010 Jun 07 2:16 PM
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
2010 Jun 07 2:22 PM
>
> 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.
2010 Jun 08 7:02 AM
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?
2010 Jun 09 2:14 PM
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
2010 Aug 25 11:25 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |