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

parameter handling in screen painter

Former Member
0 Likes
1,937

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

1 ACCEPTED SOLUTION
Read only

sridhar_meesala
Active Contributor
0 Likes
1,388

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,388

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

Read only

sridhar_meesala
Active Contributor
0 Likes
1,389

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.

Read only

0 Likes
1,388

Hi Sri,

Thanks for ur time..

but ur logic is not working..

Regards

Jack

Read only

0 Likes
1,388

Hi,

Have u written your code in PBO. check it. It works.

Thanks,

Sri.

Read only

0 Likes
1,388

Hi Sri,

I have written the code in PBO itself ,,but its not working .....

Thanks Jack

Read only

0 Likes
1,388

as said above, just pick up sap examples, they are marvelous !

Read only

Former Member
0 Likes
1,388

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

Read only

0 Likes
1,388

Hi Yoga

Sorry ur logic is also not working..

Thanks

Jack