找出所有程序 dynpro 屏幕? [英] Find out all program dynpro screens?
问题描述
我是 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.
看起来像这样:
Go to Personas
按钮通向下一个屏幕,我想在查找按钮下列出所有屏幕.
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.
推荐答案
您可以使用程序键读取表格
,它应该为您提供属于该程序的所有 dynpro(D020S
及其文本表格D020T
= sy-repidsy-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屋!