How to create a user in UME Database using web dynpro java custom application

Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
Amit

Hi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D.

Similar Messages

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • Creating a report in EP portal using Web Dynpro

    Hi all,
            Can anyone guide me how to create a Report in EP portal using Web Dynpro.
    Regards,
    R.V.Easter

    Hi,
    You should read the documentation ([Web Dynpro ABAP: Development in Detail|http://help.sap.com/saphelp_nw70/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm]) and study the tutorials : [Go and Create First Application with Web Dynpro ABAP|http://help.sap.com/saphelp_nw70/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/frameset.htm] and [Creating a Simple Flight Info Application|http://help.sap.com/saphelp_nw70/helpdata/en/e6/2c4b29dc87c6409d6469ec390e8f3d/frameset.htm].
    Regards,
    Pierre

  • How to create a user for a database

    hi all,
    in the default ORCL database (oracle 10g) how can i create a new user. i did the below steps.
    1. connecting as sysdba and creating a user
    2. create user kumar identified by kumar;
    3. create connect,resource to kumar.
    but after this when i tried to connect the ORCl database with user 'kumar' it is giving me the ora-01017 error.
    please help me how to create a user to a db using sqlplus.
    Thanks,
    Kumar.

    Kumar_9985 wrote:
    hi all,
    im looking into wrong database. in my system along with orcl another db 'practice' is there. as both are having same ports(1521) and this 'practice' is default database when i connected as 'conn / as sysdba'. instead of this i should have been done as 'conn sys/sysdba@orcl as sysdba'.
    sorry for posting this as issue.Has nothing to do with port 1521. That is not used by the database, it is used by the listener. And if you are configured properly (actually, if you are configured by default), the same listener listens on port 1521 for connection requests to all databases on the server.
    If you were connecting to the wrong database with 'conn / as sysdba' it's because you had the wrong environment value for ORACLE_SID. In fact, with that connection request, you weren't useing the listener at all. When you added "@orcl", the connection request looked up "orcl" in the tnsnames file, and asked the OS network stack to pass the request on to whatever was using PORT= at HOST=. And that should have been (and obviously was) the listener.

  • FETCH DATA FROM ORACLE DATABASE USING Web Dynpro

    I want to fetch data from ORACLE database using Web Dynpro.How can I do this?

    1) Are you sure that you get no results? It sounds like you are having name resolution issues, which would imply that you should be getting an ORA-00942 error indicating that the table doesn't exist (or that you don't have access to the table). If you are not seeing this error, I would tend to suspect an overzealous exception handler.
    2) What database account owns the table? What database account is your ASP.Net application using to connect? Assuming these two accounts are different, your application would either have to
    - Explicitly prefix the table name with the schema name
    - Have a public or private synonym that maps the table name to the fully qualified identifier schema_name.table_name
    - Issue the command ALTER SESSION SET CURRENT_SCHEMA = <<schema name>> in each session, in which case all queries in the session would use the specified schema name as the default if no schema name is prefixed.
    Justin

  • Create  PCD folder using web dynpro Java

    Hi All ,
    I would like to create pcd folder structure using web dynpro java
    i.e. My folder at top level and under this there will be iviews , roles , worksets  etc.
    Is it possible using WDJ ?
    I have checked the below link , but for folders I did not get anything.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/6aaf92f5a23672e10000000a114a6b/frameset.htm
    Can you please help me ?
    Thanks,
    Sandip

    Hi,
    Please refer to the following document
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    The same can be implemented in webdynpro also.
    Regards,
    Raju Bonagiri
    Edited by: Raju Bonagiri on Sep 3, 2010 8:36 AM

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • Creating sales order using web dynpro JAVA

    Hello everyone,
    i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
    Thanks.
    Vinita Sharma

    Hi...
    you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
    Here are required Bapis... select which one you want....
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    check this thread SALES ORDER creation using BAPI
    sample java program which will call SAP bapi function sales order create
    PradeeP

  • How to use Web Dynpro Java isChanged and isChangedByClient

    Hello,
    I have read thorugh a lot of documentation, threads, ... --> but the picture is not geting clearer fro me.
    We have Web Dynpro Java Application (on Netweaver 7.0 SP12) running in Enterprise Portal. We need to tell the portal work protect mode, that we have unsaved changes (how to do this is clear).
    I am struggling with figuring out, that my Web Dynpro Context has unsaved changes. I found the two change-indicators isChanged() and isChangedByClient(), which already confuses me a little bit.
    Anyway, this is what I have figured out so far:
    I am calling wdContext.currentContextElement().isChangedByClient() to figure out changes and when a Save operation has been completed sucessfully, I call wdContext.currentContextElement().node().getContext().resetChangedByClient(). This works for some of the changes made by the user.
    I then tried calling wdContext.nodeABC().getElementAt(i).isChanged() for all nodes of my Web Dynpro Context, but this results in detecting changes before the user ha done any interaction.
    Implementing an own change tracking (i.e. by adding a changed-Attribute to each context node) does not seem a viable option for me.
    So these are my questions:
    - Does anyone now a working pattern relying on those chnage indicators ?
    - Does anyone now how to reset the isChanged indicator (or when it is resetted by the framework) ?
    Any help appreciated.
    Thank you,
    Stefan

    Hi
    Check this link
    Re: How to keep isChangedbyClient flag set between roundtrips?
    http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html
    Thanks

  • How to create a user in SQL database table for FBA in SharePoint 2013

    Hi,
    I am trying to configure Form Based Authentication on my SharePoint Dev machine. The purpose is to add an external user to a table (using a registration page).The provider used is SQLMembershipProvider.The dev machine is also configured as domain controller
    so all users created locally are AD users.
    Reference articles that i checked are
    Either adding users to the database as a windows user (i.e. under users section in the database). But on my machine, windows user would be same as adding a AD user.
    Or by creating a dedicated IIS site for .Net users (after creating a FBA DB using aspnet_sql tool). Right now i have implemented FBA using this method.
    Is it possible to add user details in a table of choice and then access that user using people picker? (without any third party tools).
    Thanks,
    Thomas

    Hi,
    We can use CreateUserWizard control to achieve it.
    Here is a blog for your reference:
    Adding Users With SharePoint Forms Based Authentication
    http://psterpe.wordpress.com/2009/05/24/adding-users-with-sharepoint-forms-based-authentication/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to create ALV as a POPUP in abap web dynpro?

    I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller
    WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in ESS, I have used the method "Generate_Popup" using wizard however it is showing error that "Instance is already used for window".
    Please let me know how to create POPUP alv where data fetching is done in "Component controller" hence I have only 1 view and 1 window in my web dynpro program.
    Below is the logic for data fetching and data binding in WDINIT method of "Component controller":
    method WDDOINIT .
      DATA: lv_pernr type p0105-PERNR,
            lv_user  TYPE P0105-USRID.
      lv_user = sy-uname.
       CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
         EXPORTING
           begda           = sy-datum
           endda           = sy-datum
           usrid           = lv_user
           usrty           = '0001'
        IMPORTING
          USR_PERNR        = lv_pernr
        EXCEPTIONS
          RETCD            = 1
          OTHERS           = 2.
    IF sy-subrc = 0.
    TYPES: BEGIN OF ty_pa2001,
                 PERNR TYPE PERSNO,
                 SUBTY TYPE SUBTY,
                 ENDDA TYPE ENDDA,
                 BEGDA TYPE BEGDA,
                 END OF   ty_pa2001.
          DATA: lt_pa2001 TYPE TABLE OF ty_pa2001.
    "Changes by shiromani
          DATA lo_nd_node_pernr TYPE REF TO if_wd_context_node.
          DATA lo_el_node_pernr TYPE REF TO if_wd_context_element.
          DATA ls_node_pernr TYPE wd_this->element_node_pernr.
    *    navigate from <CONTEXT> to <NODE_PERNR> via lead selection
          lo_nd_node_pernr = wd_context->get_child_node( name = wd_this->wdctx_node_pernr ).
    *    get element via lead selection
          lo_el_node_pernr = lo_nd_node_pernr->get_element( ).
    *    @TODO handle not set lead selection
          IF lo_el_node_pernr IS INITIAL.
          ENDIF.
    *    get all declared attributes
          lo_el_node_pernr->get_static_attributes(
            IMPORTING
              static_attributes = ls_node_pernr ).
    SELECT PERNR
            SUBTY
            ENDDA
            BEGDA FROM pa2001
    INTO CORRESPONDING FIELDS OF TABLE lt_pa2001
    WHERE pernr = lv_pernr AND subty = 'ITEL'.
    if sy-subrc = 0.
       DATA lo_nd_node_details TYPE REF TO if_wd_context_node.
       DATA lo_el_node_details TYPE REF TO if_wd_context_element.
       DATA ls_node_details TYPE wd_this->element_node_details.
    * navigate from <CONTEXT> to <NODE_DETAILS> via lead selection
       lo_nd_node_details = wd_context->get_child_node( name = wd_this->wdctx_node_details ).
    * get element via lead selection
       lo_el_node_details = lo_nd_node_details->get_element( ).
       lo_nd_node_details->bind_table( lt_pa2001 ).
    * alternative access  via index
    ENDIF.
    ENDIF.
    endmethod.

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

  • How to create the Dynamic UI element table in web dynpro in abap

    Hi All,
    Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
    Regards,
    Luke

    HI LukeWong ,
    for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
    so for the Table UI element the runtime class is CL_WD_TABLE
    now reffer the below code for creating the Table UI dynamically
    METHOD wddomodifyview.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_column_name TYPE REF TO cl_wd_table_column.
    DATA lr_text_view TYPE REF TO cl_wd_text_view.
    DATA lr_table_header TYPE REF TO cl_wd_caption.
    DATA lr_column_name_header TYPE REF TO cl_wd_caption.
    IF first_time EQ abap_true.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_table = cl_wd_table=>new_table(
    id = 'TBL_TABLE'
    bind_data_source = 'TABLE'
    design = cl_wd_table=>e_design-alternating
    visible_row_count = 3
    lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
    lr_table ).
    lr_container->add_child( lr_table ).
    lr_column_name = cl_wd_table_column=>new_table_column(
    id = 'TBL_EXAMPLE_NAME'
    lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
    ent - example').
    lr_table->add_column( the_column = lr_column_name ).
    lr_table->set_header( lr_table_header ).
    lr_text_view = cl_wd_text_view=>new_text_view(
    id = 'TXV_NAME'
    bind_text = 'TABLE.NAME'
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
    lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
    lr_column_name->set_header( lr_column_name_header ).
    ENDIF.
    ENDMETHOD.
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM

  • Access UME information in Web Dynpro for ABAP application

    We have an WDA iView deployed in a NW2004 Enterprise Portal. We have mapped the Enterprise Portal UME to our corporate LDAP. How do we access this UME information within the WDA iView ? Besides the user id there are specific security flags that the WDA application needs.
    Any help is appreciated!

    Hi Venkat ,
    Please refer to this link,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using knowledge management functionality in web dynpro applications.pdf
    Thanks,
    Raj.

  • Connectivity with  oracle database using web Dynpro(for java)

    Hi,
    In web Dynpro we will connect to SAP systems by using Adaptive RFC.  Then How to connect the oracle 8i/9i using webdynpro? Plese tell me the procedure to establish the connecting using enterprise portal?
    Thanks & Regards,
    Mastanvali Shaik

    Hi,
    Check these:
    WebDynpro and Oracle using DTOs
    https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup
    Connecting Problum of SQL
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Re: creating check boxes in ALV grid using web dynpro

    Hi Techies,
       I need to have a check box column in alv grid, and it should allow me to select the check box and the selected row has to be updated in the database.
      Kindly assist me with the steps to handle the above mentioned scenario
    Thanks in advance.

    Now to first make the last column of my ALV as a checkbox:
    method BUILD_ALV .
      data: l_ref_cmp_usage type ref to if_wd_component_usage.
    " Instantiate the ALV usage
      l_ref_cmp_usage =   wd_This->wd_CpUse_My_Alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
    " Get reference to the model
      DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_My_Alv( ).
      data: lr_config type ref to Cl_Salv_Wd_Config_Table.
      lr_config = l_ref_INTERFACECONTROLLER->Get_Model( ).
    |" Set read only mode to false (and display edit toolbar)
      lr_config->if_salv_wd_table_settings~set_read_only( abap_false ).
      data: lr_table_settings type ref to if_salv_wd_table_settings.
      lr_table_settings ?= lr_config.
      lr_table_settings->set_read_only( abap_false ).
      data: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lt_columns         TYPE        salv_wd_t_column_ref,
            lr_checkbox1        TYPE REF TO cl_salv_wd_uie_checkbox,
            lr_checkbox2        TYPE REF TO cl_salv_wd_uie_checkbox.
      FIELD-SYMBOLS <fs_column> LIKE LINE OF lt_columns.
    "  Embed the UI elements within the ALV
      lr_column_settings ?= lr_config.
      lt_columns = lr_column_settings->get_columns( ).
    " Embed an checkbox within the column APPROVE
      LOOP AT lt_columns ASSIGNING <fs_column>.
        CASE <fs_column>-id.
          WHEN 'APPROVE'.
            CREATE OBJECT lr_checkbox1
              EXPORTING
                checked_fieldname = <fs_column>-id.
            <fs_column>-r_column->set_cell_editor( lr_checkbox1 ).
            FREE lr_checkbox1.
        ENDCASE.
      ENDLOOP.
    ENDMETHOD.                    "BUILD_ALV

Maybe you are looking for