SU01 role add versus role change inside customer exit Z_USERS_TRANSFER

We're using customer exit Z_USERS_TRANSFER (reference note 367660) to do some custom code after a SU01 save.  The "changed" roles are transferred through an internal table and I'm also querying the table AGR_USERS to get the userid's "current" roles into an internal table.  I also know the SU01 mode (create, change or delete).
The problem is being able to differentiate between an added role or a changed role while in SU01 change mode.  For example, if I add role ABC the changed_role_itab has role ABC and the current_role_itab has role ABC.  If I then change role ABC to have a valid from date of 5/19/2007, both of the internal tables will have role ABC with a valid from date of 5/19/2007.
I thought about looking at change documents but that may be too complicated.  Any suggestions?
Thanks,
Brad

Hi Brad,
I have a workaround for you. In the user exit do as following...
Delcare a internal table withe structure AGR_DEFINE
example : data: t_agr_define type agr_define occurs 0 with header line.
now read the role information from the database table ( This would have old values since you have not changed yet inSU01).
select * from agr_fine into t_agr_define where agr_name = <rolename.
Now you  will have old value to be compared with another internal table current_role_itab.
Reward points if its helpful.

Similar Messages

  • How to change a customer exit variable in columns

    Hallo Experts,
    i have a query with two columns. In the first column is a customer exit variable, who get filled with the actual calyear. In the second column is the same variable with an offset -1.
    When i execute the query, in the first column i can see the year 2007 and in the second column i can see 2006. That´s ok.
    Now i want to change the year (dynamically) in a filter 2007 in 2005. The result should be in the first column 2005 and in the second column 2004.
    What can i do?

    Hi Jens,
    As I understand the scenario, you have two RKF or selections in column 1 and 2, one is restricted with variable ZYear, the other with the same variable, offset - 1 and variable ZYear provides current year.
    I think there is no way to change years dynamically in a filter, but you could solve the issue by refreshing the query and overwrite default value provided by customer exit.
    To achieve this, please change variable and check 'Ready for input' in change dialog..
    If this shouldn't work, please let me know details a variable definition and customer exit.
    Have a nice w/e
    Joe

  • Changing a customer exit variable in Step 2 which was already set in Step 1

    Hello,
    i have the following problem.
    There are 2 BEx customer exit variables A and B.
    Variable A is filled in Step 1 before the user dialog appears.
    Variable B is determined in Step 2 in dependence of variable A.
    Now i want to change variable A in dependence of user entry althoug it was already filled in step 1. Can i somehow force the variable manipulation in step 2 for a single variable wich has already been set in step 1?
    Or is there a way to change all variables at once after they have been set e.g. in step 3?
    Regards,
    Alexander

    Hello Alexander!
    It's true: You cannot change values that were entered in step 1. It's a feature This is supposed to make sure that a value that was entered (or confirmed) by the user can never be changed by any piece of coding - customer or SAP. If that possibility existed, then that would create some real issues for reliability and also support.
    What is your scenario that you are trying to solve? Maybe there's another way to do it?
    Regards,
    Christian!

  • How to add history for changes on custom fields in PO

    Hi all,
      I have added custom fields to purchase orders via ME21N, ME22N, ME23N.  When i update the changes on the custom fields, there is no history kept in ME22N or ME23N  screen.  Is there a way I can add my custom changes to the po history ?
    Any suggestions are welcome.
    thanks
    Joyce

    Hello!
    What kind of "history" do you mean? If you would like to store entries in transparent table EKBE, the M.Seema's suggestion may be reasonable. But if you mean that changes need to be logged by means of Document Changes Service, you should get hold of information here http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm

  • Error when trying to change Customer Exit Enhancement RSR00001

    Hi Gurus,
    I am getting the following error when I am trying to change the Customer Exit Enhancement RSR00001: "Source Text of Exit Func. not changeable."
    Please help.
    Thanks,
    Ashmith Roy

    Hi ,
    Not sure why u would like to change the text but can u try this way:
    1) go to smod and key in the enhancement
    2) click on change button and reneter the new text after accepting the language option as logon language
    3)save under a transport
    4)go to cmod and recheck the text must be changed.
    kindly award points for the same.
    tx,
    Madhu

  • Custom Exit variable

    Hi ,
    I need to support a Bex report and need to understand the existing custome exit they have for a variable.
    Eg : in the BEx Query, i see they have created a custom variable and used that to automatically get the current month and populate the query.
    I went to BEx change mode and variable Display/change mode but that just gives the details that it is the custome exit and technical n
    Can you please tel me the steps to get to the code level behind it to understand the logic ?
    Thanks.

    Hi Chris,
    to get the what they have written,
    goto T-code   SE38 >>>> Give program name ZXRSRU01  click enter
    It will open a new window which has all the customer exit codes
    For ex:
    case i_vnam.
    when 'VAR1'.
    SOME LOGIC
    WHEN 'VAR2'.
    SOME LOGIC
    WHEN 'VARN'.
    SOME LOGIC.
    END CASE.
    Here var1 var2  and .. varn are the  customer exit variables {techical names].
    When ever user run the query which contains the customer exit it will trigger the above include program and it will trigger respected when logic.
    Do debugging through T-code RSRT  [  give query name [execute + debug } }  in order to understand the logic step by step.
    Note : you can also use the
    T-code CMOD> project >> enhancement RSR00001>>> EXIT_SAPLRRS0_001>>>ZXRSRU01
    to check / to change the customer exit program.
    Regards,
    Ranganath

  • Hierarchy Node authorization with customer exit

    Hi All,
    I have created a hierarchy for an info-object A along with nodes test1 and test 2.node test1 consisit of value 10,20,30,40,50 and node test2 consist of value 60,70,80,90.  .
    1) I want that perticuler user should access perticuler node in hierarachy for that reason I have created a database table in which i have maintained the username and the values from the Infoobject A .I want to write a customer exit code in which user X can access node test1 and user Y can access node test2
    but in database table i can not maintain the nodes i can only maintain the values from the nodes
    so how can i restrict the user to perticuler node instead of values
    The authorization values for the perticuler user will get filled by customer exit variable maintained in the authorization profile
    can any body suggest me or send me example customer exit code for this scenario.
    I really appreciate your thoughts on this issue.
    Thanks,

    Hi,
    in addition to Anil's valid input, make sure that ZTEST is NOT ready for input. Indeed "ready for input" vars cannot be changed via customer exits.
    hope this helps...
    Olivier.

  • Passed i_step = 2,3(Hierarchy Node Variable with Customer-Exit)

    Hellow !
    I want to insert the following ststement to force the variable to be executed with i_step = 2 or 3.
    CASE I_VNAM.
    when 'ZTEST'.
        CLEAR loc_var_range. REFRESH loc_var_range.
        CLEAR: l_s_range, ytest001.
    LOOP AT i_t_var_range INTO loc_var_range.
       SELECT * FROM ytest001
                  WHERE bname = sy-uname
                        AND node   = loc_var_range-low.
            IF sy-subrc = 0.
              l_s_range-low = loc_var_range-low.
              l_s_range-high = '0HIER_NODE'.
              l_s_range-sign = 'I'.
              l_s_range-opt  = 'EQ'.
              APPEND l_s_range TO e_t_range.
             else.
              l_s_range-low = '#'.
              l_s_range-sign = 'I'.
              l_s_range-opt  = 'EQ'.
              APPEND l_s_range TO e_t_range.
             endif.
    ENDLOOP.
    However, Passed customer-exit(Enhancements for Global Variables in Reporting)  i_step =2,3
    Regards,
    Don

    Hi,
    in addition to Anil's valid input, make sure that ZTEST is NOT ready for input. Indeed "ready for input" vars cannot be changed via customer exits.
    hope this helps...
    Olivier.

  • SCCM 2012 R2 Cu1: Can I reinstall the Reporting Services Point role without delete or change the SSRS-DB?

    Hi, I have some issue with the reports,
    Can I reinstall the SCCM Reporting Services Point role without delete or change the SSRS-DB (just reset the SCCM SSRS function)?
    I have saved/backup the custom made reports.
    /SaiTech

    Yes you can remove and reinstall the Role.  I had to do this recently on our SCCM 2012 R2 due to an issue with the reports not loading.   Found out that the problem with reports was from the upgrade to R2 from 2012 SP1 and was able to run
    a command to re-register the reports with WMI.  I actually removed the role, uninstalled reporting services feature from SQL, deleted the report databases, reinstalled the SQL feature, configured the reporting databases again, added the role back, and
    ran the following command.
    mofcomp "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    This allowed all my reports to register as they should have and run without errors.  If you are having similar problems, you may be able to just run that command to get reports running without all the extra work I did.  For us we were getting an
    invalid Class error in the srsrp.log.
    Brian

  • Indirect pfcg role assignment - no roles in SU01

    Hi experts,
    I would like to assign PFCG roles via indirect assignment, this means i would assign roles with the organisational model (transation ppomw).
    I did the assignment and i executed the transaction pfud for user master data reconciliation. But the pfcg roles are not assigned to the user (see roles in transaction SU01). Usually the roles should be displayed (in blue and with xflag for indirect assignment).
    Are there any customizing configurations i have to keep in mind?
    Hope you can help as fast as possible.
    Thanks a lot and best regards,
    Natali

    Run PFUD if this is still an issue.

  • Howto add user role in OID for PORTAL use from wihtin SSO SERVER plugin

    Hi all,
    Can someone help me with this issue:
    I'm developing a custom authentication module for SSO Server. From this plugin I would like to set the roles/groups to which that user belongs, before the redirect to the Portal is done.
    I'm adding the user attributes to the OID via the DirContext.modifyAttributes(..) method from within the plugin. However I don't know how to add the roles/group definition to the user entry in the OID so that Oracle Portal can show a personalized desktop when the user logs on.
    Hope someone can point me in the right direction.
    Many thanks in advance!
    Kind regards,
    Chris

    Chris ,
    Do you know how to get user role in OID? Did you fix this issue. i have same job in this point.
    Thanks

  • How to Automate to Add a Role for 250+ Users in One Shot ?

    Hi all,
      How can I add a Role 'X' for 250+ User in one shot. I could go to SU01 for each User and add a Role 'X' manually, but it will take at least more than two hours. Is there any automation to accomplish this task, PLEASE ?
    Thanks.

    Look at the How To paper on maintaining authorizations through flat file...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1d8ea990-0201-0010-43b3-d13b83e2bf20">How to maintain authorizations through flat file</a>
    Hope this helps.

  • Mass add BP role to BP

    Hi experts,
    Is there a way to add BP Role to business partners with no BP role assigned (just has BP General) .
    "Mass" transaction only allows change of BP role on BP which has atleast one BP role assigned.
    I want to add BP role Competitor for 100000 BPs.
    Please advice.
    Thanks

    If you know the LSMW you can create your own if not need to take their help,this is the easy method and which exactly match your requirement.
    Ram

  • Changing Portal Role after the status change of user status at the CRM end.

    Hi,
    I have Portal with Java database as the default and CRM is connected to it using SSO.The database in both the case in separate.The users that are created in Portal will have a BP status in CRM sytsem.
    Now my requirement is that if the status of the BP gets changed at the backend simultaneoulsy its Portal role should also gets changed.How shall i facilitate this procedure of changing the Portal Role?
    Is there any RFC ,BAPi or Webservices required for this?
    Regards,
    Amarys
    Edited by: amarys on Sep 13, 2011 11:20 AM

    Hello,
    Since the status has no number it will appear under statuses W/O number bottom right in status overview window.
    These status will appear as additional text beside current user status. For example if user staus is BUG and status without number is DFL and sets when deletion flag is set and gets deleted when it is revoked than user status will appear as
    BUG DFL -
    Deletion flag set.
    BUG -
    When deletion flag revoked.
    You have to live with it. I don't think there is a way out for that.
    Thanks
    Saikishore Ganga.

  • How to add a role so user can do Export, Copy & paste Master Data?

    How to add a role so user can do Export, Copy & paste Master Data? Thanks!

    Add S_GUI to the user role.

Maybe you are looking for

  • Need to connect an Apple Display with an ADC plug to a Mac Mini with a DVI port

    I have an older Mac Mini (I'd guess at least 4-5 years old, but I have a terrible memory), and I want to connect a Cinema HD Display with an ADC connector plug. Unfortunately, my Mini only has a DVI port, and I cannot find an Apple adapter, or any ad

  • Fonts not displaying correctly

    Hey, I've been having a problem in Safari where some of the lesser used symbols are displayed with a squared white on black question mark symbol instead of the characters they should be displayed as. Looking in Font Explorer X I see that .Helvetica a

  • QT 7.3 not working in Leopard

    Worked fine in Tiger, but I only get the ? icon in Leopard - this is in all apps., not just Safari.

  • Not Happy Creative! Please re

    I just got my traveldock zen micro a hour so ago. I have some questions. When the zen micro is in the traveldock, i am having trouble scrolling, its very tough to scroll. When its out its fine. I tryed doing a clean up and it did nothing. Is it becau

  • Tried to convert a large PDF to word. Timed Out....tried 3 times

    I tried to convert a very large PDF document to word three times; it timed out all three times, solution? Thanks Rick