Error message linking to field

Hi guys,
I'm trying to generate an error message that links to the field when clicked on.
My problem is this. This error message is for a dropdown list. When user choose a blank selection, it will generate the error message to "fill in the mandatory field", with the link to the dropdown box.
I tried lo_message_manager->report_attribute_error_message but it gives an error dump for null values (due to blank selection).
I have also tried cl_wd_dynamic_tool=>check_mandatory_attr_on_view. This works fine for the other inputfields, but it doesn't work for the dropdown list.
Please advise. Thank you very much.

Hi,
how is your dropdown done? by key/index?
because with an indexed one, none is selected, thus returning a dump when you try to have
an attribute error message (initial selected element).
Greetz,
Koen

Similar Messages

  • HTML DB Color Error message in a field - how to set them

    Hi everyone,
    I want to know where I can set the color of an error message in a field ?
    In our page model, on an required field: the message is black
    and on an optional field: the message is red.
    I want both of them red.
    Thank you. Bye.

    Hi Carl,
    I have a similar issue. I am using Theme 20 and error messages per item as well as page level error messages are coming up in Blak. Is there a way to show them in Red?
    Thanks,
    Bhavesh

  • Error Message-- For Balancing field "Profit Center" is not filled

    Hi All,
    When I do Shipment Start get Error-Message for Balancing field "Profit Center" is not filled!
    A PGI for the DNXXXXXXXX is not possible!
    Can u please help me how to resolve this issue ?
    WM Baby

    Hi,
    AS per configuration , there is prifit centre assignment  .Enter the profit centre in the field of profit centre by the help opf F4.
    Regards,
    Andra

  • After Showing ERROR message make the field editable in subscreen.

    Hello Experts,
    I have a requirment where i have added a subscreen to the standard screen of ME31K for creating the contract. In my Subcreen i have my custom screen fields that i'm updating in EKKO table through include structure.
    Now if user forget to fill the details in my custom fields in the subscreen then i'm giving the error message prompting the user to fill the value in fields.
    But the problem is the screen is locked there itself i want to make the field editable so that user can enter some value in the fields. I can not use the stuatus or information message here because doing this i will get the item overview screen which should not come as i want to restrict the user to header details only and fill all the custom fields.
    Please provide me with your helpful responses.
    Thnaks,
    Naveen

    Hi Naveen,
    Sorry for the delay.
    The code which I gave for popup, i hope its being shown in an IF . . . ENDIF.
    So in that condition u can add the following :
    IF < ur condition >
       < Call message FMs >
        SET SCREEN SY-DYNNR.   "this would set screen to current screen which is 0201
        EXIT.
    ENDIF.
    Other than this if you like you can set some parameters in the PAI of this screen which redirect to current screen based on some conditions.
    So u can manually set OK-CODE and CALFCODE as SPACE, but i dont know how much this can impact the process.
    So please follow the above code.
    This is available in
    Main Program     SAPMM06E
    Source code of   MM06EF0F_FCODE_CALL
    IF OK-CODE EQ SPACE AND
       CALFCODE EQ SPACE.
      SET SCREEN SY-DYNNR.
      EXIT.
    ENDIF.
    Hope this helps.
    Regards,
    Ateet

  • Error message disble the Fields in Selection Screen

    Hi,
    In my Report i am validating some fields as mandatory.
    If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
    But after displaying the errro message my selection screen is input disable except the mandatory field.
    I want all the fields should be input enable.
    Sample code for Error message,
    MESSAGE E018 WITH 'Enter Plant'.
    Please provide the code for this.

    Performing checks on SELECTION-SCREEN
    - if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
    - if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK  <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
    So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
    Use Error message, Warning and Information don't break the flow of the report.
    Regards,
    Raymond

  • Getting Error Message When Duplicating Fields

    I am using Acrobat X Pro, ver 10.1.4 to edit an existing Acrobat (non LiveCycle) form. My computer is running Windows XP, Service Pack 3.
    There are three fields on my form that I want to select and duplicate multiple times (11 times down and 4 times across). The fields are one check box field and two text fields. I've used this method in the past, and nevr had any problems:
    1. Click "Tools" > "Forms" > Edit
    2. Select the fields by lassoing them with the cursor
    3. Right click and choose "Place multiple fields"
    When I do the above steps, I get this error message: "Cannot create multiple copies of this selection.One or more fields in the selection have duplicates in this form."
    However, if I multiple select the three fields using the fields panel on the right side of the screen and then right click and choose "Place multiple fields", I do not get the error message and forms are duplicated as expected.
    I played around with this a bit and found that when the first method fails,  if I remove one specific text field from the group of three fields, the "Place multiple fields" functionality works on the remaining two fields. If I add a third, completely new and unique text field to the group of three fields, I get the error message again.
    What am I doing wrong where one method works and the other one does not?

    What error message?
    Are you sure that the network is really public?

  • How to show a single error message for all fields

    Hi
    I have a JSF from containing around 10 controls(input, select etc.) .
    Now I need to display an error message in case any of the mandatory control has validation error.
    Message format would be like
    "*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
    Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
    My code is below.
    *<h:panelGrid columns="3">*
    *<h:outputText value="#{msgProv.bi_firstname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText*
    *value="#{brokerInformationFields.firstName}"*
    *label="#{msgProv.bi_firstname}" id="firstName" required="true">*
    *<f:validateLength maximum="10" minimum="2" />*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:outputText value="#{msgProv.bi_lastname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
    *value="#{brokerInformationFields.lastName}" required="true">*
    *<f:validateLength maximum="20" minimum="1"/>*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:commandLink action="#{brokerInformationActions.submit}">*
    *<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
    *</h:commandLink>*
    I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
    And a Phase Listener from
    http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
    This Phase listener is to border the control with Yellow in case validation fail.
    Now my Query
    *1) How can I show a single message for all fields as I marked above in case of validation failure?*
    *2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
    *User can move from one control to other using tab. That time proper validation message is appearing.*
    *but the border of the control is not changing to yellow.*
    *What's the correcion can be made to meet that requirement too.*
    regards
    Roy

    Hi Nabheet,
    Thanks for your response.
    The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
    But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
    Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
    Thanks.

  • Geting error message for optional field.

    Hi All,
    i have a issue as below.
    1) i have created a context node BUILIDNUMBER(Parent entity Header with relation ) for view BPHEADOverview   in BP_HEAD and in BUILIDNUMBER there is an attribute IDENTIFICATIONNUMBER.
    2) Initially this attribute was a manadatory field in Account Overview screen of IC Webclient and i changed it to optional as per requirement.In account overview screen of contact person this field is now shown as optional.
    3)But when we tried to save the record without PIN number(IDENTIFICATIONNUMBER) it's showing error like 'Enter ID Number' .Even after setting the value of ID type (ID type is IDENTIFICATIONTYPE of context node BUILIDNUMBER as in our case PIN number should be saved along with its ID Type  ) we are getting above error.
    4)We are setting the value of ID type as blank in Method SET_IDENTIFICATIONNUMBER if PIN number is empty but we are still getting the same error and i checked in  on save event method PIN Number and ID type is passed as blank.
                                               We are able to create BP in ICCMP_BP_DETAIL component without the PIN number in BuPaCreate view ,If  We fill PIN number for the created BP  in Account Overview screen (By editing) and save it    then the record is saved with the PIN Number successfully.But when we again make the PIN field blank and save the record in Account Overview Screen , It is showing error 'Enter ID Number'.                                    
                                 I am confused why we are getting error message even after setting Pin Number and ID type  as blank.For testing purpose  I  deleted the error message from bol core  and now error message is not coming but on save still PIN number field contains the previous value which i had earlier set blank .
                  Any helpful solution will be appriciated.
    Regards
    Snehasish

    resolved..

  • An error message using DESCRIBE FIELD

    DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG .      
    that line off code gives me an error message:
    In Unicode, DESCRIBE LENGTH can only be used with the IN BYTE MODE or IN CHARACTER MODE addition.
    can anyone else provide me an explanation and solution..thanks

    Hello,
    You want to have the length of the field MAKT-MATNR. Then you can use the function STRLEN.
    DATA:
    MNR_LNG TYPE I.
    MNR_LNG = STRLEN(MAKT-MATNR).
    Else as suggested you have to use the addition IN CHARACTER MODE with DESCRIBE FIELD.
    Depends on your requirement.
    Hope this helps !!
    BR,
    Suhas

  • Strange error message - linked lists (again)

    I have to keep at this linked list thing if I'm ever going to really understand it!!
    I have created a method to create a linked list via user input. I'm receiving only one strange ERROR, which states:
    "This method must return a result of of type ListADT.Node."
    And I have just started building my class ListADT...
    class ListADT{
    public Node createList(int aNumber){     // THIS IS WHERE THE ERROR POINTS
          * integer variable aNumber is the length of the list user wishes to create.
         Scanner console = new Scanner(System.in);
         int number;                    // declare variable number as an integer.
         Node newNode = new Node();          // declare and initialize newNode.
         Node first = new Node();          // declare and initialize first.
         Node last = new Node();               // delcare and initizlize last.
         try
              for(int i = 0; i <= aNumber; i++){               // for loop to enter numbers to build list.
              System.out.println("Please enter an integer: ");     // prompt user.
              number = console.nextInt();                    // assign user input to variable number.
              newNode.info = number;          // assign number to newNode;
              if(first == null){               // checks to see if Node first is a null value.
                   first = newNode;          // if true, then this node is the first and last node in the list.
                   last = newNode;
              else{                              // if first is not null, then newNode is placed at the end of the list.
                   last.link = newNode;
                   last = newNode;
              return first;
         catch (InputMismatchException imeRef)     //Catches non-integer values
              System.out.println("You entered a non-Integer! " + imeRef.toString());     //Prints error message

    Now why can't the error messages help
    out a little more? I would have never guessed that
    there was a problem with the catch block not
    returning anything!!The message was pretty informative -- it told you what was wrong. If the compiler could be so smart as to be able to tell you exactly what to fix, then the compiler would be able to write code all by itself -- and then you'd be out of a job.

  • Idoc Import phrase - error message link to language

    Hi all,
    I configured an ALE betwenn 2 SAP systems.
    I received some idocs in oder to import phrase in the target system.
    When I proccess the idoc i have the following error message: "Cannot create phrase text in source language" and the second one is "Phrase language 5 does not exist in Customizing".
    Anybody can help me please?
    Thanks
    /Ludo

    yes, some languages are not present in the target system regarging source target.
    The problem is that the source system is unicode and the target is no unicode system and i am not able to add language in the target system.
    I will try to apply filter in the source system.
    Thanks for your reply!
    /Ludo

  • Error Message linked to satellite ISP?

    Hi,
    So glad to have found this forum, as I am very frustrated.
    I live in a rural area, and recently went into contract with a satellite ISP. It's hughes net, actually, and since having done so, I'm having trouble with uploading my sites to .mac.
    When I click "publish", it begins to log in to my mac account, then it uploads the start page of my first site (I have two) and then, I get this message: "Error - shapeimage_2.png" and it doesn't finish uploading.
    I have tried to take all the photos off my site, I have tried deleting all the new info since my last good upload - I have done almost everything I can think of. My iweb has gone from publishing without issue when I first started using it last fall, to publishing only if there are no other programs open, and I'm not even breathing close to it. So tempermental lately! And now, with this new satellite, (which is a hundred times faster than the dial-up we were using) it won't finish publishing.
    I did notice that, somehow, the start page on my first site, online, was update with my changes. But nothing else. The blog which I updated at the same time, was not uploaded, so it seems that it did put the start page up, but didn't update the rest of the site, once it gave me the error message. It does not update the start page of my second site, at all.
    Can anyone help? I'm really in a pinch, as I need to update my sites and get them current. If it's connected to the satellite internet, how do I get around it, so I can continue my sites?
    Thanks!
    G4 iBook   Mac OS X (10.4)   Running Tiger

    Thanks for your input, QTK, but yeah, this is a totally unacceptable option for me. I don't have any other place to upload this website - I work from home, don't even know of any public place (nor friend/relative/neighbor) using macs in my area, except for some schools and they aren't using iWeb, according to my IT guy. I have a hard time believing apple is so far behind the times, they can't figure out something to bridge the gap...especially since broadband satellite isn't a brand-spanking new idea. It would have been nice to have been able to read a warning or something, before I paid for the yearly subscription to .mac.
    I've narrowed it down to a "network" problem, after consulting the apple help people. Network = Broadband satellite connection, I'm assuming. It would be helpful to know what "shapeimage_2" is on my site, but I haven't seen anything to lead me to believe that I can get that information. I guess it doesn't matter, since it's all going back to the connection.
    I am really ****** about this. I had no reason to think that of all my connections in my house and what not, this one dinky website program would be the thing that wouldn't mesh with my apparently alien satellite ISP. If I'm able to figure anything out about this - which I'm not expecting to, because it seems I've tapped all the apple resources on this gig - I'll come back and post the solution.
    g4   Mac OS X (10.4)  

  • Data type error when linking Salesforce field to MS SQL Server field?

    Hello.  I'm using CR XI R2 SP4 with the Salesforce 3.0 driver.  I have MS SQL 2000 SP4.  I want to create a standard report that links the Salesforce Contacts table with a table in my local SQL 2000 database - the table also contains a column with the contact ID values.  When I try to link using the Contact ID field, Crystal gives me an error "Data types are not compatible."
    The ID column data type in my SQL database is CHAR(18).  Is there a type I should use to make it work with Salesforce?
    Thanks
    David

    Thanks for your reply.  In Salesforce, ID is a special data type - I don't know what it would match in SQL.  I'll have to open a case with them to see if they can tell me.

  • Changing error message for mandatory field in me21n

    Hi,
    We had made the field "Collective no." of the additional data tab of the me21n transaction mandatory.
    We also change the name of that field to a custom name.
    Now if the user doesn't enter text in that field we get the error "Please enter Collective no.".
    I want to change the message to match our new field name.
    I checked in T100 for that message, but it's not there.
    Can anyone tell me from were that message come from, and how to change it.
    Thanks

    Hello,
    Tell us class and msg no so that we can find out coz it is pecular requirement.
    I suggest do not make it mandotary and dont change to custom field - give information message, place the cursor in field so user get message when he dont enter any value.
    yesterday we have discussed same we do not have any userexit - SAP direct modification required.
    PAI of the SAPMEGUI 1229 and MEPO1229-SUBMI field it contains value of collection no so just write your code there.
    *****Poorna********

  • Error While Linking Formula field for Repetetive Area Header In PLD

    Hi All,
    I am having a problem in pld..Let me explain...!!!!
    I have a drop down field called Billing Type....My requirement is if the billing type in Time based then it should become number of Hours,if my billing type is Trip based then my Quantity column should become no of trips .I got the logic but when i am linking the formula field with the header in the repetetive area it is not working,but when i paste it some where else it is working,Please tell me any solution for this...!!!my version is 8.81 PL20
    Regards
    Cherry

    Hi Cherry,
    Any formula fields you use in your logic must be on the same area as the linked fields. In your case - as I understand you are trying to link row level fields to a formula based on a header level UDF. What you need to do is to move all your hidden fields used in the formula to the Repetitive Area - don't worry if the field used is actually header level, it still should be fine.
    I would advise not to hide any fields used in a formula until you are 100% sure it's working - as you can then check if all of them show the results you expect. For instance in this case you could see that the header UDF displayed in the Repetitive Area is repeated in every line and so any formulas based on this field will work well.
    I hope this helps.
    Regards,
    Nat

Maybe you are looking for