Method of fetching Account status and user locked date in Portal.

Hi,
Can anyone suggest me the method name  in UME API in Sap Ep for fetching User Account Status and Last User Locked Date. Or suggest a related code for it.
user database is LDAP.
Thanks

Hi Abhai,
The class (actually Interface) you're looking for is IUserAccount. You can get this from the IUser by using the method getUserAccounts().
The IUserAccount provides all sort of methods like lockDate(), isLocked(), getLockReason().
See more in https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/_d-f/ep%206.0%20sp2%20usermanagement%20public%20api
Best regards,
Amit

Similar Messages

  • Fetching the sales order data using both system status and user status

    Hi,
    Could any one tell me how to fetch sales orders using both system status and user status.
    My requirement is to fetch sales order data in a report where the user enters the system status and user status in the selection screen fields.
    For example i need sales orders where the system status is I1002 i.e. OPEN and user status is E0002 (status profile CMSCON0) that is In Process
    Early replies are appreciated.
    Thanks
    Tanveer

    Hi,
    The system status and user status are stored in CRM_JCDS & CRM_JEST tables you can get the all the order GUID on particular status further pass the order GUID in table CRMD_ORDERADM_H to get transaction ID.
    Regards,
    Dipesh.

  • How to fetch service order with partucular system status and user status

    Hello All,
    How to fetch service orders with specific system status and user status.
    thanks

    I want tables or views from where I can fetch service orders. I have to design ALV report based on this.
    I want to fetch released service orders with status INIT and RENT.
    Here, SYSTEM Status = Released and
             USER Status     = INIT
                                        RENT
    So is there any function module available for the same.....

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

  • System status and user status Priority

    Hi All,
    We have system status and user status for the production order, I would like to know which has higher priority.
    E.g In system status some business activity are not allowed but at the same time for user status those activites are active, then which status has high priority.
    Regards,
    Ranjan

    Hi,
    As per my understanding both the status work together. If User status forbids a business transaction and system status allows it, then also the business transaction cannot be carried out.
    Also if system status forbids a business txn and user status allows that, then also you wont be able to carry out the txn.
    Both work with "AND" condition.
    Regards,
    Rohit.
    Added: you can try it by creating a User status profile. Allow Goods Movement to CRTD status. Now dont release the production order, only save it. Then try issuing goods (261), the system will block you.
    Now, other way round, forbid GR without confirmation. Though System Status allows GR without CNF or PCNF status, but the user status will forbid the transaction.
    Hope the example helps.
    Regards,
    Edited by: Rohit Chauhan on Jun 5, 2009 9:09 AM

  • System status and user status in Line Item Reports

    Dear PS-friends,
    I have to extend the CI CI_PROJ with some new fields. These fields should be shown in diverse Line Item Reports (CJI3 u2026).
    I know how to get these customer fields into the field catalog for the reports (maintain include table CI_RKPOS, EXIT_SAPLKAEP_001 and ViewCluster V_TKALV).
    Now our customer wishes that 2 of the new fields are: system status and user status. The status should be shown in CJI3 as a concatenated field as you see it in CJ20N.
    In CN42 there is the column system status as a standard column. But I cannot find the structure CNJ_STAT included in V_TKALV for Line Item Report Object=PD.
    Has anybody an idea how it works to show the system status and user status in Line Item Reports.
    Thanks in advance!

    Problem is solved.
    I wrote a function module using FM 'STATUS_TEXT_EDIT' and concatenated line and user_line.

  • Pf status and user-command

    hi
    can any one explain me about pf-status and user-command?  what is the difference between this two and how to display icons in it.
    max reward points for good answer
    thanks
    alka

    Hi alka ritu  ,
    Check the following websites for good documentation o n pf status and user-command
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm
    1. How to set pf-status
    set pf-status ‘ZZBILSTA’.
    2. How to set pf-status excluding/including single menu items
    You can exclude menus by using exclude :
    set pf-status ‘ZZBILSTA’ excluding ‘PST’.
    Note: Can also be used with include instead of exclude
    3. How to set pf-status excluding/including several menu items
    You have to use an internal table to store the status you wan’t to ex- or include:
    DATA:BEGIN OF I_PF_STATUS_TAB OCCURS 10,
    FCODE,
    END OF I_PF_STATUS_TAB.
    FORM SET_PF_STATUS_POSTER.
    REFRESH I_PF_STATUS_TAB. MOVE ‘PST’ TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. MOVE ‘ART’ TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. SET PF-STATUS ‘ZZBILSTA’ EXCLUDING I_PF_STATUS_TAB.
    ENDFORM.
    4. Setting PF status to the (SAP) system default
    set pf-status ‘BASIC’.
    5. How to check for pf-status
    AT USER-COMMAND.
    CASE SY-UCOMM. WHEN ‘ART’. PERFORM STYR_ARTSKONTI. WHEN ‘PST’. PERFORM STYR_POSTER. WHEN ‘BIL’. PERFORM VIS_BILAG. ENDCASE.
    6. Use of SY-PFKEY
    You can use the system variable sy-pfkey to retrieve the name of the current pf status
    USER-COMMAND:
    If the user chooses a function code during list processing that is neither processed by the system, or PICK or PFnn, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
    AT USER-COMMAND.
      statements.
    In this event block, you can use an IF or CASE structure to differentiate between the function codes. They are available in the system field sy-ucomm. There are further system fields that are filled in list events, such as sy-lsind and sy-pfkey, that allow you to make further case distinctions.
    Triggering a List Event from the Program
    You can trigger a list event from the program as follows:
    SET USER-COMMAND fc.
    This statement takes effect after the current list is completed. Before the list is displayed, the event assigned to function code fc is triggered, regardless of the dialog status you are using.
    The effect is the same as when the user chooses the function. In other words, predefined list function codes are trapped and processed by the runtime environment, the function codes PICK and PFnn trigger the AT LINE-SELECTION and AT PFnnevents, and user-defined function codes trigger the AT USER-COMMAND event block.
    Function code PICK triggers an event only if the cursor is located on a list line.
    Using this statement in conjunction with the function codes reserved for system functions, you can call the system functions from the program. For example, you can use SET USER-COMMAND '%SC' to call the Find dialog box directly, or to position the list correctly before it is displayed.
    If you use several SET USER-COMMAND statements while creating a list, the system executes only the last one.
    Example of AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
      WRITE: 'Basic List',
           / 'sy-lsind:', sy-lsind.
    TOP-OF-PAGE.
      WRITE 'Top-of-Page'.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      CASE sy-pfkey.
        WHEN 'TEST'.
          WRITE 'Self-defined GUI for Function Codes'.
          ULINE.
      ENDCASE.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
      PERFORM out.
      sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'FC1'.
          PERFORM out.
          WRITE / 'Button FUN 1 was pressed'.
        WHEN 'FC2'.
          PERFORM out.
          WRITE / 'Button FUN 2 was pressed'.
        WHEN 'FC3'.
          PERFORM out.
          WRITE / 'Button FUN 3 was pressed'.
        WHEN 'FC4'.
          PERFORM out.
          WRITE / 'Button FUN 4 was pressed'.
        WHEN 'FC5'.
          PERFORM out.
          WRITE / 'Button FUN 5 was pressed'.
      ENDCASE.
      sy-lsind = sy-lsind - 1.
    FORM out.
      WRITE: 'Secondary List',
           / 'sy-lsind:', sy-lsind,
           / 'sy-pfkey:', sy-pfkey.
    ENDFORM.
    Example of AT USER-COMMAND.
    REPORT demo_list_set_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
      SET USER-COMMAND 'MYCO'.
      WRITE 'Basic List'.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'MYCO'.
          WRITE 'Secondary List from USER-COMMAND,'.
          WRITE: 'sy-lsind', sy-lsind.
          SET USER-COMMAND 'PF05'.
      ENDCASE.
    AT pf05.
      WRITE 'Secondary List from PF05,'.
      WRITE: 'sy-lsind', sy-lsind.
      SET CURSOR LINE 1.
      SET USER-COMMAND 'PICK'.
    AT LINE-SELECTION.
      WRITE 'Secondary List from LINE-SELECTION,'.
      WRITE: 'sy-lsind', sy-lsind.
      SET USER-COMMAND '%SC'.
    http://maxdb.sap.com/currentdoc/94/90ee41c334c717e10000000a155106/content.htm
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • How to get system status and user status ?

    how to get system status and user status for the given production order?
    In which PP table we can
    find these?
    Thanks&Regards
    Satish

    Hi Ram,
    Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
    Alternatively, the following tables store the user and system status info:
    JSTO- Status object information
    JEST- Individual Object Status
    Hope this helps.
    Let me know if u need further information.
    Regards,
    Sonal

  • IO system status and user status

    Hi all,
    Could you please tell me where the link between IO sys and user status.
    Thank you.

    Hi
    System status and User status:
    System Status
    o        The system sets a system status informing the user that the system has executed a certain business transaction for an object.
    o        You can only influence this status by executing a business transaction that changes the system status.
    o        If you release an internal order, the system automatically sets the Released system status.
    User Status
    o        You can set a user status in addition to the existing system status.
    o        You specify the user status in a status profile, which you create for each order type in Customizing.
    o        You can specify and activate any number of user statuses.
    o        In a production order you can simultaneously
    The system status and the user status influence the business transactions in the same way.
    The status profile allows you to:
    o        Define the user status and document its functions with a corresponding long text.
    o        Assign a status number that specifies the order in which the system reaches the user statuses.
    o        Define an initial status, which is then automatically set when an object is created.
    o        Determine that a user status is automatically set when you execute a business transaction.
    o        Permit or forbid specified transactions, if a status is active.
    VVR

  • Difference between system status and user status.

    Can someone explain to me the difference between system status and user status in details

    Hi,
    As you mentioned there are 2 status can be maintained for documents like Equipment Master, Notification, Maintenance Order & other important business documents.
    In case, client feels that system status is not enough to capture the details of the object, then user status can be used.
    System statuses will be updated automatically based on business transactions which will be done on SAP.
    For example, once the equipment is created, System status would CRTD (Created). If you install the same to some superior equipment or FL, then status would be INST (Installed).
    If you keeping that equipment in Spare, then for that, you have to maintain separate User Status like AVLB (Available in Stock / Spare) so that through IH08, by using User status, you can the report which is available as spare.
    These user status as per the name, should be updated by the user manually.
    Regards,
    Maheswaran.

  • Any difference between Master data and User master data ?

    Any difference between Master data and User master data ?

    hi
    A user master record defines the authorizations assigned to a user. Based on these authorizations one can access the master data.
    Master data - it is the data which is used long term in SAP r/3 system such as vendor master , material master, customer master,
    there is no such thing like user master data to the best of my knowledge
    hope this helps
    regds
    Manan

  • PF Status and User Command in CALL METHOD alv_grid_ob- set_table_for_first_

    Hi Can anyone please advice me how can we have PF Status in User Command in Object Oriented ALV Grid Display.
    * display alv grid
      CALL METHOD alv_grid_ob->set_table_for_first_display
        EXPORTING
    *    IS_VARIANT                    =
    *    I_SAVE                        =
          i_default                     = 'X'
          is_layout                     = t_lay
    *    IT_TOOLBAR_EXCLUDING          =
        CHANGING
          it_outtab                     =
          it_fieldcatalog               = t_field_catalog
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    Hi,
    you can directly handle that in PBO module of the screen....
    you can give a direct
    set PF-status statement in any of the module in PBO...
    and you can handle in PAI
    Regards,
    Siddarth

  • System status and user status for ECR

    Hello,
    As per our requirement, we have defined some 7 user statuses. We need to link system status with user status
    How to link the user status with system status or is user status needs to be selected manually in every status of ecr
    Thanks.
    Anirudh,

    The user statuses are
    unassigned - workflow is not initiated,
    pending - change is not submitted to analyst who reroute it to change board,
    cancelled - change is cancelled,
    submitted - subimitted to analyst for routing to change board,
    hold,
    released,
    implemented - ECO complete
    We change only Document through ECR.
    We want to link system status to these above user status.
    The user tracks ECR by means of  user status and not system status.
    Anirudh,

  • System status and user status configuration

    Hello All,
    1. Is it possible for the system to  reverse the user status of WBS element if the actual business transaction is reversed. For example, User status 'ABC' is set as Initial status and in OK02 config, it was set that, when the system status is 'ACPT'( will appear when we create an SO and saved), the user status will be changed to XYZ. But subsequently when the WBS element in the Sales order is removed (by changin SO because of wrong postin), is it possible to the initial active status.
    Here my ok02 config is like this
    stuatus 10 ABC 10 30   1  1
                 20 BCD  10 20  1   1
                 30 XYZ  30 40  1  1
    Here my requirement is once the system sets the status XYZ, the user should not change to BCD. But my above mentioned requirement of reversal will arise when the user wrongly enters the WBS element in the SO.
    Any advice is highly appreciated. Could not find proper solution after enough search.
    Thanks.
    Ram.

    Hi,
    In this case you can create the one more user status as 40 EFG 10 40 1 1and restrict this status by authorisation key.
    provide this status authorization to responsible person not for all the users. If SO deletes the responsible person changes the status from XYZ to EFG and then to ABC, from here you can follow regular process.Finally the WBSE status remains
    as XYZ.
    regards,

  • Excel Services and User Specific Data

    Hello,
    I am new to Excel Services.
    I want to retrieve data to Excel Services (at this phase, to prevent it in Excel Web Part) from SQL Server.
    The SQL might hold big amount of data so I think about fetching only the data relevant to each user.
    I configured a pivot table over a data connection with Windows Authentication, and when I refresh it I get the following message "The data connection uses windows authentication and user credentials could not be delegated". I think the Windows
    Authentication is required in order to pass information about the user to the SQL query so it can filter for the relevant data.
    My questions are as follows:
     Can I pass user information from the Excel model file to the SQL server in a way different from Windows Authentication?
    Alternatively, if I retrieve the data unfiltered to Excel Services, and filter only the pivot, will I get the same performance?
    Would the answers change if Excel and/or SharePoint version is changed from 2010 to 2013 or Online/365?
    Any other idea?
    Regards,
    Barak

    Hi,
    According to your post, my understanding is that you wanted to filter Excel Services Data.
    You can you can connect the Excel Web Access Web Part to a Current User Web Part or a Filter Web Part to pass user information. Please refer to:
    Personalized Data in Excel Services
    You will get the same performance.
    You can connect the Excel Web Access Web Part to a Current User Web Part in all versions.
    More information:
    Connecting Dashboard Filters to Excel Services Pivot Table Report Filters
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • VB code for fitting graphics, deleting pages, updating TOC

    Thanks again to all who helped me to find the object model info and other specifics I needed for completing my VB project. I'm not sure if this will be of any use to those who helped me, but at least I can "pay it forward". The following code snippet

  • Casting in crystal (ntext to varchar)

    Hi, There is a field in my database that is of type ntext. I want to change this to varchar. What would i write in a formula to do this? Note: I cannot change the column type in the database itself. Thanks J.

  • Non public interfaces

    Non public interfaces are not permitted. But I often want to break out the methods of an interface into sub-interfaces for the sake of (at least) comprehensibility. Ultimately, only the aggregate interface is meant to be exposed, but of course, they

  • Help Need-All of a sudden can't import/open .OMF file without Logic quit

    Hi all. Been a looong time since I posted but I'm back with a serious dilemma. I'm working on a short film with a deadline that's coming at me fast and furious. I just picked up an updated version of the .omf file and all of a sudden it won't load wi

  • New itunes account - transferring purchases

    I'm switching everything over to my @me.com email address - after many days of headache I think I finally have it all done - and I've just realised, none of my purchases exist in my new account! That's fine for music but I'm worried I won't get app u