Email field mandatory in usermanagement

Hello,
we are running SAP Netweaver 7.01 and we are wondering if it is possible to make the email field in usermanagement mandatory when we create a new user?
Thanks in advance
Joerg

Hi Jörg,
Do I have to write every line for you?!    No, joke
Sorry, my first answer was a blind shot without testing, but at least it was 10%
Now the last 90%, even tested:
In class ModifyUserView, within the same JAR, just one package level above, add the following block just after the similar block for LASTNAME in method onActionSave:
if (wdContext.currentLayoutAttributesElement().getEmail_Enabled() &&
        (wdContext.currentControlAttributesElement().getCreateUser() && wdContext.currentSecurityPolicyElement().getId() != 2
            || !wdContext.currentControlAttributesElement().getCreateUser() && wdContext.currentControlAttributesElement().getModifySecurityPolicyEnabled()
            || wdContext.currentControlAttributesElement().getEnduserContext()) &&
        !wdThis.wdGetMaintainUserCompController().checkMandatory("User_EMAIL")) {
    wdThis.wdGetMaintainUserCompController().switchToFirstTab();
    return;
It might make sense to add some specific code to check the format of the value if entered; for this, just see the checks for the password above how to extend the code for that.
The crux with all this WD stuff is that decompiling often creates sh... The best method is two use two decompilers in parallel, I use JD & DJ   With these two and some thinking it is often not that hard to create code that fits...
Hope it helps
Detlev
PS: Salzgitter is a good project place for me (at least for short time projects), as I have strong ties to Braunschweig, where I have studied several hundred, ahh..., several years   So if you ever need support beyond single SDN questions...

Similar Messages

  • Set Email as Mandatory field in User Master

    Hi There,
    Could anyone please tell me what are all the possible options to set Email as mandatory field in user master?
    Thanks in advance.
    Rajesh.

    Hi,
    could maybe a transaction variant (create via SHD0) be helpful? You have then however to also create a "variant transaction" (e.g. ZSU01) pointing to it and remove SU01 from your admins to enforce it.
    Advantage is, that this is SAP standard and compatible to any future SP implementations.
    Regards,
    Markus

  • How to pass smtp_addr(email field) to cremas idoc while creation of vendor?

    Hi All,
    i am creating the vendors by IDOC by using CREMAS basic type CREMAS05.
    There is no email field in any of the idoc segments,as i need to pass the email address being mandatory,
    i created the Z segment and added the email field into it and then created the z extension and added this zsegment into the extension.
    Now how do i and where do i map this field so that email data is also passed while creating the vendor master.
    i have debugged the cremas Function Module IDOC_INPUT_CREDITOR and the data is getting passed segment wise,and for customer segement i.e for the zsegment there is a enhancement section where i need to pass this field,but i do not know how do i map this field and with what structure.
    Please let me know how do i handel this/or is there in other way to do it.
    Thanks.
    RJP.

    Hi,
    the email is part of the address data. It is therefore not belonging to the customer master data. So it is also not part of the DEBMAS idoctype.
    To distribute via ALE accurate customer address data, you need to distribute ADRMAS, ADR2MAS, ADR3MAS idoctypes too.
    See [note 384462|https://service.sap.com/sap/support/notes/384462] and [note 306275|https://service.sap.com/sap/support/notes/306275]
    BR
    Alain

  • How to make "Marketing lead" fields Mandatory ?

    HI Experts ,
    I have very urgent requirement . I have to make "Marketing Lead"  attribute mandatory and what object is behind it .
    I have to make "Phone" & "email" as mandatory fields but i don't know where to start and what object i have to enhance .
    Any suggestion will really appreciated .
    Regards ,
    Rishi

    Hi Rishi,
    That's probably COD_MarketingLead.QC screen.
    Open this screen, select the Section Group, go to Ext. Explorer, and click on Adjust Properties.
    Find the field you want to set as mandatory and change this property to True. This will make the blue star appears right next to the field.
    Then write a logic just like suggested by Sunil in the OnSave.absl script to add a hard stop in case the field is not filled, with error messages, etc.
    Hope this helps!
    Best regards,
    Fernando Giroleti
    SAP Cloud Service Center AMEA

  • Making screen field mandatory

    hi can any one help in making the field email as a mandatory in su01 t-code and kindly help with process where to go and what are the steps do i take to make the field mandatory

    Go to SHD0,
    give the transaction as SU01 and give the name of transaction variant for example 'USR1'. click create. Since your requirement is only for email give some dummy name and click on create. In the next screen give some dummy name and enter and continue till you reach the screen with this title "Screen values 0900 Program SAPLSZA5" . In this screen for the field 'Email' check the box under 'required' column. now click exit&save. give some short text in the next screen and save it under appropriate package, Transport requests.
    Note : you can default your transaction variant as the standard variant. (SHD0 - standard variants tab-> Activate/Deactivate as standard variant)
    Now go to se93 and click on create , give transaction code as for example 'SU01N' (this will be your new transaction for creating user with email as mandatory field) and choose start object as 'Transaction with variant'
    In the resultant screen, give the transaction code as SU01 and transaction variant as 'USR1' (the one we created earlier), check on all gui support box's accordingly, and save it under appropriate package and Transport request.
    From here on you can use SU01N as the transaction for creating users with email as a mandatory field.

  • Making a DFF field mandatory based on another field

    Hello All,
    We have a requirement where in we need to make a DFF field mandatory based on another field.
    example:
    DFF has two fields :
    Filed1 : values 'Email', 'Fax'
    Filed2
    If 'Email' is selected in 'Field1' then Field2 should become mandatory.
    Any inputs on this will be really helpful.
    Thanks & Regards,
    Satya.

    hi kumar3a,
    recently, i spent considerable amount of time wracking my brain on a similar problem. the nearest i came to a solution was when i used a forms personalisation. mind you, forms personalisation will not work directly on the DFF window, so it has to be approached in a roundabout sort of way.
    i got this information from an Oracle Support personnel - MOS Note 1078348.1.
    i would start with the flexfield segment as "not required", and then using Forms Personalization, i would make it "required". i would try to figure out how to establish a condition where the previous 'required' flexfield segment's value is checked to see if this 'not required' segment needs to be made 'required'. in theory, this should solve the issue. i gave up on it because the forms personalisation would need to cover WHEN-VALIDATE trigger event, and we had close to 100 validations going on through other preexisting forms personalisations, which rendered it near impossible to employ this method.
    best regards.

  • Making a field mandatory based on values in a drop down

    Hi,
    I am new to Javascripting on the Adobe Designer and we have a requirement to make a text field mandatory based on one of the values selected in a drop down list on the same form.
    When I say mandatory I mean we need to prevent the form from being Saved if this text field is not filled - specifically when a value (say "Promotion") is selected on a drop down.
    Please help me with the events under which the script needs to be placed and the scripting commands.
    Thank you!
    Neera

    Hi,
    You can put PPR event on EMAIL field. Catch that event in PFR and put your logic there like:
    if EMAIL is not null then make FORMAT field mandatory (for that u can catch that in PR)
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to make extended field mandatory in Master Agreement

    Hello All,
    I am new to SAP CLM, and I have requirement where one extended field in master agreement needs to be made as mandatory field.
    I tried in extension definition but check box to make it required is disabled and I am unable to find other way to do it.
    Can some one help me and Please let me know how make extended fields mandatory in CLM.
    Regards,
    Prabhat

    Hi
    This could be achieved using Page Customization.Go to Setup-> User Interface-> Page Customization, open master agreement object (create new with UI ID:contracts.contract.ui.buyside.default if doesn't exist ) and add a new customization for extended field with Property set to Required.
    Regards
    Mudit Saini

  • Radio Button to make other field Mandatory

    I have two Radio Buttons that I want when clicked on (either one) to make a Number Field mandatory. I have viewed many websites on setting a mandatory field but the script I am using will not work. I have tried a couple ways of writing it but I seem to be missing something.
    I have used this script in the Show of: click & change
    Here is the script that I'm using right now.
    if  (this.rawValue==1)   
    AssemblyNu-1.mandatory ="error";
    else
    AssemblyNu-1.mandatory ="disabled";
    And this one:
    if (this.rawValue==2)
    AssemblyNu-1.mandatory ="error";
    else
    AssemblyNu-1.mandatory ="disabled";
    Thanks,
    HHud5757

    So, I put a quick form together to test your code.
    On the change event of the radio button list (not the radio button itself), I added:
    if (this.rawValue == 1) tfTest.mandatory = "error";
    else tfTest.mandatory = "disabled";
    In my case, the radio button with the value of 1 is the one I want to make the field mandatory. If you want either button to make it mandatory, then use:
    if (this.rawValue == 1 || this.rawValue == 2) tfTest.mandatory = "error";

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to make a field mandatory in SAP Business one ?

    How to make a text field mandatory in SAP Business one?

    hi nishant,
    check this link
    Making fields mandatory
    To Set Mandatory Fields in Documents
    Jeyakanthan

  • How to make a field mandatory in billing

    How to make a field mandatory in billing document,if m right with the help of incomplition log but how.....
         plz reply the full configuration.

    Hi Mohan,
    We normally create a billing document with reference any other document say Order or delivery.
    so, all the necessary information in the invoice will be taken from preceeding doucments. Thats way in the order level we check for incompletion log. If any important data is missing in the order level then the succeding documents will not be created.
    Thats way in the billing documents all the necessary information will come automatically either from preceeding documents or from master data.
    Still you want to make any field mandatory, you can do these by modifieing Billing documents user exists,you can make which ever the fields are mandatory and to be checked before saving. so when you are going to save the invoice, it will check if these fields are maintained or not.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • Need to Make end customer field mandatory in sales order form.

    I need to make end customer field mandatory when sales channel entered as some value...
    for this i have used when validate record on order form
    when i enter a value in sales channel as desired value the form is getting saved automatically and the field is getting mandatory
    but my requirement is to make field mandatory and then to save the order.
    let me know the sequence how it works if any one knows.

    Sanni,
    >
    when i enter a value in sales channel as desired value the form is <b>getting saved automatically</b> and (then) the <b>field is getting mandatory</b>
    but my requirement is to make field mandatory and then to save the order.
    >
    Which trigger are you using to do the "getting saved automatically'?
    Does this trigger fire before the trigger that is making the field mandatory?
    Regards,
    PS: Is this an Oracle EBS query? If yes, this is the wrong forum
    Edited by: Prabodh on Jun 14, 2012 4:48 PM

  • Form personalization : sales order form (line) to make subinventory field mandatory

    I have requirement to make sub inventory field mandatory in Sales Order Line, I tried using Form Personalization on 'When Validate Record' and making the fields required. But even though the field is showing as yellow but system allowing me to save the order line without this fields? Any input?
    thanks
    challa

    Forms Personalization is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms.  Please post your question in the EBS General Discussion forum.  If you have a general Forms question, by all means, ask it here!
    Craig...

Maybe you are looking for