Ir al contenido principal

Entradas

Mostrando las entradas con la etiqueta ALV

ABAP Submit ALV

 Cuando queremos llamar a un programa por medio de un SUBMIT, pero el programa que llamamos genera un ALV como resultado, el mismo queda bloqueado con esa lista A LV y no regresa al programa llamador. Pero si utilizamos la variante "EXPORTING LIST TO MEMORY", obligamos al programa a retornar sin mostrar el ALV. Ejemplo:    SUBMIT  zprograma2           WITH  trn   =  space           WITH  tro   =  'X'           WITH  werks  IN  so_werks           WITH  cpudt  IN  so_cpudt           WITH  p_n1   =  abap_true           EXPORTING  LIST  TO  MEMORY    "sentencia importante           AND...

ABAP - Celda de color en ALV OO

Está tan bueno este tuto, que literalmente me lo copio (abajo va la fuente) Dear SAPLearners, in this tutorial we will learn how to color a particular cell in ALV using the factory class CL_SALV_TABLE. In earlier tutorial we have added colors to row in ABAP ALV, c lick here to know how . This is similar to coloring row. Lets see how we can do it. To apply cell color, Create a new column of Type LVC_T_SCOL in your output internal table. Set the above column as Color Column in ALV by using the method  SET_COLUMN_COLOR( ) . Add the color data to the color column based on your requirement. Create a program in SE38 and copy the below code. *&---------------------------------------------------------------------* *& Add color to cell in ALV using factory class * *&---------------------------------------------------------------------* *& www.saplearners.com * *&--------------------...

Link en campo de ALV

OO ALV with hotspot and call transaction OO ALV report with call transaction on hotspot click using CL_SALV_TABLE There was a requirement to display list of materials in an ALV control and put hyperlink(hotspot) to material no, when ever we click on material number, it should call MM03 and directly display material. In this kind of requirement, we need to use below CALL TRANSACTION with parameter id for calling a transaction with parameters. In the below example, we use object oriented techniques to display ALV table and will use events to handle hyperlink click. CLASS CL_SALV_TABLE Step1:  Display ALV using class CL_SALV_TABLE and method DISPLAY() Refer  working with ALV Factory methods  for more details on factory methods TYPES: BEGIN OF ty_mara, matnr TYPE mara-matnr, mtart TYPE mara-mtart, matkl TYPE mara-matkl, END OF ty_mara. DATA: it_mara TYPE TABLE OF ty_mara, wa_mara TYPE ty_mara. DATA: o_alv...