<?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: Call Transaction VA03 changing function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374578#M1642265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a small trick here doing actual BDC transaction in MODE = 'E', which will allow you to skip screens and take you to the last screen directly, showing tab (UER1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the below report in SE38 and replace order number 5046 with your own order number in below code and you can execute this report which will directly open Sales tab (UER1) on the given order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE = 'E' is used to skip successful screens and take directly to error screen or to completion of BDC. In this case since there are no errors anywhere it will take you to the end that is to display order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztv_va03.

INCLUDE bdcrecxy.

DATA: messtab TYPE TABLE OF bdcmsgcoll WITH HEADER LINE.

START-OF-SELECTION.


  PERFORM bdc_dynpro      USING 'SAPMV45A' '0102'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'VBAK-VBELN'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=UER1'.
  PERFORM bdc_field       USING 'VBAK-VBELN'
                                '5046'.

  CALL TRANSACTION 'VA03' USING bdcdata
                          MODE   'E'
                          UPDATE 'L'
                          MESSAGES INTO messtab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 18:25:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-16T18:25:23Z</dc:date>
    <item>
      <title>Call Transaction VA03 changing function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374577#M1642264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the following code in our program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'AUN' FIELD ztab-vbeln.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user is then dropped off in VA03 for the specified order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This opens the order in the default view from TVAK-UEVOR (UER2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are accessing orders using VA03, you have the option to choose which view to open the order with using buttons/function keys for either UER1, UER2, or UBST.  These will then supersede the value from TVAK-UEVOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to pass which of these functions you wish to use in the Call Transaction command?  Our business desires that we open the orders in the UER1 (Sales) view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bret&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 17:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374577#M1642264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-16T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction VA03 changing function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374578#M1642265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a small trick here doing actual BDC transaction in MODE = 'E', which will allow you to skip screens and take you to the last screen directly, showing tab (UER1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the below report in SE38 and replace order number 5046 with your own order number in below code and you can execute this report which will directly open Sales tab (UER1) on the given order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE = 'E' is used to skip successful screens and take directly to error screen or to completion of BDC. In this case since there are no errors anywhere it will take you to the end that is to display order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztv_va03.

INCLUDE bdcrecxy.

DATA: messtab TYPE TABLE OF bdcmsgcoll WITH HEADER LINE.

START-OF-SELECTION.


  PERFORM bdc_dynpro      USING 'SAPMV45A' '0102'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'VBAK-VBELN'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=UER1'.
  PERFORM bdc_field       USING 'VBAK-VBELN'
                                '5046'.

  CALL TRANSACTION 'VA03' USING bdcdata
                          MODE   'E'
                          UPDATE 'L'
                          MESSAGES INTO messtab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374578#M1642265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-16T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction VA03 changing function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374579#M1642266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A suggestion only...in similar cases, I have created a transaction that constructs a small BDC session and executes it.  There is no okcode for the last screen, so user ends up there.  You can record the transaction entry and navigation to screen you want....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be other ways to make the screen you want the default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374579#M1642266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-16T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transaction VA03 changing function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374580#M1642267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers, I'll pass them along to my development team to see what they think.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also wondering, as an alternate solution, if there is a user exit where you can set the value that is used instead.  We could then possibly use the Parameter IDs (e.g. AUN, but I'm not sure I can create my own "Z" parameter ID) or just specify it by Sales Org in a table and then redirect the transaction that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 19:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-va03-changing-function/m-p/8374580#M1642267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-17T19:51:19Z</dc:date>
    </item>
  </channel>
</rss>

