Asignar transaccion a LSMW

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

1 me gusta

Parece que existen tres formas (habrá que probar cuál te funciona mejor)

1. Programa ABAP que llame al LSMW

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.

2. Llamar LSMW desde Transacción Z (sin abap)

Crear una transacción Zeta vía SE93, sin código abap; así:

  1. Ingresar a la SE93, con la opción de programa de parámetros.
  2. Poner transacción ‘LSMW’ y seleccionar el check box de 'skip initial screen'.
  3. En el nombre de la sección del área del campo de pantalla, proporcione lo siguiente:
    /SAPDMC/LSSCREEN-PROJECT = <Z-Project>
    /SAPDMC/LSSCREEN-SUBPROJ = <ZSub-Project
    /SAPDMC/LSSCREEN-OBJECT = <Zobject>
  4. Guardar y Activar transacción
  5. Probar

3. Opción complicada :wink:

Finalmente, la opción más complicada.

Te la dejo en inglés, para que la ejecutes siguiendo estas instrucciones oficiales:

  1. Open your desired LSMW project and go to Extras->User Menu.

  2. Select the following unselected steps there :blush:

  • Generate Read Program

  • Display Read Program

  • Generate Conversion Program

  • Display Conversion Program

  1. Run the step Generate Read Program then Generate Conversion Program to generate programs and then active them

  2. Run step Display Read Program and copy the program name in Report field

  3. Run step Display Conversion Program and copy the program name in Report field

  4. With the 2 newly generated programs, you can try to run them using SE30 (Program mode)

  5. Assign T-code for these programs

  6. 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.


Fuente
h_tps://answers.sap.com/questions/4038785/how-to-create-a-t---code-for-lsmw.html
3 Me gusta

@SidV Muchas gracias… lo intentaré en pruebas con las tres opciones.

Te agradezco.

Este tema se cerró automáticamente 30 días después de la última publicación. No se permiten nuevas respuestas.