Creating Error Message in Reports

Hello,
I have a report that has a date range for a parameter screen. The user has requested that an error message will be displayed to prevent the user from making/entering the start date greater than the end date.
Could someone please tell me what report trigger I should use as well as some sample code to accomplish this. I would like something like, "The ending date cannot be less than the beginning date. Please enter a valid date range."
Thanking you in advance

You can only do this by validating the two parameters in the after parameter form trigger.
eg
If :start_date > :end_date then
srw.message(1, 'Your start date is bigger than your end date. Re-enter');
return(false);
end if;
Marcos

Similar Messages

  • Firefox crashes when I open it but there is no error message or report

    Upgraded to latest version and worked fine. Today, as soon as I open Firefox it starts to load the homepages and then crashes without any error message or report. Tried to restart PC but problem remains unchanged. Thanks for your help.

    Just FYI
    QuickTime 7.7 for Leopard - http://support.apple.com/kb/dl761
    http://support.apple.com/kb/DL27 <-- Quicktime 7.5.5

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • Create Error Message

    Hi,
      I want to create error message while user enter symbols into input field.
    Plz help me with the procedure to create messages.
    Regards,
    Anitha

    Hi,
    follow this procedure,
    declare the error or warning or text messages in the message pool.
    we can use those message in the view using the message manager .
    IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();
    and check if the input field or any other ui element is null then throw error messages.
    if(wdContext.currentContextElement.getfieldName()==null){
    messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),attributeInfo,IMessageSimpleComp.EMAIL,null,true);
    here email is the required field.
    refer this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/72/1d6526263ff24995016a152705eab2/frameset.htm
    Regards,
    Sunaina Reddy T

  • #ERROR message in report for date format conversion

    Dear Collegues,
    Why is it that I get #ERROR message (instead of date value) in my report when I use the formula
    =ToDate(UserResponse("Enter End Date:");"dd.MM.yyyy")   ??
    When I only write UserResponse("Enter End Date:") I get the appropriate date, f.ex 5/12/2009. This is american standard for 5th of may, I need to see it like 12/05/2009.
    If I try to just enter the date object behind the prompt ([Settlement Date]) i get message #MULTIVALUE even though I have promptet for 1 special date...
    Is there another formula I can use to get the right format? I can't adjust the format using properties, it doesn't make any difference, the settings I put in there.
    Regards Silje

    Thank you for the very quick answer! Using FormatDate() I get an error message while validating the formula:
    The expression or sub-expression at position 12 in the FormatDate function uses an invalid data type. (WIS 10037)
    I tried making a variable inside BO called [End Date] = userResponse("Enter End Date:") but I get the same error message then. Creating a variable you can only choose between Dimension, Measure and Detail, not Date. Is that some of the reason?
    Finally I tried FormatDate([Settlement Date]; "dd.MM.yyyy"). Validating the formula I get the message that the formula is correct, but in the report the field containes message #MULTIVALUE...
    SILJE

  • Creating support message field reported by doesn't fill

    Hi colleagues,
    When I create a support message field reported by doesn't fill automatically.
    I think that I've completed all required steps in order these fields were filled automatically. Fields sold-to party and support team are filled automatically, they work ok.
    The steps that I've checked:
    - The support message is created successfully from satellite message(SID=DES_01). The user which creates this message is zprueba5 exists with profiles: SAP_ALL, SAP_NEW at the satellite system.
    -In the solution manager system(SID=SMG), transaction ib52 for the satellite system is filled with partners: employee responsible, sold-to party and system administrator.
    - In the solution manager system(SID=SMG), zprueba5 exists with profiles: SAP_ALL, SAP_NEW.
    - Transaction bp, zprueba5 user contains BP roles: Business Partner, Employee, Bill-To Party, Financial Services and at the tab "Identification":
    External BP Number: SMG 010 ZPRUEBA5
    ID Type     Description                         Identification number
    CRM001    External System Identifier   DES_01 0020281686 100 ZPRUEBA5
    CRM001    External System Identifier   SMG 0020276689 010 ZPRUEBA5
    So, In the solution manager system(SID=SMG), crm_dno_monitor transaction when I open the support message just created from satellite system, I have an error because reported by field isn't filled.
    Please could you help me?
    Thanks and Regards
    Raul Aguilar

    Hi Nikhil,
    At this message I'm going to reply your last two replies.
    1.- You typed me "In ib52 select both the system simultaneously and then go to->parner and assign proper bp no for the respective partner function. You need to do it for every system may be users are same.
    I hope you have maintained proper access sequence i.e. via ibase."
    For each SAP System that I've defined at SAP Solution Manager, at ib52 transaction I've defined the three roles that IMG activity documentation types:
            Assign business partners with the following functions to the new iBase component systems:
                Administrator
                Key User
                Sold-to Party
    SAP Solution Manager Implementation Guide->SAP Solution Manager(SP 17)->Configuration->Basic Settings->Standard Configuration of Basic Settings->Solution Manager->iBase->Assign Business Partners to iBase Components ->transaction Change iBase (IB52), enter in field Installed Base '1' and I select the SAP System->Goto -> Partner
          Function                                        Partner      
        00000014  Employee Responsible     298
        00000001  Sold-To Party                  295
        SLFN0001 System Administrator      295
    2.- You typed me  "Select you partner determination procedure and double click on "User interface setting" here select appropriate partner functions and assign all of them in ibase as I said in above reply.
    You must not be getting reported by partner function. Take out System administrator. Motivate by assigning points."
    My Partner Determ. Proc. is SLFN0001, so I double click on User interface setting like you explained me, adn now appears:
    Header Screen:
    Sequence and Functions for (main) Partner Displayed
    Partner Function1 00000001  Sold-To Party (CRM)
    Partner Function2 SLFN0002 Reported by (CRM)
    Partner Function3 SLFN0003 Support Team (CRM)
    Partner Function4 SLFN0004 Message Processor (CRM)
    But now I don't understand if at ib52 transaction I've to add any role or if from "User interface setting" I've to delete any Partner Function. Could you detail me when you type "You must not be getting reported by partner function. Take out System administrator", please?
    Regards,
    Raul .

  • Error message in reports

    Hi Friends,
    How error message occured in ABAP Reports & solution for that ?

    Hi Dhananjaya,
    also check this.
    Messages allow you to communicate with users from your programs. They are mainly used when the user has made an invalid entry on a screen.
    To send messages from a program, you must link it to a message class. Each message class has an ID, and usually contains a whole set of message. Each message has a single line of text, and may contain placeholders for variables.
    All messages are stored in table T100. You create and edit them using Transaction SE91. Once you have created a message, you can use it in the MESSAGE statement in a program.
    Also,
    In SE91, you can see all the error message details.
    For information, if the error message shows "V10222", you have enter the first three digits in "Message Class" and last three in "Number". This means, whatever the message number is, the last three digits has to be entered in "Number" and the value precedes this last three numeric value has to be entered in Message Class.
    And finally,
    Let me put it this way..
    Every Error Message belongs to a Message Class.
    So, a particular Message Class will have a number of Messages under it.
    You need to know the Message class first. For Sales we have the following message classes V1, V10, V2, V4, V5, VD, VU, VV, VX, WVA
    *If you want to know all the message classes available for a transaction:-*
    For knowing all the Message Classes for a particular transaction, you goto-->SE93, put the transaction code and choose display. After this, there is a button on the top (Display Object List), press that button. On the left hand side you will get the Object Name-(example: VA in case of sales). Drop down there and choose Message Classes. You will get all the message classes there.
    If you know the Message Class and want to see the Messages under it:
    So, goto-->SE91, put the message class and choose Display
    cheers,
    Hema.

  • Supress error message in reports 6i

    I am brand new to reports.
    I validate a date parameter in the AFTerFormParmater. If the
    date is null (blanked out) I want to issue an srw error message
    and reset the date on the form to a default.
    I get the my srw error message but
    then I also get a system error message about the "trigger failed"
    how can I supress this message
    in addition - how can I reset the date so it is not blank when
    the parameter form is redisplayed.
    I cannot run the report from a normal form as I have not taken'
    the forms class yet. Everything needs to be done from reports
    itself.

    Hi Dhananjaya,
    also check this.
    Messages allow you to communicate with users from your programs. They are mainly used when the user has made an invalid entry on a screen.
    To send messages from a program, you must link it to a message class. Each message class has an ID, and usually contains a whole set of message. Each message has a single line of text, and may contain placeholders for variables.
    All messages are stored in table T100. You create and edit them using Transaction SE91. Once you have created a message, you can use it in the MESSAGE statement in a program.
    Also,
    In SE91, you can see all the error message details.
    For information, if the error message shows "V10222", you have enter the first three digits in "Message Class" and last three in "Number". This means, whatever the message number is, the last three digits has to be entered in "Number" and the value precedes this last three numeric value has to be entered in Message Class.
    And finally,
    Let me put it this way..
    Every Error Message belongs to a Message Class.
    So, a particular Message Class will have a number of Messages under it.
    You need to know the Message class first. For Sales we have the following message classes V1, V10, V2, V4, V5, VD, VU, VV, VX, WVA
    *If you want to know all the message classes available for a transaction:-*
    For knowing all the Message Classes for a particular transaction, you goto-->SE93, put the transaction code and choose display. After this, there is a button on the top (Display Object List), press that button. On the left hand side you will get the Object Name-(example: VA in case of sales). Drop down there and choose Message Classes. You will get all the message classes there.
    If you know the Message Class and want to see the Messages under it:
    So, goto-->SE91, put the message class and choose Display
    cheers,
    Hema.

  • Error message in report writer when add new selection filed?

    Dear All,
    I wanna add a new selection field cost element group and cost element to a report in report writer. I key in GR52 and click the general data selection. I select the set variable &1KSTAR to enter into the set ID. But it shows me the following message:
    Set cannot be used in Selection:
    Message no. GR807
    Diagnosis
    You are trying to use a set in report maintenance.
    The set cannot be entered in the report definition for any of the dimensions for which the set could be used.
    The following error message describes why the set cannot be used for all the dimensions for which the set can be used.
    System Response
    The set will not be entered in report maintenance.
    Procedure
    Choose an appropriate set.
    What does it mean? I have tried other set variables but sitll gave the same message.
    Thank you and good day.
    Emma.

    At the same time, it gave me a green light message saying:
    Characteristic Cost Element is already used in a row
    Message no. GR465
    Diagnosis
    The characteristic Cost Element is already being used in a report row block and therefore cannot be used in a different part of the report.
    Technical note:  The field name for characteristic Cost Element is KSTAR.
    Does it mean I have used the cost element in the report and blocked the cost element so that I can't use it in the selection screen? How can I solve this by not changing the report or should I change the report?
    Thank you and good day
    Emma

  • Error message in Report designer "Activate Default Theme: 0TRADESHOW"

    Hi,
    While working in Report Designer, I repeatedly get an error message saying "Activate Default Theme: 0TRADESHOW. See Note 1071338". After following the instructions and activating this theme, the problem still persists.
    Anyone with a solution to this problem? We are running BI 7, package level 17.
    Regards
    Nils

    Hi all,
    I had the same issue and finally solved re-installing BC in BACKGROUND mode.
    For unknown reason, my first istallation generate the a 0TRADESHOW entry with version D in table RSTHEMES.
    Later attempts to re-install BC were not modifying this table.
    Until I tryied Background Installation. It promped for overwriting current installation, I accepted and A version get generated.
    best regards
    Carlos Serrano

  • How to retrieve only error message through report file

    Hi,
    When there is extract/replicat abended,we need to check complete report file to see the error message.
    I would like to know is there parameter setting available ,so that we can retrieve only required error message.
    For ex. Instead of complete error message to check in report file,i need to see below meesage only,starting from "source Context".
    Source Context :
    SourceModule : [er.main]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/app/er/rep.c]
    SourceFunction : [get_map_entry]
    SourceLine : [9126]
    ThreadBacktrace : [11] elements
    : [ora/gg/install/replicat(CMessageContext::AddThreadContext()+0x26) [0x5f2ac6]]
    : [ora/gg/install/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x5e9562]]
    : [ora/gg/install/replicat(_MSG_ERR_DB_CLAUSE_ERROR(CSourceContext*, char const*, CMessageFactory::MessageDisposition)+0x92) [0x5b1352]
    : [ora/gg/install/replicat(get_map_entry(char*, int, __wc*, int)+0x1dd6) [0x4fcec6]]
    : [ora/gg/install/replicat [0x5497e5]]
    : [/ora/gg/install/replicat(WILDCARD_check_table(char const*, char const*, int, unsigned int*, int, unsigned int, DBString<777>*, int)+0
    x16b) [0x54b08b]]
    : [ora/gg/install/replicat(REP_find_source_file_wc(char const*, unsigned int, DBString<777>*, int)+0x350) [0x903d50]]
    : [ora/gg/install/replicat [0x90bb0d]]
    : [ora/gg/install/replicat(main+0x84b) [0x5081ab]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2b87d13469b4]]
    : [ora/gg/install/replicat(__gxx_personality_v0+0x1da) [0x4e479a]]
    2012-07-09 02:20:48 ERROR OGG-00919 Error in COLMAP clause.
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Nice..i think awk is better option.
    Just one thing.awk command only displays part of the information instead of complete below information.
    Ex: egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    [22:00]goldengate]$ egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisposition)+0xa6) [0x61f2c6]]
    Where as i would like to see complete information including ERROR details as mentioned below.Do you have any awk command for this?
    Required below output:
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [/orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisp
    osition)+0xa6) [0x61f2c6]]
    : [orashare/gg/navc1/extract(OCISESS_try(int, OCISESS_context_def*, char const*, ...)+0x353) [0x5a3d53]]
    : [orashare/gg/navc1/extract(OCISESS_logon(OCISESS_context_def*, char const*, char const*, char const*, int, int, int)+0x89c) [0x5a596c]]
    : [orashare/gg/navc1/extract(DBOCI_init_connection_logon(char const*, char const*, char const*, int, int, int, char*)+0x74) [0x5931a4]]
    : [orashare/gg/navc1/extract [0x597918]]
    : [orashare/gg/navc1/extract(gl_odbc_param(char const*, char const*, char*)+0x3b) [0x597f1b]]
    : [orashare/gg/navc1/extract [0x520b96]]
    : [orashare/gg/navc1/extract(main+0x1ce) [0x52726e]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2af768923994]]
    : [orashare/gg/navc1/extract(__gxx_personality_v0+0x1ea) [0x4f3aba]]
    2012-09-06 16:48:50 ERROR OGG-00664 OCI Error beginning session (status = 1017-ORA-01017: invalid username/password; logon denied).
    2012-09-06 16:48:50 ERROR OGG-01668 PROCESS ABENDING.

  • Creating Error message during creation of SC using create limit item option

    Hi,
    I am using option "create limit item" option to create a service SC, now i need to set an Error message if the value in the "value limit" field is lower than the value in the "expected value" field during the creation of sc and i should not be able to order such cart. Currently there is no message displayed and i can create a SC with the lower value in the value limit field.
    Please suggest.
    Regards
    GGL

    Hi. Try BBP_DOC_CHECK_BADI to issue a custom error.
    Regards,
    Dave.

  • Shopping cart not created, error message 'Error in Transfer'

    Dear Guru's,
    While creating a shopping cart in the product category, the system is giving an error message 'Error in transfer'. We are working in the classic scenario.
    When we check in the table BBP_PDBEI, the logical system shown is SRM system. Ideally, the logical system should be that of the ECC backend system. Could you please help us where we can go wrong in the settings?
    Thanks and regards,
    Ranjan
    Ranjan Sutradhar

    Hi
    Please refer to the below links
    http://wiki.sdn.sap.com/wiki/display/SRM/TransferprocessoftheShopping+Cart
    http://wiki.sdn.sap.com/wiki/display/SRM/Follow-ondocumentdetermination%28PR%2CPO%2CRS%29
    Hopefully this would resolve your problem.
    Thanks,
    Ashish

  • Using my Actiontec modem's wifi, it doesn't find my new airport express.  When I use the new airport express network I created error message says ip address is wrong.  Help setting this new airport express up

    Using my Actiontec modem's wifi, it doesn't find my new airport express.  Using the new airport express network I just set up it says the ip address is invalid.  What can I do to overcome this blinking amber light and error messages?

    You need to begin by configuring the AEX to Join an existing network (Bridge Mode.) You can then connect to it using Wi-Fi, but the AEX will not extend your existing network.
    If you can connect the AEX to your existing router using Ethernet, then you could use it to Create a new network. Otherwise, if you want to extend your existing network you will need to get a Wireless Access Point - WAP - from a non-Apple product like D-Link.

  • Inserting PayPal buttons creates error messages

    Hello,
    I have inserted 3 "add to cart" buttons on a page that had no errors. After inserting the buttons a bunch of errors showed up, all for the code I have inserted from PayPal. The buttons are working, but what can I do about all the errors?
    http://www.drluxphotography.com/lc-int-redhook-keys-format.htm
    All the errors are for lines between 58 and 125.
    I sent the error list as attachment tp PayPay asking for help. The reply was
    " I'm not familiar with the issue or product being used. Most web editors have you enter (paste) the code and then specify where on the page it will be located. I'd contact their support or check online forums and see if someone has had a similar issue that they resolved."
    This is not an answer for the question, but it gave me an idea to ask if anyone had similar problems and would help me!
    Many thanks,
    Marianne

    Thank you ever so much! There are no more error messages!
    But since I had to close "input" 30 times and "img" 3 times for the 3 "add to cart" keys I have inserted, is this something that PayPal should be doing in the code that they are creating? Or is this a DW issue? Do other users have the same problem?
    I have to create over 300 keys so I wish there would be a way to avoid all the work.
    But I thank you again, at least I have a solution!
    Sincerely,
    Marianne

Maybe you are looking for

  • ICal fonts too small to read

    I tried using iCal for the first time. I can't read the fonts on my 30" monitor without strong magnification. No one here can read the fonts easily, even those with excellent eyesight. How can I enlarge the fonts without using the Universal Access ma

  • FI datasource that has Delta Management

    Hi Gurus, I'm currently using datasource 0FI_GL_2 w/c needs to delete all data and reload all the data. When i was looking at LBWE looking for other datasources that has delta management I couldn't seem to find anything related to FI. So is there any

  • The third party PDF printer

    Hello, What mean the third party PDF? and how we can install this product? Thanx,

  • How to compress a short video clip to e-mail

    Trying to figure out how to compress a short video clip to e-mail. Not sure how to do this thanks

  • System Preference is blank

    I want to change the background picture on my desktop. I am told that to do so I should click on "System Preference" under the apple sign and then click on the "Desktop & Screen Saver" pane. When I click on "System Preference" nothing happens.