05-13-2011 10:40 AM
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
05-13-2011 2:31 PM
I have used FM SAVE_TEMP_DOCUMENT. But it is neither released nor documented.
Rob
09-09-2011 3:05 PM
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