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: 

Need a function or bapi to hold invoice document

Former Member
0 Kudos

Dear All,

i made a program to read a hold invoice using this function "MRM_INVOICE_READ" is there other functions or bapi doing this job reading hold invoice

now after i change the data i need to hold the document again what is the best function for this job and i don't want to park the document

2 REPLIES 2

Former Member
0 Kudos

I have used FM SAVE_TEMP_DOCUMENT. But it is neither released nor documented.

Rob

Former Member
0 Kudos

Hi Ibrahem,

you can simply use f.m. MRM_INVOICE_READ to read whatever you have already done and held, and then use the f.m. MRM_INVOICE_PARK to save your changes: to avoid really parking the invoice, it is important to specify through the IMPORTING parameter i_rbstat_new the hold status 'D', as shown in the example below:

  • park invoice with status 'D' hold

CALL FUNCTION 'MRM_INVOICE_PARK'

EXPORTING

i_rbkpv = ls_rbkpv

i_xupda = 'U'

i_rbstat_new = 'D'

ti_drseg = lt_drseg

IMPORTING

e_belnr = lv_belnr

e_gjahr = lv_gjahr

te_errprot = lt_errp

EXCEPTIONS

invalid_status = 1

update_impossible = 2

user_exit = 3

OTHERS = 4.

Best Regards,

Antonio