10-06-2016 6:04 PM
Hello, I have the next problem, I'm trying of to show a itab in a ALV GRID popup, but, if I have most of 6 records in my itab, after of the 6 record, the data shows information in blank.
TYPES:
BEGIN OF ty_posic,
pspnr TYPE PRPS-PSPNR,
waers TYPE EKKO-WAERS,
ebelp TYPE EKPO-EBELP,
texto TYPE PRPS-POST1,
mppto TYPE EKKO-WAERS,
impor TYPE PRPS-POST1,
ukurs TYPE PRPS-POST1,
pstyp TYPE EKPO-PSTYP,
END OF ty_posic,
BEGIN OF ty_auxil,
posid TYPE PRPS-POSID,
waers TYPE EKKO-WAERS,
ebelp TYPE EKPO-EBELP,
texto TYPE PRPS-POST1,
mppto TYPE EKKO-WAERS,
impor TYPE PRPS-POST1,
ukurs TYPE PRPS-POST1,
END OF ty_auxil.
DATA:
t_posic TYPE STANDARD TABLE OF ty_posic,
t_auxil TYPE STANDARD TABLE OF ty_auxil,
t_cols TYPE STANDARD TABLE OF help_value,
t_tabix TYPE SY-TABIX,
t_just TYPE CATSXT_LONGTEXT_ITAB.
DATA:
wa_cols LIKE LINE OF t_cols,
wa_posic LIKE LINE OF t_posic,
wa_auxil LIKE LINE OF t_auxil,
wa_just LIKE LINE OF t_just.
wa_cols-selectflag = 'X'.
wa_cols-tabname = 'PRPS'.
wa_cols-fieldname = 'POSID'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'EKKO'.
wa_cols-fieldname = 'WAERS'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'EKPO'.
wa_cols-fieldname = 'EBELP'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'PRPS'.
wa_cols-fieldname = 'POST1'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'ZMPWAERS'.
wa_cols-fieldname = 'WAERS'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'EKPO'.
wa_cols-fieldname = 'NETPR'.
APPEND wa_cols TO t_cols.
wa_cols-tabname = 'TCURR'.
wa_cols-fieldname = 'UKURS'.
APPEND wa_cols TO t_cols.
CALL FUNCTION 'MD_POPUP_SHOW_INTERNAL_TABLE'
EXPORTING
title = 'My title short'
IMPORTING
index = t_tabix
TABLES
values = t_auxil
columns = t_cols
EXCEPTIONS
leave = 1
others = 2.
For example.
10-06-2016 6:16 PM
Hmm, it's not an ALV grid and it's not an ALV. It's not even an official function module. Why don't you simply use the ALV technology?
10-06-2016 6:19 PM
10-06-2016 7:22 PM
Not sure what you meant by fastly. But ALV pop-up is pretty simple to implement and we have some demo programs available for e.g. SALV_DEMO_TABLE_POPUP using cl_salv_table-set_screen_popup.
10-07-2016 11:12 AM