Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen flow tracing on standard function

cwlaualex
Explorer
0 Likes
962

Hi Experts,

I am trying to find a way to trace the SAP standard code on screen flow control. For example, I would like to check the logic that control the visibility of the service tab in ME21N. First, I am unable to get the tab strip ID from the GUI. I can only get the screen number from the technical help from one of the field inside that tab strip. After some further search, I found that SAP Note# 2287838 can help me out and I realize that the function group MEPO is the place that I should look into.

What I am trying to do is finding a strategy to locate the function group like MEPO by using program trace. Is there anyway to achieve this?

Thanks!

Regards,

Alex

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
825

The tab "label" is technically a pushbutton (http://help.sap.com/saphelp_nw70/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/frameset.htm ). It doesn't appear if the pushbutton is hidden, using LOOP AT SCREEN and MODIFY SCREEN.

To locate the logic where it's done, you have to locate which dynpro contains the tabstrip. So, you may display any tab of the tab strip, and get the dynpro by pressing F1 in a field (provided it's assigned a help text) + press button "display technical information" -> the dynpro number and its program are displayed at the top of the popup. From there, get the name of the pushbutton corresponding to "service", and debug when there's a MODIFY SCREEN on this pushbutton field.

Read only

0 Likes
825

Hi Sandra,

If I follow your method, I will only go into the screen detail of that particular tab. For example, I will get program SAPLMLSP Screen Number 0400 when checking one of the field under the Services tab. I can't get the logic of showing or hiding the tab.

On the other way round, if I check the program SAPLMEGUI in SE80, I can manually find a screen number 1302 which should be corresponding to the tabstrip. However, the tabs seems to be assigned programmatically and it is not possible to know which tab will the Services being assigned to during execution. Moreover, I can't find any code related to hiding or showing the tab there as well.

Any idea? Thanks!

Regards,
Alex

Read only

0 Likes
825

Using the debugger, you may also use the "screen analysis" tool, which displays the stack of dynpros, and so you'll get the parent of SAPLMLSP 0400, and starting from the first PBO module, you can add a breakpoint on statement MODIFY SCREEN.