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 attributes

Former Member
0 Likes
510

Given a Program name & screen number, would it be possible to read the screen elements(not from the same program where the screen exists). say screen 2000 exists in prg "test" with 5 elements.... from another program "GetAttributesPrg", is there a way to read all the above mentioned 5 elements by passing the program name & screen number...

3 REPLIES 3
Read only

peter_langner
Active Contributor
0 Likes
463

Hi Rama,

I think what you need is FM

call function 'RPY_DYNPRO_READ_NATIVE'
      exporting
        progname                    = xdynp-prog
        dynnr                       = xdynp-dnum
*       SUPPRESS_EXIST_CHECKS       = ' '
*       SUPPRESS_CORR_CHECKS        = ' '
    importing
        HEADER                      = xdyn_head
        dynprotext                  = xdyn_text
     tables
        fieldlist                   = idyn_fldl
        flowlogic                   = idyn_flow
        params                      = idyn_mcod
*       FIELDTEXTS                  =
     exceptions
        cancelled                   = 1
        not_found                   = 2
        permission_error            = 3
        others                      = 4.

IDYN_FLDL contains the list of field (attributes) of the dynpro.

Regards,

Peter

Read only

0 Likes
463

Thanks Peter for the Input.

is there a way to seperate input fields and labels(& frames). I am interested in only input fields...

Thanks,

Rama

Read only

0 Likes
463

Dear Rama,

have a look at FM

RPY_DYNPRO_READ

also. In the table

FIELDS_TO_CONTAINERS

you will find a column

TYPE

. Hopefully its content is sufficient for what you want to do.

Regards,

Peter