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

on selection screen

Former Member
0 Likes
927

Hiiiiiiiiii

I had 2 fields on the selection screen.both r dependent say A and B.

i give value for A and i want B values to be displayed without pressing enter.

eg i give value for A if i press ENTER i am getting values of B but i want the values to be display as soon as i enter A value.

Urgent plz.....................

3 REPLIES 3
Read only

George_Lioumis
Active Participant
0 Likes
362

Hi.

Check this example:

PARAMETERS: a RADIOBUTTON GROUP gr1 USER-COMMAND rcomm,

b RADIOBUTTON GROUP gr1,

p_val(10) type c.

INITIALIZATION.

a = 'X'.

p_val = 'A'.

AT SELECTION-SCREEN.

if a = 'X'.

p_val = 'A'.

ELSEIF b = 'X'.

p_val = 'B'.

endif.

Reward if it helps please.

Regards,

George

Read only

Former Member
0 Likes
362

HI

Use DYNP_VALUES_READ and DYNP_VALUES_UPDATE for this.

The standard behavior of selection screen is, it will store the values in buffers which you input in input box and when u press enter it will update into screen fields.

DYNP_VALUES_READ will read the screen values at that point of time into a variable which you provide and at the same time you use FM DYNP_VALUES_UPDATE to update the value into screen field.

Read only

Former Member
0 Likes
362

Hi Chandu,

Use 'DYNP_VALUES_READ' function module for read screen values with out triggereng any event i.e with out press enter.

See my Code it is in PAI.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = sy-repid DYNUMB = sy-dynnr

TRANSLATE_TO_UPPER = 'X'

TABLES

DYNPFIELDS = dynpro_values

.

READ TABLE dynpro_values INDEX 1 INTO field_value.

p_val2 = field_value-fieldvalue.

Plzz Reward if it is useful,

Mahi.