简体   繁体   English

表格的某些列未显示在弹出显示 ABAP 中

[英]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.我正在分配一个按钮来显示我在 SAP 的表格。 I've achieved this with popup_with_table_display.我已经通过 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.顺便说一句,这个代码部分在我的 PAI 中工作。 Here's the output that I'm getting.这是我收到的 output。 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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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