<?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: Calling Transaction in a new session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086146#M1971362</link>
    <description>&lt;P&gt;You just need CALL TRANSACTION 'XXXX' (almost all the FMs you mention simply do that) to call another transaction as a new "internal session" over the internal session of VA03, but in the same "external" session. But if the called transaction does something like LEAVE TO TRANSACTION or SUBMIT without AND RETURN, that will reset all existing internal sessions in the current external session (and will "kill VA03").&lt;/P&gt;&lt;P&gt;The solution is to start the transaction in a new external session by using aRFC as explained by &lt;A href="https://answers.sap.com/users/4022/gabmarian.html"&gt;Gábor Márián&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 11:18:03 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-09-11T11:18:03Z</dc:date>
    <item>
      <title>Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086144#M1971360</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have a requirement wherein the scenario is 'I am in a standard transaction code say VA03 and i placed an option/button kind of thing in 'Help' menu bar. When i click on that option i call a custom transaction which should open in a separate session without killing the VA03' The thing is i tried with all possible standard FMs. What is happening is that the custom transaction opens in a new session but the standard VA03 gets killed and it automatically goes to home screen. &lt;/P&gt;
  &lt;P&gt;FMs i tried using:&lt;/P&gt;
  &lt;P&gt;ABAP4_CALL_TRANSACTION &lt;/P&gt;
  &lt;P&gt;CKEKUTIL_CALL_TRANSACTION_TASK&lt;/P&gt;
  &lt;P&gt;COPF_CALL_TRANSACTION&lt;/P&gt;
  &lt;P&gt;RFC_CALL_TRANSACTION_USING&lt;/P&gt;
  &lt;P&gt;CC_CALL_TRANSACTION_NEW_TASK&lt;/P&gt;
  &lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;
  &lt;P&gt;SAPGUI_SET_FUNCTIONCODE&lt;/P&gt;
  &lt;P&gt;and also CALL TRANSACTION(both normal and static method of a predefined class) and LEAVE TO TRANSACTION.&lt;/P&gt;
  &lt;P&gt;PS: I dont want to pass any value between the screens. The thing is custom transaction should open in a new session and standard screen should remain the same&lt;/P&gt;
  &lt;P&gt;Thanks and Regards,&lt;/P&gt;
  &lt;P&gt;Muralidhar BA&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 10:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086144#M1971360</guid>
      <dc:creator>muralidhar2796</dc:creator>
      <dc:date>2019-09-11T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086145#M1971361</link>
      <description>&lt;P&gt;What you can do is to use an RFC capable function module and call it thru aRFC:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'MYTCODE'
    EXPORTING
      tcode = 'MYTCODE'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The dialog handling of RFC calls is documented &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-US/abenrfc_dialog.htm"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086145#M1971361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-11T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086146#M1971362</link>
      <description>&lt;P&gt;You just need CALL TRANSACTION 'XXXX' (almost all the FMs you mention simply do that) to call another transaction as a new "internal session" over the internal session of VA03, but in the same "external" session. But if the called transaction does something like LEAVE TO TRANSACTION or SUBMIT without AND RETURN, that will reset all existing internal sessions in the current external session (and will "kill VA03").&lt;/P&gt;&lt;P&gt;The solution is to start the transaction in a new external session by using aRFC as explained by &lt;A href="https://answers.sap.com/users/4022/gabmarian.html"&gt;Gábor Márián&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086146#M1971362</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-09-11T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086147#M1971363</link>
      <description>&lt;P&gt;Hi Gabor and Sandra,&lt;/P&gt;&lt;P&gt;I just tried the same. It works the same way as i mentioned. If you can help me with any other way, it would be great.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muralidhar&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 03:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086147#M1971363</guid>
      <dc:creator>muralidhar2796</dc:creator>
      <dc:date>2019-09-12T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086148#M1971364</link>
      <description>&lt;P&gt;Hi Muralidhar,&lt;/P&gt;&lt;P&gt;I executed FM 'SAPGUI_SET_FUNCTIONCODE'  in SE37, a new session is created for va03 .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
      EXPORTING
        functioncode           = '/OVA03'
      EXCEPTIONS
        function_not_supported = 1
        OTHERS                 = 2.&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2019 04:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086148#M1971364</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2019-09-12T04:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086149#M1971365</link>
      <description>&lt;P&gt;There is no authorization control with SAPGUI_SET_FUNCTIONCODE, you should check if SAP really control the authorization on the tcode before using it&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 05:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086149#M1971365</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-09-12T05:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086150#M1971366</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;muralidhar2796&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Could you share the code you tried and in what exit you were using it?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 06:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086150#M1971366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-12T06:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086151#M1971367</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1730500-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;This is the one..  &lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 06:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086151#M1971367</guid>
      <dc:creator>muralidhar2796</dc:creator>
      <dc:date>2019-09-12T06:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086152#M1971368</link>
      <description>&lt;P&gt;if you create a dynpro screen, over there you call needed transaction code. and from VA03 you call your custom screen as pop-up for example, i think you will have what you want...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086152#M1971368</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-09-12T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086153#M1971369</link>
      <description>&lt;P&gt;Muralidhar, I just copy pasted your code and it works fine for me..&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 11:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086153#M1971369</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-09-12T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086154#M1971370</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;muralidhar2796&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you call it from a user exit of VA03? So it does open the new external session but it goes back to the session manager in the original session?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 12:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086154#M1971370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-09-12T12:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Transaction in a new session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086155#M1971371</link>
      <description>&lt;P&gt;I called it from the menu bar with an extra option placed in Help menu using menu painter..&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 04:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-in-a-new-session/m-p/12086155#M1971371</guid>
      <dc:creator>muralidhar2796</dc:creator>
      <dc:date>2019-09-13T04:23:12Z</dc:date>
    </item>
  </channel>
</rss>

