<?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: Sales order create/append difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685205#M1576402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm quite sure the BAPI doesn't populate VA01/VA01. It populates the transaction code u call it from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, u call the bapi from tcode 'ZABC', it populates 'ZABC' in the sy-tcode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 12:17:15 GMT</pubDate>
    <dc:creator>tabraiz_khan</dc:creator>
    <dc:date>2011-02-10T12:17:15Z</dc:date>
    <item>
      <title>Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685201#M1576398</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've been trying to find a standard way to find out whether a sales order is being created or appended through any means other than the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) VBAK-VBELN can be checked to see if the sales order number has beencreated while in a user exit&lt;/P&gt;&lt;P&gt;2) SY-TCODE can be checked for value 'VA01' or 'VA02' - of course this will not work while calling a BAPI to create the order&lt;/P&gt;&lt;P&gt;3) T180-TRTYP Again, this is line specific, it will only show if a line is being inserted or amended - so this doesn't help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know any other way, preferrable using a SAP standard field to figure out the difference between sales order create and append?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tabraiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685201#M1576398</guid>
      <dc:creator>tabraiz_khan</dc:creator>
      <dc:date>2011-02-10T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685202#M1576399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using change log tables CDHDR/CDPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the change indicator is &lt;STRONG&gt;I&lt;/STRONG&gt; and if it does not contain &lt;STRONG&gt;U&lt;/STRONG&gt; or &lt;STRONG&gt;D&lt;/STRONG&gt;...then its created and not changed else its created and was changed later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this answer your question or you meant somethig else ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 11:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685202#M1576399</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-02-10T11:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685203#M1576400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm doing this check during runtime in a user exit. I don't believe I can use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685203#M1576400</guid>
      <dc:creator>tabraiz_khan</dc:creator>
      <dc:date>2011-02-10T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685204#M1576401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you need to check whether the order is being created or changed in your user exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using sy-tcode as you said you can do it .... Using bapi just place a break point in your exit and check whether it triggers when executed through bapi ... if so you can code it and accomplish it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685204#M1576401</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-02-10T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685205#M1576402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm quite sure the BAPI doesn't populate VA01/VA01. It populates the transaction code u call it from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, u call the bapi from tcode 'ZABC', it populates 'ZABC' in the sy-tcode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685205#M1576402</guid>
      <dc:creator>tabraiz_khan</dc:creator>
      <dc:date>2011-02-10T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order create/append difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685206#M1576403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What i mean to say is if the exit triggers in bapi execution and &lt;/P&gt;&lt;P&gt;if the any of the parameter in your exits has the document number,&lt;/P&gt;&lt;P&gt;then you can just do a select single from db and confirm whether its change or create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( sy-tcode = 'BAPI' ) or ( sy-code CP 'Z*' )  or ( sy-tcode = 'SE38' ) or ( sy-tcode = 'SE37' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from abc.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif sy-tcode = 'VA01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif sy-tcode = 'VA02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;did you check the field TCODE in table T180&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 12:23:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-create-append-difference/m-p/7685206#M1576403</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-02-10T12:23:39Z</dc:date>
    </item>
  </channel>
</rss>

