‎2009 Jul 27 11:32 AM
Hi
I have a screen program A displaying the input screen and i need to decide and place the cursor position of the screen program A from another program B. For this i implemented local class handlers for positioning the curosr within the program A during PBO event. Now i need help on how to control the cursor position fro program B? the cursor position will be determined based on some condition but how to place the cursor to another field in program A by executing program B in another session. pls help.
thkx
Prabhu
‎2009 Jul 27 2:50 PM
Hi ,
I'm not sure that i could clearly understand your question however this may help.
inside the PAI event of program A ;
submit program_B
using selection-set .... " your custom criteria
with p_date = sy-datum " your custom criteria
and return.
clear : field_to_decide.
import field_to_decide to field_to_decide from memory id 'ZFIELD_MID'.
IF field_to_decide = 'X'.
SET CURSOR ....
ENDIF.
‎2009 Jul 27 2:50 PM
Hi ,
I'm not sure that i could clearly understand your question however this may help.
inside the PAI event of program A ;
submit program_B
using selection-set .... " your custom criteria
with p_date = sy-datum " your custom criteria
and return.
clear : field_to_decide.
import field_to_decide to field_to_decide from memory id 'ZFIELD_MID'.
IF field_to_decide = 'X'.
SET CURSOR ....
ENDIF.