📘Expand_fieldname

Selector Alummnos / Empresas

Definición de Expand_fieldname

Es un campo de la estructura estándar SLIS_LAYOUT_ALV que se utiliza para expandir un reporte ALV jerárquico.

Veamos a continuación como es la estructura de SLIS_LAYOUT_ALV definida dentro del TYPE-POOL SLIS:

types: begin of slis_layout_main,

         dummy,

       end of slis_layout_main.

 

types: begin of slis_layout_alv_spec0,

         no_colhead(1) type c,         " no headings

         no_hotspot(1) type c,         " headings not as hotspot

         zebra(1) type c,              " striped pattern

         no_vline(1) type c,           " columns separated by space

         no_hline(1) type c,        "rows separated by space B20K8A0N5D

         cell_merge(1) type c,         " not suppress field replication

         edit(1) type c,               " for grid only

         edit_mode(1) type c,          " for grid only

         numc_sum(1)     type c,       " totals for NUMC-Fields possib.

         no_input(1) type c,           " only display fields

         f2code like sy-ucomm,                              "

         reprep(1) type c,             " report report interface active

         no_keyfix(1) type c,          " do not fix keycolumns

         expand_all(1) type c,         " Expand all positions

         no_author(1) type c,          " No standard authority check

*        PF-status

         def_status(1) type c,         " default status  space or 'A'

         item_text(20) type c,         " Text for item button

         countfname type lvc_fname,

       end of slis_layout_alv_spec0.

 

types: begin of slis_layout_alv_spec1,

*        Display options

         colwidth_optimize(1) type c,

         no_min_linesize(1) type c,    " line size = width of the list

         min_linesize like sy-linsz,   " if initial min_linesize = 80

         max_linesize like sy-linsz,   " Default 250

         window_titlebar like sy-title,

         no_uline_hs(1) type c,

*        Exceptions

         lights_fieldname type slis_fieldname," fieldname for exception

         lights_tabname type slis_tabname, " fieldname for exception

         lights_rollname like dfies-rollname," rollname f. exceptiondocu

         lights_condense(1) type c,    " fieldname for exception

*        Sums

         no_sumchoice(1) type c,       " no choice for summing up

         no_totalline(1) type c,       " no total line

         no_subchoice(1) type c,       " no choice for subtotals

         no_subtotals(1) type c,       " no subtotals possible

         no_unit_splitting type c,     " no sep. tot.lines by inh.units

         totals_before_items type c,   " diplay totals before the items

         totals_only(1) type c,        " show only totals

         totals_text(60) type c,       " text for 1st col. in total line

         subtotals_text(60) type c,    " text for 1st col. in subtotals

*        Interaction

         box_fieldname type slis_fieldname, " fieldname for checkbox

         box_tabname type slis_tabname," tabname for checkbox

         box_rollname like dd03p-rollname," rollname for checkbox

         expand_fieldname type slis_fieldname, " fieldname flag 'expand'

         hotspot_fieldname type slis_fieldname, " fieldname flag hotspot

         confirmation_prompt,          " confirm. prompt when leaving

         key_hotspot(1) type c,        " keys as hotspot " K_KEYHOT

         flexible_key(1) type c,       " key columns movable,...

         group_buttons(1) type c,      " buttons for COL1 - COL5

         get_selinfos(1) type c,       " read selection screen

         group_change_edit(1) type c,  " Settings by user for new group

         no_scrolling(1) type c,       " no scrolling

*        Detailed screen

         detail_popup(1) type c,       " show detail in popup

         detail_initial_lines(1) type c, " show also initial lines

         detail_titlebar like sy-title," Titlebar for detail

*        Display variants

         header_text(20) type c,       " Text for header button

         default_item(1) type c,       " Items as default

*        colour

         info_fieldname type slis_fieldname, " infofield for listoutput

         coltab_fieldname type slis_fieldname, " colors

*        others

         list_append(1) type c,       " no call screen

         xifunckey type aqs_xikey,    " eXtended interaction(SAPQuery)

         xidirect type flag,          " eXtended INTeraction(SAPQuery)

         dtc_layout type dtc_s_layo,  "Layout for configure the Tabstip

         allow_switch_to_list(1) type c, "ACC: Switch from FullGrid to List

       end of slis_layout_alv_spec1.

 

types: begin of slis_layout_alv_spec.

include type slis_layout_alv_spec0.

include type slis_layout_alv_spec1.

types: end of slis_layout_alv_spec.

 

types: begin of slis_layout_alv.

include type slis_layout_main.

include type slis_layout_alv_spec.

types: end of slis_layout_alv.

 

 

 

✒️+Comunidad Académica CVOSOFT

Para continuar aprendiendo, le invitamos a conocer las últimas 10 Publicaciones Académicas sobre el tema "Expand_fieldname" creadas y compartidas abiertamente por 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 Expert


Funcionalidades Ordenamiento dinámico de los datos DATA: Ti_sort TYPE lvc_t_sort, St_sort TYPE lvc_s_sort. Luego antes de ejecutar el método SET_TABLE_FIRST_DISPLAY se crea la subrutina PERFOM ordenamiento_alv. Dentro de la subrutina ordenamiento_alv se definen los campos por los cuales ordenaremos el reporte. FORM ordenamiento_alv . CLEAR st_sort. St_sort-fieldname = 'NOMBRE APE’. St_sort-spos = 1. St_sort-up = 'X'. APPEND st_sort TO ti_sort. CLEAR st_sort. St_sort-fieldname = 'DNI'. St_sort-spos = 2. St_sort-up = 'X'. APPEND st_sort TO ti_sort. ENDFORM. Se realiza por Nombre y Apellido en primer lugar y luego por DNI ambos en orden ascendente. Por ultimo en el método SET_TABLE_FIRST_DISPLAY se agrega la...

Acceder a esta publicación

Creado y Compartido por: Jeferson Jos Pena Curvelo / Disponibilidad Laboral: FullTime

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

SAP SemiSenior

1ï¸âƒ£ Inicio y apagado de la base de datos usando SAP MC y SAP Host Agent SAP Host Agent es el componente que permite a SAP MC comunicarse con el sistema. Desde SAP MC: Seleccionás el host o la DB (HANA). Usás Start / Stop Database. El Host Agent ejecuta los comandos a nivel OS para arrancar o detener la base de datos. Sin Host Agent → no es posible controlar la DB desde SAP MC. 2ï¸âƒ£ Inicio de un sistema SAP usando SAP MC En SAP MC seleccionás el SID del sistema. Opción Start System. El arranque es secuencial: Base de datos ...

Acceder a esta publicación

Creado y Compartido por: Nicanor Vasquez Risso / Disponibilidad Laboral: FullTime + Carta Presentación

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

SAP Senior

**Módulo POPUP_TO_CONFIRM** - Para confirmaciones con el usuario - Parámetros principales: - titlebar: Título del popup - text_question: Pregunta al usuario - text_button_1/2: Texto para botones - answer: Retorna '1' (Sí), '2' (No) o 'A' (Cancelar) Ejemplo práctico: DATA: v_titulo TYPE string VALUE 'Confirmación', v_pregunta TYPE string VALUE '¿Desea eliminar el registro?', v_respuesta TYPE c. CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = v_titulo text_question = v_pregunta text_button_1 = 'Sí' text_button_2 = 'No' IMPORTING answer = v_respuesta. **Módulo POPUP_GET_VALUES** - Para capturar múltiples valores - Usa tabla...

Acceder a esta publicación

Creado y Compartido por: Mara Fadua Romero Hernandez

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

SAP Senior

El catálogo ALV automático, los logos, los encabezados y los status GUI 1. La creación del catálogo del ALV en forma automática Existen 2 formas de crear el catálogo del ALV: La primera es en forma manual, ingresando campo por campo FORM armar_catalogo. REFRESH ti_catalogo. CLEAR wa_catalogo. wa_catalogo-fieldname = 'DNI'. "Nombre del campo wa_catalogo-tabname = 'TI_USUARIOS'. "Nombre Tabla wa_catalogo-seltext_s = 'DNI'. "Descripción corta Cabecera wa_catalogo-seltext_m = 'DNI'. "Descripción media Cabecera wa_catalogo-seltext_l = 'DNI'. "Descripción larga Cabecera wa_catalogo-outputlen = 10. "Ancho...

Acceder a esta publicación

Creado y Compartido por: Yeny Gisela Yanes Bautista

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

SAP Expert


El Catálogo de Campos: Es una tabla interna en donde se almacenan los campos que se visualizaran en la salida de un reporte ALV. Las columnas que mostramos en un reporte son especificadas por el programador. La tabla interna es del tipo estándar LVC_T_FCAT. Cada una de las líneas que componen a esta tabla es del tipo LVC_S_FCAT y está compuesta por los campos que determinan las propiedades que se pueden configurar de cada una de las columnas que se mostraran en el reporte ALV Grid. También es posible configurar las propiedades de cada uno de los campos de la estructura LVC_S_FCAT de modo de que dichas configuraciones se apliquen en la salida de nuestro reporte ALV. Principales propiedades de la estructura...

Acceder a esta publicación

Creado y Compartido por: Jeferson Jos Pena Curvelo / Disponibilidad Laboral: FullTime


👉Bueno, estos fueron los últimos artículos de 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.