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

capturing screen valuess

Former Member
0 Likes
963

Hi All,

Hope all are doing fine...

Am unable to capture the values entered in a transaction ,,,I have tried using screen-fieldname-value ,,but even then the values are not getting captured ... I have tried using dynp_values_read ...but also the values are not getting captured...

The moment i enter some values in the transaction and save it ,,its triggering a BADI ,,even the parameters of that BADI are not capturing the value entered in the screen of the particular transaction ....

Any other alternatives to capture the values of the screen.....

Pls. do the needful.

Thanks & Regards,

Jack

5 REPLIES 5
Read only

Former Member
0 Likes
846

hi,

you have to declare the screen fields in your top include with the same names and same type.

regards

Sajid

Read only

Former Member
0 Likes
846

Hi,

Use FM 'C14Z_DYNP_READ_FIELD'

For Instance it should be like below

Data : v_field(255) type c.

CALL FUNCTION 'C14Z_DYNP_READ_FIELD'

EXPORTING

i_program = sy-repid

i_dynpro = sy-dynnr

i_fieldname = 'V_PLANT' "here specify your own field which u want to read

i_flg_steploop = ''

CHANGING

e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries

Venkat

Read only

Former Member
0 Likes
846

Hi Jack,

You can either use a FM or directly capture the values from screen.

The reason for not getting the screen values could be the disimilar names in dynpro, & the one used in your program.

Also check, if you are saving values at any user command, check OKCODE or sy-ucomm.

Hope this works.

Regards,

Nidhi Kothiyal

Read only

Former Member
0 Likes
846

hi Jack ,

you can refer to this link , this link will help you out

regards

Saurabh goel

Read only

Former Member
0 Likes
846

Thanks