Ir al contenido principal

Entradas

Mostrando las entradas con la etiqueta botón

Añadir botón a pantalla de selección sin dynpro z

  Cuando queremos agregar un botón que nos envíe a una tabla (y poder regresar a nuestro report), en este caso es Z, con acceso a modificación por SM30 * Declaraciones TABLES : sscrfields .   DATA : gwa_dyntxt TYPE smp_dyntxt .   * Pantalla de selección de prueba SELECTION-SCREEN : FUNCTION KEY 1 . SELECTION-SCREEN : BEGIN OF BLOCK b01 WITH FRAME TITLE text - 001 . PARAMETERS : p_matnr TYPE mara - matnr , p_mtart TYPE mara - mtart . SELECTION-SCREEN : END OF BLOCK b01 .   INITIALIZATION . * Atributos del botón gwa_dyntxt - icon_id = '@3W@' . gwa_dyntxt - QUICKINFO = 'Tabla de prueba' . gwa_dyntxt - icon_text = 'Ordenes Previsionales' . sscrfields - functxt_01 = gwa_dyntxt .   AT SELECTION-SCREEN . IF sy - ucomm = 'FC01' . * Agregar funcionalidad del botón      CALL  FUNCTION  'VIEW_MAINTENANCE_CALL'        EXPORTING  ...