How to determine that the Mapped User Id has the active r/3 account?

Hi Experts,
I have a requirement to determine the whether the mapped user ID in portal has active  or inactive user account in R/3.
For example:
We have implemented SSO between WAS & backed R/3. Now the user has the active poratl account but the R/3 account is inactive or locked due to some reason. Now in this situation when user logs in and hit the application then the screen display's the 500 internal server error which is not understood by the client. The requirement is to display the custom message instead of 500 internal server error inorder to direct the user that his account is inactive or locked in R/3.
I have to handle this within the WDinit method of the Componenet controller which will stop the processing if incase the above is true and display the appropiate Error Message.
Hope I am clear in statement above.
Looking for your prompt reply.
Thanks
Shobhit Taggar

Hi
import com.sap.security.api.IUserAccount;
See this link
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417300)ID1438221150DB00601362742208939333End?rid=/library/uuid/40d562b7-1405-2a10-dfa3-b03148a9bd19&overridelayout=true
Kind Regards,
Mukesh.

Similar Messages

  • How to determine that the user/ pernr is comp cord?

    Hi,
    In tcode pa30 i see there is Comp Cord field. so these are the HR persons right which use the three digits numbers.
    So my question is how to determine that the user/ pernr is comp cord?
    I want to create the fm and pass user id as import and want to find out where this user is belongs to comp coordinator or not.
    i do see some entry in the T526 table but not sure, how it work.
    Regards
    Ali

    hi ali,
    SACHX is the field you are looking for ..
    regards
    Manthan Raja

  • How to determine if Opportunity was deleted manually by the user?

    An opportunity can be deleted by 2 ways.
    1) Manually by a user by clicking on the delete button
    2) Deleted by a process via web services.
    I have a workflow set up for delete and it will create an integration event whenever you delete an opportunity. But I only want this workflow to run under #1 condition above.
    Is there a way to determine that?
    Thanks

    Hi,
    please find below the channel list together with a short description. This list is also available in the online help.
    Import
    This channel string excludes updates performed through the import functionality and through Oracle Data Loader On Demand.
    Online
    This channel string excludes updates performed by user interactions through browser windows.
    Mass Update
    This channel string excludes updates performed through the Mass Update option on list pages.
    Record Merge
    This channel string excludes updates performed by record merges.
    Offline
    This channel string excludes updates from Oracle Offline On Demand.
    Web Services
    This channel string excludes updates from Web services.
    Office
    This channel string excludes updates from Oracle CRM On Demand Integration for Office.
    OEI
    This channel string excludes updates from Oracle Outlook Email Integration On Demand and Oracle Notes Email Integration On Demand.

  • How often Apple take care of user reports on the Maps app?

    I report on many problems at Apple new map app. But it seems Apple doen't take that reports sersioly. How long should I wait to see a report taking care and to see the map update according to the report?
    How the "Report a problem" system works?

    My experience has been they are very slow.
    I've tried to report the correct address for the houses in my development for the past year, making multiple reports. Both from my own iPhone, iPod Touch, and from iPhones in Apple Stores. They still think the 11 house housing development has the single address from when just one house was there and before it was subdivided in 2004, even though the satellite image shows 11 houses.
    I Reported the error to Google and it was updated in a week or so.
    Waze let me make the update myself, as well as layout and name the development roads.
    It can get annoying when people cannot find your house because the GPS does not have your house.

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • How to show the login user Id in the upper right corner of each page?

    Hi,
    I was wondering how to show the login user Id in the upper right corner of each page?
    thanks so much!
    cchu

    Cchu,
    The easy question first: applying a style to the welcome message. If you look at the page source, you'll see that #WELCOME_USER# is expanded to <div class="app-user">Welcome: DEMO</div> So to change the style of the message, you need to tweak the style of the app-user div in your CSS, or override it in a style block in your HTML header.
    Now, the tougher question: why the text is wrapping for you. And, really, without seeing your entire page, I can't give a full answer. But I'd suggest that what's most likely happening is that the table column you're putting it in is too narrow, so it's wrapping; try replacing the td tag with <td nowrap="nowrap"> This will force the column to be wide enough to display the full message, but might result in weird formatting elsewhere on the page (depending on what all is in your table).
    -David

  • I have purchased an ex-corporate ipad air. it has come locked to the previous users ID. The purchase is from a reputable auctioneer of which receipts can be produced. How can i process the unlocking/deactivation of the previous apple ID.

    I have purchased an ex-corporate ipad air. it has come locked to the previous users ID. The purchase is from a reputable auctioneer of which receipts can be produced. How can i process the unlocking/deactivation of the previous apple ID.

    Unfortunately the situation as we understand it is that Apple will unlock phones locked by the original owner if they themselves provide proof of purchase. They will not unlock it at all for a subsequent owner who has bought it second-hand, however legitimately.
    The auction house have sold you an item which is not working as described and your argument is with them. They must take it back and refund your money. If as you imply the previous owner is absolutely not available then this phone is permanently unusable and there is no way whatever round that.

  • How can I find out the list of users who has the access to IT 0008

    All,
    How can I find out the list of users who has the W R permission for IT 008
    for others?
    SUIM doe not look like giving me the correct results.
    Please advise.
    Thanks,
    From
    PT.

    combine tables AGR_1251 and table AGR_Users on keyfield AGR_USERS
    in tabel AGR_1251 select on Field LOW values IT0008.OR W OR R,
    noiw you get also other values
    So better solution run the query twice over AGR1251 first on IT0008 and secondly on values W OR R and then the result over table AGR_USERS
    Youu also might put an additional selection on object P* (only selecting HR objects)
    output wll be UID in table AGR_USERS

  • HT204053 Can I have two Iphones connected to one icloud account and if so, how do I change the icloud user name on the phone

    Can I have two Iphones connected to one icloud account and if so, how do I change the icloud user name on the phone

    Welcome to the Apple Community.
    Yes you can use one iCloud account between multiple devices.
    What do you mean 'change the iCloud user name'.

  • Error in retrieving the mapped user??

    I am using this code for retireval of the mapped user data:
    IPortalRuntimeResources obj1 = PortalRuntime.getRuntimeResources();
    IService obj2 = obj1.getService(IUserMappingService.KEY);
    IUserMappingService iums = (IUserMappingService)obj2;
    but I m not able to proceed beyond this line:
    IUserMappingService iums = (IUserMappingService)obj2;
    the system is not giving any exception bcoz the loggers in the catch block are not printed. but its not executing beyond this line.
    I m using EP6.0 SP9.
    I m trying this code in the RF framework(Repository Manager)
    Kindly help.

    See Current portal User? - Please do not crosspost.

  • How can I delete the other user reviews from the apple app developed by me

    How can I delete the other user reviews from the apple app developed by me

    As a registered developer you have access to the registered developers discussions area and direct access to the appropriate Apple personnel in regards to such a question. Pretty sure app reviews can't be deleted, but this is far from the appropriate place to get an answer for this.

  • TFS 2012 - How to make TFS focus Team users only to the scope of their Team

    We have a Team Project with couple of Teams defined under it.
    Some users of a certain Team, want to focus their work access in TFS only to their own team, and as possible not see any other team nor the TFS Default team in the browse lists in TFS Web Access and in Visual Studio Team Explore.
    It is possible to give those users write access only to the Area of their team, and deny write access for them to all other teams including Team Project Default top level (by simply putting Deny in Edit Work Items permission of the top level Area, and Allow
    in the same permission of the specific team). However, these users will still see the list of other teams and the root team project, in browse list, because they are contributers at Team Project Level.
    Can u advise as per a simple workable solution ? Thank u.

    Hi Moital,  
    Thanks for your reply.
    As far as I know there’s no default way to limit the team users browser other teams from TFS Web Access team project page. But I think the team users cannot view the items in other team’s backlog pages although they can browser to other team’s backlog page.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using the login user name in the report

    It will be appreciated if someone can help on the following:
    How can I use the login user name in the report?
    I mean that the report will be build on SQL statement look like :
    Select a, b, c, d
    For table
    Where a = <the user name used to login to htmldb>
    Thanks

    select a,b,c,d
    from table
    where a= :APP_USER

  • The current user username has not been granted the ADVISOR privilege despite having it !

    Hi,
    I'm trying to follow ML note 2499931.1 'Using Dbms_Advisor.Tune_Mview To Optimize Materialized Views For Fast Refresh' and am receiving an error suggesting the user4 does Not have the Advisor privilege
    despite the fact that it does. What am I missing ?
    Every note I've found so far suggests granting the privilege is the fix.
    I have and continue to receive the error.
    Version 11.2.0.3 on Redhat 5
    select * from dba_sys_privs where grantee = 'SOAUSER';
    GRANTEE                        PRIVILEGE                                ADM
    SOAUSER                        CREATE MATERIALIZED VIEW                 NO
    SOAUSER                        CREATE VIEW                              NO
    SOAUSER                        CREATE PUBLIC SYNONYM                    NO
    SOAUSER                        SELECT ANY DICTIONARY                    NO
    SOAUSER                        ON COMMIT REFRESH                        NO
    SOAUSER                        CREATE ANY DIRECTORY                     NO
    SOAUSER                        CREATE DATABASE LINK                     NO
    SOAUSER                        SELECT ANY TABLE                         NO
    SOAUSER                        ADVISOR                                  NO
    SOAUSER                        UNLIMITED TABLESPACE                     NO
    SOAUSER                        CREATE SESSION                           NO
    Error at line 2
    ORA-13616: The current user SOAUSER has not been granted the ADVISOR privilege.
    ORA-06512: at "SYS.PRVT_ADVISOR", line 4869
    ORA-06512: at "SYS.DBMS_ADVISOR", line 1969
    ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 490
    ORA-06512: at "SYS.PRVT_TUNE_MVIEW", line 970
    ORA-06512: at "SYS.DBMS_ADVISOR", line 739
    ORA-06512: at line 3
    Thanks in Advance
    Ken

    Sorry, but the code I was receiving the error message for is essentially   the same as the example in the note. Assumed people would have access to the note.
    The statement is:
    variable foo varchar2(20);
    declare foo varchar2(20) := 'ken_foo';
    begin
    dbms_advisor.tune_mview(:foo,
    'create materialized view ken_foo
    as
    select 
    papf.rowid R_papf,
    paaf.rowid R_paaf,
    gcc.rowid R_gcc,
    papf.employee_number,
    gcc.segment4 cost_center
    from hr.per_all_people_f@atc_pp_to_ebs_atcllc papf,
         hr.per_all_assignments_f@atc_pp_to_ebs_atcllc paaf,
         gl.gl_code_combinations@atc_pp_to_ebs_atcllc gcc
    where papf.person_id = paaf.person_id
    --and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    --and trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
    and paaf.default_code_comb_id = gcc.code_combination_id');
    end;
    Per another forum the answer appears to be that sys didn’t have the advisor privilege.
    Granted advisor to sys and ran the statement again as soauser and no error.
    Thanks
    Ken

  • I need to know, what was the last user who modify the customer hierarchy???

    Someone know s, what´s the name of a table or something, to find the last user who modified the customer hierarchy, and the date.??
    Thanks everyone for your help!!!

    Hi Itzell,
    Try the following way
    -->goto se16  Enter the table CDHDR and press enter
    --> Enter  "KUNHIER" in  Change doc Obj..  and
         Enter the date range in Date field.
    YOu should get some items in the table.
    (       If there are no items, that means. no change was happened to the Customer Hierarchy structure or the changes were not being store. )
    -->  If you want more details refer to CDPOS too..
    Regards,
    Ajai.
    Don't forget to reward points if helpful.

Maybe you are looking for

  • Re-installing iTunes on a New PC

    Hi: I've been messing around with upgrading my OS to Windows XP and have installed iTunes twice (i.e. once for each time that I re-installed the operating system). The problem is that iTunes keep reporting that I have authorized 3 machines to access

  • Still can't change the font in Indesign CC forms?

    We have just upgraded and it seems that Indesign CC still does not have the capability to change the font when creating interactive forms.... correct me if I'm wrong, but if I'm right Adobe can you please implement this for the next version – very fr

  • How to select Card manager on Default JavaCard simulator from NetBeans 7.2

    Hi I'm trying to resolve three questions 1) to find FAQ/Manual about simulator included into 3.0.2 JavaCard Connected platform 2) which commands for Card Manager of simulated default JavaCard are supported 3) how to upload simple applet (ex. HelloWor

  • Canon 8400F question-scanning mulitple photos

    Hi, I recently got a Canon 8400F scanner and have a question. I can scan photos into the scanner fine. If I put one photo on the scanner glass, I get 1 scanned photo jpeg. If I put 4 photos on the scanner glass I get 1 jpeg. I have hunted around some

  • How to design application to decouble business logic from GUIs on SAP N7.0

    Hi guys, How should I go about designing a program, so that I can decouple the business logic from GUI in ABAP in such a way that I can change the GUI easily or use different GUIs eg. on a scanner etc..