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

Selection Screen

Former Member
0 Likes
405

Thank you all for offering assistance to my previous query titled "Selection Screen"

Actaullay i could get to make the fields active and deactive by using modif-id

and the loop at screen code.

However it is only happening when the user press enter after inputting resource type in the selection screen.

I want to make it happen dynamically as soon as the used enters the value in resource type.

Like we make some fields active and deactive on radio button select using user-command.

Similarly is it possible.

Thanks & regards

4 REPLIES 4
Read only

Former Member
0 Likes
378

whatever the code you are writting it must trigger the PAI i.e. at selection-screen event. in radio button we can assign the fcode so whenever we are clicking that it triggers the at selection-screen but in parameter or select-option it is not possible so only after pressing enter the at selection-screen will trigger. and after that

at selection-screen output will trigger and your code will execute.

regards

shiba dutta

Read only

0 Likes
378
Parameters: rd1 RADIOBUTTON group g1 default 'X' user-command ch ,
            rd2 RADIOBUTTON group g1 .


            parameters : chk1 type c as checkbox modif id ID1,
                         chk2 type c as checkbox modif id ID2.

AT SELECTION-SCREEN.
check sy-ucomm = 'CH'.

AT SELECTION-SCREEN output.
IF rd2 = 'X'.

LOOP AT SCREEN.
IF screen-group1 = 'ID2' .
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

ENDIF.
IF RD1 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

ENDIF.
Read only

Former Member
0 Likes
378

hi...

use the function modules below.... it would help u...

I will try to get the code soon..

DYNP_VALUES_READ Read the values from a dynpro. This function can be used to read the values from a report's selection screen too (Another example).

DYNP_VALUES_UPDATE Similar to DYNP_VALUES_READ, this function will allow the updating of fields on a dynpro. Very useful when you want to change a field based on the value entered for another field.

-

Santosh

Read only

Former Member
0 Likes
378

hi syed,

u can do this only for radio button and Check box.. but not for the other fields

PARAMETERS:RB_LIST RADIOBUTTON GROUP RADI DEFAULT 'X' USER-COMMAND UCOM,
           RB_FORM RADIOBUTTON GROUP RADI,
           B_X TYPE C AS CHECKBOX USER-COMMAND UCOM.


    at selection-screen.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K