Skip to Content
0
Oct 06, 2016 at 05:04 PM

Problems to view ALV in popup ABAP

20 Views

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.