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: 

RV_INVOICE_CREATE - Invoice with your own number?

Former Member
0 Kudos

Hi Everyone,

I am using FM RV_INVOICE_CREATE, to create an invoice with reference to a delivery (passed the delivery to the KOMFK structure).

However, I am having trouble with the following:

1) How do you pass the number of the invoice you want created?

With Sales Order FM's, I knew how to do this.

However, with this FM, SAP generates it's own invoice number.

Is there anyway to pass it? The invoice needs to be  custom number we are passing through.

2) Pricing Conditions - How do you pass them, meaning to which structures?

Will these overwrite the conditions passed from the Sales Order?

Thanks!

2 REPLIES 2

former_member620069
Participant
0 Kudos

Hi,

You need to set external number range for custom RV numbers,

XKOMV is the structure for conditions in  invoice creation ,pass KONV,VBRK table data into it.

Regards,

Srini.

0 Kudos

Thanks!

What do you mean by "You need to set external number range for custom RV numbers,"?

We are using this FM in a program, that uploads  100s of invoices.

The number has to be the same, since these are being moved from one system to another.

Is there a way to set the number in the fm for the invoice that is being processed?