<?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: User Exit for SD Billing: When generating Document Number in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171344#M997283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,Dear Pete,&lt;/P&gt;&lt;P&gt;Actually,I don't know what you exactly mean.&lt;/P&gt;&lt;P&gt;I want to find a userexit ,function module exit or a BAdI which can provide me with the Billing document number before it saved.         If you do know the solution,please explain it and let me know.  Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 18:38:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-11T18:38:24Z</dc:date>
    <item>
      <title>User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171342#M997281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I have the requirement to store some info to an add-on table when saving the billing document. As you know,the billing document number just generates at last time,before which it shows in form of '$0000001'.  So do you know which user exit will show me the true number of billing document when it is saved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 13:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171342#M997281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171343#M997282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have exactly the same issue in PM/CS when using orders and notifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A trick I have used in the past is to utilise an "at save" user-exit, then use the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM XYZ ON COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our case, this performs the XYZ form after the document number has been assigned by the system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PeteA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171343#M997282</guid>
      <dc:creator>peter_atkin</dc:creator>
      <dc:date>2008-07-11T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171344#M997283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,Dear Pete,&lt;/P&gt;&lt;P&gt;Actually,I don't know what you exactly mean.&lt;/P&gt;&lt;P&gt;I want to find a userexit ,function module exit or a BAdI which can provide me with the Billing document number before it saved.         If you do know the solution,please explain it and let me know.  Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 18:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171344#M997283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T18:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171345#M997284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example using user-exit IWO10009 (at saving a PM/CS order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you debug IWO10009 in create mode, then the order number has &lt;U&gt;not&lt;/U&gt; yet been assigned. We therefore use the ON COMMIT syntax to force the system to perform the code later in the process i.e. on commit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Note the u201Con commitu201D statement. This ensures the order number is 
* available during creation mode. 

if sy-binpt = ' ' and sy-uname &amp;lt;&amp;gt; u2018WF-BATCHu2019.
  perform after_number_assignment on commit.
endif.
 

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Include: ZXWOCF01
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Form: After_Number_Assignment
*&amp;amp;---------------------------------------------------------------------*
form after_number_assignment .

* perform your code here

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 07:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171345#M997284</guid>
      <dc:creator>peter_atkin</dc:creator>
      <dc:date>2008-07-12T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171346#M997285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pete,&lt;/P&gt;&lt;P&gt;Thanks for your explanation,but i still have confusion.&lt;/P&gt;&lt;P&gt;I wanna know where the Form "after_number_assignment"  was defined.  As I know , we could  just  append our codes in existing userexit form, do you mean we can append our own form n standard program??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 13:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171346#M997285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T13:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for SD Billing: When generating Document Number</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171347#M997286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stick the code in a suitable BADI or user-exit (preferably at the save event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PeteA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 13:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-sd-billing-when-generating-document-number/m-p/4171347#M997286</guid>
      <dc:creator>peter_atkin</dc:creator>
      <dc:date>2008-07-12T13:49:08Z</dc:date>
    </item>
  </channel>
</rss>

