‎2008 Jan 07 12:00 PM
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.....................
‎2008 Jan 07 12:08 PM
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
‎2008 Jan 07 1:51 PM
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.
‎2008 Jan 07 5:59 PM
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.