<?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 User Exits-Help Needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736779#M635683</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; I need a small help.I am implementing a custom enhancement for Sales Orders.&lt;/P&gt;&lt;P&gt; For this,I am using the User Exit SAVE_DOCUMENT_PREPARE in the standard program MV45FZZ(Include in SAPMV45A).I wrote a small logic,that gets triggered each time a Sales Order is created or Changed through VA01 or VA02 respectively.&lt;/P&gt;&lt;P&gt;For &amp;lt;b&amp;gt;VA02&amp;lt;/b&amp;gt; i.e., &amp;lt;b&amp;gt;change&amp;lt;/b&amp;gt; my logic works pretty well.I am capturing the current Sales Order Number using &amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt; and implementing my logic.&lt;/P&gt;&lt;P&gt;But while &amp;lt;b&amp;gt;creation&amp;lt;/b&amp;gt; i.e., &amp;lt;b&amp;gt;VA01&amp;lt;/b&amp;gt;,I am using the same logic and trying to capture current Sales Order through &amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt;(not yet saved).&lt;/P&gt;&lt;P&gt;But,&amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt; is blank when I am debugging.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Where does the Sales Order Number get saved,while it is being created i.e., before being saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 05:57:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T05:57:47Z</dc:date>
    <item>
      <title>User Exits-Help Needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736779#M635683</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; I need a small help.I am implementing a custom enhancement for Sales Orders.&lt;/P&gt;&lt;P&gt; For this,I am using the User Exit SAVE_DOCUMENT_PREPARE in the standard program MV45FZZ(Include in SAPMV45A).I wrote a small logic,that gets triggered each time a Sales Order is created or Changed through VA01 or VA02 respectively.&lt;/P&gt;&lt;P&gt;For &amp;lt;b&amp;gt;VA02&amp;lt;/b&amp;gt; i.e., &amp;lt;b&amp;gt;change&amp;lt;/b&amp;gt; my logic works pretty well.I am capturing the current Sales Order Number using &amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt; and implementing my logic.&lt;/P&gt;&lt;P&gt;But while &amp;lt;b&amp;gt;creation&amp;lt;/b&amp;gt; i.e., &amp;lt;b&amp;gt;VA01&amp;lt;/b&amp;gt;,I am using the same logic and trying to capture current Sales Order through &amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt;(not yet saved).&lt;/P&gt;&lt;P&gt;But,&amp;lt;b&amp;gt;XVBAP-VBELN&amp;lt;/b&amp;gt; is blank when I am debugging.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Where does the Sales Order Number get saved,while it is being created i.e., before being saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736779#M635683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T05:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: User Exits-Help Needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736780#M635684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Masood,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not saved to anywhere (in the database), before it is saved. It exists only in the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the logic which you applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 06:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736780#M635684</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-11T06:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: User Exits-Help Needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736781#M635685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the value of &amp;lt;b&amp;gt;vbak-vbeln&amp;lt;/b&amp;gt; in the subroutine &amp;lt;b&amp;gt;userexit_save_document&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make a note of the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;USEREXIT_SAVE_DOCUMENT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use this user exit to fill user-specific statistics update tables.&lt;/P&gt;&lt;P&gt;The user exit is called up by the FORM routine BELEG-SICHERN before&lt;/P&gt;&lt;P&gt;the COMMIT command.&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;If a standard field is changed, the field r185d-dataloss is set to&lt;/P&gt;&lt;P&gt;X. The system queries this indicator at the beginning of the safety&lt;/P&gt;&lt;P&gt;routine. This is why this indicator must also be set during the&lt;/P&gt;&lt;P&gt;maintenance of user-specific tables that are also to be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;USEREXIT_SAVE_DOCUMENT_PREPARE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use this user exit to make certain changes or checks immediately&lt;/P&gt;&lt;P&gt;before saving a document. It is the last possibility for changing or&lt;/P&gt;&lt;P&gt;checking a document before posting.&lt;/P&gt;&lt;P&gt;The user exit is carried out at the beginning of the FORM routine&lt;/P&gt;&lt;P&gt;BELEG_SICHERN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 06:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736781#M635685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T06:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: User Exits-Help Needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736782#M635686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt; I need to check the Pricing date PRSDT in VBKD for the Current Sales Order.If it is less than a value(Constant Date),I need to place a Billing Block.&lt;/P&gt;&lt;P&gt;While changing i.e., VA02,I can access XVBAP-VBELN and retrieve PRSDT from VBKD and check it.&lt;/P&gt;&lt;P&gt;But,while Creation i.e., VA01, XVBAP-VBELN is blank.&lt;/P&gt;&lt;P&gt;How can I get the current Sales Order while creation through VA01 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 06:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits-help-needed/m-p/2736782#M635686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T06:32:32Z</dc:date>
    </item>
  </channel>
</rss>

