Skip to Content
0
Former Member
Jun 09, 2011 at 02:37 PM

Function Module / Method to Get Status of PO and Invoice status (Archived)

750 Views

Hi Experts,

I have a requirement where I have to process mass collection of SO, PO and Invoices for certain output triggers based on user input in a Z program. However the requirement states that I need to skip processing for the documents which are archived. I got a method (CALL METHOD cl_sd_archived_sales_documents=>check_sales_doc_archived on ECC 6.4 system) to get Archived status of Sales Order, but could not find anything suitable for getting the same for a PO or Invoice documents. Whatever function module I am getting, requires an input called Archive Key or handle.

But I will be only having the document number (like a purchase order number or a invoice number). Is there any inbuilt FM or Method in SAP which will let me determine if the document is already archived or not?

Thanks for your time,

Anid