‎2010 Apr 27 12:04 PM
HI
There is API(method,FM) which we can use in order
to get the transaction screen and fields.
for instance if i put as input transaction FI03
i will get all the screens and fields of the transaction
per step .
Regards
Alex
Edited by: Alex Dean on Apr 27, 2010 2:42 PM
‎2010 Apr 27 2:08 PM
Hi,
Do want to get all the fields in the transaction with values(if entered),, you can use the below FM.
DYNP_VALUES_READ
pass the program name and screen number...
Thanks
S.
‎2010 Apr 27 2:08 PM
Hi,
Do want to get all the fields in the transaction with values(if entered),, you can use the below FM.
DYNP_VALUES_READ
pass the program name and screen number...
Thanks
S.
‎2010 Apr 27 3:13 PM
Thanks,
i try it and i get some error.
assume that i want to use transaction SU01 (or diff)
what should i pass in the parameters
Best Regards
Alex
‎2010 Apr 27 3:42 PM
Hi,
please see the below example and declare the variables needed by the FM
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
* TRANSLATE_TO_UPPER = ' '
request = 'A'
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
TABLES
dynpfields = l_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
OTHERS = 10.
Thanks,
Srini.
‎2010 Apr 27 4:04 PM
Perhaps we should add the comment that DYNP_VALUES_READ will fetch the content of the fields only if the dynpro, from which you want to get the field values, is currently the active dynpro or if it is in the call stack. This means that you must first execute transaction FI03 so that the dynpro gets loaded and afterwards you execute DYNP_VALUES_READ.
Alex,
Do you really want the content of the fields or just the name of the fields ?
‎2010 Apr 27 4:07 PM
Adrain,
you are right. once you run the transaction, then within that transaction, this FM returns the fields in the transaction.
Thanks,
S.
‎2010 Apr 28 12:12 PM
‎2010 Apr 28 1:30 PM
‎2010 Apr 28 2:03 PM
hi srinivas
thanks but how i use it for transaction such su01 va01 se11 etc
Regards
Alex
‎2010 Apr 28 2:20 PM
Hi Alex,
This Table is Some what useful look at once,
D021T-Screen Key Word Texts
Regards,
Raghava Channooru