Buen día
Por favor me podrían ayudar, con lo siguiente.
Necesito asociar una transacción Z a un LSMW. Por favor algún tutorial que me puedan indicar.
Muchas gracias.
Lina Marcela Granada
Buen día
Por favor me podrían ayudar, con lo siguiente.
Necesito asociar una transacción Z a un LSMW. Por favor algún tutorial que me puedan indicar.
Muchas gracias.
Lina Marcela Granada
Parece que existen tres formas (habrá que probar cuál te funciona mejor)
Escribir un programa ABAP usando el código a continuación y crear unn transacción Z usando la transacción SE93
. El programa también puede tener parámetros en la pantalla de selección para Proyecto, Subproyecto y Objeto:
Type-pools: TUMLS.
DATA: Gv_proj TYPE tumls_project VALUE 'ZPROJECT_MM',
Gv_subproject TYPE tumls_subproj VALUE 'ZSUBPROJECT_MM',
Gv_object TYPE tumls_objectnew VALUE 'ZOBJECT_MM'.
CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
EXPORTING
project = Gv_proj
subproj = Gv_subproject
object = Gv_object
* X_CALLED_FROM_DXWB = ' '
* EXCEPTIONS
* NO_SUCH_OBJECT = 1
* OTHERS = 2.
IF NOT sy-subrc is initial.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Crear una transacción Zeta vía SE93, sin código abap; así:
'skip initial screen'
./SAPDMC/LSSCREEN-PROJECT = <Z-Project>
/SAPDMC/LSSCREEN-SUBPROJ = <ZSub-Project
/SAPDMC/LSSCREEN-OBJECT = <Zobject>
Finalmente, la opción más complicada.
Te la dejo en inglés, para que la ejecutes siguiendo estas instrucciones oficiales:
Open your desired LSMW project and go to Extras->User Menu.
Select the following unselected steps there
Generate Read Program
Display Read Program
Generate Conversion Program
Display Conversion Program
Run the step Generate Read Program then Generate Conversion Program to generate programs and then active them
Run step Display Read Program and copy the program name in Report field
Run step Display Conversion Program and copy the program name in Report field
With the 2 newly generated programs, you can try to run them using SE30 (Program mode)
Assign T-code for these programs
For the Create batch input step, you can run it in LSMW and try to get the program code in the task bar. In my case it is /SAPDMC/SAP_LSMW_BI_RECORDING
Now you already have 3 T-codes with 3 separate steps in a specific LSMW project, you can consider to assign them to the desired users.
h_tps://answers.sap.com/questions/4038785/how-to-create-a-t---code-for-lsmw.html
Este tema se cerró automáticamente 30 días después de la última publicación. No se permiten nuevas respuestas.