Custom error messages when booking traing in SAP LSO

In SAP LSO i implemented the BADI IF_EX_LSO_CHECK_BOOKING~CHECK_BOOKING in the code i throw error message in the object ct_message_tab  of type DCMESSAGE.
When the error is presented within the portal two things are not the way i want it.
1. The error message can be up to 50 characters per message so i need to append more line to ct_message_tab, each line is presented with the read error symbol prior to the line. i want multiple lines with only one error symbol
2.  I:001:000 Voor deze training hebben we aanvullende persoonsgegevens van je nodig.
I:002:000 Geef hiervoor je akkoord op de disclaimer bij "Informatie" in dit leerportaal.
I:003:000 Heb je vragen hierover? De cursusaanbieder beantwoordt ze graag.
the message are presented with the message number and message id, I only want to display the the msgv1 to msgv3.
Hope anyone got a clue.
Finaly the next problem, when pre-booking a course only a SAP pre defined error is shown, so the custom ct_message_tab is not visible on this screen.
I use following code three times because of maximum length of 50 characters per message line
      IF sy-subrc EQ 0 AND lv_disclaimer IS INITIAL.
        lw_message_tab-msgid = '001'.
        lw_message_tab-msgty = 'E'.
     lw_message_tab-msgno = '1'.
        lw_message_tab-msgv1 = 'Voor deze training hebben we aanvullende'.
        lw_message_tab-msgv2 = 'persoonsgegevens  van je nodig.'.
        lw_message_tab-msgv3 = ''.
        lw_message_tab-msgv4 = ''.
        APPEND lw_message_tab  TO ct_message_tab.
        lw_message_tab-msgid = '002'.
        lw_message_tab-msgty = 'E'.
     lw_message_tab-msgno = '1'.
        lw_message_tab-msgv1 = 'Geef hiervoor je akkoord op de disclaimer'.
        lw_message_tab-msgv2 = 'bij "Informatie" in dit leerportaal.'.
        lw_message_tab-msgv3 = ''.
        lw_message_tab-msgv4 = ''.
        APPEND lw_message_tab  TO ct_message_tab.
Edited by: Richard van Veen on Apr 21, 2010 9:13 AM

Hi,
it is urgent can any one help on this.
Thanks,
Sridhar Reddy.G

Similar Messages

  • I am getting error messages when keying entries into SAP in transaction cod

    I am getting error messages when keying entries into SAP in transaction code F-02.  It will tell me that an asset doesn't exist in the company code I am posting to when the asset does exist.  For example in the parked document 101079622 it tells me that asset WV0707711 doesnt' exist in CoCode .  But what is keyed in the document is WV07077 1 1. 
    And when i look in Transaction AS03 for this asset number it does indeed exist in Co Code.  Also if you take these assets out and park it and then go into Transaction FBV2 and add the asset back into the document it will add it and then post to it.  This happens often and is very time consuming.  I need to know how to fix this without all this additional effort

    Hi,
    it is urgent can any one help on this.
    Thanks,
    Sridhar Reddy.G

  • Error message when logging in to SAP B1

    Hello,
    Does anybody have a clue, on that error message when I'm trying to
    log in to SAP B1: Invalid column name 'AppTime' ?
    I cannot log in to SAP B1, the error message appears (from MSSQL server),
    immediately after typing username/password and clicking OK on the log on
    window.
    Thank you,
    Balazs

    Hi,
    You can easily verify by yourself that no column AppTime exists in a standard B1 installation (just tested on 2007A SP01 PL6).
    You should have a reference to an external database or extension (addon)...
    What addons are you using?
    Regards,
    Eric

  • Customizing error message when no value is entered

    Hello,
    I would like to have my own error message when a user does not fill in a field and the required attribute is specified. How do I do that? Instead of "Validation Error: Value is required." I'd like "please specify a value." How do I do that?
    Thanks in advance,
    Julien Martin.

    hi,
    in section 2.5.2.4 of the spec, there you will find some details on it.
    and how you overwrite error-messages
    cheers,
    matthias

  • Error message when trying to install SAP NetWeaver 7.01 SR1 SP3 ABAP Trial

    I have downloaded the two rar-files and put them in the same folder. Part 1 is unrared and I start the file sapinst.exe
    After a few seconds I get the following error message:
    Connection to SAPinst refused with the following message: 
    Connection to SAPinst could not be established, see following messages.
    Could not connect to host localhost on port 21200.
    java.net.ConnectException: Connection timed out: connect
    java.net.ConnectException: Connection timed out: connect
    Please correct the error condition and restart.
    Any suggestions on how to fix this error?

    I forgot to add the MS loopback adapter...

  • LSO_CHECK_BOOKING custom error messages are not displayed

    Hi,
    Good day! I am currently experiencing some problems displaying custom error messages from BADI LSO_CHECK_BOOKING. I have implemented this Badi and is appending error messages in CT_MESSAGE_TAB however when the message is displayed in portal, the custom message is not displayed. Instead, SAP displays a predefined error "Error When Creating Prebooking with the data entered..."
    Is there a way for me to display my custom error message instead of the predefined SAP message?
    Thanks a lot.
    Cheers,
    James

    Hi James,
    You have not mentioned, which portal you are using. Please see below, that there are differences in the learning and the admin portal:
    Learning Portal:
    The framework of the existing design of the Learning Portal does not
    allow customer specific error messages to be displayed in the portal.
    Only a generic message will be displayed when prebooking in the learning
    portal if the BADI LSO_CHECK_BOOKING returns an error. The design of the
    application does not expect to raise an exception from the BADI. If the
    BADI processing is assumed to be unsuccessful, the messages filled by
    the BADI will be ignored and a general error message will be displayed
    in the portal.
    So this is basically a design limitation.
    Administrator Portal:
    Have you tried e.g. the following notes?
    SAP Note 1806593 Admin Portal: Message is not displayed while prebooking
    SAP Note 1575238 LSO: BADI LSO_CHECK_BOOKING does not show warning messages
    Regards,
    Agnes

  • Catch datetime exception and custom error message in SSRS

    I currently working on create report by using SSRS. I have 2 parameters: [Start date] and [End date] to filter data from database and show it on report. I want to validate 2 datetime parameter as describe above. Please tell me a solution to do this.
    For example:
    When user type the text like: 4/15/2014mmm => System validation thrown a message: [The From Date not correct type]
    But in my case, I want to receive a custom error message by myself.(Look like: [Date Invalid!])

    Hi Brain,
    According to your description, you have a report with two parameters for user to input. Now you want to validate these two parameters and display custom error message when the date is invalid. Right?
    In Reporting Service, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify the system message when error occurs. However we can create a textbox in this report, use custom code
    and expression to display the custom error message. But this all based on the report is successfully running. So if error occurs during report processing, all the custom code and expression will not work. In this scenario, we find a workaround for you. We
    use custom code to judge if the date is valid, if the users type an invalid date, we return a default value to make sure this report can successfully run. Then we use expression to control the visibility of tablix in this report and create a textbox to show
    the custom error message. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
    Go to Report Properties. Put the code below into custom code:
    Public Shared a As Integer=0
    Public Shared Function IsDate(d1 As String,d2 As String) as Integer
            Try
               FormatDateTime(d1)
               FormatDateTime(d2)
            Catch ex As Exception
                       a=1
            End Try
    return a
    End Function
    Create two parameters. One is StartDate, the other is EndDate. Set the data type of these two parameters Text.
    Create a filter for StartDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!StartDate.Value,"1/1/2012")),CDate("1/1/2012"))
    Create a filter for EndDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!EndDate.Value,"1/1/2013")),CDate("1/1/2013"))
    Ps: In step3 and step4, the date(“1/1/2012”, “1/1/2013”) in the expression are the default we set to make sure the report can successfully process. You can set any date existing in your dataset.
    Use the expression below to set the visibility of the tablix:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,false,true)
    Create a textbox, put the expression below into it:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,"","Date invalid")
    Save and preview. It looks like below:
    Reference:
    SSRS Calendar and Date Restriction
    Errors and Events Reference (Reporting Services)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Can we show custom error message if the user fail to log in MII system.

    Hi,
    Is it possible to show a custom error message when a log in is failed because of access restrictions?
    I am using xMII version 11.5
    Thanks
    Regards,
    Neha Maheshwari

    Since you are on 11.5, it is possible to make edits to some of the system jsp pages, etc. but it would NOT be my recommendation to do so.  Since the NetWeaver versions for MII 12.0 and beyond use UME for the login instead of the LHSecurity engine, this would be a very short term change.
    What specific changes would you like to make, the login page messages, query result messages, applet messages?

  • Custom error message in SAP application log

    Is there a way to add a custom error message to the SAP application log without passing the message variables MSGV1, MSGV2, MSGV3, MSGV4 and the Message class and number. 
    We want to pass a custom message from the BAPIRET2-MESSAGE without giving it a Message class and number.  The reason for this is that  we are using class based exceptions instead of the traditional message class with errors.  When we catch the class based exception, we take the error text of the exception and put in in the BAPIRET2-message and set the BAPIRET2-TYPE as 'E'.  Now we want to add this to the SAP application log.
    The call to 'BAL_LOG_MSG_ADD' takes a structure BAL_S_MSG which is just like BAPIRET2.  However this function builds the entry to the application log use the message variables MSGV1, MSGV2, MSGV3, MSGV4.  There is no provision to pass in the BAPIRET2 message.
    Add message to application log
      CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
         i_log_handle              = app_log_handle
         i_s_msg                   = log_message
    Thanks,
    Jay

    Hi Jay,
    Did you see <b>BAL_LOG_EXCEPTION_ADD</b>?
    This FM is represented by the structure <b>BAL_S_EXC</b>. This can have various versions as described below:
    <b>Data of BAL_S_EXC Structure  /     Use</b>
    <b>EXCEPTION</b>  /                              Exception class from which an exception text 
                                                       is added to the log. This field must be filled.
    <b>MSGTY</b>  /                                     Message type (MSGTY) of a T100 message.
                                                       This field must also be filled for exceptions.
    <b>PROBCLASS,
    DETLEVEL,
    ALSORT, TIME_STMP</b>  /                Message or exception attributes, such as
                                                        problem class (PROBCLASS, for
                                                        example, "very important"), level of detail
                                                        (DETLEVEL, from 1 to 9), sort criterion
                                                        (ALSORT, unrestricted) and timestamp
                                                        (TIME_STMP). These fields can be displayed
                                                        in the log (except TIME_STMP).
    <b>MSG_COUNT</b>   /                            This attribute is not used for exceptions.
    Follow the link below for more details:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm">SAP Help DOc</a>
    Hope this helps.
    Thanks
    Sanjeev

  • ICI - How to display custom error messages in SAP CRM

    Hello,
    we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
    The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
    Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
    We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
    them to screen.
    Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
    running in the background.
    Regarding to this topic we've the following questions:
    - Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
    - Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
    Thank you in advance!
    Best regards
    René Holy

    NewUser7 wrote:
    Please correct me if I am wrong
    I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
    HTH

  • Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    I did copy it to my desktop, but it still won't let me open it.  I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go.  I was able to verify the disc, but that's about it.  My husband tried it on his iMac and we have the same issue.  It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking.  It just keeps saying the same message as I posted above.  I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes.  It's been too frustrating trying to open this folder on this cd she gave me.  She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.

  • Error message when uploading book for printing. All images are jpg and rgb. Could they be too large to upload? What size is required and how do I reduce size in Aperture?

    I receive an error message when I upload my book for printing. Not sure what the problem is. All my images are jpg and rgb. Could they be too large as it takes about 15minutes to upload to Apple. How do I reduce the size of the image in Aperture?

    Hi Leonie,
    Thanks for your reply.
    Error message below. The preview is fine . I can discount the first 2messages as its a new computer so plenty of disk space and upload doesn't seem to be interrupted. I have uploaded to iphoto before. have tried to upload 3times with the same error message. I had to photo my slides with a Kaiser Baas photo maker , which apparently doesn't scan but takes photos in megapixels of the slides. I am wondering now if the format is incompatible though they are jpg files or the colour type wrong. The image files are  around 1-3 mb each and  72 ppi. I think  I will now scan them properly with a scanner to 300dpi anyway to improve quality.
    Apple  talks about image files not being too big for uploading but gives no sizing of what too big is?
    Error message
    1. Upload Error. Loss of connection or file corruption during order upload may cause an incomplete order. Resubmitting your order usually resolves this issue.
    2. Low Disk Space. If your computer is running on low disk space, your files may be assembled incorrectly. Create more space by deleting unused files.
    3. Unreadable PDF file or image files. Files are sometimes assembled incorrectly due to CMYK or Grayscale color space. Use the RGB color space for best results.

  • Error message when trying to export a book as PDF or trying to send it to Blurb

    Hello
    I'm  desperatly trying to export my book as a pdf file in LR4 but I'm getting error message after rendering the 5th page (out of 85) Do you guys know why it's happening? Same error message when I try to send my book directly to Blurb (no surprise here since LR4 need to create a PDF file first....)
    Do you have any suggestions?
    To go around this problem, is there a way to export my book as it is (layout+ pictures (227)) to Blurb Booksmart software using the Blurb plug-in installed in LR4?
    Please Help!!!
    Thanks a lot in advance
    Richard

    Hello Dorin and thank you for your answer.
    Yes page 5 is a double page spread and this is not the only one in my book! I will modify the page 5 to see if the error message will appear at the next double page spread....
    Thanks again
    Richard

  • Error message when opening SAP

    Hello,
    Sometimes, when a windows session locks itself when the logonpad is open, we get the following error message when we try to log back in SAP:
    PRD: GSS-API(maj): No valid credentials provided (or available)
    GSS-API(min): No Kerberos SSPI credentials available for requested nam
    name=''p:arsenaultd at ADMTL.COM''
    Error at the SNC level

    Dear,
    Check: http://wiki.sdn.sap.com/wiki/display/JSTSG/(SIM)Problems-P66
    Re: SSO using SNC and Kerberos (Windows 2003)
    Regards,
    Syed Hussain.

  • I get this error message when I try to back up my laptop:  Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle is already in use.  Anyone know how to fix it?

    I get this error message when I try to back up my laptop:
    ' Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle' is already in use. "
    Anyone know how to fix it?

    Reboot the TC.. Sometimes you need to reboot the whole network.
    This is what comes of Lion and then made worse in Mountain Lion of Apple not spending enough time to fix the bugs.
    Read C12 in pondini.
    http://pondini.org/TM/Troubleshooting.html
    C17 can be related I think.

Maybe you are looking for