<?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: BAPI To create a collective billing document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-a-collective-billing-document/m-p/1508495#M234693</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;Please find the sample code for Billing document BAPI. Please award the points if it is working for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_billing-salesorg = vbak-vkorg.&lt;/P&gt;&lt;P&gt;t_billing-DISTR_CHAN = vbak-vtweg.&lt;/P&gt;&lt;P&gt;t_billing-DIVISION = vbak-spart.&lt;/P&gt;&lt;P&gt;t_billing-DOC_TYPE = vbak-auart.&lt;/P&gt;&lt;P&gt;t_billing-ref_doc = vbak-vbeln.&lt;/P&gt;&lt;P&gt;t_billing-ref_item = vbap-posnr.&lt;/P&gt;&lt;P&gt;t_billing-doc_number = vbak-vbeln.&lt;/P&gt;&lt;P&gt;t_billing-ITM_NUMBER = vbap-posnr.&lt;/P&gt;&lt;P&gt;t_billing-ordbilltyp = 'BILLING TYPE'.&lt;/P&gt;&lt;P&gt;t_billing-price_date = sy-datum.&lt;/P&gt;&lt;P&gt;t_billing-ref_doc_ca = vbak-vbtyp.&lt;/P&gt;&lt;P&gt;t_billing-sold_to = vbak-kunnr.&lt;/P&gt;&lt;P&gt;t_billing-material = vbap-matnr.&lt;/P&gt;&lt;P&gt;t_billing-plant = vbap-werks.&lt;/P&gt;&lt;P&gt;APPEND t_billing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;billingdatain = t_billing&lt;/P&gt;&lt;P&gt;return = t_return&lt;/P&gt;&lt;P&gt;success = t_success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2006 15:22:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-01T15:22:33Z</dc:date>
    <item>
      <title>BAPI To create a collective billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-a-collective-billing-document/m-p/1508494#M234692</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;   I have to know a BAPI for creating a billing document for a sold-to party having many sales documents. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.. I have to create a single billing document for the below condition....&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;     sold-to party -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   sales documents   &lt;/P&gt;&lt;P&gt;       5000    ---         40001                         &lt;/P&gt;&lt;P&gt;               ---       (creditmemo)                      &lt;/P&gt;&lt;P&gt;       5000    ---         40002          &lt;/P&gt;&lt;P&gt;                       (creditmemo)    &lt;/P&gt;&lt;P&gt;       Billing document&lt;/P&gt;&lt;P&gt;       only one for both&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;Sold to party 5000 has two sales documents&lt;/P&gt;&lt;P&gt;whose order type is ZCMR (credit memo request) for which i have to create one billing document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are all the conditions to be met for creating such a billing document?&lt;/P&gt;&lt;P&gt;Let me know some pointers how to use the BAPI by passing parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;A.Karthikeyan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 07:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-a-collective-billing-document/m-p/1508494#M234692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T07:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI To create a collective billing document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-a-collective-billing-document/m-p/1508495#M234693</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;Please find the sample code for Billing document BAPI. Please award the points if it is working for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_billing-salesorg = vbak-vkorg.&lt;/P&gt;&lt;P&gt;t_billing-DISTR_CHAN = vbak-vtweg.&lt;/P&gt;&lt;P&gt;t_billing-DIVISION = vbak-spart.&lt;/P&gt;&lt;P&gt;t_billing-DOC_TYPE = vbak-auart.&lt;/P&gt;&lt;P&gt;t_billing-ref_doc = vbak-vbeln.&lt;/P&gt;&lt;P&gt;t_billing-ref_item = vbap-posnr.&lt;/P&gt;&lt;P&gt;t_billing-doc_number = vbak-vbeln.&lt;/P&gt;&lt;P&gt;t_billing-ITM_NUMBER = vbap-posnr.&lt;/P&gt;&lt;P&gt;t_billing-ordbilltyp = 'BILLING TYPE'.&lt;/P&gt;&lt;P&gt;t_billing-price_date = sy-datum.&lt;/P&gt;&lt;P&gt;t_billing-ref_doc_ca = vbak-vbtyp.&lt;/P&gt;&lt;P&gt;t_billing-sold_to = vbak-kunnr.&lt;/P&gt;&lt;P&gt;t_billing-material = vbap-matnr.&lt;/P&gt;&lt;P&gt;t_billing-plant = vbap-werks.&lt;/P&gt;&lt;P&gt;APPEND t_billing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;billingdatain = t_billing&lt;/P&gt;&lt;P&gt;return = t_return&lt;/P&gt;&lt;P&gt;success = t_success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 15:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-to-create-a-collective-billing-document/m-p/1508495#M234693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T15:22:33Z</dc:date>
    </item>
  </channel>
</rss>

