cancel
Showing results for 
Search instead for 
Did you mean: 

Marking an order as invoiced

Former Member
0 Kudos

Hi all,

I am creating an invoice from a sales order and setting all the basedocnum etc.. so the invoice is linked back to the sales order. However what I also want to do is to mark the sales order as being invoiced. Is there any way to do this? I don't see anything in the UI help files which has this functionality.

Regards, Lita

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lita,

You need to change value of the DocStatus in ORDR to 'C' (closed). If you've made invoice not from all lines of the order, work with LineStatus in RDR1. And if you've used only part of quantity in the lines, work with OpenQty and OpenSum in RDR1.

Best regards,

Mark

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1. If you're looking for a UI option to close the order-

you can use the activateMenuItem and activate the "Close" option.

2. If you need to set a "Used" flag or "LinkedInvoice" for personal use -

you can add a UserField to hold that flag (and maybe use DI to save it to DB)

HTH

Yaniv G.

SDK Consultant,

SAP Manage Israel.

Former Member
0 Kudos

Hi guys,

Thanks for your suggestions. Yaniv, is there a DI method to close the order? We are using a thread to check a user defined field in the sales orders table to determine whether the order requires invoicing, and if we use your UI suggestion the client will see the screen flicker whenever the thread fires.

Lita