<?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 billing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-billing/m-p/4184330#M1000233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to refresh conditiondata and billingdata before each new billingrecord .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and where is the if of the endif within the loop ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: A. de Smidt on Jul 16, 2008 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 07:08:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T07:08:07Z</dc:date>
    <item>
      <title>BAPI billing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-billing/m-p/4184329#M1000232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i am working with bap_billingdoc_createmultiple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am trying to create the billing,&lt;/P&gt;&lt;P&gt; if the customers are repeated it is adding the values of conditiontype it is adding all the records creating only one document for one customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bill1 INTO WA_BILL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_billingdata-salesorg = WA_bill1-sorg.&lt;/P&gt;&lt;P&gt;    wa_billingdata-distr_chan = WA_BILL1-dist.&lt;/P&gt;&lt;P&gt;    wa_billingdata-division = WA_BILL1-div.&lt;/P&gt;&lt;P&gt;    wa_billingdata-doc_type = 'ZSO5'.&lt;/P&gt;&lt;P&gt;    wa_billingdata-ordbilltyp = 'FX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_billingdata-bill_date = WA_BILL1-BDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_billingdata-sold_to = WA_BILL1-CUSTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_billingdata-price_date = WA_BILL1-BDATE.&lt;/P&gt;&lt;P&gt;    wa_billingdata-country = WA_BILL1-CNTRY.&lt;/P&gt;&lt;P&gt;    wa_billingdata-plant = WA_BILL1-PLANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_billingdata-material = WA_BILL1-MATDESC.&lt;/P&gt;&lt;P&gt;    wa_billingdata-REQ_QTY = '2'.&lt;/P&gt;&lt;P&gt;    wa_billingdata-currency = WA_BILL1-CURR.&lt;/P&gt;&lt;P&gt;    wa_billingdata-wbs_elem = it_posid-posid.&lt;/P&gt;&lt;P&gt;    append wa_billingdata to billingdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     wa_CONDITIONDATA-cond_value = WA_BILL1-ADVERTISCOST.&lt;/P&gt;&lt;P&gt;    wa_conditiondata-cond_type = 'EK01'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    conditiondata-cond_value = WA_BILL1-COMM.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   conditiondata-cond_type = 'ZCOM'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    append wa_conditiondata to conditiondata.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     CREATORDATAIN         = creaord&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TESTRUN               = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    POSTING               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;     BILLINGDATAIN         =  billingdata&lt;/P&gt;&lt;P&gt;     CONDITIONDATAIN       =  conditiondata&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CCARDDATAIN           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TEXTDATAIN            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ERRORS                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      RETURN                = bapiret&lt;/P&gt;&lt;P&gt;      SUCCESS               = succ&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me how to work this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have please send the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abap on Jul 16, 2008 8:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 06:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-billing/m-p/4184329#M1000232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T06:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI billing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-billing/m-p/4184330#M1000233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to refresh conditiondata and billingdata before each new billingrecord .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and where is the if of the endif within the loop ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: A. de Smidt on Jul 16, 2008 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 07:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-billing/m-p/4184330#M1000233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T07:08:07Z</dc:date>
    </item>
  </channel>
</rss>

