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

module pool , capturing screen element

Former Member
0 Likes
830

Hi,

On a particular screen suppose there is 3 input/ouput field and our requirement is that on the basis of first user input , f4 help for second field should be displayed . I mean how i can capture the particular entry without any event occurrence . Thanks .

5 REPLIES 5
Read only

MarcinPciak
Active Contributor
0 Likes
672

Hi,

You can read your entries with FM DYNP_VALUES_READ, then depending on what was returned select appropraite entries to next screen field and display them as F4 input help with F4IF_INT_TABLE_VALUE_REQUEST.

Updating screen fields on the other hand, will be done by means of fm DYNP_VALUES_UPDATE. [Example here|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/frameset.htm]

Regards

Marcin

Read only

0 Likes
672

thanks a lot .

Read only

Former Member
0 Likes
672

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
672

Hi,

Check the Demo program DEMO_DYNPRO_F4_HELP_DYNPRO

Read only

Former Member
0 Likes
672

As long as the cursor hasn't been postioned in another field, you could try with statement

GET CURSOR FIELD  ....

This statement will return the name of the field where the cursor is positioned.

But i'm not all to sure if it's possible without triggering an event.