What is '&' used in message class

Hi,
What is '&' used in message class with the message no in SE91.
Give me details idea on this.
Best Regards,
Chini

If you use '&' operator in your message, then you can pass the text/literals whatever you want to get display in the message.
For example,
In a message clase zmsg, there is a message like this...
018 Table & not exist
you can call this message from your program by passsnig the table name in to this message...
For example,
ztablename = 'BUT000'.
Message e018(zmsg) with ztablename.
Filling Message Texts Dynamically *
Message texts in table T100 can contain up to four ampersand characters (&) as placeholders. You can replace these at runtime using the WITH addition in the MESSAGE statement:
MESSAGE ... WITH f1 ... f4.
The contents of fields f1 ... f4 are then inserted sequentially into the message text in place of the placeholders.

Similar Messages

  • How to use the message class CL_BSP_MESSAGES in the event handler?

    Hiii,
    I need to use the message class CL_BSP_MESSAGES in the even handler, because I need to use the Condition co_cancel_event_prefix to prevent saving in the method
    global_messages->add_message(
                                            condition = co_cancel_event_prefix
                                            message   = TEXT-010
                                            severity  = cl_bsp_messages=>co_severity_error ).
                                            dummy     = ME->COMPONENT_ID ).
    Can anybody explain me how to use this method?
    Kind Regards,
    John

    solved

  • Need help about the SHA Message Digest ? & what is use of Message Diagest ?

    need help about the SHA Message Digest ? & what is use of Message Diagest ?
    1>i have one program of making message digest
    2>which requires two files name
    3>one for input like txt
    4> second is out put file of message digest
    can any one tell what is the use of second generated file .

    MessageDigest md = MessageDigest.getInstance("SHA");
    FileInputStream fis = new FileInputStream(args[0]);
    byte[] b = new byte[1024];
    int readed = -1;
    while((readed = fis.read(b)) > 0)
         md.update(b, 0, readed);
    fis.close();
    FileOutputStream fos = new FileOutputStream(args[1]);
    byte[] d = md.digest();
    StringBuffer sb = new StringBuffer();
    for(int i = 0; i < d.length; i++) {
         String str = Integer.toHexString(d[i] & 0xff);
         sb.append(str.length() < 2 ? "0" + str : str);
    fos.write(sb.toString().getBytes());
    fos.close();

  • How to find the configuration use the Z message class.

    Usually when I do some configuration, it may need to create some message. such as the Validation.
    It raise a message when I run some standard t-code. So when I check some Z message class to find what program use this message, i can not find anything. So I assume there might two situation:
    1、we can not trace it dome when the program didn't write like this way:    MESSAGE E003(ZFI).
    2、this message might be used in some configuration,not in program.
    so how do we find the configuration use this message? or Is there any way can trace all message ?
    Thank you so much for your sincere answer.

    Hi,
    Case 1:  Message is defined correctly with message number & message class.
         Example - Message E003(ZFI).
      Easy to locate the message using whereused list.
    Case 2 :
    There are some FM's like BALW_BAPIRETURN_GET where we pass the message details.
    For example : 
    call function 'BALW_BAPIRETURN_GET'
            exporting
                 type       = p_message-msgty
                 cl         = p_message-msgid
                 number     = p_message-msgno
                 par1       = p_message-msgv1
                 par2       = p_message-msgv2
                 par3       = p_message-msgv3
                 par4       = p_message-msgv4
    *          LOG_NO     = ' '
    *          LOG_MSG_NO = ' '
            importing
                 bapireturn = p_return
            exceptions
                 others     = 1.
    In these case, we won't be able to track the message number from where used list.  So, what we do is before calling these FM we use the below statement,
      IF 1 = 2. message e003(zfi). ENDIF. 
        so that message can be tracked using where used list.
    Case 3: Some messages can be configured in message control.( Table T100S ) . For those
      messages we search for table T100S in the program.
    Regards,
    DPM

  • Direct approach for - Message class used in Call Function - possible?

    Hi All
    This is I guess a very simple question, but I could not find the solution.
    If i use the function: POPUP_TO_CONFIRM, I can hand over to the export some text symbols directly from the text elements.
    Example:
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar              = text-011
            text_question         = text-030
            text_button_1         = text-024
            icon_button_1         = 'icon_checked '
            text_button_2         = text-026
            icon_button_2         = 'icon_incomplete'
            default_button        = '2'
            display_cancel_button = ''
            start_column          = 25
            start_row             = 6
          IMPORTING
            answer                = answer.
    But I'm using a message class in this progamm.
    <b>So my question is, how can I use directly a message from the message class within the function?</b>
    I'm not asking for a 2-step approach (copy into text1 and set text1 to function). I would like to know how to use the text from the class directly into the function.
    Thanks
    Petra

    Hi
    May be this way.
       data : v_text1(72) type c,
              v_text2(72) type c,
           v_text3(72) type c,
              v_text4(72) type c.
        message i175(YVV) into v_text1.
        message i176(YVV) into v_text2.
        message i177(YVV) into v_text3.
        message i178(YVV) into v_text4.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            titlebar              = v_text1
            text_question         = v_text2
            text_button_1         = v_text3
            icon_button_1         = 'icon_checked '
            text_button_2         = v_text4
            icon_button_2         = 'icon_incomplete'
            default_button        = '2'
            display_cancel_button = ''
            start_column          = 25
            start_row             = 6
          IMPORTING
            answer                = answer.
    aRs

  • Message class as result data object

    hello brf+ users,
    is it possible to use as Result data object in a Case expression a message from a custom message class?
    thanks
    danilo

    thanks Carsten,
    my requirement can be simplified in
    IF FISCAL CODE
    equals to " " then "001" ENTRY MISSING is returned
    otherwise "000" check ok is returned.
    where 000,001 are domain values of an element (MESSAGE RESULT).
    can i use the message class as result? is there a way to anchor the result to the message class?
    thanks
    danilo

  • How to import a message class in a fm

    Hello!
    I' m programminn a FM.
    I need to use a message class that i have created. How i can import it?
    I have to return a strcuct which i have to copy my message class.
    My code:
              DETAIL_RETURN-ID =
              DETAIL_RETURN-NUMBER =
              DETAIL_RETURN-MESSAGE =
              DETAIL_RETURN-MESSAGE_V1 =
              APPEND DETAIL_RETURN.
    I know in a report is:
    REPORT report_name MESSAGE-ID my_message_class_name.
    In a FM?
    regards

    1.Add in the Top include or
    2.
    message id is nothing but Message class .
    here u have to populate the Return table  itself.
    like this
    DETAIL_RETURN-ID = 'V1'.
    DETAIL_RETURN-NUMBER ='100'.
    DETAIL_RETURN-MESSAGE = 'Njoy SAP'.
    DETAIL_RETURN-MESSAGE_V1 = 'U'.
    APPEND DETAIL_RETURN.
    Regards
    Peram

  • Create a message without the message class

    Hi,
    How would I display an error message with the MESSAGE statement without using the MESSAGE CLASS.
    Please let me know the code for it.
    Thanks and regards,
    Anishur

    Hi Priyank,
    I was missing the quotes in E.
    Thanks a lot!!!!!!
    Regards,
    Anishur

  • Message Class for Validaton

    Hello,
    How do I set up a message class for Validation? When I am selecting Proj Defn and clicking on Validation, I see the message id field greyed out.The message id is auto populated as /SAPDMC/LSMW_AUX_030 and I am unable to change it.
    Also when I go to WBS level this message class in not populated.However in drop down I dont see the option of "Z" messgae class which I have defined with customised message.
    Please let me know your thoughts on how we change message class and why "Z" message class is not seen n dropdown?
    Thanks
    Shiv

    Hi,
    When you click on Validation, System will pop up a window which will say Configure Message ID. In that window Click on Create Icon. It will goto SE91. Enter the Name of message class(Ex: ZPROJECT) and click on create. It will goto "Message maintenance: Change Message class" screen. There Click on SAVE button. System will ask you a Package, ask your abaper, he will tell u the package.
    By using this message class you can create the Validation.
    Hopw this must be help you.
    Regards
    Prabu

  • Change the Message class (OB28) for validations

    Hi Experts,
    I was trying to change the Message class (OB28) for validations which are created last 1 year ago, as we have two Validations where each validation has 15 to 16 steps in it. One validation starts with Y & another with Z.  Both are using the same message class as of now.
    But we want to use different message class for validation which starts from Z.  We tried changing from program RGUGBR28 but it will change the message class for the both validation which starts from Y & Z, we need to change to only one validation.
    Please let me know any way out for this.
    Thanks & regards,
    Shilpa

    Hi Shilpa,
    The message class during the maintenance of a validation, it is not changeable because the message class is not attached at the individual validation but at the entire validation class, that is a combination of application and call time.
    During the first creation of a validation at the moment of "document line item" in application "cost accounting" the message class is asked for and these then for the entire validation class, stored in this case "001" in the table GB02C and from now is no more changeable.
    The reason for that is, that a change affects all validation of a grade just globally and that even cross-client, since the GB02C is not client-specific.
    I hope this helps.
    Regards
    Ravinagh Boni

  • What to use for backup?

    To back up my mac computer, do I need to purchase a product such as time capsule, or do i just use a blank CD, or what? I would like to back up my mac, but i don't know what to use.
    Message was edited by: Mr Macintosh

    Basic Backup
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    6. Carbon Copy Cloner (Freeware - 3.0 is a Universal Binary)
    7. SuperDuper! (Commercial)
    8. Intego Personal Backup (Commercial)
    9. Data Backup (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore. Also read How to Back Up and Restore Your Files.
    Although you can buy a complete FireWire drive system, you can also put one together if you are so inclined. It's relatively easy and only requires a Phillips head screwdriver (typically.) You can purchase hard drives separately. This gives you an opportunity to shop for the best prices on a hard drive of your choice. Reliable brands include Seagate, Hitachi, Western Digital, Toshiba, and Fujitsu. You can find reviews and benchmarks on many drives at Storage Review.
    Enclosures for FireWire and USB are readily available. You can find only FireWire enclosures, only USB enclosures, and enclosures that feature multiple ports. I would stress getting enclosures that use the Oxford chipsets (911, 921, 922, for example.) You can find enclosures at places such as;
    Cool Drives
    OWC
    WiebeTech
    Firewire Direct
    California Drives
    NewEgg
    All you need do is remove a case cover, mount the hard drive in the enclosure and connect the cables, then re-attach the case cover. Usually the only tool required is a small or medium Phillips screwdriver.

  • CCMS for Table monitoring not using Message Class

    We are currently using a Table content monitor in CCMS to raise alerts for an ABAP monitoring program we have written. The program inserts records in a custom ABAP table and when a row is inserted with a certain value we raise an alert through CCMS.
    The data collection method is using the "Red" function module SCSM_GEN_TAB_DS_R
    The alerts are generating fine but the alert text is displaying <CCMS: no default text available>. We have configure a message class and number but it is not displaying this in alert. Does anyone know what could be the problem?
    Here is the parameter settings for the data collection method
    1. TARGET_TABLE           ZTSPM_CH_STATUS
    2. FIELDNAME              CHANNELKEY
    3. FIELDVALUE             CCSTATUS
    4. MAXROW                 50
    5. WHERECLAUSE1           CCSTATUS = 'FAIL'
    6. WHERECLAUSE2
    7. WHERECLAUSE3
    8. TOP_FULL_NAME
    9. RESCANFROMBEGIN        REPORTTIMESTAMP
    10. T100_MESS              ZXI_CNB 023
    The message class/number (ZXI_CNB 023) is
    "Connectivity Heartbeat failed for &1, Status: &2"
    I was expexting the values from the table for fieldname (CHANNELKEY) and Fieldvalue (CCSTATUS) to be replaced in the message string.

    Hey Mark!
    I had a question about this topic. I had the problem, that method doesn't work. The following parameters have been set:
    1. TARGET_TABLE           ZMON_ERROR
    2. FIELDNAME              EF
    3. FIELDVALUE             EV
    4. MAXROW                 50
    5. WHERECLAUSE1           EV='AU01'
    6. WHERECLAUSE2
    7. WHERECLAUSE3
    8. TOP_FULL_NAME
    9. RESCANFROMBEGIN       
    10. T100_MESS            
    Rescanfrombegin and Messageclass have not been set, because I read, that there are many problems.
    In Technical Export Monitors under DataSupplier theres an alert:
    Internal Error in method SCSM_GEN_TAB_DS_R, Error: SELECT, SY-SUBRC = 0.
    I think the problem is the WHERECLAUSE, but it doesn't matter if I change everything. Do you know any solutions, maybe?

  • What is meant by self  explanatory in message class

    hi gurus,
    what is meant by self  explanatory in message class?
    why it is used for?
    ASAP

    Hello,
    Creating a Message Long Text
    Use
    Create a long text whenever the message text itself is not fully self-explanatory.
    Prerequisites
    You must already have created the message for which you want to create the long text, and not flagged it as self-explanatory.
    Procedure
    To enter a long text for a message in the message maintenance transaction (SE91):
    Position the cursor on the relevant message.
    Choose Individual maint.
    The message text appears highlighted.
    Choose Long text.
    The SAPscript editor appears.
    Enter your long text.
    Check the text.
    Save the text.
    Result
    When you send a message that has a long text, the message is displayed with a yellow question mark symbol.
    Depending on the SAPgui settings, the message is displayed:
    In the status bar (at the end of the message area),
    In the message dialog box (on the Help pushbutton).
    If you then click the message line or the Help pushbutton, the long text is displayed.
    Vasanth

  • Translation of message class used in validation

    Hi all,
    we are having troubles with the translation of the message class(es) used in validation. In our system environment, we have 2 development clients. One has logon language german, the other italian. Both clients are allowed to maintain their own customizing and with this add new messages to the message class used for validation, if necessary. Now, what happens is this: Whenever a message is added, the original language of the message class is switched to the logon language of the current user. This is nasty because after changing the original language we have to confirm the translation of every message in the message class. How do you organize translation of the message class used in validation?
    Thanks for your ideas, kind regards, Kathrin.

    Hello Kathrin,
    Don't change the Original Langague. Maintain the new messages in the Original Langauge of the Message class and translate to the desired langague.
    Vasanth

  • Why class builder allows to develop abstract final class ? What is the use of such class in ABAP?

    I am new to ABAP. I tried creating abstract class and found that class builder allows development of abstract final class. What is the use of such class in ABAP?

    Hi,
    Does not compile:
    This one do:
    Inheritance:
    Regards.

Maybe you are looking for