How to populate User defined Error message

Hi
i have a requirement as follows,
we have 2 types users(patient and doctor) some fields are mandatory for doctor and some of them for patient creation.
when they miss some fields while creating doctor it has to throw error message saying " these fields arer mandatory for doctor " same will follow for patient.
so can any body please tell me how to use the UDF error messages. (no external code).
Thank you.

IF b1 = 'Business One'.
  ASK question [here|SAP Business One SDK;.
ENDIF.

Similar Messages

  • How do you use user defined error messages in Value Help?

    Hi,
    I'm currently working on a Modifiable Value Help Selector in Web Dynpro Java, and I want to use a user defined error message when I validate the values entered by a user. Currently, it's returning its default error message ("Character <string> does not match...").
    Since the project requires a different error message, is there a way to override the default error message and use my defined error message instead?
    Thanks!

    Hi Angelo,
    I am not sure why message area is showing both Custom and inbuilt messages but you can try the following:
    i guess you must be using reportContextAttribute exception for showing Error messages on the input fields as well.in that case you can disable the message area so messages will appear only on the Context level ie; on input fields.
    For other messages apart from validation messages you can enable the message area before reporting the exception.
    make sure the boolean context variable which will be used for enabling and disabling the message area should have Readonly property set as true.
    I am not sure whether this is the only solution for this but you can try and see if it works.
    Siddharth

  • Page process: user defined error-message

    hi to everyone!
    i want to display a user-defined error-message, if for example a select in an anonymous PL/SQL block returns more than one row. i tried it with an user defined exception, but i get allways the success message... how can i do that?
    thanks for your help.
    bye,
    christian

    Hi,
    In the exception handler of your PL/SQL process use this :-
    apex_application.g_print_success_message := '<span style="color:red">Error message</span>';Regards
    Paul

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How to map user-defined fields in XML communication on SRM site

    Hi All!
    We use the External sourcing scenario and we transfer requirements from ERP  in SRM through XI (PurchaseRequestERPSourcingRequest_In)
    We should transfer the user-defined fields, but we can not map it in SRM site.
    We have enhanced enterprise service in XI, have realized BADI PUR_SE_PRERPSOURCINGRQCO_ASYN on ERP site.
    I see the XML message with ours z-fields in tr.  SXI_MONITOR (into SRM), but I can not find it in BBP_PDISC.
    We try to use BADI BBP_SAPXML1_IN_BADI (there is no method for SC), and BADI /SAPSRM/BD_SOA_MAPPING (z-fields is empty)
    Someone can tell how to map user-defined field for SC?
    Thanks in advance
    Evgeny Ilchenko

    Hello, Julia
    We have found solution our problem
    We have enhanced standard service in a new enhancement name space and defined own enhancement elements in our namespaces. Then these enhancement elements refered to the SAP standard Enterprise Service.
    But In our new interfaces were different  XML namespaces
    When we have correct an error we could use the next BADI
    on ERP site: PUR_SE_PRERPSOURCINGRQCO_ASYN
    on SRM site: /SAPSRM/BD_SOA_MAPPING
    BR,
    Evgeny

  • Is there a LabView example in the use of user defined error codes?

    Specifically, I have a VI that tests four arrays of data against various high/low limits. I have pass/fail outputs for 18 tests. I'd like to combine these into an 'error out' cluster with appropriate error codes and messages, for which I've created an x-errors.txt file.
    My first question must be trival - how do I just set the 'status' bit of the error stream to let the general error handler then look up the error desription from the file?
    Secondly - I can't find an example of this in the technical resourses, amI missing something?
    Thanks,
    Mike
    Mike Evans
    TRW Conekt
    N.I. Alliance Member, UK
    http://www.Conekt.net

    There is no example program. There is extensive help on how to do this. Here's the basics.
    1) There are two ways to define user error codes in LV6.1. If you are using LV6.0 or earlier, only one method is possible.
    2) The 6.0 method involves wiring arrays of error codes and arrays of error code strings to the General Error Handler.vi. These codes will be used to explain any error code which is undefined in LV's internal error code database. Error codes reserved for users which are guaranteed not to be used by NI are from 5000 to 9999.
    3) The 6.1 method allows you to create a specially formatted error code file on disk that will be merged with the LV error code database each time LabVIEW launches. For help on this, go to LV's online help, and in t
    he Index tab, type
    "user-defined error codes, in text files"
    (without the quote marks)
    4) If you want to set an error into the error cluster, use the General Error Handler.vi again. Wire your error code value to the Error Code terminal (the leftmost-topmost corner terminal). Wire the name of your VI to the Error Source terminal, and wire "No Dialog" to the Type of Dialog terminal (left-side, near the bottom). The error code cluster that comes out of this VI will either be the error in (if one was set) or a new error code cluster with your error and the status bit set to TRUE.
    5) The attached demo is written in LV6.0.
    Attachments:
    Error_Demo.vi ‏37 KB

  • How to create user defined button in alv report

    how to create user defined button in alv report
    thnks in advance.

    Hi,
    U can define it the the PF-STATUS ( Menu for ALV ).
    For that u have to define it in the EVENTCAT.
    form z_eventcat  using    p_i_eventcat type slis_t_event.
      data: i_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_i_eventcat
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      clear i_event.
      read table p_i_eventcat with key name = slis_ev_top_of_page into
      i_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
      if sy-subrc = 0.
        move 'SET_PF_STATUS' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      clear i_event.
      read table p_i_eventcat into i_event with key name = slis_ev_user_command .
      if sy-subrc = 0.
        move 'USER_COMMAND' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
    And in the DISPLAY
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_progname
         i_callback_pf_status_set          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = v_gridtitle
         i_save                            = 'A'
         is_layout                         = i_layout
         it_fieldcat                       = i_fieldcat[]
         it_sort                           = i_sortinfo
         it_events                         = i_eventcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_final
       exceptions
         program_error                     = 1
         others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *MENU SETTINGS.
    form set_pf_status using rt_extab type slis_t_extab.
      set pf-status 'ALV_MENU'.
    endform.                    "SET_PF_STATUS
    endform.                    " Z_EVENTCAT
    Now double click on ALV MENU nad u can create a button in the application bar.
    Regards,
    Pritha.

  • How to use user-defined packages in JAX-RPC web service

    I am trying to use Object of my class located in my package in jax-rpc webservice,the code is
    package supercomputer;
    import Hello.*;
    public class SuperImpl implements SuperIF
    public String sendParam(String data)
    Temp ob=new Temp();
    int i=ob.get1(10000);
    return data+"returned by supercomputer";
    Temp is located in Hello package,I have jar the Hello package as Hello.jar and has set its classpath in targets.xml of Ant tool.
    The code compiles well and service is deployed successfully,but when i try to call the service from the client its gives me following error.
    [echo] Running the supercomputer.SuperClient program....
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    [java] at supercomputer.SuperIF_Stub.sendParam(SuperIF_Stub.java:60)
    [java] at supercomputer.SuperClient.main(Unknown Source)
    I dont know if it deploys why it gives error on client side.
    Please tell how to use user-defined packages and class in jax-rpc service code ,i am not talking about passing user-defined parameters i am just talking about making objects of user defined classes in jax-rpc service.I think there is some problem in classpath.
    Please guide me in doing that.
    Thanks,
    Farrukh

    Farrukh,
    I don't know if your error is about a missing class from your custom package, ... what track did you followed to say that?
    To use your package in the implementation of you web service, you should only follow the rules of making a web application: put your package jar in your \lib directory inside WEB-INF/ or your package classes unjared in classes (also in WEB-INF/).
    As I already said, I have doubts that your error should be originated from a missing class from your package, but:
    -try to see the logs (errors?) when you deploy your web service that could give a hint about the problem.
    -try to see if you can access your endpoint through your browser to see if there is a online status
    -display your config/WSDL file, and the steps you did to build your web service.
    regards,
    Pedro Salazar.

  • How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    Hi j,
    I don't know if this will work, but I'd try logging in to an admin account, going to your main library (not user library), opening it, opening Application Support, selecting iPhoto, hold down the command key and press i, click on the lock in the lower left, entering the password and making sure you have Read & Write privileges for System and Admin.

  • How front end query invoke error message at backend

    Dear all,
    Please help me this out! I'm working on servlets(using Apache server). I'm sending sql statement to (dbaccess) database. If I do a sql statement directly at backend, the db will generate an error message. Now I'm sending the query at front end. When error occurs, the backend doesn't show the error message. I have no idea how to 1) generate the error messages at backend when a sql from front end is executed. 2) And then how the backend send the error message to the frontend.
    If you have any idea, please help me. I greatly appreciate that!
    Regards,
    Grace

    Thanks. Backend means database. But I just wonder why this exception not shown on my webpage. I made it to print out in html file.
    And are you sure that the exception front end caught is the same error message that I get if I run the sql statement at backend directly? Because I'm thinking of ways to make the error message both detail and user friendly to understand.
    What would you think?
    Thanks again!
    Grace

  • I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

  • User defined error management in variance calculation

    Dear Expert,
    I would like to change the message type for some messages in variance calculation. Path:  IMG/product cost controlling/cost object controlling/product by order/manufacturing order/periodic processing.  According to IMG documentation, the message type can be changed here. But I failed to edit the message and it seems not modifiable.  Can anyone reply on this? Thanks!
    BEST REGARDS
    Maggie
    Edited by: Qin Ou on Oct 27, 2009 6:36 AM

    Hi,
    I am able to change the message is the IMG Path:
    IMG/product cost controlling/cost object controlling/product by order/manufacturing order/ User defined Error Management /
    1, Specify User-Def. Msg Types for Preliminary Costing of Manufacture
    2, Assign Message to Responsible Area
    Regards,
    Sridhar Sha

  • Column Ambigiously defined error message

    I'm getting Column Ambigiously defined error message. How do I fix it ?
    select c.guid,d.teritorryname,a.permission,e.CLASSIFICATIONNAME from Apps_PERMISSION a , Apps_PERMISSION_CLASSIFICATION b , Apps_USER_MASTER c ,Apps_TERRITORY_MASTER d , Apps_CLASSIFICATION_MASTER e where a.PERMISSIONID=b.PERMISSIONID and a.TERRITORYID=d.TERRITORYID and a.USERID=c.USERID and b.CLASSIFICATIONID=e.CLASSIFICATIONID and a.USERID IN (select userid from Apps_USER_MASTER ) order by userid

    May be
    select c.guid,d.teritorryname,
    DECODE(a.permission,1,'Create',2,'View',3,'Edit'),
    e.CLASSIFICATIONNAME from Apps_PERMISSION a , Apps_PERMISSION_CLASSIFICATION b , Apps_USER_MASTER c ,Apps_TERRITORY_MASTER d , Apps_CLASSIFICATION_MASTER e where a.PERMISSIONID=b.PERMISSIONID and a.TERRITORYID=d.TERRITORYID and a.USERID=c.USERID and b.CLASSIFICATIONID=e.CLASSIFICATIONID and a.USERID IN (select userid from Apps_USER_MASTER ) order by a.useridOr you can use CASE also.

  • Is it possible to change the sytem defined Error Message

    Hi All,
    Is it possible to change the sytem defined Error Message: "Reason codes with automatic charge-off are not permitted here" to Warning Message. If so, how can I search in which application area  this message defined in OBA5 screen?
    Other details for this issue:
    Message: Reason codes with automatic charge-off are not permitted here
    Message Class: F5,
    Message No: 605.
    Thanks
    Chandra

    Hi,
    Without investigating deeper for this specific error message, I can say that the messages that cannot be maintained through OBA5 will in some cases remain in the system even if maintained in OBMSG. If message is not allowed for change in OBA5 and there is no OSS note regarding this message, it means that SAP designed it this way. Changing the nature in OBMSG (which is not standard or recommended SAP operation) will not always save the problem; the message could be simply hard-coded in the program with 'E' attribute.
    Regards,
    Eli

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

Maybe you are looking for