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

Screen Painter - Help!

rahulnavandar
Explorer
0 Likes
563

I have a screen in screen painter with two fields. if i set 1 field to X , then other should automatically be set to R on that same screen. Is it possible?

I think it can be possible by using value-request.

Please if u have any suggestion or example let me know.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
541

at least you have to do something that triggers the PAI of that screen, viz.,

1. pressinng the Enter key,

2. clicking on a button....

I don't think it is possible with out any user action

4 REPLIES 4
Read only

Former Member
0 Likes
541

hi,

i think u can set this using some control statement...

ravi

Read only

Former Member
0 Likes
542

at least you have to do something that triggers the PAI of that screen, viz.,

1. pressinng the Enter key,

2. clicking on a button....

I don't think it is possible with out any user action

Read only

Former Member
0 Likes
541

YOU HAVE TO CODE IN PBO.

IN SCREEN FLOW LOGIC.

PROCESS BEFORE OUTPUT

MODULE VALUE

IN ABAP..

MODULE VALUE OUTPUT.

IF SCREENFIELD1 = 'X'.

SCREENFIELD2 = 'R'.

ENDIF.

ENDMODULE.

BUT FOR TRIGGERING PBO AFTER GIVING THE VALUE IN FIELD1 YOU HAVE TO PRESS ENTER OR TRIGGER PAI BY SOME OTHER USER INTERACTION..

REGARDS

SHIBA DUTTA

Read only

Former Member
0 Likes
541

hi Rahul,

You can achieve this in two ways:

1 - when user selects 'X' from a search help for field1, the field 2 will be 
     automatically populated with 'R'.
    
     For this, you have to code the logic in process on value request for field field1.
     write a module inside this event; inside the module call function module
     DYNP_VALUES_UPDATE to set the value 'R' in field2.

2 - in the PBO, write the following code.

     if field1 = 'X'.
          field2 = 'R'.
     endif.

     But this will happen only after user enters X in field1 and then press ENTER
     or click any other key/button.

Hope this helps,

Sajan Joseph.