2009 Sep 02 2:08 PM
Hi All,
Hope all are doing fine!!!
I have designed a screen using screen painter ...
in that screen ,, i have 2 parameters and 3 input fields ...
if 1st parameter is ciicked/selected then 1st input field should only be input enabled and other 2 input fields should be input disabled.
if 2nd parameter is clicked/selected ..., the 1st field should be input disabled and the other 2 fields should be input enabled..
am designing all these in a screen painter not in a selection criteria.
pls.. suggest alternatives..
Thanks in advance
Jack
2009 Sep 02 2:28 PM
Hi,
Supposu you want to do the disabling and enabling part using radio buttons.
Firstly group the radio buttons in the screen painter, set a function code for them and declare them in the TOP.
Now for the 2nd and 3rd input fields double click on them and set the group name.
In PBO of flow logic
CASE SY-UCOMM.
WHEN 'F_RADIO'.
IF R1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'field1'.
Screen-Input = 0.
Modify Screen.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = G1.
Screen-Input = 0.
Modify Screen.
ENDIF.
ENDLOOP.
ENDIF.
ENDCASE.Thanks,
Sri.
Hi All,
Hope all are doing fine!!!
I have designed a screen using screen painter ...
in that screen ,, i have 2 parameters and 3 input fields ...
if 1st parameter is ciicked/selected then 1st input field should only be input enabled and other 2 input fields should be input disabled.
if 2nd parameter is clicked/selected ..., the 1st field should be input disabled and the other 2 fields should be input enabled..
am designing all these in a screen painter not in a selection criteria.
pls.. suggest alternatives..
Thanks in advance
Jack
2009 Sep 02 2:13 PM
Hi ,
go to screen painter through se51 or through layout of the screen,
Double click on the Parameter and add some group id for the parameter and write the logic in the PBO to disable and enable the
screen.
go to transaction ABAPDOCU and see the example how the sceen enable and disable is done.
Rergards,
Prabhudas
2009 Sep 02 2:28 PM
Hi,
Supposu you want to do the disabling and enabling part using radio buttons.
Firstly group the radio buttons in the screen painter, set a function code for them and declare them in the TOP.
Now for the 2nd and 3rd input fields double click on them and set the group name.
In PBO of flow logic
CASE SY-UCOMM.
WHEN 'F_RADIO'.
IF R1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'field1'.
Screen-Input = 0.
Modify Screen.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = G1.
Screen-Input = 0.
Modify Screen.
ENDIF.
ENDLOOP.
ENDIF.
ENDCASE.Thanks,
Sri.
2009 Sep 02 2:51 PM
Hi Sri,
Thanks for ur time..
but ur logic is not working..
Regards
Jack
2009 Sep 02 3:03 PM
Hi,
Have u written your code in PBO. check it. It works.
Thanks,
Sri.
2009 Sep 02 3:13 PM
Hi Sri,
I have written the code in PBO itself ,,but its not working .....
Thanks Jack
2009 Sep 02 5:34 PM
as said above, just pick up sap examples, they are marvelous !
2009 Sep 02 2:30 PM
Hi jack,
Using loop at screen,we can acheive your reqiurement,
A --> 1st input field name
B & C --> 2nd,3rd inpu fields name
P1 ---> Parameter1 name
P2 ---> Parameter2 name
In PBO,you have to code the logic..
ex:
LOOP AT SCREEN .
IF P1 = 'X'.
IF SCREEN-NAME = 'B' or SCREEN-NAME = 'C'.
SCREEN-INPUT = 0. (0->DISABLE.. 1->ENABLE MODE)
ENDIF.
ELSEif P2 = 'X' .
IF SCREEN-NAME = 'A'.
SCREEN-INPUT = 0.
ENDIF.
ENDIF.
using group logic also we can do this.
I hope, it will helpful to you
<=<< Sharing Knowledge is a way to Innovative >=>>
By,
Yoga
2009 Sep 02 2:57 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |