Application Development and Automation 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: 
Read only

invoice save as complete

Former Member
0 Likes
1,099

hi,

I'm using bapi BAPI_INCOMINGINVOICE_CREATE/BAPI_INCOMINGINVOICE_PARK

to create invoices.

But I want create as "SAVE AS COMPLETE" status. Those 2 FM's don't do that.

I saw that they use FM MRM_INVOICE_CREATE where I think I can change parameters I_RBSTAT_NEW to 'B' and maybe achive what I want.

Am I right?

thank you

joseph

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
887

Hello Joseph,

What you say is correct it gives call to FM MRM_INVOICE_CREATE, however it pass parameter 5 in the field RBSTAT. so u will not be able to change the field unless u can copying the BAPI and making the necessary changes in the perform statement in the BAPI

PERFORM mrm_invoice_create_call USING s_rbkpv

tab_frseg[]

tab_co[]

tab_ma[]

c_rbstat_posted

space

CHANGING invoicedocnumber fiscalyear

return[]

f_subrc.

hi,

I'm using bapi BAPI_INCOMINGINVOICE_CREATE/BAPI_INCOMINGINVOICE_PARK

to create invoices.

But I want create as "SAVE AS COMPLETE" status. Those 2 FM's don't do that.

I saw that they use FM MRM_INVOICE_CREATE where I think I can change parameters I_RBSTAT_NEW to 'B' and maybe achive what I want.

Am I right?

thank you

joseph

3 REPLIES 3
Read only

Former Member
0 Likes
887

Hi,

Check this thread..

regards

vijay

Read only

Former Member
0 Likes
888

Hello Joseph,

What you say is correct it gives call to FM MRM_INVOICE_CREATE, however it pass parameter 5 in the field RBSTAT. so u will not be able to change the field unless u can copying the BAPI and making the necessary changes in the perform statement in the BAPI

PERFORM mrm_invoice_create_call USING s_rbkpv

tab_frseg[]

tab_co[]

tab_ma[]

c_rbstat_posted

space

CHANGING invoicedocnumber fiscalyear

return[]

f_subrc.

Read only

0 Likes
887

hi Abhijit,

You confirm my doubts....

Thank you for your reply