Function module sap logon password reset in su01.

Hi friends,
Is it possible to reset password for any user using abap program
or nay functional module.
i have tried few things
first I am locking user using ENQUEUE_E_USR04
then i am calling SUSR_BAPI_USER_CHANGE to reset password
lastly unlocking user using FM DEQUEUE_E_USR04.
but nothing is workin fine !!
help !! urgent !!
Thanks & Regards,
Abhay

Hi Abhay,
              CALL FUNCTION 'BAPI_USER_CHANGE'
                EXPORTING
                  username   = user_id
                  password   = password
                  passwordx  = 'X'.
best regards,
Thangesh

Similar Messages

  • ABAP program/Function module to assign the roles in SU01

    Hi,
    Is there any ABAP program/function module to assign the roles in SU01. And program/function module which does all teh SU01 related activities.
    Thanks and Regards,
    Rashmi

    Hello,
    Check the function modules that start with BAPI_USER*
    To assign roles :
    BAPI_USER_ACTGROUPS_ASSIGN
    To assign profiles :
    BAPI_USER_PROFILES_ASSIGN
    To change user's metadata (name, settings, ... other SU01 functions) :
    BAPI_USER_CHANGE
    Success.
    Wim

  • Name of the function module to logon to other server

    Dear All
                        i would like to know the name of the functional module through which user can logon to other server ex: from DEV to PRD for debug the programs . i tried through st03N i am able to get only used tcode but not functional module from which they are logon to prd server
    is there any way to get logs for particular user to get log for last 10 days used tcodes all my traces are not active and audit also not active..
    Regards

    Dear
    I need the name of the FM through which we can log on to any other server
    there is S_RFC authorization object now i disabled that but i need the name so i can manually restrict the FM 
    Regards

  • Function module for generating password

    Hi All,
    Is there any function module which randomly generates case sensitive passwords.
    Thanks

    Hi,
    Please refer:
    FM for Random password in a specific pattern
    Best regards,
    Prashant

  • SAP logon passwords

    Hello
    Does anyone have an idea where are the passwords for sap logon stored. In which table are they stored.
    Thanks

    Dear graeme brannen  ,
    All the users Name and password will be stored in USR02
    To view this
    1) got o SE11
    2)Give USR02
    3)press display
    4) Then press ctrlshiftf10 or Contents whic is located At top next to technical content
    5)you will find all in Encrypted form
    For Developer access keys ..it will be present in
    Devaccess folder
    Hope it helps you,Revert me back if you have any queries
    Assign points if helpful
    Regards
    Bala

  • Function Module - SAP ECC to BODS

    Hi Experts - I have one function module in ECC system which is RFC enabeled and I have imported that in BODS.
    Its showing me under function under ECC Data Store.
    I am not able to drag it into normal data flow  ,,,, Why ?
    Is there any special data flow is required to use this.
    I want to put the output of this function module in a flat file ? can i achieve this ? so function module to transform and then flat file.
    Thanks
    R

    You need to call the function via a Schema Out function within a Query transform just like you would call a custom function, i.e. right-click in the Schema Out panel and select 'New Function Call' then in the function wizard you must select your ECC datastore from the 'Function Categories' list and then you should see your imported function on the right, then follow the wizard to define the input parameters and choose which output parameters you want output as colums in the query (and can then write to a flat file).  Just be aware that if one of the output parameters is a table then you will need to unnest the table schema in a second query transform before wrtiting to the file.  Oh and just use a 'Row_Generation' transformation to generate one dummy row as a source.

  • RFC function and SAP logon window

    Hi experts,
    i created the report which uses RFC function ( returns some info from dev. system ). Long time it worked without problem, but before several days ( maybe SAP basis did some changes ), when i run the report and is called RFC function, system ask me to log on into the system.
    Do you have any idea ?
    Thanks in advance
    Martin

    User ALEREMOTE was locked

  • Function Module (sap-abap)

    Hi Friends,
       Can anybody tell me one fuction module which gives the date in particular format for ex :- 26th January 2007  ?
    Thx in Adv.
    Bapi bobby

    Run the below code to convert 01/24/2007 to 24th january 2007
    REPORT ZEX33 .
    parameter : p_date like sy-datum.
    DATA: month(9),
    year(4),
    date(2),
    ch(2).
    data : return_date(20).
    CASE p_date+4(2).
    WHEN '01'.
    month = 'January'.
    WHEN '02'.
    month = 'February'.
    WHEN '03'.
    month = 'March'.
    WHEN '04'.
    month = 'April'.
    WHEN '05'.
    month = 'May'.
    WHEN '06'.
    month = 'June'.
    WHEN '07'.
    month = 'July'.
    WHEN '08'.
    month = 'August'.
    WHEN '09'.
    month = 'September'.
    WHEN '10'.
    month = 'October'.
    WHEN '11'.
    month = 'November'.
    WHEN '12'.
    month = 'December'.
    WHEN OTHERS.
    ENDCASE.
    WRITE p_date+0(4) TO year.
    WRITE p_date+6(2) TO date.
    case date.
    when '01'. ch = 'st'.
    when '21'. ch = 'st'.
    when '31'. ch = 'st'.
    when '02'. ch = 'nd'.
    when '22'. ch = 'nd'.
    when '03'. ch = 'rd'.
    when '23'. ch = 'rd'.
    when others. ch = 'th'.
    endcase.
    CONCATENATE date ch month year INTO return_date.
    SEPARATED BY space.
    CONDENSE return_date.
    write : / return_date.

  • Logon passwords check on change

    Hi!
    Our customer would like to restrict the SAP logon password for every user account.
    This means they don't want to enable the following logon password for the users:
    - company name
    - family name
    - given name
    - date of birth
    Is there a way to check the logon passwords on change in SAP or not?
    I think I vahe to check the password on the password change (is SU01), because the first check can be done manually.
    Thank you
    Tamá

    hi,
    check the code in the FM  <b>SUSR_USER_SURFACE_PASSWORD</b>
    you can implement that in ur code

  • Function module (Z_USR_INSTANT_CREATION1)

    Hi Experts,
    Please look into below coding and solve  my problem.
    FUNCTION Z_USR_INSTANT_CREATION1.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(USERNAME1) LIKE  BAPIBNAME-BAPIBNAME
    *"     VALUE(ACCTNO) TYPE  /BIC/OIZCUSTOMER
    *"     VALUE(LOGONDATA1) LIKE  BAPILOGOND STRUCTURE  BAPILOGOND
    *"     VALUE(PASSWORD1) LIKE  BAPIPWD STRUCTURE  BAPIPWD DEFAULT
    *"       'initpass'
    *"     VALUE(FIRSTNAME) TYPE  /BI0/OINAME
    *"     VALUE(LASTNAME) TYPE  /BI0/OINAME3
    *"     VALUE(ADDRESS1) LIKE  BAPIADDR3 STRUCTURE  BAPIADDR3 OPTIONAL
    *"     VALUE(REF_USER1) LIKE  BAPIREFUS STRUCTURE  BAPIREFUS OPTIONAL
    *"     VALUE(IP_V) TYPE  RSINFOPROV DEFAULT 'ZEX_DS01'
    *"     VALUE(IP_H) TYPE  RSINFOPROV DEFAULT 'ZEX_DS02'
    *"  EXPORTING
    *"     VALUE(CREATERRCODE) TYPE  RSRCHANGEFLAG
    *"     VALUE(ROLERRCODE) TYPE  RSRCHANGEFLAG
    *"  TABLES
    *"      RETURN1 STRUCTURE  BAPIRET2
    *"      PROFILES1 STRUCTURE  BAPIPROF
    *"      RETURN2 STRUCTURE  BAPIRET2
    *"      RETURN3 STRUCTURE  BAPIRET2
    *"      RETURN4 STRUCTURE  BAPIRET2
      DATA: NEWS(40), pwd(8).
      data : ZACTGRP like BAPIAGR occurs 0 with header line.
    Check if the user already exists.
      CALL FUNCTION 'BAPI_USER_EXISTENCE_CHECK'
        EXPORTING
          username = USERNAME1
        IMPORTING
          return   = RETURN1.
    WRITE: RETURN1-type, RETURN1-MESSAGE.
      IF sy-subrc EQ 0.
    Call Function module to create UserId
    *ADDRESS1-FIRSTNAME = 'Sreeni'.
    *ADDRESS1-LASTNAME = 'Varadha'.
        ADDRESS1-FIRSTNAME = FIRSTNAME.
        ADDRESS1-LASTNAME = LASTNAME.
       WRITE: /1 '*** FIRST AND LASTNAME PASSED BY JAVA: ', ADDRESS1-FIRSTNAME, ADDRESS1-LASTNAME.
        CALL FUNCTION 'BAPI_USER_CREATE1'
          EXPORTING
            USERNAME  = USERNAME1
            LOGONDATA = LOGONDATA1
            PASSWORD  = PASSWORD1
            ADDRESS   = ADDRESS1
            REF_USER  = REF_USER1
          TABLES
            RETURN    = RETURN2.
    *CREATE FAILURE ERROR TYPE IS SENT BACK TO PORTAL
        CREATERRCODE = RETURN2-TYPE.
    Call Function module to Deactivate Password
        CALL FUNCTION 'BAPI_USER_CHANGE'
          EXPORTING
            USERNAME  = USERNAME1
            LOGONDATA = LOGONDATA1
            ADDRESS   = ADDRESS1
            REF_USER  = REF_USER1
          TABLES
            RETURN    = RETURN3.
       WRITE: RETURN2-MESSAGE, CREATERRCODE.
       WRITE: RETURN3-MESSAGE.
      ELSE.
    User already Exists need to direct send back the return code to java.
       WRITE: RETURN1-MESSAGE.
        CREATERRCODE = RETURN2-TYPE.
      ENDIF.
      clear: zactgrp.
      refresh zactgrp.
      zactgrp-agr_name = 'ZPMUSA_STORE_USER'.
      Zactgrp-from_dat = sy-datum.
      zactgrp-to_dat  = '99991231'.
      append zactgrp.
    Call function module to assign role to the User Id
      CALL FUNCTION 'BAPI_USER_ACTGROUPS_ASSIGN'
        EXPORTING
          USERNAME       = USERNAME1
        TABLES
          ACTIVITYGROUPS = zactgrp
          RETURN         = RETURN4.
    *ROLE ASSIGN FAILURE ERROR TYPE IS SENT BACK TO PORTAL
      ROLERRCODE = RETURN4-TYPE.
    WRITE: ROLERRCODE.
    Code to Insert records into ZSTAODS
      DATA: ZSTAODS_ITAB LIKE /BIC/AZSTAODS00 OCCURS 0 WITH HEADER LINE.
      ZSTAODS_ITAB-TCTUSERNM = USERNAME1.
      ZSTAODS_ITAB-TCTADTO   = '99991231'.
      ZSTAODS_ITAB-TCTIOBJNM = 'ZCUSTOMER'.
      ZSTAODS_ITAB-TCTSIGN = 'I'.
      ZSTAODS_ITAB-TCTOPTION = 'EQ'.
      ZSTAODS_ITAB-TCTLOW = ACCTNO.
      ZSTAODS_ITAB-TCTHIGH = ACCTNO.
      ZSTAODS_ITAB-TCTOBJVERS = 'A'.
      ZSTAODS_ITAB-TCTADFROM = SY-DATUM.
      APPEND ZSTAODS_ITAB.
      MODIFY /BIC/AZSTAODS00 FROM TABLE ZSTAODS_ITAB.
      clear: ZSTAODS_ITAB.
    Code to Delete records from ZEX_DS01 & ZEX_DS02*
      DELETE FROM /BIC/AZEX_DS0100.
      DELETE FROM /BIC/AZEX_DS0200.
    Code to Insert records into ZEX_DS01*
      DATA: ZEX_DS01_ITAB LIKE /BIC/AZEX_DS0100 OCCURS 0 WITH HEADER LINE.
      ZEX_DS01_ITAB-TCTUSERNM = USERNAME1.
      ZEX_DS01_ITAB-TCTADTO   = '99991231'.
      ZEX_DS01_ITAB-TCTIOBJNM = 'ZCUSTOMER'.
      ZEX_DS01_ITAB-TCTSIGN = 'I'.
      ZEX_DS01_ITAB-TCTOPTION = 'EQ'.
      ZEX_DS01_ITAB-TCTLOW = ACCTNO.
      ZEX_DS01_ITAB-TCTHIGH = ACCTNO.
      ZEX_DS01_ITAB-TCTOBJVERS = 'A'.
      ZEX_DS01_ITAB-TCTADFROM = SY-DATUM.
      APPEND ZEX_DS01_ITAB.
      MODIFY /BIC/AZEX_DS0100 FROM TABLE ZEX_DS01_ITAB.
      clear: ZEX_DS01_ITAB.
    Code to Insert records into ZEX_DS02*
      DATA: ZEX_DS02_ITAB LIKE /BIC/AZEX_DS0200 OCCURS 0 WITH HEADER LINE.
      ZEX_DS02_ITAB-TCTUSERNM = USERNAME1.
      ZEX_DS02_ITAB-TCTADTO   = '99991231'.
      ZEX_DS02_ITAB-TCTIOBJNM = 'ZCUSTOMER'.
      ZEX_DS02_ITAB-TCTHIENM = 'RETAIL HIERARCHY'.
      ZEX_DS02_ITAB-TCTHIEVERS = 'A'.
      ZEX_DS02_ITAB-TCTHIEDATE  = '99991231'.
      ZEX_DS02_ITAB-TCTNIOBJNM   = 'ZCUSTOMER'.
      ZEX_DS02_ITAB-TCTATYPE = '1'.
      ZEX_DS02_ITAB-TCTACOMPM = '1'.
      ZEX_DS02_ITAB-TCTTLEVEL = '99'.
      ZEX_DS02_ITAB-TCTNODE = ACCTNO.
      ZEX_DS02_ITAB-TCTOBJVERS = 'A'.
      ZEX_DS02_ITAB-TCTADFROM = SY-DATUM.
      APPEND ZEX_DS02_ITAB.
      MODIFY /BIC/AZEX_DS0200 FROM TABLE ZEX_DS02_ITAB.
      clear: ZEX_DS02_ITAB.
    Code of RSSM_GENERATE_AUTHORIZATIONS to generate profile from ZEX_DS01 & ZEX_DS02
      TYPE-POOLS: rs.
    *TABLES: tobj.
      DATA: l_t_object TYPE rso_t_tlogo,
            l_s_object TYPE rso_s_tlogo.
    input parameters
    initialize
      DATA: l_display_log TYPE rs_bool.
      IF sy-batch IS INITIAL.
        l_display_log = rs_c_true.
      ELSE.
        l_display_log = rs_c_false.
      ENDIF.
      DATA: l_t_infoprov_auth TYPE rssbr_t_infoprov_auth,
            l_s_infoprov_auth TYPE rssbr_s_infoprov_auth.
      l_s_infoprov_auth-value = ip_v.
      l_s_infoprov_auth-hierarchy = ip_h.
      INSERT l_s_infoprov_auth INTO TABLE l_t_infoprov_auth.
    call the function module
      CALL FUNCTION 'RSSB_AUTH_GEN_FROM_INFOPROV'
        EXPORTING
          i_t_infoprov_auth      = l_t_infoprov_auth
          i_appl_log_initialized = rs_c_false
          i_display_log          = l_display_log
          i_detlevel             = '1'
          i_packagesize          = 10000.
    *PROFILE GENERATION FAILURE ERROR TYPE IS SENT BACK TO PORTAL
       PROFERRCODE = RETURN5-TYPE.
    ENDFUNCTION.
    Use of above function module:
    This function module is used to create user ID in the system. It checks whether the user exists already, if yes, then it would send back the message for the same. If it doesnu2019t then it would create the user in system. Assign roles, profiles and authorizations for the user.
    For ex:  If we have 2 users XXX and YYY in that XXX is existing user and YYY is new user, letu2019s see how this function module will work for these two users
    First, it uses BAPI_USER_EXISTENCE_CHECK function module to check whether the ID exists. If it exists(XXX), it would send back the message for the same. If not(YYY), it would go ahead to create the user id by the function module BAPI_USER_CREATE1. After creation of the id, message regarding the same would be sent at the end of execution of function module.
    Next it will go for assigning of the roles, generation of profile and authorization to the user ID. Once the function module is finished, it would send out the message for the execution of all functionalities in the output screen.
    My Requirement:
    what about the internal and DUA (Delegated  User Administrator)  users is that covered with this function module? if not what changes required to function module?
    Many thanks in advance
    David
    Edited by: david Rathod on Sep 24, 2010 10:11 AM

    Hello David,
    your question is really unreadable. Kindly format your question and resend.
    Regards,
    Satyam

  • To overcome Authorization error while executing a Function module

    Hello Friends,
    In my custom workflow , I need to execute a validation  function module ( SAP standard ) in a dialog step  - Approval step.
    But the issue is approvers will not have authorization to the FM ( They have minimum authorization - Just to approver the custom workflow ) .
    So , I need to know is ther a option to execute the FM using another user ID ( a BATCH user ID ) .
    thanks
    Raghu V

    make the validation task before the dialogue step. a general task will run in background from user WF-BATCH and that wont need to authorization issue...  after completion of this validation you can go for the dialogue step i.e the approval step..
      |
    __u2193__
    | u25BA__| Validation task
      u2193
    __|___
    |_?u25BA_| User decision
      |
      u25CF_______
      u2193       u2193reject
      |
    approve

  • Function Module that gives the names of the file in the Application Server.

    Hi Experts,
       Please give me a Function Module that gives the names of the file in the Application Server.
    Thanks,
    Debi.

    Hi,
    see these links
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
    http://www.saptechies.com/abap-function-modules/
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
    thanks
    karthik

  • Use of text elements in wirte_form function module.

    Hi guru's,
    Could any one tell me  what is the use of text elements in write_form functional module SAP SCRIPTS. As per my knowledge text elements are used for multi language purpose is there any other advantage other than that.
    Thanks in advance.
    Vardhan.

    Hello.
    A text element is a block in script that can be written several times in your document. You can put fixed texts, variables, include texts, images, etc etc
    When you see WRITE_FORM, element 'X', you know that everything that is inside element /E X of your script is writen. It's very usefful to organize your script, and it eases to construct a very complex script.
    It's also usefull to translations in SE63.
    Best regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on May 27, 2008 10:05 AM

  • Tables-Parameter in Function module

    Hello together,
    i created a new function module in CRM with one "Tables"-Parameter. The parameter will be filled in debugging but if i call the fm in SAPRFC test script the table is empty. Do have any idea how i could solve this?
    Best regards
    Sascha

    Changing parameters can be used as work areas as well as tables, tables can not be used as work areas.
    Reference    Difference between changing and table parameters in Function Modules SAP ABAP - Modularization techniques in SAP ABAP | at SAPNuts.com

  • Standard Function module for Creating Vendor?

    hi ppl
    i want to know that which function module gets call when we create a vendor from trans. code XK01, i.e. the standard function module SAP uses.
    Regards,

    Ravi,
    What you can do is that you can debug the normal working of the standard webdynpo. This will be helpful in solving the problem.
    Incase you need further clarifications, please let me know.
    Thanks
    Atul

Maybe you are looking for

  • DNS set up

    I have problem setting up a correct DNS. This is a possible cause Open Dir doesn't work, in-fact I'm unable to create an Open Directory Master; while all the other services (web, mail, ical) work fine. The server name on ServAdmin top left side is ma

  • Calculation Overhead on input material wise

    Dear Experts, We have an issue of Overhead calculation, the overhead calculated on cost element defined as base in costing sheet, can we calculate overhead on input material wise, suppose 6 material consumed in a production order I want to calculate

  • CRM Interactive Reports - CRM and BI Reporting client same

    Hello all, I am setting up CRM Interactive reports in CRM 7.0 wherein the CRM client and the BI Reporting client are both the same. I know it is not recommended by SAP, but our requirement is very less. I am following the steps as mentioned in the Be

  • Cannot create PDF in Internet Explorer 10

    Using Acrobat 10.1.7.27.  Upgraded Internet Explorer to Ver 10.  Now cannot use the Printer function to create a PDF (print web page to PDF)  doing so causes IE to freeze and must be closed using tax manager

  • My iPad 2 won't sync or airdrop to Apple tv

    i can't sync or airdrop from ipad2 to Apple tv?