<?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 BAPI_INCOMINGINVOICE_PARK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626238#M1570811</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;try to park a document with MIR7 and put a break-point in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include LMRMPU04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*------ incoming invoice ---------------------------------------------*
  CALL FUNCTION 'MRM_INVOICE_DOCUMENT_POST' IN UPDATE TASK
    EXPORTING
      i_rbkp         = s_rbkp
      i_rbkp_blocked = s_rbkp_blocked
      i_rbkpb        = s_rbkpb
....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems the document is created here before the COMMIT WORK (include LMR1MF0D routine DOCUMENT_PARK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 09:55:43 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2011-02-21T09:55:43Z</dc:date>
    <item>
      <title>Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626231#M1570804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this question has been asked before many years ago but we are trying to use BAPI BAPI_INCOMINGINVOICE_PARK to park invoice but we get the error : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter goods receipt data only when working with GR-based IV&lt;/P&gt;&lt;P&gt;Enter a reference to a valid goods receipt (line 000001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not appropriate for these PO's, infact MIR7 deals with this situation by quite happily parking them using MRM_INVOICE_PARK. Unfortunately  BAPI_INCOMINGINVOICE_PARK  specifically catches this situation and raises an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----- ... GR based IV, but no GR data in invoice item ---------------*
*----- ... (exception: service PO needs entry sheet number) ----------*
  IF (     i_itemdata-ref_doc        IS INITIAL
        OR i_itemdata-ref_doc_year   IS INITIAL
        OR i_itemdata-ref_doc_it     IS INITIAL )
       AND NOT i_ekpo-webre IS INITIAL
       AND NOT i_ekpo-pstyp = c_pstyp_9
       AND i_itemdata-cond_type  IS INITIAL
       AND i_itemdata-cond_st_no IS INITIAL
       AND i_itemdata-cond_count IS INITIAL.
e_subrc = 4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if i stop this happening and bypass this 'IF' the BAPI still comes unstuck when it gets to the end and calls MRM_INVOICE_CREATE to park it, this also does a similar check and causes a similar error failing to park. I thought the whole point of BAPI's is that they mimic standard SAP functionality which this clearly does not, does anyone know if there is a reason it is like this? and if there is an alternative to BAPI_INCOMINGINVOICE_PARK which will work like MIR7 and just use MRM_INVOICE_PARK rather than MRM_INVOICE_CREATE to process these PO's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 14:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626231#M1570804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T14:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626232#M1570805</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;have you tried unticking "GR-Based IV" in ME22N (Item, Invoice tab)?&lt;/P&gt;&lt;P&gt;thus you would have -&amp;gt; i_ekpo-webre EQ INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 17:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626232#M1570805</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-18T17:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626233#M1570806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; have you tried unticking "GR-Based IV" in ME22N (Item, Invoice tab)?&lt;/P&gt;&lt;P&gt;&amp;gt; thus you would have -&amp;gt; i_ekpo-webre EQ INITIAL.&lt;/P&gt;&lt;P&gt;&amp;gt; Best regards.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, That seems to be the best option available... &lt;/P&gt;&lt;P&gt;Pablo, by Unchecking this GR Based IV, wouldn't there be a risk that Users can post the invoice successfully? If that is the case, does the user need to check this flag on PO Item, once parked invoice is posted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 17:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626233#M1570806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626234#M1570807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that is not really possible as these PO's are set by the bussiness like this for a reason, also the BAPI is being called remotly so could proccess any PO which may or may not have the i_ekpo-webre value set and even if it is set it may or may not already have a GR document created. I guess i could enhance the bapi/create z version to update the table and remove the flag just while it parks it and then put it back on afterwards, but i do not really know enough about this process to appreciate what problems could arrise. Another option would be to do a BDC recording of MIR7 and then get the BAPI to execute that! Either way its not ideal:-( Seems strange that SAP would just not allow these PO's to be proccessed via this BAPI!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 08:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626234#M1570807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626235#M1570808</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we get the error :&lt;/P&gt;&lt;P&gt;Enter goods receipt data only when working with GR-based IV&lt;/P&gt;&lt;P&gt;Enter a reference to a valid goods receipt (line 000001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- The first message is message M8 376&lt;/P&gt;&lt;P&gt;This message can be raised in three places:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.1.-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----- ... no GR based IV, but GR data in invoice item ---------------*
  IF NOT (     i_itemdata-ref_doc        IS INITIAL
           AND i_itemdata-ref_doc_year   IS INITIAL
           AND i_itemdata-ref_doc_it     IS INITIAL
           AND i_itemdata-sheet_no       IS INITIAL )
         AND i_ekpo-webre IS INITIAL.
    e_subrc = 4.
    PERFORM bapireturn_fill USING  'M8'
                                   'E'
                                   '376'
                                   i_itemdata-invoice_doc_item
                                   i_itemdata-po_number
                                   i_itemdata-po_item
                                   space
                          CHANGING te_return.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you´re informing values in:&lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc &lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc_year&lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc_it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you´re not using GR Based IV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.2.-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----- ... GR based IV, but no GR data in invoice item ---------------*
*----- ... (exception: service PO needs entry sheet number) ----------*
  IF (     i_itemdata-ref_doc        IS INITIAL
        OR i_itemdata-ref_doc_year   IS INITIAL
        OR i_itemdata-ref_doc_it     IS INITIAL )
       AND NOT i_ekpo-webre IS INITIAL
       AND NOT i_ekpo-pstyp = c_pstyp_9
       AND i_itemdata-cond_type  IS INITIAL
       AND i_itemdata-cond_st_no IS INITIAL
       AND i_itemdata-cond_count IS INITIAL.

    e_subrc = 4.
    PERFORM bapireturn_fill USING  'M8'
                                   'E'
                                   '376'
                                   i_itemdata-invoice_doc_item
                                   i_itemdata-po_number
                                   i_itemdata-po_item
                                   space
                          CHANGING te_return.
    PERFORM bapireturn_fill USING  'M8'
                                   'E'
                                   '375'
                                'REF_DOC, REF_DOC_YEAR, REF_DOC_IT'
                                   'ITEMDATA'
                                   i_itemdata-invoice_doc_item
                                   space
                          CHANGING te_return.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that although you´re using GR Based IV but you´re not informing values in:&lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc &lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc_year&lt;/P&gt;&lt;P&gt;i_itemdata-ref_doc_it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.3.-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF i_itemdata-sheet_no IS INITIAL
      AND NOT i_ekpo-webre IS INITIAL
      AND i_ekpo-pstyp = c_pstyp_9.
    e_subrc = 4.
    PERFORM bapireturn_fill USING  'M8'
                                   'E'
                                   '376'
                                   i_itemdata-invoice_doc_item
                                   i_itemdata-po_number
                                   i_itemdata-po_item
                                   space
                          CHANGING te_return.
    PERFORM bapireturn_fill USING  'M8'
                                   'E'
                                   '375'
                                   'SHEET_NO'
                                   'ITEMDATA'
                                   i_itemdata-invoice_doc_item
                                   space
                          CHANGING te_return.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you´re not informing field sheet_no although ekpo-webre and ekpo-pstyp(9) are informed.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Since your case is the second one you must inform GR data in invoice item&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 10:20 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 10:21 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626235#M1570808</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T09:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626236#M1570809</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;2.- The second message is message M8 429&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This message is raised here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----- GR based IV, but linked GR not existing -----------------------*
  IF NOT i_itemdata-ref_doc IS INITIAL.
    CALL FUNCTION 'MMPUR_EKBE_READ_EBELN_EBELP'
      EXPORTING
        pi_ebeln      = i_itemdata-po_number
        pi_ebelp      = i_itemdata-po_item
      TABLES
        pto_ekbe_po   = tab_ekbe
      EXCEPTIONS
        error_message = 4.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      e_subrc = 4.
      PERFORM bapireturn_fill USING  sy-msgid
                                     sy-msgty
                                     sy-msgno
                                     sy-msgv1
                                     sy-msgv2
                                     sy-msgv3
                                     sy-msgv4
                            CHANGING te_return.
    ENDIF.
    READ TABLE tab_ekbe INTO s_ekbe
                        WITH KEY ebeln = i_itemdata-po_number
                                 ebelp = i_itemdata-po_item
                                 lfbnr = i_itemdata-ref_doc
                                 lfgja = i_itemdata-ref_doc_year
                                 lfpos = i_itemdata-ref_doc_it.
    IF sy-subrc NE 0.
      e_subrc = 4.
      CONCATENATE i_itemdata-ref_doc
                  i_itemdata-ref_doc_year
                  i_itemdata-ref_doc_it
             INTO f_msgv1 SEPARATED BY space.
      PERFORM bapireturn_fill USING  'M8'
                                     'E'
                                     '429'
                                     i_itemdata-po_number
                                     i_itemdata-po_item
                                     f_msgv1
                                     i_itemdata-invoice_doc_item
                            CHANGING te_return.
    ENDIF.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you are informing field i_itemdata-ref_doc but there is information missing.&lt;/P&gt;&lt;P&gt;(e.g. i_itemdata-po_number or i_itemdata-po_item or i_itemdata-ref_doc_year or i_itemdata-ref_doc_it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626236#M1570809</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626237#M1570810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This means that you´re not informing field sheet_no although ekpo-webre and ekpo-pstyp(9) are informed.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;U&gt;Since your case is the second one you must inform GR data in invoice item&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the point, i have not  informed GR data in invoice as there is no GR data yet. Which to be fair is fine for this BAPI to work like this if the standard SAP transaction also worked like this but it doesnt. When Parking this same one via MIR7 it parks fine and i dont get any meesage saying i need to populate GR data!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626237#M1570810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T09:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626238#M1570811</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;try to park a document with MIR7 and put a break-point in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include LMRMPU04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*------ incoming invoice ---------------------------------------------*
  CALL FUNCTION 'MRM_INVOICE_DOCUMENT_POST' IN UPDATE TASK
    EXPORTING
      i_rbkp         = s_rbkp
      i_rbkp_blocked = s_rbkp_blocked
      i_rbkpb        = s_rbkpb
....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems the document is created here before the COMMIT WORK (include LMR1MF0D routine DOCUMENT_PARK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 10:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626238#M1570811</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626239#M1570812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its probably my question but im not really after how to replicate functionality of MIR7 as i can do this if needs be. But as SAP would not recommend doing this it just seems to be a glaring error in standard SAP which has been around for years, was really hoping someone would have a reason for this or another BAPI where SAP has fixed this issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responces so far though they are helping me rationalise the problem to get to the ideal solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626239#M1570812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626240#M1570813</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;one relatively easy solution is using this in your development:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PERFORM mrm_invoice_create_call(saplmrm_bapi)    USING     s_rbkpv
                                               tab_frseg[]
                                               tab_co[]
                                               tab_ma[]
                                               c_rbstat_parked
                                               space
                                     CHANGING  invoicedocnumber
                                               fiscalyear
                                               return[]
                                               f_subrc.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626240#M1570813</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626241#M1570814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what is called if i debug passed the GR based checks within the bapi. Unfortunately it wont work as it calls MRM_INVOICE_CREATE from within here which throws up the same error complaining about GR data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626241#M1570814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T10:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626242#M1570815</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;here i do not agree with you.&lt;/P&gt;&lt;P&gt;I´m not talking about using BAPI_INCOMINGINVOICE_PARK, i´m talking about using the routine i proposed above.&lt;/P&gt;&lt;P&gt;If you just fill the parameters and make the call to the routine you´re not passing through&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM importing_data_check (of fm BAPI_INCOMINGINVOICE_CREATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM itemdata_check (of include LMRM_BAPIF08)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thus avoinding the check you´re fererring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 12:01 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626242#M1570815</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626243#M1570816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry you miss-understood me, if you call 'mrm_invoice_create_call' it eventually calls MRM_INVOICE_CREATE which seems to perform a similer check and stops the processing if no GR data is found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626243#M1570816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626244#M1570817</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MRM_INVOICE_CREATE which seems to perform a similer check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you say where exactly is the "similar check"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626244#M1570817</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626245#M1570818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to fail within the call to FUNCTION 'MRM_INVOICE_CHECK', raises error 607 with reference to field FRSEG-LFBNR being empty, which i believe is the same as REF_DOC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 11:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626245#M1570818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-21T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626246#M1570819</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;maybe you are referring to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include LMRMHF07&lt;/P&gt;&lt;P&gt;FORM mrm_frseg_check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF i_frseg-webre = 'X' AND ( i_frseg-lfbnr IS INITIAL
                            OR i_frseg-lfgja IS INITIAL )
                         AND i_frseg-xekbz IS INITIAL.
    f_subrc = 4.
    f_fieldname = 'FRSEG-LFBNR'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i propose is that you make a call thus:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM mrm_invoice_create_call(saplmrm_bapi)    USING     s_rbkpv
                                               tab_frseg[]
                                               tab_co[]
                                               tab_ma[]
                                               c_rbstat_parked
                                               space
                                     CHANGING  invoicedocnumber
                                               fiscalyear
                                               return[]
                                               f_subrc.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where tab_frseg-webre = space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 21, 2011 2:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 13:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626246#M1570819</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-21T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626247#M1570820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i pass the webre value as initial, it does get past that error but i then get the following error message '708 Item 00010 for purchasing document not selectable' and still doesnt park the document:-(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 07:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626247#M1570820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626248#M1570821</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;the message in question is ME 708 "Item &amp;amp; for purchasing document &amp;amp; not selectable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This message is raised in three fm´s:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- fm ME_READ_ITEM_GOODS_RECEIPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.- fm ME_READ_ITEM_INVOICE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.- ME_READ_ITEM_TRANSFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
.....
  CHECK zaehlsel EQ 0.
  PERFORM entsperren_ekpo USING ekko-ebeln ebelp.
  IF zaehlall EQ 1.
    MESSAGE e708 WITH ebelp ebeln
                 RAISING not_valid_one.
    EXIT.
  ELSE.
    MESSAGE e709 WITH ebeln
                 RAISING not_valid_any.
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where field zaehlall is the item counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a break-point in these fm´s and check what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 08:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626248#M1570821</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-22T08:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626249#M1570822</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 guess it must be happening something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somewhere in the code the data of the po is read e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----- read PO item --------------------------------------------------*
    CALL FUNCTION 'ME_EKPO_SINGLE_READ'
      EXPORTING
        pi_ebeln         = s_itemdata-po_number
        pi_ebelp         = s_itemdata-po_item
      IMPORTING
        po_ekpo          = s_ekpo
      EXCEPTIONS
        no_records_found = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*----- set flag 'GR-based invoice verification' ----------------------*
    s_frseg-webre = s_ekpo-webre.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have s_ekpo-webre = 'X', that is if you have the flag set on your PO, &lt;/P&gt;&lt;P&gt;this means that you are using IR based on GR&lt;/P&gt;&lt;P&gt;and if you don´t have a GR for that line item then you get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution  i see here is to untick the GR indicator in the PO item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Feb 22, 2011 10:17 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 09:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626249#M1570822</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2011-02-22T09:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_INCOMINGINVOICE_PARK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626250#M1570823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to solve the above issue ? I have similar one. If yes then pls share.&lt;/P&gt;&lt;P&gt;I was trying for BDC recording to just put the header data in MIR7 as in this case we will not be able to put the line item data. I am facing issuing for tab recording for 'Payment'. Though in the recording the field baseline date(ZFBDT) comes but it does not go to PAYMENT tab and goves error as 'INFVO_ZFBDT' do not exit...Any suggestion is most appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-incominginvoice-park/m-p/7626250#M1570823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-09T08:32:50Z</dc:date>
    </item>
  </channel>
</rss>

