Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to view ALV in popup ABAP

former_member308319
Participant
0 Kudos

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.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

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?

0 Kudos

Because I need to show certain information fastly...

0 Kudos

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.

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,

Try,

REUSE_ALV_POPUP_TO_SELECT

Hope  it helpful,

Regards,

Venkat.