<?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: SD-Pricing Routines - Invoice Split in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237404#M1011676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue has been resolved using following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBRK[]') TO &amp;lt;fs_vbrk&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBPA[]') TO &amp;lt;fs_vbpa&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XKOMV[]') TO &amp;lt;fs_komv&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I recieve &lt;STRONG&gt;GETWA_NOT_ASSIGNED&lt;/STRONG&gt; runtime error in some cases, any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Checking for sy-subrc as follows is still getting into the error:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBRK[]') TO &amp;lt;fs_vbrk&amp;gt;.&lt;/STRONG&gt; &amp;lt;-- &lt;U&gt;Error occurs here&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how the runtime error be avoided...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;-Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 05:05:13 GMT</pubDate>
    <dc:creator>aabhas_wilmar</dc:creator>
    <dc:date>2008-08-06T05:05:13Z</dc:date>
    <item>
      <title>SD-Pricing Routines - Invoice Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237403#M1011675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a routine which splits the invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As n example, we have three deliveries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delv1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delv2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delv3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And, acording to the logic for split, all deliveries gets splitted into separate invoices... &lt;STRONG&gt;Inv1, Inv2, and Inv3.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in the logic, we also check the prior invoices created on the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously created on the same date and prior dates invoices are available in VBRK, and we can check it there, &lt;STRONG&gt;&lt;U&gt;but&lt;/U&gt;&lt;/STRONG&gt; if in the same billing run, deliveries are splitted to three invoices, and we are currently in the routine for second invoice being created, &lt;STRONG&gt;how can I check if the Inv1 has been created&lt;/STRONG&gt;, and its related data... because the Save has not completed yet, it doesnt go and sits into database, it must be in some structure during the billing run... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 00:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237403#M1011675</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-08-06T00:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: SD-Pricing Routines - Invoice Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237404#M1011676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue has been resolved using following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBRK[]') TO &amp;lt;fs_vbrk&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBPA[]') TO &amp;lt;fs_vbpa&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XKOMV[]') TO &amp;lt;fs_komv&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I recieve &lt;STRONG&gt;GETWA_NOT_ASSIGNED&lt;/STRONG&gt; runtime error in some cases, any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Checking for sy-subrc as follows is still getting into the error:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ASSIGN ('(SAPLV60A)XVBRK[]') TO &amp;lt;fs_vbrk&amp;gt;.&lt;/STRONG&gt; &amp;lt;-- &lt;U&gt;Error occurs here&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how the runtime error be avoided...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;-Aabhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237404#M1011676</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-08-06T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: SD-Pricing Routines - Invoice Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237405#M1011677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Asbhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GETWA_NOT_ASSIGNED  is generally occured when we not maintain fieldcat or some variable properly.please check once if any of field may be differ from their decleration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237405#M1011677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: SD-Pricing Routines - Invoice Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237406#M1011678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, in general, this error occurs whenever an access is made to an unassigned field-symbol...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i guess we can make a check if a field symbol is not assigned using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF &amp;lt;fs&amp;gt; IS ASSIGNED.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here the error occurs right at the moment it is trying to assign the field symbol... and throwing the run time error... instead of going to the IF check...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other clues, to avoid this runtime error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2008 00:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237406#M1011678</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-08-07T00:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: SD-Pricing Routines - Invoice Split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237407#M1011679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved. &lt;/P&gt;&lt;P&gt;Refer thread: &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="998217"&gt;&lt;/A&gt; for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 03:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-pricing-routines-invoice-split/m-p/4237407#M1011679</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2008-09-26T03:34:07Z</dc:date>
    </item>
  </channel>
</rss>

