‎2007 Apr 12 6:06 AM
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.
‎2007 Apr 12 6:17 AM
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
‎2007 Apr 12 6:10 AM
hi,
i think u can set this using some control statement...
ravi
‎2007 Apr 12 6:17 AM
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
‎2007 Apr 12 6:18 AM
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
‎2007 Apr 12 6:20 AM
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.