<?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 in create billing document thr VF01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341696#M172836</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;you can try with &amp;lt;b&amp;gt;GN_INVOICE_CREATE&amp;lt;/b&amp;gt;, generally this is used to create invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2006 13:28:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-18T13:28:23Z</dc:date>
    <item>
      <title>Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341694#M172834</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 create a billing document for the delivery order number using VF01 through BDC batch input session. Here is the program flow,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. perform open_bdc.&lt;/P&gt;&lt;P&gt;2. perform populate_bdc_data.&lt;/P&gt;&lt;P&gt;3. perform insert_bdc_session.&lt;/P&gt;&lt;P&gt;4. perform call_transaction_using_VF01 - only to capture return error messages.&lt;/P&gt;&lt;P&gt;5. perform event_trigger - trigger an event which starts a job that is defined to run when the event is raised. The job will execute the RSBDCSUB.&lt;/P&gt;&lt;P&gt;6. perform close_bdc.&lt;/P&gt;&lt;P&gt;7. perform process_bdc - process the bdc session through&lt;/P&gt;&lt;P&gt;SUBMIT RSBDCSUB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, when creating billing document, the program not able to capture the return error message if there is any error occurs. The message tab (after CALL TRANSACTION) gives error message with message type as 'S'. so the program was not able to capture/display error records.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Is there any way to capture the return error message correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Any suitable BAPI available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl help me to sort out the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341694#M172834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341695#M172835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use  format_meessage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'PA30' USING IT_BDCDATA MODE 'A'&lt;/P&gt;&lt;P&gt;                                           UPDATE 'S'&lt;/P&gt;&lt;P&gt;                                   &amp;lt;b&amp;gt;MESSAGES INTO IT_MSG.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_MSG WHERE MSGTYP = 'E' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM CREATE_SESSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM INSERT_INTO_SESSION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ID        = IT_MSG-MSGID&lt;/P&gt;&lt;P&gt;        LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;        NO        = IT_MSG-MSGNR&lt;/P&gt;&lt;P&gt;        V1        = IT_MSG-MSGV1&lt;/P&gt;&lt;P&gt;        V2        = IT_MSG-MSGV2&lt;/P&gt;&lt;P&gt;        V3        = IT_MSG-MSGV3&lt;/P&gt;&lt;P&gt;        V4        = IT_MSG-MSGV4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        MSG       = V_MSG&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341695#M172835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341696#M172836</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;you can try with &amp;lt;b&amp;gt;GN_INVOICE_CREATE&amp;lt;/b&amp;gt;, generally this is used to create invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341696#M172836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341697#M172837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;WELCOME TO SDN&lt;/P&gt;&lt;P&gt;Use&amp;lt;b&amp;gt; Format_message&amp;lt;/b&amp;gt; fm&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LOOP AT IT_MSGS WHERE MSGTYP = 'E'&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_session.&lt;/P&gt;&lt;P&gt;perform insert_bdc_session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;b&amp;gt;'FORMAT_MESSAGE'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = IT_MSGS-MSGID&lt;/P&gt;&lt;P&gt;LANG = SY-LANGU&lt;/P&gt;&lt;P&gt;NO = IT_MSGS-MSGNR&lt;/P&gt;&lt;P&gt;V1 = IT_MSGS-MSGV1&lt;/P&gt;&lt;P&gt;V2 = IT_MSGS-MSGV2&lt;/P&gt;&lt;P&gt;V3 = IT_MSGS-MSGV3&lt;/P&gt;&lt;P&gt;V4 = IT_MSGS-MSGV4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG = W_MSGS&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341697#M172837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341698#M172838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these out&lt;/P&gt;&lt;P&gt;BAPI_BILLINGDOC_CREATE         &lt;/P&gt;&lt;P&gt;BAPI_BILLINGDOC_CREATEFROMDATA &lt;/P&gt;&lt;P&gt;BAPI_BILLINGDOC_CREATEMULTIPLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 13:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341698#M172838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341699#M172839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;Of course i am doing, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG WHERE MSGTYP = 'E'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE' &lt;/P&gt;&lt;P&gt;*capture the error message  &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not my issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After call transaction, ff the transaction fails, there are error messages like&lt;/P&gt;&lt;P&gt;'billing document were not created: see log' in IT_MSG. But the MSGTYP is 'S'. That was the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the MSGTYP is 'S', the program not able to capture the error records. I want to capture all error records and send it to recycle table to be re-processed in next batch run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regading BAPI_BILLINGDOC_CREATE, I tried it, it just internally execute call transaction VF01 and the returns the copy of IT_MSG(MESSAGE TAB).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding GN_INVOICE_CREATE, I haven't tried. Will update you soon. will it reurn any error msg or return table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 04:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341699#M172839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T04:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341700#M172840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with GN_INVOICE_CREATE...it doesn't work...it creates invoice based on that data but not on delivery oder...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually my program create invoice based on the reference delivery order number through VF01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other FM/BAPI wich creates invoice with return status?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 May 2006 10:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341700#M172840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-21T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341701#M172841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the FM: rv_invoice_create which creates Invoice for a delivery order number. It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks for your replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 11:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341701#M172841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in create billing document thr VF01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341702#M172842</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;we are facing the same problem. We are trying to create invoice from delivery number using RV_INVOICE_CREATE but we are getting runtime error for duplicate data in VBUK table. We are trying to put some data in XVBRK-ZUONR field as well. Any help is appreciated as we don't want to use BDC for VF01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Panchdev Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 09:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-create-billing-document-thr-vf01/m-p/1341702#M172842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-22T09:59:07Z</dc:date>
    </item>
  </channel>
</rss>

