<?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 Sales Document from billing document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079707#M975469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;How can i get the corresponding sales document number form a billing document number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 08:58:45 GMT</pubDate>
    <dc:creator>rahul2000</dc:creator>
    <dc:date>2008-07-03T08:58:45Z</dc:date>
    <item>
      <title>Sales Document from billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079707#M975469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;How can i get the corresponding sales document number form a billing document number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 08:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079707#M975469</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-07-03T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document from billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079708#M975470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using the table VBFA (Document flow table) u can get&lt;/P&gt;&lt;P&gt;corresponding sales document number form a billing document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the Precending , Subsequent documents and the document type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaya Vani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 09:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079708#M975470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T09:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document from billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079709#M975471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out the table VBRP &lt;/P&gt;&lt;P&gt;there u get billing document no. and &lt;/P&gt;&lt;P&gt;Sales Document aubel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 09:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079709#M975471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document from billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079710#M975472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at the below code.. It will give you the sales document no corresponding to the billing document no:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_comwa TYPE vbco6,&lt;/P&gt;&lt;P&gt;      i_vbfa TYPE STANDARD TABLE OF vbfa INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_vbfa TYPE vbfa,&lt;/P&gt;&lt;P&gt;      l_vbeln TYPE vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*billing document no&lt;/P&gt;&lt;P&gt;l_vbeln = '90000049'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Padding leading zeros&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input  = l_vbeln&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    output = wa_comwa-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the order info&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    belegtyp      = 'M'                      "Billing docu&lt;/P&gt;&lt;P&gt;    comwa         = wa_comwa&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    vbfa_tab      = i_vbfa&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    no_vbfa       = 1&lt;/P&gt;&lt;P&gt;    no_vbuk_found = 2&lt;/P&gt;&lt;P&gt;    OTHERS        = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  READ TABLE i_vbfa INTO wa_vbfa&lt;/P&gt;&lt;P&gt;    WITH KEY vbtyp_n = 'J'                   "Shipment&lt;/P&gt;&lt;P&gt;    vbtyp_v = 'C'.                           "Order&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Display order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WRITE wa_vbfa-vbelv.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Please reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 10:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079710#M975472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T10:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document from billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079711#M975473</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;Pass the Billing document no to the table VBFA -Vbeln using the condition vbtyp_v = 'C'&lt;/P&gt;&lt;P&gt;Get the VBELV value from the VBFA .&lt;/P&gt;&lt;P&gt;This is the sales document number .Pass this value in Vbak/Vbap - vbeln to get the sales details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Y.R.Prem Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 10:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-from-billing-document/m-p/4079711#M975473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T10:37:42Z</dc:date>
    </item>
  </channel>
</rss>

