Etiquetas

20111213

ABAP: SUBMIT con SELECTION-TABLE

Para reportes que son máscaras de otros, y tienen los mismos parámetros de seleccion, éste es un buen método para no tener que llenar el SELECTION-TABLE.


    DATA: t_selhkont LIKE rsparams OCCURS 0 WITH HEADER LINE.

    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
      EXPORTING
        curr_report           = sy-repid
*   IMPORTING
*     SP                    =
      TABLES
        selection_table       = t_selhkont
      EXCEPTIONS
        not_found             = 1
        no_report             = 2
        OTHERS                = 3.

      SUBMIT <reporte>
             WITH SELECTION-TABLE t_selhkont
      AND RETURN.

No hay comentarios:

Publicar un comentario