Using of CHANGEDOCUMENT_READ FM

HI
I want to know if admin delete role for user (i need also the time that the role change) and i found CHANGEDOCUMENT_READ
but i dont know how to use it ?
i know about table agr_users and CDHDR but i dont know how to use it.
for example in date 16.8.2009 the admin delete for user the role sap_all ,
i want to know that .
Best Regards
Joy

Which release and SP are you on? This is relevant.
Roles are just a tool ontop of profiles (and JAVA UME groups) to assign access, so:
If this is in an ABAP system, then you can use report RSUSR100 to evaluate the changes (the backend table is USH04) when the actual profiles were assigned.
But the application specific user change documents are now (since about a year or so) merged into the standard application change documents (CDPOS etc).
There is a new report now => RSUSR100N which will evaluate both.
There are some important SAP notes to implement and also the possibility to migrate existing data to the new mechanism (created prior to it existing).
Cheers,
Julius

Similar Messages

  • Problem while generating Update progam for a Change Document Object

    Hi,
    I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
    "Function module name is reserved for SAP"
    Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
    My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
    Further (I decided not to open a new thread) - generated Update program uses
    CALL FUNCTION 'xxxxx' IN UPDATE TASK
    for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed  (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
    Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
    Well, to be precise, I think I have to give a sample:
    1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
    2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
    3. I call the CDO FM.
    4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
    Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
    In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
    Any hints are wellcome.
    Thanks in advance.
    Ivaylo Mutafchiev
    Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM

    "IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
    Regards,
    Ivo

  • In which table can maintain the SAP MM Display changes?

    hi,
    I have One doubt. Regarding In MM...
    In which Table can Maintain the Changes of Material?

    Hello,
    Please use function CHANGEDOCUMENT_READ.
    Thanks,
    Venu

  • Cdpos

    Hi,
    I am using these queries one after other but can anybody tell me how to use
    FM  CHANGEDOCUMENT_READ_HEADERS and CHANGEDOCUMENT_READ_POSITIONS in place of these queries?
    A) select objectclas
                 objectid
                 changenr
                 udate
                 into table i_cdhdr
                 from  cdhdr
                 client specified
                 for all entries in i_data
                 where objectclas  = c_lieferung
                   and objectid    = i_data-vbeln
                   and udate       in so_udate
                   and    ( tcode   = c_vl02n or
                           tcode   = c_vl02 )
                   and    change_ind  = c_u.
    B) Select objectclas
                    objectid
                    changenr
                    fname
                    into table i_cdpos
                    from cdpos
                    client specified
                    for all entries in i_cdhdr
                    where objectclas = c_lieferung
                      and objectid = i_cdhdr-objectid
                      and changenr = i_cdhdr-changenr
                      and tabname = c_likp
                      and fname in r_fname
                      and chngind = c_u.

    Try using FM CHANGEDOCUMENT_READ instead:
      call function 'CHANGEDOCUMENT_READ'
        exporting
          objectclass             = c_lieferung
          objectid                = i_data-vbeln
        tables
          editpos                 = change_doc_int
        exceptions
          no_position_found       = 01
          wrong_access_to_archive = 02.
    Rob

  • Purchasing Info Record Change

    Any bright notion on how to extract INFNR new and old value from CDHDR and CDPOS

    Hi,
    use fm CHANGEDOCUMENT_READ
    CALL FUNCTION 'CHANGEDOCUMENT_READ'                        
                    EXPORTING  OBJECTCLASS        = 'INFOSATZ'    
                               OBJECTID           = '8000004711'  
                            USERNAME           = C_AENDER    
                               TIME_OF_CHANGE     = C_UZEIT     
                               DATE_OF_CHANGE     = C_DATUM     
                    TABLES     EDITPOS            = AUSG        
                    EXCEPTIONS NO_POSITION_FOUND  = 1           
                               OTHERS             = 2.         
    and look abap RM06ICD1
    regards Andreas

  • Check of object has CMY or RGB

    How can i preflight the document on colors? So check if there is RGB or CMY used.
    But i dont want it to select or notice the registrations marks.

    Hello,
    Change document for Move-in date is activated. So, you can get if move-in date is changed or not using FM CHANGEDOCUMENT_READ. This will return which field has been changed and NEW-OLD values of that filed. Pass move-in document number to object ID and corresponding object class and dates. I am not sure about Object class name for move-in. But you can check this in CDPOS and CDHDR table.
    Regards,
    Minal

  • How to find out PR and PO with the same requestor and approver

    object class = 'banf'
    object value = PR or PO Number.
    CDPOS - Fname ='FRGZU'
    CDHDR - Object class = CDPOS - Object class and
    CDHDR- Object id = CDPOS - Object id and
    CDHDR - Changenr = CDPOS - Changenr and
    CDPOS - Fname = Frgzu.
    This is the logic can any one help me in getting the code

    HI Param
      I am somewhat confused with your requirement, is it to find the same reqested/ approver or to check the release status of PR/PO as you are using field FRGZU which indicates the release status of PR/PO.
      Anyhow as per below conditions:
      OBJECTCLAS is 'EBAN' for PR and 'EINKBELEG' for PO. Note that itz case-sensitive, hence use upper case.
      OBJECTID is the document number
      Please try to use FM: CHANGEDOCUMENT_READ for the same. This might be more convinient for you. Also try to restrict with date criteria.
    Kind Regards
    Eswar

  • Character-currency.

    I am using FM changedocument_read and passing the f_old and f_new which 254 character in length to a currency data type with 14 character in length....When i do that I am getting short dump.....how to fix the problem

    Hi,
    Look at the code it may help u.
    REPORT ZMMCHGHISTORY NO STANDARD PAGE HEADING
                    LINE-SIZE 195 LINE-COUNT 60.
    Change doc listing
    Grouped into 3 chg types: 1. Part revision  2. Price change  3. Others
    TABLES:
            CDHDR, CDPOS, MARA, MAKT, MARD.
    FIELD-GROUPS: HEADER.
    DATA: BEGIN OF CHGDOC OCCURS 50.
            INCLUDE STRUCTURE CDRED.
    DATA: END OF CHGDOC.
    DATA:
          CHGTYPE(1),
          PLANT(4),
          MATNR1 LIKE CHGDOC-OBJECTID.
    SELECT-OPTIONS:
        XMATNR  FOR CDHDR-OBJECTID,    "Material
        XUDATE  FOR CDHDR-UDATE,       "Change Date
        XUNAME  FOR CDHDR-USERNAME,    "User Name
        XTCODE  FOR CDHDR-TCODE,       "Transaction Code
        XWERKS  FOR MARD-WERKS.        "Plants
    SELECTION-SCREEN SKIP.
    *Filter change type
    SELECTION-SCREEN BEGIN OF BLOCK CHG0 WITH FRAME TITLE TEXT-001.
       PARAMETERS : XCHG1 AS CHECKBOX DEFAULT 'X',
                    XCHG2 AS CHECKBOX DEFAULT 'X',
                    XCHG3 AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK CHG0.
    START-OF-SELECTION.
    INSERT:
            CHGDOC-OBJECTID        "Material
            CHGTYPE                "Change type
            PLANT
            CHGDOC-CHANGENR
            CHGDOC-USERNAME
            CHGDOC-UDATE
            CHGDOC-TCODE
            CHGDOC-TABNAME
            CHGDOC-TABKEY
            CHGDOC-CHNGIND
            CHGDOC-FNAME
            CHGDOC-FTEXT
            CHGDOC-TEXTART
            CHGDOC-OUTLEN
            CHGDOC-F_OLD
            CHGDOC-F_NEW
    INTO HEADER.
    SELECT * FROM MARA WHERE MATNR IN XMATNR.
       MATNR1 = MARA-MATNR.
       <b>CALL FUNCTION 'CHANGEDOCUMENT_READ'
         EXPORTING
            ARCHIVE_HANDLE             = 0
            CHANGENUMBER               = ' '
            DATE_OF_CHANGE             = '00000000'
              OBJECTCLASS                = 'MATERIAL'
              OBJECTID                   = MATNR1
            TABLEKEY                   = ' '
            TABLENAME                  = ' '
            TIME_OF_CHANGE             = '000000'
            USERNAME                   = ' '
            LOCAL_TIME                 = ' '
         TABLES
              EDITPOS                    = CHGDOC
         EXCEPTIONS
              NO_POSITION_FOUND          = 1
              WRONG_ACCESS_TO_ARCHIVE    = 2
              TIME_ZONE_CONVERSION_ERROR = 3
              OTHERS                     = 4.</b>
       LOOP AT CHGDOC.
          CHECK:  CHGDOC-UDATE    IN XUDATE,
                  CHGDOC-USERNAME IN XUNAME,
                  CHGDOC-TCODE    IN XTCODE.
        Chg type: 1. Part revision, 2. Price change, 3. Others
          CASE CHGDOC-TCODE.
             WHEN 'MM01' OR 'MM02' OR 'MM03'.  CHGTYPE = '1'.
             WHEN 'MR21'.  CHGTYPE = '2'.
             WHEN OTHERS.  CHGTYPE = '3'.
          ENDCASE.
        Filter chg type
          IF ( CHGTYPE = '1' AND XCHG1 <> 'X' ) OR
             ( CHGTYPE = '2' AND XCHG2 <> 'X' ) OR
             ( CHGTYPE = '3' AND XCHG3 <> 'X' ).
             CONTINUE.
          ENDIF.
        Plant is a substring of tabkey
          PLANT = CHGDOC-TABKEY+21(4).
          IF NOT ( XWERKS IS INITIAL ) AND NOT ( PLANT IS INITIAL ).
             CHECK PLANT IN XWERKS.
          ENDIF.
          EXTRACT HEADER.
       ENDLOOP.
    ENDSELECT.
    END-OF-SELECTION.
    SORT.
    LOOP.
    Material
       AT NEW CHGDOC-OBJECTID.
          SELECT SINGLE * FROM MAKT  WHERE MATNR = CHGDOC-OBJECTID.
          FORMAT INTENSIFIED ON.
          SKIP.  SKIP.
          WRITE:/' *** Material:', (18) CHGDOC-OBJECTID, MAKT-MAKTX.
       ENDAT.
    Change type
       AT NEW CHGTYPE.
          FORMAT INTENSIFIED ON.
          SKIP.
          CASE CHGTYPE.
             WHEN '1'.   WRITE:/ '  **  Change type:  PARTS REVISION'.
             WHEN '2'.   WRITE:/ '  **  Change type:  PRICE CHANGE'.
             WHEN '3'.   WRITE:/ '  **  Change type:  OTHERS'.
          ENDCASE.
          SKIP.
       ENDAT.
       SHIFT CHGDOC-F_OLD LEFT DELETING LEADING SPACE.
       SHIFT CHGDOC-F_NEW LEFT DELETING LEADING SPACE.
       FORMAT INTENSIFIED OFF.
       WRITE:
         /     PLANT          UNDER 'Plant',
          (50) CHGDOC-FTEXT   UNDER 'Field',
          (45) CHGDOC-F_OLD   UNDER 'Old value',
          (45) CHGDOC-F_NEW   UNDER 'New value'.
       AT NEW CHGDOC-CHANGENR.
          FORMAT INTENSIFIED OFF.
          WRITE:
               CHGDOC-CHANGENR   UNDER 'Change doc',
               CHGDOC-TCODE      UNDER 'Tcod',
               CHGDOC-USERNAME   UNDER 'User name   ',
               CHGDOC-UDATE      UNDER 'Date    ' DD/MM/YY.
       ENDAT.
       AT END OF CHGDOC-OBJECTID.
          SKIP.
          ULINE.
          SKIP.
       ENDAT.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE: / SY-DATUM, SY-UZEIT,
        50 'ABC PTE LTD',
       100 'page', SY-PAGNO,
           / SY-REPID,
        48 'Change Documents Report',
       100 SY-UNAME.
    SKIP.
    ULINE.
    WRITE:/3
            'Change doc',
            'Tcod',
            'User name   ',
            'Date    ',
            'Plant',
       (50) 'Field',
       (45) 'Old value',
       (45) 'New value'.
    ULINE.
    End of Program
    Since i couln't get ur point i am giving u this program.
    Pls reward points if u get some help out of it.
    Regards,
    Ameet

  • CHANGEDOCUMENT_READ

    Req:
    While creating condition records through VK11, if we maintain scale prices as well, the entries that get stored in CDHDR and CDPOS are wrt to new entry only and not reflecting KONM table with scale prices.
    However, when we change scale prices in condition records through VK12, the changes are captured as old value and new value in CDPOS table.
    Now the requirement is that user wants to report scale prices data even when they are creating the new condition records. And using  FM u2018CHANGEDOCUMENT_READu2019
    Or u2018CHANGEDOCUMENT_READ_HEADERSu2019 is not capturing the scale prices data as explained above.
    Any pointers for this are appreciated.
    Probable Solution:
    Do the coding after CHANGEDOCUMENT_READ and read the table (structure CDRED) with tcode VK11 and read the data from KONM table.
    Modify internal table accordingly and let the rest of processing go on.
    If you find any solution better than this usual brute-force method, please advise.
    Thanks in advance !

    Hi,
    if we maintain scale prices as well, the entries that get stored in CDHDR and CDPOS are wrt to new entry only and not reflecting KONM table with scale prices.
    is it the new condition records maintained are not getting updated in KONM table
    Can u specify which condition type u r using ..
    if u r able to retreive the new records maintained from KONM ,thn the probable solution u specified wud work..
    Regards,
    Mdi.Deeba

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Using Mini DVI to VGA adapter on MacBook

    I bought the adapter from Apple & hooked up my LCD monitor to the MacBook, but the video I get on the monitor is different that on my laptop. It has an old screen background & the dock but nothing on my desktop shows up. Also, when I'm plugged to the monitor, my dock disappears on the laptop screen. Is there some setting I need to change? It worked fine with my G4 PowerBook.
    Thanks for any help....
    MacBook   Mac OS X (10.4.6)  

    i use the mini dvi-vga adapter in my classroom almost everyday. It sounds like your new monitor is running as a side by side monitor to your display instead of a "replacement" display.
    To get your projector/monitor to basically show whatever is on your macbook screen once you've hooked up press F7....this should make your projector/monitory become your display with your dock & all of your desktop stuff. Your new monitor will completely mirror your display.
    THis should do what you're looking for.

Maybe you are looking for

  • ARQ: "No Provisioning log available" message in Access Request

    Hi, I am facing a problem wherein, a request is duly provisioned and closed. However, in email notification, I get below message: Hi XXX, The Request number : 123 , has been processed by XYZ and the Request is Closed. The details are as follows: No P

  • Read from measurement file (wrong values)

    I have a VI where I save data using the ''Write To Measurement File utility''. When I open the .lvm file in the note pad I can see all the data correctly, but when I use the "Read From Measurement File" tool and try tho make a graph the data shown is

  • Application download is stuck on "loading"

    last night, I tried downloading an update for a previous application. However, it was taking longer than it should have, so I decided to reset it. It basically bricked the iphone for more than an hour. Once I got it unbricked, it showed the app stuck

  • Problem: Frozen desktop Icons

    ok so I have a Lenovo X301 6477 and for some reason recently icons that I place on my desktop cannot be removed/found, even though they are clearly on the desktop. Some of the Icon pictures have disappeared or replaced with blank page icons. Anytime

  • Sales BOM error

    Dear Gurus, I have one issue where in the sales order there are no of items along with some third party items and BOM materials. This is Billign plan document type. Noe when i change the quantiy of Header Item the quantities of Chield items do not ge