简体   繁体   English

如何在新模式中编写列表 (abap)

[英]How to write list in a new Mode (abap)

  LOOP AT gt_file INTO ls_file.
    WRITE:/ ls_file.
  ENDLOOP.

This is the output of my list.这是我的列表的输出。 When a user hits a Button (Function 'On_user_command') this list should be shown in a new window/mode.当用户点击按钮(功能“On_user_command”)时,该列表应显示在新窗口/模式中。

Is there any function or command to solve this?有什么功能或命令可以解决这个问题吗?

You can call the transaction of the list and create a new mode.您可以调用列表的事务并创建新模式。

 CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
        STARTING NEW TASK 'NewTask'
        DESTINATION 'NONE'
  EXPORTING
    tcode = 'ZLIST'
*    skip_screen = 'X'
*    mode_val = 'E'
*    update_val = 'A'
*  TABLES
*    using_tab = bdcdata_tab
  EXCEPTIONS
    call_transaction_denied = 1
    OTHERS = 2.

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

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