BAPI_ALM_ORDERHEAD_GET_LIST how to query orders by "last change timestamp"?

Hi,
I would like to query for changed order with BAPI_ALM_ORDERHEAD_GET_LIST, but i would only like to get orders that have changed since my last query.. I can only find the OPTIONS_FOR_CHANGE_DATE selection parameter and that is on day/date-level, is there no way to query on minute/second level?
If not, is there any other way to know which orders have changed since last poll without having to store the order info in the polling program?
Regards
Anders

Anders,
Useless to who???
If the SAP standard options do not satisfy your business requirements (and I don't think you will find one that will), then you have a few options:
- Copy this BADI and make the necessary changes
- Create your own custom-built program
- Download the data in a different way ( [see here|http://www.sapfans.com/forums/viewtopic.php?p=599902] )
PeteA

Similar Messages

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

  • How To find Purchase requisition last changed By and last changed On?

    Hi All,
    How To find Purchase requisition last changed By and last changed On?
    Thanks,
    Ezhil

    Hi
    Go to M53N
    Environment.
    Header/Item changes.
    You will get the changes made to PR.
    Regards
    Sachin

  • How can we see tha last change.

    Hi all,
         suppouse i writen program.same prg somebody modifed.
         where can we see the who did the modification (means last changed)
        how to see any tcode or how ?
    Regards.
    krish.

    Hi
    You  can see that in <b>Attributes</b> of your program in Trxn SE38.
    Also, if they are using version management (creating a version before changing), you can compare the current and previous versions and see what had been changed.
    Regards
    Raj
    Message was edited by:
            Rajasekhar Dinavahi

  • How can I overwrite the Last Changed Field (AUFK-AENAM)

    We have an XI application that updates networks in R3 by calling BAPI_NETWORK_MAINTAIN.   The XI RFC Client Parameter has logon user/password that connects to R3, so when a network header is updated by calling the BAPI_NETWORK_MAINTAIN.....then the logon user id is used to populate AUFK-AENAM.   Is there a way to populate AUFK-AENAM if it was passed to a function/class (or via an EXIT or BADI)........basically I'm looking for a way override AUFK-AENAM.
    Thank you any help.

    Badi:WORKORDER_UPDATE
    Method:IN_UPDATE
    Parameter:IT_HEADER_OLD
    Set value VBKZ = 'U'"For Update.
    Below is SAP documentation of method IN_UPDATE fron SE18:
    Functionality
    This method is executed during the update after the order is saved.
    Parameters
    All tables relevant to orders of all the orders processed within this transaction (also cross order type) are transferred. A table containing all changed records is transferred for each order object and a table *_old that contains the original state of the changed records when the transaction was started.
    To differentiate between different order categories, evaluate the "AUTYP" field in the order headers.
    To determine which actions were carried out on the individual objects of an order, you can evaluate the update indicator in the individual tables. In the different tables, the update indicator is called "VBKZ" (exceptions: IT_PMPARTNER-UPDKZ, IT_PRT_ALLOCATION-MODKZ, IT_MILESTONE-VBKZ_MLST or IT_MILESTONE-VBKZ_MLTX) and can contain the following entries:
    "I": Insert
    The data record is written to the database again. No *_old entry exists
    "U": Update
    The data record already exists in the database and has been changed in the transaction. An *_old entry exists.
    "D": Delete
    The data record already exists in the database and is to be deleted. An *_old entry exists.
    The data record exists in the database. No changes have been made in the transaction. An *_old entry exists.

  • How to get last change timestamp for a crystal/webi and deski reports

    I am currently using LAST_UPDATED_TS from CI_INFOOBJECTS to determine the report has changed in structure like a new object was added to the report etc
    but this field gets updated everytime a report is refreshed though nothing has changed in the report
    is there any way to know that the report has changed in structure and not just refreshed.

    Hi Manoj,
    Correct, when you query the CMS database it will return the info for the object and not the source.
    In code you can use this for Crystal Reports:
    reportClientDocument.SummaryInfo.(  multiple values )
    This is the info saved with the RPT file, you can also use Windows File API's to get the same info.
    For WEBI and DESKI doc's it does not keep that info in the file system. You may want to look at the file system properties in the FRS to see if any info is kept as it is in RPT files but we ahve no API to get the info.
    Thank you
    Don

  • How to know who last changed a sapscript form

    Hello experts,
    Our QA server was recently refreshed and we are currently checking if our sapscript program is latest one. How can we know who last changed it? Also, can we also know if a certain DEVK has been transported to QAS? Thanks a lot!

    sapscript header have information regading changes..
    for request u  can check on stms in qa server.
    also check table for request.
    like E070,E071,E07*

  • Update Last Changed Date when attaching a Document to Opportunity/Activity

    Hi my CRM peers,
    we have the requirement to update the last changed date of the one order object (Activity, Lead, Opportunity) when a user attaches a document to the object. Has anyone solved this requirement?
    Best regards
    Gregor

    Hi Stephen,
    what do you think about using the SEARCH_DOCUMENTS method of CL_CRM_DOCUMENTS to get the documents uploaded during the last day. I fill the table IT_QUERY_PROP is filled to search for the Documents Created starting yesterday:
    Query:
    IT_QUERY_PROP[1]
      PROP_NAME      CREATED_AT
      SIGN           I
      OPTION         BT
      LOW            20100217000000
      HIGH           99991231235959
    And I get this result:
    LT_SRES[1]
      OBJTYPEP       P
      CLASSP         CRM_P_ORD
      OBJIDP         DF1C76C7D7D02BF1ABA8005056857C4E
      OBJTYPEL       L
      CLASSL         CRM_L_ORD
      OBJIDL         DF1C76C7D7D02AF1ABA8005056857C4E
      RANKV          05000
      DOCREFER       0000000001
    When I now use the WHERE_USED method I can find the Business Object where this document is attached to by filling the
    IS_IO parameter:
    IS_IO
      OBJTYPE                        P
      CLASS                          CRM_P_ORD
      OBJID                          DF1C76C7D7D02BF1ABA8005056857C4E
    Now my follow up question is: How can I update the last changed date of the document without changing any data?
    Best regards
    Gregor

  • Getting last changed by in a sales order query

    Hi there,
    I'm creating a query to show sales orders. I need to output to show the "last changed by" username.
    This isn't stored in the VBAK or VBAP tables. As far as i can see from results on google and i can see in SE16N, the table needed is CDHDR, but i cant join this with the VBAK table.
    I'm trying to join them by using the objectvalue and Salesorder number.
    Does anyone know which other table or how to join the tables above?

    Hi,
    1. In the CDHDR - pass the below values
    Object:VERKBELEG     
    Object value - ASales order number.
    T.code - VA02.
    2. here you will have the Name, Date time - on which you can get the lsast changed date
    3. This CDHDR / CDPOS are the tables that will have the values for all the changes.
    Reg
    Dsk

  • Transaction IW32.How to find out the person name.(Last changed By)

    Hi all,
    When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person  name who had made last change with respect to the field changed by.
    Please tell me the table and field name for the field last changed by......
    Regards,
    Munna.

    hi,
    check the table AUFK field AENAM for the order number(AUFNR) in IW32..........

  • I changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    i changed from i iphone 5 back to a iphone 4.. now my itunes does not recognise that i have a iphone 4! how do i convert my last back up (on iphone 5) to my new iphone 4?

    In your case you can only restore from a backup that has been created with the same iOS version. An iPhone 4 can only run 7.1.2, and, unless your iPhone 5 did not run the same version, you can't use a newer iOS backup of the 5 on the iPhone 4

  • How to get the "last changed by" for a set of function modules?

    How to get the "last changed by" for a set of function modules?
    is there any table to get it??

    See [this|Re: Date of creation of function module] I posted earlier.
    >TFDIR will give you the name of the function group program and the include number.
    >E.g. SAPLZFUNCGROUP Include 01.
    >From this you can construct the include name: LZFUNCGROUPU01.
    >You can look this up in TRDIR to find the creation date (CDAT) of the function module.
    In your case, you need unam and udat.
    matt

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • !!!How to restrict user for making  changes in Sales order , partner level

    Hi all,
    Can anybody tell me how to restrict user for making  changes in Sales order  at partner level, is it through user exit?

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • Regarding the date of last change in sales order...

    Hi,
    Can anyone help me in the scenario...
    I have to pick the date of last change in sales order...whether it is done on Configuration items ,additional data B or on the ordered quantity...
    the problem is that it has some customized fields that are included in VBAK....
    So i need help regarding this...shud i have to writ a user exit for this....or i hv to do a change in USEREXIT_SAVE_DOCUMENT .
    Plz help me..
    Edited by: Amit Gupta on May 1, 2008 3:02 PM

    VBAK-AEDAT will be updated, evenIf you have your custom fields in Sales Order.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • What cable do I need to hook-up my laptop to my HDTV

    I am purchasing my new MacBook air tommorow and I just want to know what cable I need to buy to hook-up my MacBook air to my HDTV, preferably using the HDMI connection if possible.

  • Time doesn't always appear

    The time under the received column doesn't always appear. If I click on the message, it shows but then goes away. It's very inconsistent. Repairing permissions and restarting doesn't change the behavior.

  • ABAP(R3) call to Portal(Webdynpro)

    Hi experts, I have a requirement to initiate a call from an ABAP program on R3 to a standard Portal (Webdynpro) API. Does anyone have any experience with this? I understand that normally Portal (Webdynpro) applications will make the RFC call to ABAP

  • How to get 0PERS_SAREA description in cube

    Hi   I have a char 0PERS_SAREA (Personnel Subarea)  of length 4 and TYPE:CHAR . When Click On Its Maintain Masterdata Button Its shows me 3 columns 1) Persnonnel Area , 2) Personnel SUBAREA & 3)Short descreption of Personnel Subarea. When I Moved thi

  • Setting up iPad mini for school giveaway, suggestions about apple ID and apps

    Howdy all, I've been asked by a client to setup an iPad mini for a school giveaway including loading it up with apps. They want to provide not only free but paid apps. How do I set this thing up with an ID that the winner can use? I was thinking abou