<?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: Billing Document in contract in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442005#M1053813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The billing document number should be in the sales document flow - table VBFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 15:09:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T15:09:34Z</dc:date>
    <item>
      <title>Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4441998#M1053806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report to display the contarct details with the billing line details. Its  basically is a combination of two reports which will show schedule line item detaisl on one hand and the billing plan lines on clicking another radiobutton. &lt;/P&gt;&lt;P&gt;Basically I want to bring in my billing document number in my report  which I am unable to bring so. I have used the following tables in teh form of jon to bring in all the details but I am not sure how to bring the billing document number in my report.&lt;/P&gt;&lt;P&gt;TABLES: vbak, vbap, wbrk, zsdsched, fplt, fpla, tvlvt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I include the billing document through join its giving me run-time as its takinga long long time to process. Kindly give some clue as how to bring in my billing document number in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4441998#M1053806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4441999#M1053807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any helpm on this please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could paste the part of report where I am facing teh problem. &lt;/P&gt;&lt;P&gt;Pleas ehelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4441999#M1053807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442000#M1053808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about using this join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VABK-VBELN &lt;DEL&gt;&amp;gt; VBPA-VBELN&lt;/DEL&gt;&amp;gt;LIPS--&amp;gt;VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIPS-VBELN&lt;DEL&gt;&amp;gt;VBRK-VGBEL &amp;amp; LIPS-POSNR&lt;/DEL&gt;&amp;gt;VBRK-VGPOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this you can read the billing document number which is VBRK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this is much more efficient than the other one but it might be worth a try.&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;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442000#M1053808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442001#M1053809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used this , can we add add what you mentioned in your previous reply?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM get_data .
*   Select Billing plan line records

*   Select the appropriate rental data.
IF  p_rental = 'X' .

  SELECT a~vbeln a~ktext a~erdat a~ernam a~audat a~vbtyp a~auart a~vkorg
   a~vtweg a~spart a~vkbur a~guebg a~gueen a~kunnr a~kvgr4
   b~posnr b~matnr b~charg b~matkl b~arktx b~pstyv b~zmeng
   b~zieme b~kdmat b~werks b~lgort b~vstel b~netpr b~kpein
   b~vkaus b~aufnr b~kmein b~shkzg b~oid_extbol b~oid_miscdl
   b~oidrc b~oid_ship AS kunwe b~zzwprofid c~datbi c~datab b~route
   e~fkdat e~nfdat e~fakwr e~fksaf e~afdat
   f~fpart f~bedat f~endat f~horiz g~bezei



     INTO CORRESPONDING FIELDS OF TABLE gt_sel
     FROM vbak AS a

         INNER JOIN vbap AS b ON a~vbeln = b~vbeln
         INNER JOIN vbkd AS d ON a~vbeln = d~vbeln
         INNER JOIN fplt AS e ON d~fplnr = e~fplnr
         INNER JOIN fpla AS f ON e~fplnr = f~fplnr
*         left outer join vbrp as m on a~vbeln = m~aubel
         LEFT OUTER JOIN tvlvt AS g ON b~vkaus = g~abrvw
                                       and g~spras = 'E'
         LEFT OUTER JOIN zsdsched AS c ON b~vbeln = c~vbeln
                                      AND b~posnr = c~posnr
       WHERE a~vbeln IN s_vbeln
       AND a~ktext IN s_ktext
       AND a~erdat IN s_erdat
       AND a~vbtyp = gc_g
       AND a~ernam IN s_ernam
       AND a~vkorg IN s_vkorg
       AND a~vtweg IN s_vtweg
       AND a~spart IN s_spart
       AND a~vkbur IN s_vkbur
       AND a~guebg IN s_guebg
       AND a~gueen IN s_gueen
       AND a~auart IN s_auart
       AND a~kunnr IN s_kunnr
       AND b~oid_ship IN s_kunwe
       AND b~werks IN s_werks
       AND b~lgort IN s_lgort
       AND b~vstel IN s_vstel
       AND b~route in s_route
       AND b~matnr IN s_matnr
       AND e~afdat IN s_afdat
       AND e~fksaf IN s_fksaf
       AND b~pstyv in s_pstyv.

    SORT gt_sel.
IF NOT gt_sel[] IS INITIAL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 20:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442001#M1053809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T20:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442002#M1053810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since MATNR appears to be part of the selection criteria, I would add table VAPMA to the JOIN and SELECT MATNR from there. VAPMA is a secondary index table for sales orders based on material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 20:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442002#M1053810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442003#M1053811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is that lots of other things in the report depend on the joins that are presently there . The only thing that I need to get into my report is the billing document number . Is that possible without changing the present tables and usoing the tables already there with addition of some other tables to get in teh billing document number in my report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 20:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442003#M1053811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442004#M1053812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could I use VBRK or VBRp to accomplish this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 14:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442004#M1053812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Billing Document in contract</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442005#M1053813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The billing document number should be in the sales document flow - table VBFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 15:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/billing-document-in-contract/m-p/4442005#M1053813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T15:09:34Z</dc:date>
    </item>
  </channel>
</rss>

