Application Development 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: 

Screen Elements in a Screen

Former Member
0 Kudos

Hi experts,

Is there any way to find out the screen elements/controls from a Program Name (pgmid) and Dynpro Number (dynnr)?

Thanks & Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Thanks for your replies.

I am writing a Function Module.

Import Parameters for the FM 1. Program name eg: SAPLZMY_PRG.

2. Screen No (DYNNR) eg: 0100.

The FM should be able to give following information in the export parameters.

1. Screen Elements/Controls like Pushbuttons etc in the given screen number.

2. Function code assigned to the pushbuttons.

3. If possible Function Keys assigned to the Pushbuttons.

Please let me know if you need more clarification.

Thanks

6 REPLIES 6

Former Member
0 Kudos

try this

system -> status

reward if useful

by,

raghul

Edited by: raghul kanna on Jun 24, 2008 5:21 PM

former_member181995
Active Contributor
0 Kudos

Hari,

can you please close one thread by giving mark i have already update your another one

either you can see screen no and prg from menu bar :

System>status
 
or open your prg in se38 than press Ctrl+shift+F5.

Amit.

Former Member
0 Kudos

Hi Hari haran,

In addition to other replies, Plese let us know what is ur requirement .

If you are looking for controls, variables placed on ur screen, if you want to change, modify them dynamically then You can change the visible length , output field , and invisible attributes etc dynamically by using the system table SCREEN.

Otherwise you can get the complete information abot screen, program in System-> Status as others informed you.

Regards,

Naveen Veshala

Former Member
0 Kudos

Hi,

Thanks for your replies.

I am writing a Function Module.

Import Parameters for the FM 1. Program name eg: SAPLZMY_PRG.

2. Screen No (DYNNR) eg: 0100.

The FM should be able to give following information in the export parameters.

1. Screen Elements/Controls like Pushbuttons etc in the given screen number.

2. Function code assigned to the pushbuttons.

3. If possible Function Keys assigned to the Pushbuttons.

Please let me know if you need more clarification.

Thanks

0 Kudos

Hi Hari haran,

I hope you may use the standard function module RS_IMPORT_DYNPRO to fulfil ur requirement.

This function module takes input as program name, screen no and gives the complete information abot that screen.

The tables parameter FTAB holds the information regarding all controls in the screen.

FTAB parameters :

FNAM : control name

FILL : control type incase of push button it would be P

STXT : Label or text of the control

RES1 : Function code ,

You can check all other parameter , and debug that function module.

Hope it resolve your problem.

Regards,

Naveen Veshala

Former Member
0 Kudos

Thanks Naveen.

That Solved my problem.