✒️ABAP / El ALV jerárquico y el agrupamiento Por Jaime Gomez Arango

ABAP El ALV jerárquico y el agrupamiento

ABAP El ALV jerárquico y el agrupamiento

Grouping in an ALV Report

We can group the records displayed in the ALV so that multiple records with the same value for a particular field are displayed in a grouped manner by that field. To achieve that we should execute the following steps:

  • Declare the internal table TI_SORT of type SLIS_T_SORTINFO_ALV and the structure WA_SORT of type SLIS_SORTINFO_ALV.

DATA: ti_sort TYPE slis_t_sortinfo_alv,
wa_sort TYPE slis_sortinfo_alv.

  • Next, within the START-OF-SELECTION event and before calling the function module that executes the ALV, declare the subroutine GROUP_FIELDS as follows:

FORM group_fields.
REFRESH ti_sort.
CLEAR wa_sort.
wa_sort-spos = 1. "sorting order
wa_sort-fieldname = 'USER_STATUS'. "sorting field
APPEND wa_sort TO ti_sort.
ENDFORM.

  • We can group an ALV report by all fields of the table if needed. Simply add the fields to be grouped in the internal table TI_SORT.
  • Now, in the declaration of the function module 'REUSE_ALV_GRID_DISPLAY', complete the EXPORTING IT_SORT parameter with our internal table TI_SORT.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = ti_catalogo[]
i_callback_top_of_page = 'TOP_OF_PAGE'
is_layout = wa_layout
it_sort = ti_sort " Sorting instructions
TABLES
t_outtab = ti_users
EXCEPTIONS
program_error = 1
OTHERS = 2.

  • Repeat the same for the 'REUSE_ALV_LIST_DISPLAY' function module for the ALV LIST report.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = ti_catalogo[]
is_layout = wa_layout
it_sort = ti_sort " sorting instructions
TABLES
t_outtab = ti_usuarios
EXCEPTIONS
program_error = 1
OTHERS = 2.

It can be observed that when executing the ALV GRID report, grouping is done by USER_STATUS, and the same statement applies to the ALV LIST function.

Conclusion: Graphical Grouping by columns in the ALV report is available for ALV GRID and NOT for ALV LIST.

Hierarchical ALV

Hierarchical ALVs are used with header and detail or position, and there must be a common field. Here is a step by step example of creating a hierarchical ALV. (Company and flight information for each company)

  • Declare internal table TI_HEADER, containing short names (CARRID) and names (CARRNAME) of airlines, and TI_DETAIL with fields related to flights.

DATA: BEGIN OF ti_header OCCURS 0,
carrid LIKE scarr-carrid,
carrname LIKE scarr-carrname,
END OF ti_header.

DATA: BEGIN OF ti_detail OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-price,
price LIKE sflight-price,
currency LIKE sflight-currency,
planetype LIKE sflight-planetype,
END OF ti_detail.

  • Given that we will generate the catalog for the hierarchical ALV automatically, use the OCCURS statement for both internal tables.
  • Next, declare a structure of type SLIS_KEYINFO_ALV.

DATA: wa_keyinfo TYPE slis_keyinfo_alv.

  • In the START-OF-SELECTION event, declare the subroutine LOAD_DATA.
* Load data into internal tables
PERFORM load_data.

  • Inside the LOAD_DATA subroutine, populate the TI_HEADER and TI_DETAIL internal tables with data for the ARG airline.

FORM load_data .

REFRESH: ti_header, ti_detail.

* Header 1
CLEAR ti_header.
ti_header-carrid = 'ARG'.
ti_header-carrname = 'Aerolineas Argentina'.
APPEND ti_header.

* Detail 1
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1010'.
ti_detail-fldate = '20091111'.
ti_detail-price = '380'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A310'.
APPEND ti_detail.

* Detail 2
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1020'.
ti_detail-fldate = '20091011'.
ti_detail-price = '300'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

ENDFORM.

  • In the START-OF-SELECTION event, declare the subroutine CONFIGURE_LAYOUT.

* Configure layout
PERFORM configure_layout.

  • Inside the CONFIGURE_LAYOUT subroutine, configure the layout settings.
*&---------------------------------------------------------------------*
*& Form CONFIGURE_LAYOUT
*&---------------------------------------------------------------------*
FORM configure_layout .
CLEAR wa_layout.
wa_layout-zebra = c_x. " Line striping
wa_layout-window_titlebar = TEXT-001. " Flight Report

ENDFORM. " CONFIGURE_LAYOUT
  • Create the ALV catalog for both tables using the build_auto_catalog subroutine.

* Build catalog
PERFORM build_auto_catalog.

  • Inside this subroutine, execute the function module REUSE_ALV_FIELDCATALOG_MERGE to generate the catalog automatically by combining the fields of both internal tables in the TI_CATALOG internal table.

*&---------------------------------------------------------------------*
*& Form BUILD_AUTO_CATALOG
*&---------------------------------------------------------------------*
FORM build_auto_catalog .

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'TI_HEADER'
i_client_never_display = c_x
i_inclname = sy-repid
CHANGING
ct_fieldcat = ti_catalog[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.

IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'TI_DETAIL'
i_client_never_display = c_x
i_inclname = sy-repid
CHANGING
ct_fieldcat = ti_catalog[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.

IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

ENDFORM. " BUILD_AUTO_CATALOG

Note: In a hierarchical ALV, the TOP-OF-PAGE event cannot be used, preventing the generation of a header with titles and logos as done in GRID or LIST ALVs. Another limitation is the inability to use the data export to Excel due to the format of the header and detail for each record.

E.g

*&---------------------------------------------------------------------*
*& Report ZTEST_ABAP_JEGA_19
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ztest_abap_jega_19.

* Types
TYPE-POOLS: slis.

* Constants
CONSTANTS: c_x(1) TYPE c VALUE 'X'.

* Internal table for header
DATA: BEGIN OF ti_header OCCURS 0,
carrid LIKE scarr-carrid,
carrname LIKE scarr-carrname,
END OF ti_header.

* Internal table for details
DATA: BEGIN OF ti_detail OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
price LIKE sflight-price,
currency LIKE sflight-currency,
planetype LIKE sflight-planetype,
END OF ti_detail.

DATA: ti_catalog TYPE slis_t_fieldcat_alv,
wa_catalog TYPE slis_fieldcat_alv,
wa_layout TYPE slis_layout_alv,
wa_keyinfo TYPE slis_keyinfo_alv.

*----------------------------------------------------------------------*
START-OF-SELECTION.
*----------------------------------------------------------------------*

* Load data into internal tables
PERFORM load_data.

* Configure layout
PERFORM configure_layout.

* Build catalog
PERFORM build_auto_catalog.

* Determine Header-Item association
PERFORM determine_association.

* Execute ALV
PERFORM execute_hierarchical_alv.


*&---------------------------------------------------------------------*
*& Form LOAD_DATA
*&---------------------------------------------------------------------*
FORM load_data .

REFRESH: ti_header, ti_detail.

* Header 1
CLEAR ti_header.
ti_header-carrid = 'ARG'.
ti_header-carrname = 'Aerolineas Argentina'.
APPEND ti_header.

* Detail 1
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1010'.
ti_detail-fldate = '20091111'.
ti_detail-price = '380'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A310'.
APPEND ti_detail.

* Detail 2
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1020'.
ti_detail-fldate = '20091011'.
ti_detail-price = '300'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 3
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1080'.
ti_detail-fldate = '20210516'.
ti_detail-price = '1300'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 4
CLEAR ti_detail.
ti_detail-carrid = 'ARG'.
ti_detail-connid = '1090'.
ti_detail-fldate = '20220808'.
ti_detail-price = '1500'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Header 2
CLEAR ti_header.
ti_header-carrid = 'LAN'.
ti_header-carrname = 'Lan Chile'.
APPEND ti_header.

* Detail 1
CLEAR ti_detail.
ti_detail-carrid = 'LAN'.
ti_detail-connid = '1030'.
ti_detail-fldate = '20220603'.
ti_detail-price = '500'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 2
CLEAR ti_detail.
ti_detail-carrid = 'LAN'.
ti_detail-connid = '1040'.
ti_detail-fldate = '20210101'.
ti_detail-price = '600'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 3
CLEAR ti_detail.
ti_detail-carrid = 'LAN'.
ti_detail-connid = '1050'.
ti_detail-fldate = '20211007'.
ti_detail-price = '999'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 4
CLEAR ti_detail.
ti_detail-carrid = 'LAN'.
ti_detail-connid = '1050'.
ti_detail-fldate = '20230215'.
ti_detail-price = '6000'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

* Detail 5
CLEAR ti_detail.
ti_detail-carrid = 'LAN'.
ti_detail-connid = '1060'.
ti_detail-fldate = '20211231'.
ti_detail-price = '1000'.
ti_detail-currency = 'USD'.
ti_detail-planetype = 'A330'.
APPEND ti_detail.

ENDFORM. " LOAD_DATA


*&---------------------------------------------------------------------*
*& Form BUILD_AUTO_CATALOG
*&---------------------------------------------------------------------*
FORM build_auto_catalog .

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'TI_HEADER'
i_client_never_display = c_x
i_inclname = sy-repid
CHANGING
ct_fieldcat = ti_catalog[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.

IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'TI_DETAIL'
i_client_never_display = c_x
i_inclname = sy-repid
CHANGING
ct_fieldcat = ti_catalog[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.

IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

ENDFORM. " BUILD_AUTO_CATALOG

*&---------------------------------------------------------------------*
*& Form DETERMINE_ASSOCIATION
*&---------------------------------------------------------------------*
FORM determine_association .

CLEAR wa_keyinfo.
wa_keyinfo-header01 = 'CARRID'.
wa_keyinfo-item01 = 'CARRID'.

ENDFORM. " DETERMINE_ASSOCIATION


*&---------------------------------------------------------------------*
*& Form EXECUTE_HIERARCHICAL_ALV
*&---------------------------------------------------------------------*
FORM execute_hierarchical_alv .

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = wa_layout
it_fieldcat = ti_catalog[]
i_tabname_header = 'TI_HEADER'
i_tabname_item = 'TI_DETAIL'
is_keyinfo = wa_keyinfo
TABLES
t_outtab_header = ti_header
t_outtab_item = ti_detail
EXCEPTIONS
program_error = 1
OTHERS = 2.

IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

ENDFORM. " EXECUTE_HIERARCHICAL_ALV

*&---------------------------------------------------------------------*
*& Form CONFIGURE_LAYOUT
*&---------------------------------------------------------------------*
FORM configure_layout .
CLEAR wa_layout.
wa_layout-zebra = c_x. " Line striping
wa_layout-window_titlebar = TEXT-001. " Flight Report

ENDFORM. " CONFIGURE_LAYOUT


 

 

 


Sobre el autor

Publicación académica de Jaime Eduardo Gomez Arango, en su ámbito de estudios para el Curso ABAP.

SAP Expert


Jaime Eduardo Gomez Arango

Profesión: Ingeniero de Sistemas y Computación - España - Legajo: SW34C

✒️Autor de: 149 Publicaciones Académicas

🎓Egresado de los módulos:

Disponibilidad Laboral: FullTime

Presentación:

Ingeniero de sistemas y computación con 8 años de experiencia el desarrollo frontend & backend (react/node) y en cloud (aws), actualmente desarrollando habilidades en sap btp, ui5, abap y fiori.

Certificación Académica de Jaime Gomez

✒️+Comunidad Académica CVOSOFT

Continúe aprendiendo sobre el tema "El ALV jerárquico y el agrupamiento" de la mano de nuestros alumnos.

SAP Senior

Agrupar datos en un ALV: · Para que los registros se junten por un campo común, mostrando un subtítulo y hasta un subtotal. · Ejemplo: Agrupar todas las ventas por "Vendedor". · ¿Cómo? 1. Declaro una tabla para el ordenamiento: it_sort TYPE SLIS_T_SORTINFO_ALV. 2. La lleno diciendo por qué campo quiero agrupar: wa_sort-fieldname = 'VENDEDOR'. 3. Se la paso a la función ALV con el parámetro it_sort = it_sort[]. ALV Jerárquico: · Especial para datos que tienen una relación maestro-detalle (cabecera-posición). · Ejemplo: Una orden de compra (cabecera) y sus items (detalle). · Necesito dos tablas internas: una para...

Acceder a esta publicación

Creado y Compartido por: Mara Fadua Romero Hernandez

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master


El ALV jerárquico y le agrupamiento en reportes ALV Se pueden agrupar registros en un reporte ALV mostrando registros que comparten el mismo valor en un campo de manera agrupada. Es necesario declarar la tabla interna TISort (tipo SListTSortInfoALV) y la estructura WASort (tipo SListSortInfoALV). Dentro del evento StartOfSelection y la subrutina AgruparCampos, se cargan los registros en TISort según el orden de agrupamiento deseado. Es posible agrupar por varios campos incluidos en la tabla interna de salida del ALV, solo agregándolos en TISort. En los módulos de funciones ReduceALVGridDisplay y ReduceALVListDisplay, se debe pasar TISort como parámetro Exporting y TSort. Al ejecutar...

Acceder a esta publicación

Creado y Compartido por: Juan Ignacio Romero

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master

Introducción: Aprende a organizar datos en reportes ALV mediante agrupamientos y estructuras jerárquicas (cabecera-detalle). ¡Técnicas esenciales para reportes complejos! 1 Agrupamiento en ALV Objetivo: Agrupar registros por campos comunes (ej: estado civil, región). Implementación: Declarar estructuras clave: Llenar tabla de agrupamiento: Pasar al módulo ALV: Notas críticas: Exclusivo para ALV Grid: No funciona en ALV Lista. wa_sort-group = 'GP': Hace grupos contraíbles (icono ). Múltiples niveles: Agrega más campos a ti_sort para subgrupos. Resultado: 2 ALV Jerárquico...

Acceder a esta publicación

Creado y Compartido por: Oscar Aravena Muller / Disponibilidad Laboral: FullTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Expert


El ALV jeráquico y el argupamiento 1 El agrupamiento en un ALV El agrupamiento en un ALV (ABAP List Viewer) permite presentar de forma organizada los datos de un reporte, agrupando los registros que comparten el mismo valor en uno o varios campos. Para lograr esto, se utiliza una tabla interna llamada TI_SORT, de tipo SLIS_T_SORTINFO_ALV, y una estructura WA_SORT, de tipo SLIS_SORTINFO_ALV. Pasos principales: Declaración de estructuras: Se declaran TI_SORT y WA_SORT para definir los criterios de agrupamiento. Llenado de agrupamientos: En la subrutina AGRUPAR_CAMPOS se agregan a TI_SORT los campos por los que se desea agrupar. Vinculación al ALV: Al llamar al módulo de funciones...

Acceder a esta publicación

Creado y Compartido por: Geovanny Martínez Campoverde

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Expert



El ALV Jerárquico es un tipo especial de reporte ALV que muestra datos en forma de padre-hijo (master-detail). Se utiliza cuando se tiene una relación clara y estructural entre dos tablas: una cabecera (header) y un detalle (item). Es similar a una vista de árbol donde cada entrada principal se expande para mostrar sus detalles asociados. El Agrupamiento en ALV no tiene que ver con relaciones jerárquicas entre tablas, sino con cómo se presentan los datos dentro de una sola tabla interna. El objetivo es organizar y visualizar los datos agrupados por una o más columnas, generando así bloques visuales con títulos o subtotales. En SAP ABAP, el ALV (ABAP List Viewer) es una herramienta poderosa...

Acceder a esta publicación

Creado y Compartido por: David Ibarra / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

Agrupamiento en un ALV Se pueden agrupar los registros que compartan un mismo valor de un campo en particular, para que se muestren de forma agrupada por ese campo. Para hacerlo se declara una tabla interna tipo SLIS_T_SORTINFO_ALV y una estructura del tipo SLIS_SORTINFO_ALV. Luego dentro del evento star-of-selection y antes de llamar el modulo de funciones que ejecuta el ALV, se declara una subrutina que agrupara los campos. Dentro de esta subrutina se carga la tabla interna creada anteriormente con los registros en el orden que se quieran agrupar. Para finalizar, en la subrutina dentro de la llamada al modulo de funciones que ejecuta el ALV, se debe agregar el parametro exporting IT_SORT = tabla interna creada anteriormente. Reportes ALV...

Acceder a esta publicación

Creado y Compartido por: Luciano Martinez / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Expert


El agrupamiento en un ALV Para ello debemos declarar la tabla interna TI_SORT del tipo SLIS_T_SORTINFO_ALV y la estructura WA_SORT del tipo SLIS_SORTINFO_ALV. Luego dentro del avento START-OF-SELECION y antes de llamar al módulo de funciones que ejecuta el reporte ALV vamos a declarar la subrutina AGRUPAR_CAMPOR. y dentro de la subrutina vamos a cargar la tabla interna TI_SORT con los registros en el orden en el que deseamos agrupar. Ahora en la declaracion del módulo de funciones REUSE_ALV_GRID_DISPLAY debemos completar el parámetro EXPORTING IT_SORT con nuetra tabla interna TI_SORT. Y hacemos lo mismo en la declaracion del módulo de funciones REUSE_ALV_LIST_DISPLAY para ALV Lista Dado que vamos a generar el...

Acceder a esta publicación

Creado y Compartido por: Jose Medina / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

El agrupamiento en un ALV: Para ello debemos declarar la tabla interna TI_SORT del tipo SLIS_T_SORTINFO_ALV y la estructura WA_SORT del tipo SLIS_SORTINFO_ALV. Luego dentro del avento START-OF-SELECION y antes de llamar al módulo de funciones que ejecuta el reporte ALV vamos a declarar la subrutina AGRUPAR_CAMPOR. y dentro de la subrutina vamos a cargar la tabla interna TI_SORT con los registros en el orden en el que deseamos agrupar. Ahora en la declaracion del módulo de funciones REUSE_ALV_GRID_DISPLAY debemos completar el parámetro EXPORTING IT_SORT con nuetra tabla interna TI_SORT. Y hacemos lo mismo en la declaracion del módulo de funciones REUSE_ALV_LIST_DISPLAY para ALV Lista. Finalmente si ejecutamos el...

Acceder a esta publicación

Creado y Compartido por: Javier Miguel Angel Barcelo / Disponibilidad Laboral: PartTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master

EL AGRUPAMIENTO DE UN ALV: Podemos agrupar los registros que mostramos en un reporte ALV de modo que varios registros que presentan el mismo valor para un campo en particular, se muestren de forma agrupada por ese campo. Para ello se debe declarar la tabla interna TI_SORT del tipo SLIS_T_SORTINFO_ALV y la estructura WA_SORT del tipo SLIS_SORTINFO_ALV. Luego dentro del evento START-OF-SELECTION y antes de llamar al módulo de funciones que ejecuta el reporte ALV vamos a declarar la subrutina AGRUPAR_CAMPOS y dentro de la subrutina vamos a cargar la tabla interna TI_SORT con los registros en el orden en el que deseamos agrupar. "Podemos agrupar un reporte ALV por tantos campos tenga la tabla interna de salida del ALV, solo basta con...

Acceder a esta publicación

Creado y Compartido por: Jean Carlos Lopez / Disponibilidad Laboral: FullTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master

1. Agrupamiento en un ALV: Es posible agrupar registros en un reporte ALV para mostrar varios registros con el mismo valor para un campo en particular de forma agrupada. Se declara una tabla interna `TI_SORT` del tipo `SLIS_T_SORTINFO_ALV` y una estructura `WA_SORT` del tipo `SLIS_SORTINFO_ALV`. Se carga la tabla interna `TI_SORT` con los registros en el orden deseado para agrupar. Se utiliza la subrutina `REUSE_ALV_LIST_DISPLAY` para el ALV Lista y `REUSE_ALV_GRID_DISPLAY` para el ALV Grilla. 2. ALV jerárquico: Un ALV jerárquico se utiliza para mostrar datos de cabecera y detalles, donde hay al menos un campo común entre las tablas internas de cabecera y detalles. Se declara una tabla interna...

Acceder a esta publicación

Creado y Compartido por: Alvaro Andres Ardila Sandoval / Disponibilidad Laboral: FullTime + Carta Presentación

 


 

👌Genial!, estos fueron los últimos artículos sobre más de 99.000 publicaciones académicas abiertas, libres y gratuitas compartidas con la comunidad, para acceder a ellas le dejamos el enlace a CVOPEN ACADEMY.

🔎Buscador de Publicaciones:

 


 

No sea Juan... Solo podrá llegar alto si realiza su formación con los mejores!