‎2010 Jul 17 8:53 AM
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...
‎2010 Jul 17 10:01 AM
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
‎2010 Jul 17 12:22 PM
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
‎2010 Jul 17 6:03 PM
Dear Rama,
have a look at FM
RPY_DYNPRO_READalso. In the table
FIELDS_TO_CONTAINERSyou will find a column
TYPE. Hopefully its content is sufficient for what you want to do.
Regards,
Peter