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: 

Auto Post Invoice

Former Member
0 Kudos

Hi Friends,

I was wondering if any one has any custom program using the FM

MRM_PARKED_INVOICE_POST.

It coudl be great help to me. I have developed this program but for some reason I am unable to get it working.

Thanks,

Ster.

2 REPLIES 2

Former Member
0 Kudos

hi

good

through you have not post the exact code here so its bit difficult to give you the exact solution, pls check the below code and check with your code.

CALL FUNCTION 'MRM_INVOICE_READ'

EXPORTING

i_belnr = i_rbkp-belnr

i_gjahr = i_rbkp-gjahr

i_xselk = 'X'

i_buffer_on = 'X'

IMPORTING

e_rbkpv = mrm_rbkpv

TABLES

t_drseg = ydrseg.

PERFORM parked_document_post USING mrm_rbkpv

ydrseg[]

i_editor.

FORM parked_document_post USING

i_rbkpv TYPE mrm_rbkpv

ti_drseg TYPE mmcr_tdrseg

i_editor TYPE REF TO c_textedit_control.

DATA: s_drseg TYPE mmcr_drseg.

CALL FUNCTION 'MRM_PARKED_INVOICE_POST'

EXPORTING

i_rbkpv = mrm_rbkpv

ti_drseg = ydrseg[]

i_editor = i_editor

EXCEPTIONS

error_message = 01

OTHERS = 02.

thanks

mrutyun^

0 Kudos

Thanks..

I have my code similar to what you have posted.

I am wondering when we are passing the data to the function module

CALL FUNCTION 'MRM_PARKED_INVOICE_POST'

what data we are passing in ydrseg[].

ydrseg[] is huge and what fields need data.

Any suggestions.

Ster.