简体   繁体   English

如何从 SAP 程序代码和屏幕代码中找到屏幕标题?

[英]How to find Screen Title from SAP Program Code and Screen Code?

Is it possible to find SAP Screen title from SAP databases?是否可以从 SAP 数据库中找到 SAP 屏幕标题? I want to use the Program Code and Screen Code as input and would like to get the Screen Title.我想使用程序代码和屏幕代码作为输入,并希望获得屏幕标题。 For example, the TCODE VA01 Initial Screen Screen Code - 0101 has a title Create Sales Order: Initial Screen .例如,TCODE VA01初始屏幕Screen Code - 0101具有标题Create Sales Order: Initial Screen So I want to get the title text from the input SAPMV45A 0101 .所以我想从输入SAPMV45A 0101获取标题文本。

I tried with table TSTC , Though it returns the TCODE Text in TText column, it not necessarily the page title always.我尝试使用表TSTC ,虽然它在TText列中返回 TCODE 文本,但它不一定总是页面标题。 Generally it changes in the subsequent pages.通常它会在后续页面中更改。

As I don't have much experience with SAP, any piece of knowledge will be appreciated.由于我对 SAP 没有太多经验,任何知识都将不胜感激。

If I understood your question correctly, there is no general way to do this for all possible programs.如果我正确理解了您的问题,那么对于所有可能的程序,没有通用的方法可以做到这一点。 The title is set at runtime using the statements SET TITLEBAR , and you would have to evaluate the control (and as soon as conditional statements appear, also the data) flow of the application in order to determine the actual statement being executed (see Halting Problem ) for more information about why this is a hard problem to solve).标题是在运行时使用语句SET TITLEBAR ,您必须评估应用程序的控制(以及一旦出现条件语句,还有数据)流,以确定正在执行的实际语句(请参阅暂停问题) 有关为什么这是一个难以解决的问题的更多信息)。 In many cases, this is even influenced by some settings or permissions.在许多情况下,这甚至会受到某些设置或权限的影响。

You are looking for a GUI Title.您正在寻找 GUI 标题。

In SE80 (Sorry, German screenshot):在 SE80 中(抱歉,德语截图): 带有 GUI 标题的 SE80

The text itself is in table RSMPTEXTS:文本本身在表 RSMPTEXTS 中: 在此处输入图片说明

To detect the right key (in your case A01), you must go to check the Coding.要检测正确的键(在您的情况下为 A01),您必须检查编码。

Actually I can't give you a recipe to get the correct key, but you may set a breakpoint (form CUA_SETZEN) and check the value/code yourself:其实我不能给你一个方法来获得正确的密钥,但你可以设置一个断点(形式 CUA_SETZEN)并自己检查值/代码: 断点

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

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