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

Read transcation screen and fields

Former Member
0 Likes
909

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
885

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.

9 REPLIES 9
Read only

Former Member
0 Likes
886

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.

Read only

0 Likes
885

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

Read only

0 Likes
885

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.

Read only

adrian_dorn
Advisor
Advisor
0 Likes
885

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 ?

Read only

0 Likes
885

Adrain,

you are right. once you run the transaction, then within that transaction, this FM returns the fields in the transaction.

Thanks,

S.

Read only

0 Likes
885

HI Adrian

I need it for both .

Regards

Alex

Read only

0 Likes
885

This FM gets you both.

Read only

0 Likes
885

hi srinivas

thanks but how i use it for transaction such su01 va01 se11 etc

Regards

Alex

Read only

0 Likes
885

Hi Alex,

This Table is Some what useful look at once,

D021T-Screen Key Word Texts

Regards,

Raghava Channooru