Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Required fields for FM 'MRM_INVOICE_PARK'?

Former Member
0 Kudos

Hello Experts-

Have any of you used the FM 'MRM_INVOICE_PARK' for parking a non-PO invoice?

I want to test this FM but don't know which fields are required. Can one of you please guide me as to which fields need to be filled out in order to even test this FM?

Thank you,

- Vik.

4 REPLIES 4

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Vik,

I would try with example from include LFMYC_CCLF16:


**--Enable message handler
    CALL FUNCTION 'MESSAGES_INITIALIZE'.

    CALL FUNCTION 'MRM_INVOICE_PARK'
      EXPORTING
        i_rbkpv           = l_f_rbkpv
        i_xupda           = 'D'
        i_simulation      = l_simulation
        i_rbstat_new      = '2'
        ti_drseg          = l_t_drseg
*      IMPORTING
*        te_errprot        = l_t_mrm_errprot
      EXCEPTIONS
        invalid_status    = 1
        update_impossible = 2
        error_message     = 3
        OTHERS            = 4.

    IF sy-subrc <> 0.           "MM document parked?
      l_f_return-id         = sy-msgid.
      l_f_return-type       = sy-msgty.
      l_f_return-number     = sy-msgno.
      l_f_return-message_v1 = sy-msgv1.
      l_f_return-message_v2 = sy-msgv2.
      l_f_return-message_v3 = sy-msgv3.
      l_f_return-message_v4 = sy-msgv4.

*----- write message into message text field
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            INTO l_f_return-message.

      APPEND l_f_return TO c_t_returns.
    ENDIF.                   "MM document parked?

Regards,

Christian

Former Member
0 Kudos

Hi Vik,

Unfortunately <b>MRM_INVOICE_PARK</b> is used for <b>Logistics Invoice Verification</b> postings (parking) e.g. PO related postings and since you are interested in <b>non PO</b> related invoices, they fall under the regular accounting document postings/parking and not under LIV.

Sorry to burst that bubble.

Rishi

0 Kudos

Hi Rishi-

Please read the last message in my original thread titled 'BAPI for Parking non-PO Invoices?' You will notice that it was okay after all for the "bubble" to have burst. Not a problem.

Thanks for your help though.

- Vik.

0 Kudos

Vik,

Comments noted from the original thread!

I have seen a few non PO related invoice queries in the forum, the BAPI i have not tested, but am positive about 'MRM_INVOICE_PARK' and its limitation.

Rishi