Custom mass password generate  program

Hi,
I'm requried to develop a mass password  generate program to be sent to the user via mail, i'm using RSEC_GENERATE_PASSWORD function module to to generate the random password, but how do  i update the user password that puzzles me, is there any process/ class/method/ FM/ BADI etc that will update/ create a user, has anyone done this before, appreciate any adivse/ pointers

Hi Lawrence,
You can do this in 2 ways viz:-
1. Use BAPI_USER_CREATE1 to create new users in system and assign initial password to the users just created by BAPI_USER_CHANGE. After this you can use function module SUSR_USER_BUFFER_AFTER_CHANGE to refresh the buffer.
2. Do a BDC of SU01 transaction with proper check of authority object.
I would recommend option 1. Please check and let me know if you face any problems.
Reward points if this helps.
BR,
Atanu
Moderator Message: Asking for points violates the Forum Rules Of Engagement
Edited by: Suhas Saha on Jul 26, 2011 10:48 PM

Similar Messages

  • How to insert abap code in LSMW generated program?

    hi,
    i m working on LSMW for loading data in SAP
    i would like to insert abap code into the generated program....
    it's because i have 1 BKPF segment (header data), 2 BSEG segments, but i cannot define rules by customizing for the second BSEG segment(LSMW doesn't permitt).
    i already tried to insert code directly into the program, but obviously it disapears at each time i generate the program.
    i saw that apparently a code insertion has already be made into this program and the subject of this insertion is to define rules for the second BSEG (exactly what i want to do....) and this modification doesn't disapear at new prog generation.....
    Any idea ?

    Hi
    Why dont you use the FORM provided by LSMW
    To use this please do the following
    1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>
    2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>
      Here you will now get many options like
       Global Data
       Begin of Transaction
    Begin of Processing
    Begin of Record
      like wise the End of these also.
    Please put a breakpoint and check where you want to insert your code.
    Note:
    This is only for the Conversion Program and does not affect the main program used to update the Standard Tables
    Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...
    Thanks
    DOminic
    Message was edited by: Dominic  Pappaly

  • How to use custom control in Dialog Programming?

    How can I call a subscreen using custom control in Dialog Programming?
    The required subscreen contains a calender. Any class or something available for this purpose. Please suggest.

    As [vinraaj|http://forums.sdn.sap.com/profile.jspa?userID=3968041] wrote, call transaction SE51, there is a Wizard to help you generate the table control, it will create the table control and some includes with PBO/PAI modules > Read [Using the Table Control Wizard|http://help.sap.com/saphelp_bw/helpdata/en/6d/150d67da1011d3963800a0c94260a5/frameset.htm]
    Also there is a tutorial in the wiki, read [Learn Making First Table Control |http://wiki.sdn.sap.com/wiki/display/ABAP/LearnMakingFirstTableControl] by [Krishna Chauhan|http://wiki.sdn.sap.com/wiki/display/~nc0euof]
    Regards,
    Raymond

  • Error when generating program /SAPAPO/TSM141 and Errors in source system

    Hello APO Experts!
    I had to include a new key figure in the cube and the planning area with configuration semantic = 000.
    The problem is, in my DEV system, the modification was perfect. Then when I did in the QA system, I´ve got the error "Error when generating program /SAPAPO/TSM141" and u201CErrors in source systemu201D when trying to load data in the Infopackage.
    Do you have any idea of what this could be?
    Best Regards
    Nik

    Hello,
    The problem may come from the inconsistency between the datasource settings and the content in table /SAPAPO/TSAREATE.
    - SE16, go to table /SAPAPO/TSAREATE, input the planning area name, check the extraction structure, which is started from  '/1APO/EXT_STRU'.
    - SE16, go to table /SAPAPO/TSAREAEX, input the datasource name, and check the extraction structure.
    Are the two extraction structures the same or different ?
    If they're different, please read the below solutions, otherwise, you can ignore the following.
    In general and most customer cases this inconsistency happens during transporting of datasource alone. In many cases the planning area is directly created at target system and datasoucre transported from a a different system which causes incorrect export structure entry in planning area table.
    Please refer to following content from note 549184:
    Q4: Why could I have extraction problem after transport of DataSource?
    A4: DataSources for DP/SNP planning areas depend directly on the  structure of the planning areas. That's why the planning area MUST  ALWAYS be transported with or before the DataSource.
    The simple solution will be to create a dummy data source for this planning area. This will regenerate the extract structure for all other data sources as well and update the corresponding tables. After that you can delete the dummy datasource.
    After delete the dummy datasource, in case of inconsistency, please also run the report /SAPAPO/TS_PSTRU_GEN report for
    - Basis - form routines
    - Create planning objects
    - Planning area extractor
    with the flags "Reset generation time stamp" and "Generate" set.
    And in order to transfer datasource correctly, please also refer to the consulting note 514524.
    Best Regards,
    Ada

  • Random Password Generator

    Hi everyone, I made this Password Generator that does what I want, but I'd like to extend its functionality. Right now it creates a random password from an array of letters and numbers.
    import java.io.*;
    import javax.swing.*;
    import java.util.*;
    *Version 0.1:
    *creates several random passwords using numbers,
    *uppercase and lowercase letters
    *Version 0.2:
    *add a save feature
    public class PasswordGeneratorV02
        public static void main(String[] args)
             * Define all variables and create all objects here
            // create the Number and Letter arrays
            Integer[] numberList = new Integer[10];
            String[] letterList = new String[12];
            //Variable to continue the while loop
            Boolean cont = true;
            //Scanner used to continue or not
            Scanner input = new Scanner(System.in);
            //Stores the user input
            String answer;
             * End variables
            //fill the letterList array
            //need to find a more efficient way to do this
            //and add all the letters of the alphabet
            letterList[0] = "a";
            letterList[1] = "F";
            letterList[2] = "c";
            letterList[3] = "R";
            letterList[4] = "y";
            letterList[5] = "O";
            letterList[6] = "p";
            letterList[7] = "W";
            letterList[8] = "q";
            letterList[9] = "n";
            letterList[10]= "E";
            letterList[11]= "w";
            // fill it with numbers 0-9
            for (int i=0; i < numberList.length; i++)
                numberList= i;
    // make both arrays lists so we can shuffle them
    List list = Arrays.asList(numberList);
    List list2 = Arrays.asList(letterList);
    //Start the output to user
    System.out.println("Welcome to the random password generator!");
    System.out.println("This program will create a random 20 character alphanumeric password.");
    System.out.println();
    //Shuffles the array contents then prints it out.
    while(cont == true)
    // shuffle the list
    Collections.shuffle(Arrays.asList(numberList));
    Collections.shuffle(Arrays.asList(letterList));
    // print out the shuffled array contents
    for (int i : numberList)
    System.out.print(i + letterList[i]);
    System.out.println();
    System.out.println("Press Enter for a new password. Q to quit.");
    answer = input.nextLine();
    //check to see if user wants to quit
    if(answer.equalsIgnoreCase("q"))
    cont = false;
    System.out.println("Goodbye...");
    }I would like to change/add two things.
    1st, I want to change the array of letters to include the full alphabet(lower and uppercase), with out having to type it in.
    2nd, I would like to add a save feature where the user types in "S" at the prompt and it will allow them to save the password as a text file.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Ok well, I googled around and found something.
    The output now displays letters, but it no longer shuffles them around. For example:
    6A8B7C4D2E0F5G1H3I9J
    Every letter is just the next letter in the alphabet. How would I shuffle an array of chars?
    New code:
    import java.io.*;
    import javax.swing.*;
    import java.util.*;
    *Version 0.1:
    *creates several random passwords using numbers,
    *uppercase and lowercase letters
    *Version 0.2:
    *add a save feature
    public class PasswordGeneratorV02
        public static void main(String[] args)
             * Define all variables and create all objects here
            // create the Number and Letter arrays
            Integer[] numberList = new Integer[10];
            char[] letterList = "ABCDEFGHIJKLMNOPQRSTUWVXYZabcdefghijklmnpqrstuvwxyz".toCharArray();
            //Variable to continue the while loop
            Boolean cont = true;
            //Scanner used to continue or not
            Scanner input = new Scanner(System.in);
            //Stores the user input
            String answer;
             * End variables
            // fill it with numbers 0-9
            for (int i=0; i < numberList.length; i++)
                numberList= i;
    // make both arrays lists so we can shuffle them
    List list = Arrays.asList(numberList);
    List list2 = Arrays.asList(letterList);
    //Start the output to user
    System.out.println("Welcome to the random password generator!");
    System.out.println("This program will create a random 20 character alphanumeric password.");
    System.out.println();
    //Shuffles the array contents then prints it out.
    while(cont == true)
    // shuffle the list
    Collections.shuffle(Arrays.asList(numberList));
    Collections.shuffle(Arrays.asList(letterList));
    // print out the shuffled array contents
    for (int i=0;i<numberList.length;i++)
    System.out.print(numberList[i] + String.valueOf(letterList[i]));
    System.out.println();
    System.out.println("Press Enter for a new password. Q to quit.");
    answer = input.nextLine();
    //check to see if user wants to quit
    if(answer.equalsIgnoreCase("q"))
    cont = false;
    System.out.println("Goodbye...");

  • Unicode :Generated programs

    Hi,
    Can somebody please let me know how to check if there are any <b>Generated programs</b> in SAP system( for example : Programs generated by customizing)
    As per Unicode documentation, generated programs are not considered as customer programs and also are not looked at by UCCHECK transaction.
    Generated programs must be <b>Regenerated</b> for Unicode system to set the Unicode flag and use New Unicode Syntax.
    I want to know how to handle Generated programs in Unicode system?
    Regards,
    Yogita

    Hi,
    Can anyone please help to answer above question regarding regenerating ABAP programs in Unicode system?
    Thanks for help in advance.
    Regards,
    Yogita

  • Password generating & USR40?

    Good afternoon everybody.
    I need your assistance.
    My system is SAP ECC 6.0
    I want to use the default password generating of SU01.
    Already configured the settings from the "Note 1482619 - PRGN_CUST: Switches are missing from value help"
    I have a lot of exceptions in the table USR40, and the password generating does not look this table.
    How do I make, so the generator does not create passwords that are in USR40?

    USR40 is actually a pest
    It was originally intended to define permitted characters for the logon routines to validate (for example, no 'apostophes') input.
    Now, it rejects values and for the same folks who misunderstood the initial intention they seem to want to add all dictionary words to it.
    This will confuse your users to no end!
    My recommendation:
    -  Add 1 or even 2 special characters to the rules.
    -  Add one or better 2 digits.
    -  Add 10 as the minimum length of the password.
    -  Lock the password after 5 failed attempts.
    Consequence: They can still use patterns such as "$123" and "init" and some city names or seasons, but it cannot easily be scripted or guessed without the user noticing it (if they are not idle).
    I completely agree with SAP that they ignore USR40 when the admin sets a password but on the customer side a usefull feature would be to force the wizard for them (user type dependently and optional in config).
    Cheers,
    Julius

  • Using SQVI To Generate Program in DEV

    I have read a lot about the merits of using SQVI for simple queries and then generating the code and assigning to a transaction code so that others can run the query/report. I have found posts in this forum that suggest using SE93 to create a transaction code and assign the SQVI generated program is the only way that an SQVI query can be shared. I certainly hope they were not assuming that users have SE93 in a production environment??
    My question is, if I create this query and generate the program in our DEV environment and then assign it to a transaction code, can this be transported from DEV to TST to PRD intact? Will this work?
    One other question, when the program is generated does it also create the required authorization checks? I am using USR* tables for this report, nothing considered sensitive, would any additional authorizations be required to allow just about any user to run the transaction?
    Disclosure, I am a power user and not an ABAP specialist.
    I appreciate a speedy reply if that is possible.
    Thanks
    Mark

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ''

    Hi,
    While executing the below code i am getting the error
    " RUNTIME ERROR IN GENERATED PROGRAM. Overflow converting ' ' am new to ABAP , can anyone kindly help me where i have went wrong ? .
    IF ( V_DO_CDS_NAME_MAIN <> '' ).
        ABAP.
            DATA: ref_it_tab TYPE REF TO data,
                  ref_wa TYPE REF TO data.
            FIELD-SYMBOLS: <fs_itab> TYPE ANY TABLE.
            FIELD-SYMBOLS: <fs_wa> TYPE ANY.
            FIELD-SYMBOLS: <fs_field> TYPE ANY.
            CREATE DATA ref_it_tab TYPE STANDARD TABLE OF (V_DO_CDS_NAME_MAIN) WITH NON-UNIQUE DEFAULT KEY.
            ASSIGN ref_it_tab->* TO <fs_itab>.
            SELECT * FROM (V_DO_CDS_NAME_MAIN) INTO TABLE <fs_itab> where C1 = V_WORK_ITEM_ID_MAIN.
            CREATE DATA ref_wa LIKE LINE OF <fs_itab>.
            ASSIGN ref_wa->* TO <fs_wa>.
            loop at <fs_itab> assigning <fs_wa>.
                assign component 'CLIENT' of structure <fs_wa> to <fs_field>.
                V_CLIENT = <fs_field>.
                assign component 'C0' of structure <fs_wa> to <fs_field>.
                V_C0 = <fs_field>.
                assign component 'C1' of structure <fs_wa> to <fs_field>.
                V_C1 = <fs_field>.
                assign component 'C2' of structure <fs_wa> to <fs_field>.
                V_C2 = <fs_field>.
                assign component 'C3' of structure <fs_wa> to <fs_field>.
                V_C3 = <fs_field>.
                assign component 'C4' of structure <fs_wa> to <fs_field>.
                V_C4 = <fs_field>.
                assign component 'C5' of structure <fs_wa> to <fs_field>.
                V_C5 = <fs_field>.
                assign component 'C6' of structure <fs_wa> to <fs_field>.
                V_C6 = <fs_field>.
                assign component 'C7' of structure <fs_wa> to <fs_field>.
                V_C7 = <fs_field>.
                assign component 'C8' of structure <fs_wa> to <fs_field>.
                V_C8 = <fs_field>.
                assign component 'MESSAGE_ID' of structure <fs_wa> to <fs_field>.
                V_MESSAGE_ID = <fs_field>.
                assign component 'TIMESTAMP' of structure <fs_wa> to <fs_field>.
                V_TIMESTAMP = <fs_field>.
                assign component 'EXTRACTKEY' of structure <fs_wa> to <fs_field>.
                V_EXTRACTKEY = <fs_field>.
                assign component 'STATEID' of structure <fs_wa> to <fs_field>.
                V_STATEID = <fs_field>.
                assign component 'DEVICE_ID' of structure <fs_wa> to <fs_field>.
                V_DEVICE_ID = <fs_field>.
            ENDLOOP.
        ENDABAP.
    ENDIF.

    Hi Mubeen,
    While Copying the cotes have come closer otherwise its working fine , i was able to find the error .
    There are ten predefined ABAP data types. There are 100 possible type combinations between these elementary data types. ABAP supports automatic type conversion and length adjustment for all of them except type D (date) and type T (time) fields which cannot be converted into each other.
    I commented the TimeStamp part where i had given the ABAP Type as D and it started working .
    But now i want to display the content of  "TimeStamp"  field but i am not able to do so .
    This is the format in which it has to be displayed 2009.011.915.3353.
    Which ABAPTYPE i need to use ?.
    i am able to display in this format 20090119153353
    regards
    Harsha

  • ACS 5.3 userbased/custom enable passwords

    Hello,
    I've installed Cisco ACS 5.3. After I created several internal users (defined password and enabled password), Identiy Groups, Access Polices, Network Devices and AAA Clients (e.g. Cisco 1841) for Radius and configured my Router like this:
    aaa authentication login VTY group radius local-case
    aaa authentication enable default group radius enable
    Now I'm able to login successful using my internal User. But if I try to use enable to enter the enable level I'll receive the message "% Error in authentication." when I use the defined enable password.
    In the ACS logging I'll can see that "$enab15$" is missing.
    If I setup a user name "$enab15" I can login to enable level, but what have I to do, to use the custom enable passwords?
    Kind regards
    Kai
    === Correct answer ===
    Hello,
    please see the attachment.
    Step 1.2 - 1.5 is requiered for both (Radius and Tacacs). Then you have to  switch to 2.1-2.7 for Radius or 3.1 - 3.7 for Tacacs authentication.
    The document shows you all steps you have to take. The box on the right  side shows to you in the headline "Requiered for".This should help you the find  out why this is configured and where you will need in future steps. or "Provided  by" should tell you where you have configured it.
    But I'm sure, you will make it.
    I've testet it with the following hardware:
    Cisco Router:
    600 ,800 ,1800 ,1900 ,2600 ,2800 ,2900, 3900, 4000, 7200 ,7300 Series
    Cisco Switches:
    2900, 2950, 2960, 3550, 3560, 3750, 4500, 6500, Nexus 5500 Series
    Cisco Unified Communicaton:
    Call Manager Express, UC560
    Hewlett-Packard Switches:
    1700, 1800, 2500, 2600, 3500, 5400, 8100 (out of sale) Series
    Yes, working in a datacenter is fine for testing

    Hi Kai,
    can you share the configurations for TACACS? 
    Thanks

  • Error When Submitting WIP Mass load Concurrent Program (Work in Process)

    Hi,
    I am submitting WIP Mass Load concurrent program to get the data from WIP_JOB_SCHEDULE_INTERFACE table in to base tables.
    The concurrent program is completed with Warning status.
    My Package inserts the data into wip_job_schedule_interface table to create a WIP Job. After inserting the data in to wip_job_schedule_interface table, it submits a concurrent program (WIP Mass Load) (Standard concurrent program) to create a WIP job automatically from the data inserted into wip_job_schedule_interface table.
    This concurrent is errored out with the following warning message:
    ===========================================================
    Group ID: 7026 Report Date: 23-OCT-2007 12:26
    Job and Schedule Interface Report Page: 1 of 1
    Create Discrete Jobs
    Source Code: XXEXT019
    Organization: DVR
    Process Process
    Job Job Type Assembly Quantity Start Date Completion Date Kanban Card Phase Status
    6094-3 Non-standard DEV-GA-1 1.00 23-OCT-07 11:57 23-OCT-07 11:57 Validation Error
    Error: Invalid or insufficient Completion Subinventory/Locator information.
    Check that you have entered valid subinventory/locator information based on the organization and assembly
    that you have chosen.
    0 out of 1 jobs were successfully loaded
    =========================================================
    I populated locator information in to the interface, then too its saying the same.
    Can you please me know where exactly i am going wrong. Help Appreciated.
    Thanks

    Have a look to the Metalink note "Note:207646.1", which deals with the error "WIP_ML_ORA_ERROR (ERROR_CODE=-1653)".

  • How do I turn off password generator in Mavericks?

    How do I turn off password generator in Mavericks

    Hey, Jpwhre
    Welcome to Apple Support Communities.
    Unfortunately there is no way of doing so, do you have Automatic download activated?
    I hope this helps you. Let me know if it does. If not feel free to give me a shout. Best of luck.

  • Hierarchy load - Error RSAR 683 Syntax error in generated program, row 0

    Hi guys,
    When I load the hierarchy on ZMATERIAL (load from 0MATERIAL hierarchy - source system BW), I have this error message : RSAR 683 Syntax error in generated program, row 0.
    I have found several SAP notes, especially [Sap Note 944842|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_whm/~form/handler], but the implementation on our system does not change anything.
    We are working on BW3.5 SP12.
    Can anyone could tell me what to do ?
    Will this issue be solved once we upgrade until SP18 as it is mentionned in the SAPNote ?
    Thanks,
    Alexandra
    Edited by: Alexandra Guillaux on Apr 1, 2009 4:36 PM

    Hello Alex,
    after implementing the corrrection part of note 944842 via SNOTE, plaese also:
    1. replicate datasource
    2. activate transfer structure (report RS_TRANSTRU_ACTIVATE_ALL)
    3. activate infoobject   (make dummy change to description
    of infoobject etc, save and activate it, remove change and save and
    activate it again).
    Hope it could resolve the incident.
    Thank you & Best regards,
    Vince

  • Syntax Error in generated program.

    Hi Experts -
    I saw a similar thread regarding the issue I'm having but I thought I'd open another thread.
    0CMMT_ITEM_FMCI_PU_HIER Syntax Error for Generated Program
    I'm doing an extraction for 0CRM_ORGUNIT_HR01_HIER in RSA3 of CRM.
    I get an error message:
    Message RJ028 : Error 6 in function module RSS_PROGRAM_GENERATE
    There is a syntax error in the code.
    How do you solve this issue?
    We applied OSS note 822323 but still get the same error. The code still has the syntax error.
    Any one saw this or have any solutions? Please let me know. Thanks a lot in advance!

    Hi,
    Use the program RSA1HCAT in SE38 to check your hierarchy.
    Transaction RSA3 was not developed for checking hierarchy DataSources.
    Rather, it is only for transaction and attribute/text datasources.  If
    you want to check the extraction of hierarchy datasources in the R/3
    system, you should use the report RSA1HCAT.  In this report, enter the
    name of the hierarchy datasource in the "DataSource with HierarchyType"
    field.
    For this problem look at the note: 632920.
    Regards,
    Srikanth.

  • Assign Transaction Code for Report Painter generated program

    I am trying to assign a transaction code for report painter generated program... I assigned the transaction code in Development for the generated program but the program name changes in every system and I get a runtime error...
    Can you please guide me on how to handle this problem

    http://dap-consulting.com/yahoo_site_admin/assets/docs/Report_Painter_Reports.47142031.pdf
    Found my answer in the above link

Maybe you are looking for