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

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

The function module looked promising, but it returns some weired error when I execute. I will check with Basis team, as I tried with multiple PO which are archived (and can not be viewed on ME23n)
Error ID I got is:
Exception       NOT_FOUND
Message ID:          CMS                        Message number:           025

Similar Messages

  • Function Module available to get Stock lying against a Sale-Order

    Dear Sir,
    We have function module "KPKA_UTILS_PROJECT_STOCK_CHECK" for getting Stock lying against a WBS (Project Stock) .
    We are looking for a function module to get the Stock lying against a Sale-Order (Sale-Order plus it's Line Item) .
    We request SAP experts to kindly guide us about the availability of such Function Module please .
    We will award full points for the suggested solution pl .
    Rgds
    B Mittal

    Hi
    table MSKA - Sales Order Stock is availble whcih will give the Stock pertainig to a sales Order & line item.
    Hope this helps
    Thanks & Regards
    Kishore

  • Error with quantity field:Datasource Creation Using Function Module method

    Problem with DATASOURCE Creation using Function Module method :
    I have created a datasource ZSTANDARD_COST_PRICE using Function Module method . The datasource creation is successfull when I remove the quantity field from the Z table . If I dont remove the quantity field from my Z table it gives an error as "Units Field WAERS for field STPRS of datasource ZSTANDARD_COST_PRICE is hidden". I am not able to remove this error . Please someone guide.
    Let me know if my explanation is not clear enough.
    Thanks in advance,
    Neha.
    Z table definition is as below :
    MATNR MATNR CHAR 18 0 Material Number
    BWKEY BWKEY CHAR 4 0 Valuation area
    LFGJA LFGJA NUMC 4 0 Fiscal Year of Current Period
    STPRS STPRS CURR 11 2 Standard Price   " Here the currency field is WAERS and table T001
    PEINH PEINH DEC 5 0 Price Unit
    VJSTP VJSTP CURR 11 2 Standard price in previous year
    VJPEI VJPEI DEC 5 0 Price unit of previous year.
    Edited by: Neha Rathi on Jan 30, 2009 3:03 PM

    Hi,
    You should add it as one of the main fields as you have added other fields and not as the currency fields...that is..it should be part of the data source and you should be able to see it in RSO2...
    Also if added as i said then it will come as new field in the data source...you can either let it be there...or hide it..
    also if you want to populate it then you will have to write the code for this fields as well.
    Thanks
    Ajeet

  • Replacement function modules/method for obsolete Funtion Modules in ECC 6.0

    We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
       1.   GET_FIELDTAB
       2.   WS_EXCEL
       3.  HR_DISPLAY_BASIC_LIST
       4.  LOG_SYSTEM_GET_RFC_DESTINATION
       5.  HELPSCREEN_NA_CREATE
       6. TR_RELEASE_COMM
    Thank in Advance.
    Sarita.
    Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PM

    Hi sarita,
    for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
      CALL FUNCTION 'GET_FIELDTAB'
           EXPORTING
                LANGU               = SY-LANGU
                TABNAME             = C_STRUCTURE_NAME
                WITHTEXT            = ' '
           TABLES
                FIELDTAB            = IDFIES
           EXCEPTIONS
               INTERNAL_ERROR      = 01
                NO_TEXTS_FOUND      = 02
                TABLE_HAS_NO_FIELDS = 03
                TABLE_NOT_ACTIV     = 04.
    Replacement :
    CALL FUNCTION 'DDIF_NAMETAB_GET'
      EXPORTING
        TABNAME           =  C_STRUCTURE_NAME
      ALL_TYPES         = ' '
      LFIELDNAME        = ' '
      GROUP_NAMES       = ' '
      UCLEN             =
    IMPORTING
      X030L_WA          =
      DTELINFO_WA       =
      TTYPINFO_WA       =
      DDOBJTYPE         =
      DFIES_WA          =
      LINES_DESCR       =
    TABLES
      X031L_TAB         =
       DFIES_TAB         = IDFIES
    EXCEPTIONS
       NOT_FOUND         = 1
       OTHERS            = 2
    For WS_EXCEL  use GUI_DOWNLOAD.. here is sample code
    CALL FUNCTION 'WS_EXCEL'
    EXPORTING
       FILENAME            = 'D:\FILE1.xls'
      SYNCHRON            = ' '
      TABLES
        DATA                = itab
    EXCEPTIONS
       UNKNOWN_ERROR       = 1
       OTHERS              = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Repalcement :
    data : l_filename type string.
    l_filename  = 'D:\FILE1.xls'.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = l_filename
      FILETYPE                        = 'ASC'
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'D:\FILE1.xls'
       APPLICATION            =
       PARAMETER              =
       DEFAULT_DIRECTORY      =
       MAXIMIZED              =
       MINIMIZED              =
       SYNCHRONOUS            =
        OPERATION              = 'OPEN'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        others                 = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Using function module BBP_PD_SC_GETLIST to get list of carts for a plant

    Hi all,
    Im using  the function module BBP_PD_SC_GETLIST  to get the list of shopping carts created for a particular plant.Im passing the plant details like Business Partner Number,Business Partner GUID and Partner func. in the table I_PARTNERS of the FM.Im not passing any other data to the FM.However im not getting any entries in the o/p parameter.
    Can anyone suggest what am I doing wrong?
    Thanks.

    Hi,
    From table BBP_PDBEI  you can get the shopping carts belong to perticular plant. 
    Thanks
    prasad.s

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • Function module for f4 help in presentaion server and application server.

    hi guys,
    I need to create a function module that will get the file or folder name by f4 help for the file in the presentation server or  application server based on the location selected.
    For this function module what are the minimum impot parametrs  and export parameters required.
    i have tried with 'f4_filename' for presentation server
    and '/SAPDMC/LSM_F4_SERVER_FILE' for application server.
    but i am not able to get this.
    can any one help me in this regard ?
    cheers,
    kumar.

    hi use like this ..
      if p_presvr = 'X'.
    *-- if the file is to be downloaded to presentation server
        call function '/SAPDMC/LSM_F4_FRONTEND_FILE'
          changing
            pathfile         = p_file
          exceptions
            canceled_by_user = 1
            system_error     = 2
            others           = 3.
        if sy-subrc <> 0.
          if sy-batch = 'X'.
            message id sy-msgid type 'S' number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
            write / v_msg.
            clear v_msg.
            stop.
          else.
            message id sy-msgid type 'S' number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
        endif.
      else.
    *-- if the file is to be downloaded to application server
        call function '/SAPDMC/LSM_F4_SERVER_FILE'
          exporting
            directory        = '/'
            filemask         = '*'
          importing
            serverfile       = p_file
          exceptions
            canceled_by_user = 1
            others           = 2.
        if sy-subrc <> 0.
          if sy-batch = 'X'.
            message id sy-msgid type 'S' number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
            write / v_msg.
            clear v_msg.
            stop.
          else.
            message id sy-msgid type 'S' number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          endif.
        endif.
      endif.

  • Function module to choose the file for download and upload

    what is the function module to choose the file for download and upload  for presentation server.
    give me with example

    Please search in SCN.
    This has been discussed so many times.

  • When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    When starting the computer, I get a grey screen and following status: your startup disk is full. How can I still enter (in order to free-up some space)?

    Simple way to make HDD free space is delete files you don't need anymore.
    Or get bigger drive and external HDD case, then:
    1) install bigger HDD in external drive case.
    2) connect external drive and format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is internal HDD, target drive is external one).
    4) install external bigger drive into your Macbook Pro.
    In the cace if your're using Mac Pro:
    1) get bigger HDD and install it in drive bay of Mac Pro.
    2) format and mount it with Disk Utility.
    3) make clone with Carbon Copy Cloner or SuperDuper!(source drive is old HDD, target drive is new one).
    4) Select boot drive to new bigger one.

  • How to find gr details and invoice status for particular list of purchase

    Hi,
       how to find gr details and invoice status for particular list of purchase orders.
    is there any t.code/report for it??

    Hi,
    You use t.code:ME2Nand enter PO number,tn Execute.Now you will have PO details .Now in item details get GR details and Invoice details   in  purchase order history TAB.
    In t.code:MIR5, you can see blocked invoice by selection.
    Regards,
    Biju K

  • Message Status as "Scheduled" and Queue Status "Queue Stopped".

    Hi friends,
    My scenario is from Peoplesoft -> XI -> BI
    Message has reached BI, but in SXMB_MONI, its showing Message Status as "Scheduled" and Queue Status "Queue Stopped".
    How to proceed further ? How can I start that queue ?
    Thanks ain advance,
    Neena John

    Hi Neena,
    Go to SXMB_ADM -> Manage Queues -> Register Queues
    More on queues
    XI :  How to Re-Process failed XI Messages Automatically
    Run the report RSXMB_REGISTER_QUEUES and register the queues
    Run the report RSXMB_RESTART_MESSAGES for restarting ur messages
    Refer this:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20bb9649-e86e-2910-7aa9-88ed4972a5f6
    Regards,
    Vinod.

  • Function Module required for getting Value Range data

    I need a function module where in i can get the data from a value range in a domain.
    Message was edited by:
            Gurpreet Singh

    Hi,
    You can use this code to get the Doman's fixed values.
    DATA:  lt_fixed_values     TYPE ddfixvalues,
      CALL METHOD cl_abap_typedescr=>describe_by_name
        EXPORTING
          p_data      = 'Domain_name' " Pass the domain name here
        RECEIVING
          p_descr_ref = lcl_abap_typedescr.
      TRY.
          lcl_abap_elemdescr ?= lcl_abap_typedescr.
        CATCH cx_sy_move_cast_error.
      ENDTRY.
      IF lcl_abap_elemdescr IS BOUND.
        CALL METHOD lcl_abap_elemdescr->get_ddic_fixed_values
          EXPORTING
            p_langu        = sy-langu " Give the language
          RECEIVING
            p_fixed_values = lt_fixed_values " This table will have the fixed values
          EXCEPTIONS
            not_found      = 1
            no_ddic_type   = 2
            OTHERS         = 3.
      ENDIF.
    Regards,
    Sesh

  • Any Function Module/Class to get Program's Package Name??

    Hi Guys,
    Are there any Function Modules/Classes that return the Package name of any given Program?
    I have had a look but have been unable to find any...
    thanks,
    C
    PS POINTS WILL BE REWARDED

    Hi,
    1)u can get Package name from SE93
    go to SE93>give transaction code>display
    2)you can also get from
    go to t-code>system>status>d.click on program name>goto-->attributes
    Thanks
    Ankur Sharma

  • Function Module / method to read interface of a function module

    Hi all,
    Does anyone know a function module or a method of a class which reads the parameters and types of these parameters of a function module. Thanks in advance.
    Kind Regards,
    Sükrü

    Hi Suekrue,
    You marked the question as answered, so please assign contributor points too. I did this time, but you can change them.
    See: /people/mark.finnern/blog/2004/08/10/spread-the-love for directions.
    Click on the yellow Star icon per reply. You can give:
    1 - 10 pts (Which marks the question as answered)
    2 - 6 pts (Very helpful)
    Lots of 2 pts (Helpful)
    It's just a little thank you for the responses.
    Thanks!
    Joan (and Mark Finnern)

  • Function Module/Bapi to get Customer down payment in F-28/F-29

    Hi All,
    I need Function Module or Bapi to get the Customer down payment which have been posted in F-29/F-28 transactions.
    Please do needful.
    Regards
    Madhu

    hi
    try this
    BAPI_CR_ACC_GETDETAIL
    cheers
    S.Janagar

Maybe you are looking for

  • Created Network and Internet Sharing Problems

    Hello, I created network with WEP password. I proceeded to turn on internet sharing. All works great until the iMac goes to sleep. Once it comes back on the network I created is missing and I have create it all over again. The internet connection is

  • How to change Cache path of Adobe Drive manually?

    Hi there, i have a problem with one of my clients running Adobe Drive 2.1. The Operatingsystem Username of the Standard User on the Client computer was changed (MAC OSX) and now Adobe Drive links its cache file to the old user profile folder. If i tr

  • How do I change a read-only cd to be able to edit the files on it?

    I am downloading a cd with photos on it but they are read-only and I'm not able to crop them. How do I fix this?

  • Download tool for CAS number

    Dear all, I am wondering if you know whether there is any special downloading tool  (aside from LSMW) in which I can use to upload 20,000 records of CAS number. This CAS number is found in: SPRO  SD  Foreign Trade/Customs  Specific Data for Custom

  • New Object instance

    I have a method call dumpEnvelope, if everytime i call the dumpPart , i will call the dumpEnvelope,.... if i call dumpEnvelope , i want to create a new object of inMailBean how do i do that.... previously, what i do is like this... InMailBean inMailB