简体   繁体   中英

Some of the columns of a table are not displayed in popup display ABAP

I'm assigning a button to display my table at SAP. I've achieved this with popup_with_table_display. In the popup screen I can see some of my columns but not all of them. Here's my code:

DATA: t_interview TYPE TABLE OF ZBS_HR_I0001

CASE sy-ucomm.
  WHEN 'DISP'.
select * from ZBS_HR_I0001 into table t_interview.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
  EXPORTING
    ENDPOS_COL         = 100
    ENDPOS_ROW         = 10
    STARTPOS_COL       = 10
    STARTPOS_ROW       = 1
    TITLETEXT          = 'Interview Table'
  TABLES
    VALUETAB           = t_interview
  EXCEPTIONS
    BREAK_OFF          = 1
    OTHERS             = 2
          .

BTW this code section works inside my PAI. Here's the output that I'm getting. And here's the original table with all of its columns . How can I make it display all of my columns?

Here's the working code for me:

DATA: t_interview TYPE TABLE OF ZBS_HR_I0001,
      ts_interview TYPE REF TO cl_salv_table.

select * from ZBS_HR_I0001 into table t_interview.
cl_salv_table=>factory(
  IMPORTING
    r_salv_table = ts_interview
  CHANGING
    t_table      = t_interview
).

CASE sy-ucomm.
  WHEN 'DISP'.
   ts_interview->display( ).
ENDCASE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM