<?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: Problem while creating Invoice Create Invoices in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942071#M1487481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="935735"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 12:02:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-18T12:02:37Z</dc:date>
    <item>
      <title>Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942069#M1487479</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;My requirement is to create an Invoice from a file sent by Informatica (Middleware).&lt;/P&gt;&lt;P&gt;I am using RV_INVOICE_CREATE tio create the invoice.I am using the below details to create the Invoice .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am filling these strucutres from VBAP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fill the KOMFK Structure&lt;/P&gt;&lt;P&gt;      gw_komfk-vbeln = gw_vbap-vbeln.&lt;/P&gt;&lt;P&gt;      gw_komfk-posnr = gw_vbap-posnr.&lt;/P&gt;&lt;P&gt;      gw_komfk-vbtyp = gc_c.&lt;/P&gt;&lt;P&gt;      gw_komfk-fkart = gc_z2.&lt;/P&gt;&lt;P&gt;      gw_komfk-fkimg = 1.&lt;/P&gt;&lt;P&gt;      gw_komfk-vrkme = gw_vbap-vrkme.&lt;/P&gt;&lt;P&gt;      APPEND gw_komfk TO gt_komfk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fill the KOMV structure&lt;/P&gt;&lt;P&gt;      gw_komv-kschl  = gc_loc.&lt;/P&gt;&lt;P&gt;      gw_komv-kbetr  = gw_final_tab-invoice_amnt.&lt;/P&gt;&lt;P&gt;      gw_komv-waers  = gc_usd.&lt;/P&gt;&lt;P&gt;      APPEND gw_komv TO gt_komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fill the VBRK Structure&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     gw_vbrk-vbeln  = gw_vbap-vbeln.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      gw_vbrk-bukrs  = gw_vbap-bukrs_vf.&lt;/P&gt;&lt;P&gt;      gw_vbrk-zuonr  = gw_final_tab-invoice_num.&lt;/P&gt;&lt;P&gt;      APPEND gw_vbrk TO gt_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then , I am calling the FM to create the Invoice as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RV_INVOICE_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          invoice_type = gc_z2&lt;/P&gt;&lt;P&gt;          vbsk_i       = gt_vbsk&lt;/P&gt;&lt;P&gt;          with_posting = 'B'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          vbsk_e       = vbsk_e&lt;/P&gt;&lt;P&gt;          od_bad_data  = bad_data&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          xkomfk       = gt_komfk&lt;/P&gt;&lt;P&gt;          xkomv        = gt_komv&lt;/P&gt;&lt;P&gt;          xthead       = xthead&lt;/P&gt;&lt;P&gt;          xvbfs        = xvbfs&lt;/P&gt;&lt;P&gt;          xvbpa        = xvbpa&lt;/P&gt;&lt;P&gt;          xvbrk        = gt_vbrk&lt;/P&gt;&lt;P&gt;          xvbrp        = xvbrp&lt;/P&gt;&lt;P&gt;          xvbss        = xvbss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        COMMIT WORK.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I am not able to successfully create an Invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest me if I am missing out something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asish Dash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942069#M1487479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942070#M1487480</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;Use standard bapi " BAPI_BILLINGDOC_CREATEMULTIPLE" or "BAPI_BILLINGDOC_CREATE" for creating invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942070#M1487480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942071#M1487481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="935735"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 12:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942071#M1487481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T12:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942072#M1487482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI  Asish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at the end you must call fm BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 12:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942072#M1487482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942073#M1487483</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;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developing a custom program , could you guide me how to fetch the below details : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                DELIVERY_DATE = RV60A-FBUDA&lt;/P&gt;&lt;P&gt;                PRICING_DATE     = RV60A-PRSDT&lt;/P&gt;&lt;P&gt;                INVOICE_DATE     = RV60A-FKDAT&lt;/P&gt;&lt;P&gt;                INVOICE_TYPE      = RV60A-FKART&lt;/P&gt;&lt;P&gt;                SELECT_DATE       = POSTAB-FKDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get the RV60A and POSTAB values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asish Dash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942073#M1487483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942074#M1487484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have VBAP entries, I'm assuming you have a preceding sales document. I was able to use another function module, to which I simply passed the document number and reference type (you may need to use a different type instead of C):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RV_INVOICE_CREATE_RFC'
    EXPORTING
      i_refdoc  = f_vbeln
      i_reftype = 'C'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Do COMMIT WORK after calling FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jelena Perfiljeva on May 18, 2010 1:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 17:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942074#M1487484</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2010-05-18T17:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while creating Invoice Create Invoices</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942075#M1487485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,,&lt;/P&gt;&lt;P&gt;Thanks all for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didi it myself and wed are able to create Invoices now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asish Dash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 09:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-creating-invoice-create-invoices/m-p/6942075#M1487485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-15T09:11:47Z</dc:date>
    </item>
  </channel>
</rss>

