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: 

FM to fetch screen data

Former Member
0 Kudos

Hi all,

We need to know, the existing element list present in a given module pool program and screen number.

Say I give SAPMDEMO_SCREEN_FLOW program and Screen number 0210, I need to get the total element list present, type and size of those elements in that screen.

Does any body have an idea of any FM or any DB table, that would do this, help me out.

Thanks in advance.

Regards,

Ravikiran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi again,

1. RPY_DYNPRO_READ

This is also a good FM.

2. It will give

a) field name, length, position , other flags.

b) it will also give PAI flow logic.

regards,

amit m.

8 REPLIES 8

Former Member
0 Kudos

Hi,

use

LOOP AT SCREEN.

here you can change the display settings etc.

of each element.

ENDLOOP.

the system will loop through each element of the current screen.

Former Member
0 Kudos

Hi ravikiran,

1. DYNPRO_FIELD_GET

regards,

amit m.

Former Member
0 Kudos

HI

GOOD

TRY WITH THESE FM

DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too (Another example).

HELP_START Display help for a field. Useful for doing AT SELECTION SCREEN ON VALUE REQUEST for those fields that do not provide F4 help at the DDIC level.

RPY_DYNPRO_READ Read dynpro, including screen flow

RPY_TRANSACTION_READ Given a transaction, return the program and screen or given a program and screen, return the transactions that use the program and screen.

THANKS

MRUTYUN

Former Member
0 Kudos

Hi again,

1. RPY_DYNPRO_READ

This is also a good FM.

2. It will give

a) field name, length, position , other flags.

b) it will also give PAI flow logic.

regards,

amit m.

0 Kudos

Hi Amit,

Thank you very much! your posts were very helful for me!

While executing the FM RPY_DYNPRO_READ how can get the length and position. I am unable to get it! Pls help me out.

Regards,

Ravikiran.

0 Kudos

Hi again,

1. In this FM,

an internal table is returned,

FIELDS_TO_CONTAINERS

2. There are many fields in this internal table.

3. the ones which u want are :

LINE

COLUMN

LENGTH

VISLENGTH

HEIGHT

4. There are other useful fields also.

regards,

amit m.

0 Kudos

I got it!! thanks a lot!!

Best Regards,

Ravikiran.

0 Kudos

How come, for the program RM06BB20 -- 1000 the texts are empty or appear like this ____ ?