<?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 Va01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744203#M637817</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;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;For VA02 i.e., change my logic works pretty well.I am capturing the current Sales Order Number using XVBAP-VBELN and implementing my logic.&lt;/P&gt;&lt;P&gt;But while creation i.e., VA01,I am using the same logic and trying to capture current Sales Order through XVBAP-VBELN(not yet saved).&lt;/P&gt;&lt;P&gt;But,XVBAP-VBELN 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 stored,while it is being created i.e., before being updated to VBAK-VBELN.(before commit).&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 07:25:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T07:25:48Z</dc:date>
    <item>
      <title>Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744203#M637817</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;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;For VA02 i.e., change my logic works pretty well.I am capturing the current Sales Order Number using XVBAP-VBELN and implementing my logic.&lt;/P&gt;&lt;P&gt;But while creation i.e., VA01,I am using the same logic and trying to capture current Sales Order through XVBAP-VBELN(not yet saved).&lt;/P&gt;&lt;P&gt;But,XVBAP-VBELN 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 stored,while it is being created i.e., before being updated to VBAK-VBELN.(before commit).&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 07:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744203#M637817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744204#M637818</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;u can get the sales documentnumber in XVBAK  temporary table....chek the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 07:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744204#M637818</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-11T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744205#M637819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,it is blank..while creation.&lt;/P&gt;&lt;P&gt;any other option. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744205#M637819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744206#M637820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Masood,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you creating the sales order in VA01?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are creating sales order (VA01) by using Call transaction then the message with the new sale order number will be in the messages table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION 'VA01' USING bdcdata OPTIONS FROM opt&lt;/P&gt;&lt;P&gt;                    MESSAGES INTO g_t_messtab.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    IF l_f_vbeln IS INITIAL.&lt;/P&gt;&lt;P&gt;      READ TABLE g_t_messtab WITH KEY tcode = 'VA01'&lt;/P&gt;&lt;P&gt;                                      dyname = 'SAPMV45A'&lt;/P&gt;&lt;P&gt;                                      dynumb = '4001'&lt;/P&gt;&lt;P&gt;                                      msgtyp = 'S'&lt;/P&gt;&lt;P&gt;                                      msgid = 'V1'&lt;/P&gt;&lt;P&gt;                                      msgnr = '261'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        l_f_vbeln = g_t_messtab-msgv2.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CLEAR l_f_vbeln.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;l_f_ebeln is the field where i will getting the new sale order number.&lt;/P&gt;&lt;P&gt;i will use it for future purposes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744206#M637820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744207#M637821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i missunderstood you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gianpietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744207#M637821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T09:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744208#M637822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; there would be a structure NRIV, Which holds the number temporarily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward points.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744208#M637822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744209#M637823</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;  If you have got the answer for this please share. &lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 07:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2744209#M637823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T07:04:33Z</dc:date>
    </item>
  </channel>
</rss>

