找出所有程序dynpro屏幕吗? [英] Find out all program dynpro screens?

查看:92
本文介绍了找出所有程序dynpro屏幕吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ABAP的新手,我想制作一个具有多个屏幕和一个初始主屏幕的程序,在该屏幕上可以看到所有程序屏幕的列表。我知道我可以对它们进行硬编码,但是应该有更好的方法。

I am new to ABAP and I want to make a program with multiple screens and an initial home screen where one can see the list of all program screens. I understand that I can hardcode them but there should be a better way.

如果存在任何类型的字段/区域,我需要使此列表可单击(以转到屏幕)。到目前为止,我已经创建了一个初始屏幕,当按下GO按钮时,它会转到下一个屏幕

If there is any what kind of field/area do I need to make this list clickable (to go to screen). So far I have made an initial screen and when the GO button is pressed it leads to the next screen

REPORT Z_UZD_1_LOCAL.
CALL SCREEN 1001.
MODULE STATUS_1000 OUTPUT.
*  SET PF-STATUS 'ZMENU'.
*  SET TITLEBAR 'ZMENU_PAINTER'.
CASE SY-UCOMM.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'BACK'.
      LEAVE PROGRAM.
     WHEN 'GO'.
      CALL SCREEN 1001.
  ENDCASE.
ENDMODULE.

MODULE STATUS_1001 OUTPUT.
*  SET PF-STATUS 'ZMENU'.
*  SET TITLEBAR 'ZMENU_PAINTER'.
CASE SY-UCOMM.
      WHEN 'GO2'.
      CALL SCREEN 1000.
  ENDCASE.
 ENDMODULE.

它看起来像这样:

< img src = https://i.stack.imgur.com/ttITZ.png alt = screenshot>

转到角色按钮转到下一个屏幕,我想在查找按钮下找到所有屏幕的列表。

Go to Personas button leads to the next screen, and I would like to have a list of all the screens under the find button.

推荐答案

您可以用键<$ c读取表 D020S 及其文本表 D020T $ c> program = sy-repid ,它应该为您提供属于该程序的所有dynpros( sy-repid 是您的实际程序)。

You can read the table D020S and its text-table D020T with the key program = sy-repid, which should give you all dynpros which belongs to this program (sy-repid is your actual program).

这是您想要的吗?

这篇关于找出所有程序dynpro屏幕吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆