<?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: Using BAPI_BILLINGDOC_CREATEFROMDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199783#M1375914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Can you please let me know the steps that you are following to create the implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there is some thing wrong that you might be doing unintentionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 10:14:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-15T10:14:08Z</dc:date>
    <item>
      <title>Using BAPI_BILLINGDOC_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199779#M1375910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a requirement  that after the &lt;STRONG&gt;Delivery Document is created from VL01N, I need to process billing doc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For this, I found an exit - DELIVERY_PUBLISH in VL01N which can be useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put below code under method: PUBLISH_AFTER_SAVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method if_ex_delivery_publish~publish_after_save.&lt;/P&gt;&lt;P&gt;break devel2.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------" /&gt;&amp;amp;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; DATA DECLARATION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------" /&gt;&amp;amp;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: scr_xmclikp(17) type c value '(SAPLV53C)xmclikp',&lt;/P&gt;&lt;P&gt;header_return type table of bapireturn1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_header_data type table of bapivbrk,&lt;/P&gt;&lt;P&gt;wa_header_data type bapivbrk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_cc_data type table of bapiccard_vf,&lt;/P&gt;&lt;P&gt;wa_cc_data type bapiccard_vf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_bapikomv type table of bapikomv,&lt;/P&gt;&lt;P&gt;wa_bapikomv type bapikomv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'VL01N' and sy-uname = 'DEVEL2'.&lt;/P&gt;&lt;P&gt;call function 'BAPI_BILLINGDOC_CREATE'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;return = header_return&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what happens is that after I select 'Post Goods Issue' from VL01N, Delivery doc is automatically populated in VF01 under 'Document' column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the document number to be passed into billing_data_in for BAPI_BILLINGDOC_CREATEFROMDATA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I don't know what to pass for below tables.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;condition_data_in =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ccard_data_in =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2009 08:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199779#M1375910</guid>
      <dc:creator>ajay_mukundan2</dc:creator>
      <dc:date>2009-10-11T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_BILLINGDOC_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199780#M1375911</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_request-document_type = 'A'.&lt;/P&gt;&lt;P&gt;lt_request-document_numb = WA_DATA-vbeln.&lt;/P&gt;&lt;P&gt;lt_request-document_item = WA_DATA-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_request-material = wa_data-matnr.&lt;/P&gt;&lt;P&gt;lt_request-plant = WA_DATA-werks.&lt;/P&gt;&lt;P&gt;lt_request-stge_loc = lv_lgort.&lt;/P&gt;&lt;P&gt;lt_request-quantity_base__uom = wa_data-qty.&lt;/P&gt;&lt;P&gt;lt_request-delivery_date = sy-datum.&lt;/P&gt;&lt;P&gt;append lt_request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_DELIVERYPROCESSING_EXEC'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;request = lt_request&lt;/P&gt;&lt;P&gt;createditems = lt_createditems&lt;/P&gt;&lt;P&gt;return = lt_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this BAPI for delivery Processing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DELIVERY_UPDATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    VBKOK_WA                           = L_VBKOK&lt;/P&gt;&lt;P&gt;   SYNCHRON                           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_MESSAGES_UPDATE                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   COMMIT                             = 'X'&lt;/P&gt;&lt;P&gt;    DELIVERY                           = lt_createditems-DOCUMENT_NUMB&lt;/P&gt;&lt;P&gt;   UPDATE_PICKING                     = 'X'&lt;/P&gt;&lt;P&gt;   NICHT_SPERREN                      = 'X'&lt;/P&gt;&lt;P&gt;Use this Function module for Posting Goods Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Use the delivery no from the above bapi then use it in the function below.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Manesh.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 07:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199780#M1375911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T07:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_BILLINGDOC_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199781#M1375912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I had the same requirement, and based on some investigation i was able to find out the BADI which gets triggered to get the functionality achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BADI I have used is MB_DOCUMENT_BADI and the method MB_DOCUMENT_UPDATE, make sure you use the function module CALL FUNCTION 'RV_INVOICE_CREATE_BACKGROUND' IN UPDATE TASK to get the Invoice created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirements are that, for every delivery the Picking needs to be completed, so when the user click on the PGI automatically the Invoice gets created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sudhakar Pedhadodi on Oct 12, 2009 11:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 09:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199781#M1375912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_BILLINGDOC_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199782#M1375913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your method, but didnt work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using MB_DOCUMENT_BADI. As soon as I tried to activate the implementation, I got a pop up saying that my &lt;STRONG&gt;Implementation Migrated (see long text for instructions)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon saving, I get the error message: &lt;STRONG&gt;A customer implementation cannot be migrated into a SAP implementation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should I do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 13:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199782#M1375913</guid>
      <dc:creator>ajay_mukundan2</dc:creator>
      <dc:date>2009-10-12T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_BILLINGDOC_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199783#M1375914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Can you please let me know the steps that you are following to create the implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there is some thing wrong that you might be doing unintentionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 10:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-billingdoc-createfromdata/m-p/6199783#M1375914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T10:14:08Z</dc:date>
    </item>
  </channel>
</rss>

