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

Control program A screen from program B

prabhu_s2
Active Contributor
0 Likes
297

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

1 ACCEPTED SOLUTION
Read only

huseyindereli
Active Contributor
0 Likes
270

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.

1 REPLY 1
Read only

huseyindereli
Active Contributor
0 Likes
271

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.