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

Regarding non editable selection screen field

former_member242166
Participant
0 Likes
2,415

Hi experts,

i have some selection screen fields, but initially i am displaying only one field in screen after enter some value in that field when i click one radio button remaining fields will display. My scenario is after enter the value when i press radio button all fields will dispaly and that first field will show like non editable field with my entered input value.

Please Help me

Thanks and Regards,

Linganathan.K

Moderator message : Requirements dumping not allowed, search for available information.  Discussion locked.

Message was edited by: Vinod Kumar

Hi experts,

i have some selection screen fields, but initially i am displaying only one field in screen after enter some value in that field when i click one radio button remaining fields will display. My scenario is after enter the value when i press radio button all fields will dispaly and that first field will show like non editable field with my entered input value.

Please Help me

Thanks and Regards,

Linganathan.K

Moderator message : Requirements dumping not allowed, search for available information.  Discussion locked.

Message was edited by: Vinod Kumar

3 REPLIES 3
Read only

former_member282968
Contributor
0 Likes
1,449

Hi Linga,

  1. While defining the Radio button use the key word user-command and define the F-code.
  2. In the selection screen block fields which you want to hide and display use MODIF ID keyword in all fields and define an ID.
  3. In the AT SELECTION-SCREEN OUTPUT use the screen like below:

 

       LOOP AT SCREEN.

       IF SCREEN-GROUP1 = 'PRJ'.

       SCREEN-INVISIBLE = '0'.

       SCREEN-INPUT = '1' .

       SCREEN-OUTPUT = '1' .

       MODIFY SCREEN.

       ENDIF.

       ENDLOOP.

Where Screen-group1 will be modif ID. Put the screen loop with in the condtions based on your requirement for making it visible or non-visible

With regards,

Read only

0 Likes
1,449

Hiii,

        See below code

TABLES : t001.

SELECTION-SCREEN: BEGIN OF BLOCK g1 WITH FRAME TITLE text-002.

PARAMETERS : date TYPE sy-datum MODIF ID dd.

PARAMETERS : xa   RADIOBUTTON GROUP rb1 USER-COMMAND flag MODIF ID RB,
              xb   RADIOBUTTON GROUP rb1 MODIF ID RB.

SELECT-OPTIONS : s_bukrs for t001-bukrs  MODIF ID aa,
                  s_land1 FOR t001-LAND1 MODIF ID aa.

SELECTION-SCREEN: END OF BLOCK g1.

AT SELECTION-SCREEN OUTPUT .

   if date is NOT INITIAL and xa = '' and xb = ''.

   LOOP AT SCREEN  .

     IF screen-group1 = 'DD' .
        screen-input = 0.
        screen-active = 1.
        MODIFY SCREEN.
     ENDIF.

     IF screen-group1 = 'AA'.
        screen-input = 0.
        screen-active = 0.
        MODIFY SCREEN.
     endif.

     ENDLOOP.

     ELSEIF date is NOT INITIAL AND xb = 'X'.

     LOOP AT SCREEN  .

     IF screen-group1 = 'AA' .
        screen-input = 1.
        screen-active = 1.
        MODIFY SCREEN.
     endif.

     endloop.

     ELSEIF date is NOT INITIAL AND xa = 'X'.

     LOOP AT SCREEN  .

     IF screen-group1 = 'AA' .
        screen-input = 0.
        screen-active = 0.
        MODIFY SCREEN.
     endif.

     endloop.

     ELSEIF date is INITIAL .

       LOOP AT SCREEN  .

     IF screen-group1 = 'RB' OR screen-group1 = 'AA' .
        screen-input = 0.
        screen-active = 0.
        MODIFY SCREEN.
     ENDIF.

     ENDLOOP.

     ENDIF.

Read only

bharat_rathod2
Active Participant
0 Likes
1,449

Dear,

you want to do this with screen ?

means in module pool or executable report?