Transcation code for error messages

hi all,
what is the transaction code for getting the system error messages?And how can I create my own error messages?
for eg: in a program, i want to show an error message to the user when the data is not showing up properly.
thnx,

Hi Sey Ni,
<i>what is the transaction code for getting the system error messages?</i>
Transaction code :- St22 
For Short dumps and system errors
<i>And how can I create my own error messages?</i>
Transaction code :- Se91
To check ny Existing 1 :-
Message class - XS 
Message Number - 001
To create ur Own
Create a Message Class ex:- Zmsg , click on Message tab
here u can give message in front of number assigned say 001.
check the following link:-
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm
U can call this message in ur ABAP program as under:-
if sy-subrc = 0.
MESSAGE <b>E</b>001(<b>zmsg</b>)."
endif.
E - Error message.  I - Information message.   S - Sucess message...
001 - Msg. Number.
Zmsg - Message Class.
Press F1 for more help on message.
Regards
Sachin Dhingra

Similar Messages

  • RE: Code for error messages & for Multiple Selection at Selection screen

    Dear Friends,
    Following is the code to display PO created without Purchase Requisition Nos. Please help me with the correct code to display the error messages when PO No is entered with Purchase Requisition No & also a message should come when user enters some random or wrong PO NO.
                      Also, in the Selection-Screen I want PO NO, Purchase Org, Material, Plant & Date. So, please help with the code so that these options can also display the PO created without Purchase Requisition Nos.
    Waiting for your valuable replies,
    Suruchi.
    The Code is attached herewith:
    DATA: BEGIN OF itab OCCURS 0,
          ebeln TYPE ekko-ebeln,
          ebelp TYPE ekpo-ebelp,
          matnr TYPE ekpo-matnr,
          txz01 TYPE ekpo-txz01,
          menge TYPE ekpo-menge,
          meins TYPE ekpo-meins,
          banfn TYPE ekpo-banfn,
          END OF itab.
    SELECT-OPTIONS: s_ebeln FOR itab-ebeln.
    START-OF-SELECTION.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE itab
             FROM ekko
                 INNER JOIN ekpo
                    ON ekkoebeln = ekpoebeln
                             WHERE ekko~ebeln IN s_ebeln
                                   AND ekpo~banfn = space.
      WRITE:/ text-001,
              15 text-002,
              25 text-003,
              40 text-004,
              70 text-005,
              85 text-006.
      ULINE.
      LOOP AT itab.
        WRITE:/ itab-ebeln, 16 itab-ebelp, 25 itab-matnr,
                40 itab-txz01, 60 itab-menge, 88 itab-meins.
      ENDLOOP.

    select-options: s_ekorg for ekko-ekorg.
    select-options: s_matnr for ekpo-matnr.
    select-options: s_werks for ekpo-werks.
    select-options: s_aedat for ekko-aedat.
    Check the PO numbers here is not necessary because you are using a select-option(range),  if something erroneous is typed, the program will simply not select it.
    This would be a different story if you where using a parameter.  Here you would do a check against EKKO in the AT SELECTION-SCREEN event.
    at selection-screen.
    select Single * from ekko
              where ebeln = p_ebeln.
    if sy-subrc  <> 0.
    message E000(00).
    Endif.
    Regards,
    Rich Heilman
    Regards,
    Rich Heilman

  • Tc code for Error Messages No.

    HI all,
    can anyone tell what is the Transaction Code for seeing all the error messages no.?
    and also the complete details of these error messages no.?
    thanks in advance,
    sourav

    Hi
    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
    Hope this helps.
    Vivek Sahni

  • How find the ABAP code with Error message

    Hi
    How to  find the ABAP Code for Error Message?
    Example:
    Error Message: ZF026.
    Regards
    Odaiah Pelley
    Edited by: Odaiah Pelley on Aug 22, 2008 4:21 AM

    Hi
    Excellent Answer, I appreciate it.
    My question is with Error Message ZF026.
    How to find ABAP Code ?
    If I go for SE91 I will get same message as if I am getting error message.It is no use.
    Regards
    Odaiah Pelleyu

  • Error in java code for removing messages from a Topic

    Trying to write a code using oracle.jms package to remove messages from Topic. I have a similar code with javax.jms package for removing messages from Queue and it is working well. Whereas i have written this new code for removing messages from topic using oracle.jms package as methods like CreateBrowser and CreateTopicReceiver for topic are provided in oracle package only and can't be used from javax.jms package.
    Error i am getting is JMS-126: Invalid Topic specified at
             receiverTopic   = (Topic) ctx.lookup(((String)receiverProps.get( "Q_NAME")).trim()  );
             System.out.println ("receiverTopic is[" + receiverTopic + "]");
             MBeanHome home = (MBeanHome) Helper.getAdminMBeanHome("username","pwd","url:port");
             ((AQjmsSession)topicSession).grantSystemPrivilege("MANAGE_ANY", "SA", true);
             for(Iterator i = home.getMBeansByType("JMSTopic").iterator();i.hasNext(); )
              WebLogicMBean wmb = (WebLogicMBean)i.next();
              System.out.println("topic name found: " + wmb.getName());
                topicBrowser   = ((AQjmsSession) topicSession).createBrowser(receiverTopic, "Edin");topic handle which i am receiving in receiverTopic is same as what i am expecting but still it says Invalid topic specified on createBrowser method. Anyone who can help me to write this type of code, please reply. If anyone has ready code for this situation, please reply with the same as i am working on a prodcution system and we are in serious situation to resolve this problem.

    Hi,
    I am afraid this is impossible. You need to find another solution like a filtering queue. Your messages can be sent to a queue that is monitored by let say a MDB. This MDB will maintain a map of title and only forward once a given title/message to your topic.
    Hope it helps.
    Arnaud
    www.arjuna.com

  • ERROR OGG-00868 Error code 1291, error message: ORA-01291: missing logfile

    OGG Version 12.1.2.1.0 OGGCORE_12.1.2.1.
    DB : 11.2.0.4.3
    I am getting below error.
    2014-12-31 09:53:09  ERROR   OGG-00868  Error code 1291, error message: ORA-01291: missing logfile
      (Missing Log File <unknown>. Read Position SCN: 2585.802983323 (11103293443483)).
    Our solution uses ADG and OGG
    We have source and target where ADG was setup . We later broke ADG setup and made Oracle DB's in source and target into standalone.
    As part of our solution during our deployment window ,we would break ADG i.e we would make both the source and target as independent DB’s with PRIMARY Read /Write mode.
    -Take Guaranteed restore point on Source DB so that we can flash back at later stage(so of now we have not executed flash back command)
    -Once ADG config is disabled we will start the OGG extract which is already configured before =We are at this stage where we are hit with errors and extract is not starting .

    Hi ,
    The error shows it is waiting for the Logfile. The Integrated extract mainly needs of the availability of two things.
    1. Archivelogs.
    2. Trail Files.
    Both should be retained to the needed / required level.
    Please execute the below query and check the status of the Extract / Capture process.
    The below query displays the information of each capture process in a database.,
    COLUMN CAPTURE_NAME HEADING 'Capture|Name' FORMAT A7
    COLUMN PROCESS_NAME HEADING 'Capture|Process|Number' FORMAT A7
    COLUMN SID HEADING 'Session|ID' FORMAT 9999
    COLUMN SERIAL# HEADING 'Session|Serial|Number' FORMAT 9999
    COLUMN STATE HEADING 'State' FORMAT A20
    COLUMN TOTAL_MESSAGES_CAPTURED HEADING 'Redo|Entries|Evaluated|In Detail' FORMAT 9999999
    COLUMN TOTAL_MESSAGES_ENQUEUED HEADING 'Total|LCRs|Enqueued' FORMAT 9999999999
    SELECT c.CAPTURE_NAME,
           SUBSTR(s.PROGRAM,INSTR(s.PROGRAM,'(')+1,4) PROCESS_NAME,
           c.SID,
           c.SERIAL#,
           c.STATE,
           c.TOTAL_MESSAGES_CAPTURED,
           c.TOTAL_MESSAGES_ENQUEUED
      FROM V$STREAMS_CAPTURE c, V$SESSION s
      WHERE c.SID = s.SID AND
            c.SERIAL# = s.SERIAL#;
    Also run this query to check, if the capture is waiting for which logfile.,
    COLUMN CONSUMER_NAME HEADING 'Capture|Process|Name' FORMAT A15
    COLUMN SOURCE_DATABASE HEADING 'Source|Database' FORMAT A10
    COLUMN SEQUENCE# HEADING 'Sequence|Number' FORMAT 99999
    COLUMN NAME HEADING 'Required|Archived Redo Log|File Name' FORMAT A40
    SELECT r.CONSUMER_NAME,
           r.SOURCE_DATABASE,
           r.SEQUENCE#,
           r.NAME
      FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c
      WHERE r.CONSUMER_NAME =  c.CAPTURE_NAME AND
            r.NEXT_SCN      >= c.REQUIRED_CHECKPOINT_SCN;
    The above query clearly shows for which logfile the Extract / Capture process is waiting. Check if that logfile is available in your system.
    Regards,
    Veera

  • How to find code responsible  Error Message generated in MIRO transaction

    Hi Gurus,
                    I have to find the code responsible for generating ERROR message in Miro tcode through DEBUGGING. Let me tell you the case...................
    In MIRO,
    We input
    In Basic data tab,
    Invoice Date,
    Posting Date,
    Reference,
    PO no. &
    Tax code as V5 ( VAT @ 8% )  in item data  & then
    In Details tab,
    We enter Business Area    & then
    In Payment Tab
    Baseline date        & then
    In Basic data tab
    We check the check box for Calculate tax &
    entered Amount     & then click entered .
    It displays GREEN button.
    When we click Simulate button & click post then it shows 1 message that " Invoice document still contains messages .".
    And then if we click Messages Button it shows " MSG No. & text -  Enter Bussiness area ."
    So the problem is though we input Business Area , still it shows message Enter Business area.
    So plz tell me how to find that code responsible for error message.

    Ashish- It is because, the error message is called using function module / BAPI. But Ideally when a developer codes to populate the structure of type BAPIRET2, he.she should also follow the following rule, to make the message traceable:
    "Populate BAPI structure for error message
    "Following code will not get called, but is for documentation for traceability.
    if 1 = 2.
      message e004.
    endif.
    That is why i said in my comment, if it is "coded properly" then we will be able trace
    Bottom line: you will not be able to find the program line using this approach.
    But now since you now the error message and number, you can go to the underlying program of MIRO (SAPLMR1M and SAPLFDCB)..click on the find button on the application toolbar, enter the message# and find..PLEASE SELECT THE RADIO BUTTON "In the main program".
    Hope this helps.
    Sajan Joseph.

  • Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-0

    Hi all,
             I have found a error "Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-01'" while adding the DELIVERY document.
    I have made a customer and assign then "EURO" currency and add delivery document then it prompts error.
    Could anyone solve this problem. is there any setting which i am missing..??
    Regards
    Sandesh

    HI Sandesh,
    Check Sap note :1252328
    and also check below thread of similar issue:
    Re: 'Invalid Currency' error when attempting to deliver order
    Hope this will solve your issue.
    Thanks,
    Neetu

  • Exit code 20 error message when trying to install Master Collection 5.5. Please assist.

    I get Exit code 20 error message when trying to install Master Collection 5.5. Please assist.

    Installation and launch log errors | CS5, CS5.5, CS6, CC -
    https://helpx.adobe.com/x-productkb/global/installation-launch-log-errors-creative.html

  • Looking for a Utility to map error code to error message

    Hi All
    I am looking for a utility that would map my error codes to corresponding error messages. If you know there such a utility, please point me to it. In addition, I am looking for a utility that would validates input -- eg. length, range of input. Thanks.

    In addition, I am looking for a utility that would validates input -- eg. length, range of input. Whatever you do, don't use asserts for this.

  • Oracle Form 9i - How to catch for error code and error message?

    Hello:
    I'd like to catch for error code such as ORA-20001, ORA-28007 if the form is not success. I tried TOOL_ERR.CODE and TOOL_ERR.MESSAGE, but it returns 0 and no message.
    Thanks in advance,
    TD

    I got it.
    Thanks,
    TD

  • Transcation code for seeing error dump in BSP

    Hi,
    I want to know T code for seeing  error dump in BSP and also about few function modules related to
    CRM_ORDER_READ and thier purpose.
    Thanks,
    Brahmaji

    HI,
    Dumps you can see through ST22 as in ABAP.
    CRM_ORDER_READ  belongs to the function group CRM_ORDER_API.
    In SE80, under this function group you have list of several function modules.
    Br,
    SS

  • Code inspector error message please help

    Hi All i have used delete statement as shown below
    DELETE t_output WHERE  remain_invoice  NOT IN s_invo[].
    t_output is my internal table .
    Error message in code inspector is :Sequential read access for a standard table
    What should i do ?

    I think its better to avoid delete statements inside the loop
    instead of using delete statement inside the loop
    use
    delete table itab where condition
    or
    if u have to use loop at any cost
    modify internal table with flag=X
    and then delete all records from the itab at one shot using above statement
    Regards
    Vikas C

  • Rebate condition record T code VBO1-Error Message

    Hi,
    I am getting error message while creating rebate condition record T code-VBO1-Error Msg-862 system cannot read the structure for table,because of this i could not create condition record.
    (This error has occured while i am testing rebate process in IDES and it happen while creating condition record for rebate agrement,After filling the initial values in T code VBO1 and when click on enter the above mentioned error message has come).
    Please give the solution to create condition record.
    Thanks in Advance
    Regards
    Praveen  P C

    Hi,
    You said you are trying to do this stuff in IDES right.
    If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
    This is by our experience.  Today you do something in IDES and tommorow that thing or config is screwed up by others.
    If you have your own IDES, then check the suggestion given by the forum Guru's.
    Regards,
    SB

  • Scripting for error messages

    Hi,
    1.On a selection-screen with four select -options as s_vbeln,s_vkorg,s_vtweg,s_spart. I need to validate and write a error message ' enter atleast one field' if it is executed without any values.
    2.Also validation should be done that the entered value is correct or incorrect and if it is incorrect it should show the error message concerned to the fields for example if the vkorg value is entered incorrect , it should display'' please enter valid entry' respectively to all the fields.
    Can anyone send me a code on how to perform this.
    Thanks,
    Stalin.

    Using function module 'FORMAT_MESSAGE' you can capture the messages.
    Here is a sample of the program code for that:
    LOOP AT it_messtab.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    id = it_messtab-msgid
    lang = it_messtab-msgspra
    no = it_messtab-msgnr
    v1 = it_messtab-msgv1
    v2 = it_messtab-msgv2
    IMPORTING
    msg = g_msg
    EXCEPTIONS
    OTHERS = 0.
    IF it_messtab-msgtyp = 'S'.
    it_sucess-sucess_rec = g_msg.
    it_sucess-lifnr = it_header-lifnr." Based on your field
    it_sucess-tabix = v_lines.
    APPEND it_sucess.
    ELSEIF it_messtab-msgtyp = 'E'.
    it_error-error_rec = g_msg.
    it_error-lifnr = it_header-lifnr.
    it_error-tabix = v_lines.
    APPEND it_error.
    ELSE.
    it_info-info_rec = g_msg.
    it_info-lifnr = it_header-lifnr.
    it_info-tabix = v_lines.
    APPEND it_info.
    ENDIF.
    ENDLOOP.

Maybe you are looking for

  • Passing multi-value parameter to a transaction iView

    Hi all, Here is my problem, I try to feed a selection-option (multi value) from the "DynamicParameter" section of the url. For example I use this URL, to feed the select-options with A, B and C: http://XXX:51000/irj/portal/test?DynamicParameter=S_opt

  • Date field sorting proble !!!

    Hi We are unable to sor the date fields when we copy the report in Excel spread sheet...When sorting this report its pulling only the first 2 numbers We need to download the report and sort by the date fields . we are getting this date fields  from o

  • Planning 11.1.2.1 on win 2008 R2 64 bit

    hi Planning experts, I need you suggestion, I am trying to install Planning 11.1.2.1 (x64) on Win 2008 R2 (x64) but getting error mentioned here for your reference, Please help. Checking if the file exist and have read permissions: C:\Users\admin...

  • Required some information about ACTID

    Hello Experts, Can someone please explain me the significance of ACTID in the url and what does it exactly represent? There is no documentation available in devlibrary about this ACTID. We can see actid when we try to open any webi report. Regards, J

  • To check no. of records available in infoset

    Dear Experts, How to find no. of records available in infoset other than using infoset context menu display data option. This required since volume of data available in the infoset is very huge  and hanging very badly. Regards Alex