<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Control program A screen from program B in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-program-a-screen-from-program-b/m-p/5879475#M1324647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure that i could clearly understand your question however this may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside the PAI event of program A ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 13:50:24 GMT</pubDate>
    <dc:creator>huseyindereli</dc:creator>
    <dc:date>2009-07-27T13:50:24Z</dc:date>
    <item>
      <title>Control program A screen from program B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-program-a-screen-from-program-b/m-p/5879474#M1324646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thkx&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-program-a-screen-from-program-b/m-p/5879474#M1324646</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2009-07-27T10:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Control program A screen from program B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-program-a-screen-from-program-b/m-p/5879475#M1324647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure that i could clearly understand your question however this may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside the PAI event of program A ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 13:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-program-a-screen-from-program-b/m-p/5879475#M1324647</guid>
      <dc:creator>huseyindereli</dc:creator>
      <dc:date>2009-07-27T13:50:24Z</dc:date>
    </item>
  </channel>
</rss>

