<?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: data base tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899713#M54945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mano sri..&lt;/P&gt;&lt;P&gt;yes i am looking for billing document number for an sales order number, i want to display vbeln, kunnr from vbak, netwr zmeng from vbap and vbeln from vbrk.&lt;/P&gt;&lt;P&gt;so i have taken 4 internal tables, i have selected data from from vbak and vbap and placed in 2 different internal tables, for 3rd one i mean vbrk-vbeln i am facing a problem. and one more thng i am not able to declare the vbeln twice in an internal table. i want to display vbak-vbeln and vbrk-vbeln. so i want all the data into an single internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2005 14:50:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-21T14:50:06Z</dc:date>
    <item>
      <title>data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899708#M54940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;culd u plz tell how to move vbeln from vbak and vbeln from vbrk to an internal table..as both the vbeln's are different.and  primary key is vbeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 13:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899708#M54940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899709#M54941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you're looking for ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA LT_VBELN TYPE TABLE OF VBELN .

SELECT VBELN 
  FROM VBAK
  INTO TABLE LT_VBELN.

   SELECT VBELN 
     FROM VBAK
APPENDING TABLE LT_VBELN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 13:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899709#M54941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899710#M54942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way is to populate them first into 2 different internal tables and then append one into the other using append statement. For further problem, plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regds,&lt;/P&gt;&lt;P&gt;Ravikiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899710#M54942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899711#M54943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure that VBRK-XBLNR (billing reference document) refers back to the sales document VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, there are some document history tables that should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899711#M54943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899712#M54944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhu,&lt;/P&gt;&lt;P&gt;I guess your are looking for Billing Documnet for a given sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just need the Billing Documnet number , Go to table VBFA fetch the data passing Sales order number .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VBELN &lt;/P&gt;&lt;P&gt;       POSNR&lt;/P&gt;&lt;P&gt;into table it_coll_bill&lt;/P&gt;&lt;P&gt;from   vbfa&lt;/P&gt;&lt;P&gt;where vbelv = salesorder number and&lt;/P&gt;&lt;P&gt;posnr = sales item and&lt;/P&gt;&lt;P&gt;vbtyp_n = 'M'. " Invoice doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If need some more information for the document you could always go to VBRK and fecth the data for all entries of VBELN of it_coll_bill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you need anythign else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mano Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899712#M54944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899713#M54945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mano sri..&lt;/P&gt;&lt;P&gt;yes i am looking for billing document number for an sales order number, i want to display vbeln, kunnr from vbak, netwr zmeng from vbap and vbeln from vbrk.&lt;/P&gt;&lt;P&gt;so i have taken 4 internal tables, i have selected data from from vbak and vbap and placed in 2 different internal tables, for 3rd one i mean vbrk-vbeln i am facing a problem. and one more thng i am not able to declare the vbeln twice in an internal table. i want to display vbak-vbeln and vbrk-vbeln. so i want all the data into an single internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899713#M54945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899714#M54946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 doc number ( vbeln )It is not a problem, you can declare your final table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : begin of t_sales occurs 0,
             vbeln like vbak-vbeln,
             kunnr ....
             zmeng ....
             vbel2 like vbrk-vbeln, "This one for invoice N°
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 14:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899714#M54946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899715#M54947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types : begin of t_tab,&lt;/P&gt;&lt;P&gt;vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;kunnr type vbak-kunnr,&lt;/P&gt;&lt;P&gt;netwr type vbap-netwr,&lt;/P&gt;&lt;P&gt;zmeng type vbap-zmeng,&lt;/P&gt;&lt;P&gt;Billvbeln type vbrk-vbeln,&lt;/P&gt;&lt;P&gt;end of t_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab type standard table of t_tab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbak~vbeln&lt;/P&gt;&lt;P&gt;       vbak~kunnr&lt;/P&gt;&lt;P&gt;       vbap~netwr&lt;/P&gt;&lt;P&gt;       vbap~zmeng&lt;/P&gt;&lt;P&gt;       vbfa~vbeln as billvbeln&lt;/P&gt;&lt;P&gt;  into table it_tab&lt;/P&gt;&lt;P&gt;  from vbak&lt;/P&gt;&lt;P&gt;  inner join vbfa on&lt;/P&gt;&lt;P&gt;  vbak&lt;SUB&gt;vbeln = vbfa&lt;/SUB&gt;vbelv&lt;/P&gt;&lt;P&gt;  inner join vbap on&lt;/P&gt;&lt;P&gt;  vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;  where vbfa~vbtyp_n = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me knwo if it works.&lt;/P&gt;&lt;P&gt;Mano Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 15:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899715#M54947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899716#M54948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for billing document number for sales orders (I.E. you have a sales order and want the billing documents), you have to use table VBFA (Sales Document Flow). Use the sales order number VBAK-VBELN to get rows from this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBFA-VBELV is the sales order document and VBFA-VBELN is the billing document. You will have to check VBFA-VBTYP_N (Subsequent document category) to make sure you get billing documents (probably M and N). So you then go back to VBRK to get the billing documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also be aware that a sales document may ahve many billing documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 15:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899716#M54948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: data base tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899717#M54949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may also find this function module (BAPI) useful: 'BAPI_BILLINGDOC_GETLIST'.  Even if the BAPI itself does not fit your needs, you can examine the source code to see how SAP decided to get the billing documents for a given set of preceding documents (including sales order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James Gaddis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2005 15:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-base-tables/m-p/899717#M54949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-21T15:33:24Z</dc:date>
    </item>
  </channel>
</rss>

