Handling unexpected errors/situations in an ABAP program

Hi,
if i come across a situation where i need to handle a runtime error unexpectedly what should be my approach.
for eg. if i build a dynamic select statement and if my logic goes wrong the program flow should proceed normally as if nothing has happened 'with out giving me a short dump' . what if im not sure about the type of error thats going to show up, is there any way?
your help will be appreciated.
Regards,
ravi.

Hi Ravi
Not all exceptions can be overridden. FYI, Below are a list of exceptions that can be handled:
Alphabetical Overview of Catchable Runtime Errors
Below you find an alphabetical list of all catchable runtime errors. For each runtime error, the predefined exception class assigned is specified which is used to handle the respective runtime error as of Release 6.10. If an exception class is assigned to more than one catchable runtime error, it may contain as many message texts as required which you can find in the Class Builder on the Texts tab.
Almost all of the runtime errors listed here are combined together in exception groups. These exception groups are also assigned those ABAP keywords at which the runtime errors contained can be caught.
ADDF_INT_OVERFLOW
Overflow at addition, type I ( ADD ... UNTIL / ADD ... FROM ... TO)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
ASSIGN_CASTING_ILLEGAL_CAST
The components of the source field type and the target type which are strings, tables, or references do not have exactly the same offset and type.
Exception class: CX_SY_ASSIGN_CAST_ILLEGAL_CAST
ASSIGN_CASTING_UNKNOWN_TYPE
The type specified at runtime is unknown.
Exception class: CX_SY_ASSIGN_CAST_UNKNOWN_TYPE
ASSIGN_FIELD_NOT_IN_RANGE
The field is not within the RANGE specified.
Exception class: CX_SY_ASSIGN_OUT_OF_RANGE
BCD_FIELD_OVERFLOW
Overflow at conversion / arithmetic operation (type P, with specified length)
Exception class: CX_SY_CONVERSION_OVERFLOW
BCD_OVERFLOW
Overflow at conversion / arithmetic operation (type P)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
BCD_ZERODIVIDE
Division by 0 (type P)
Exception class: CX_SY_ZERODIVIDE
COMPUTE_ACOS_DOMAIN
Invalid call of the mathematical function ACOS
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_ASIN_DOMAIN
Invalid call of the mathematical function ASIN
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_ATAN_DOMAIN
Invalid call of the mathematical function ATAN
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_BCD_OVERFLOW
Overflow at arithmetic operation (all operands of type P)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_COSH_DOMAIN
Invalid call of the mathematical function COSH
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_COSH_OVERFLOW
Overflow at mathematical function COSH
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_COS_DOMAIN
Invalid call of the mathematical function COS
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_COS_LOSS
Inaccurate result of function COS
Exception class: CX_SY_PRECISION_LOSS
COMPUTE_EXP_DOMAIN
Invalid call of the mathematical function EXP
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_EXP_RANGE
Overflow or underflow at mathematical function EXP
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_FLOAT_DIV_OVERFLOW
Overflow at division (type F)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_FLOAT_MINUS_OVERFLOW
Overflow at subtraction (type F)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_FLOAT_PLUS_OVERFLOW
Overflow at addition (type F)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_FLOAT_TIMES_OVERFLOW
Overflow at multiplication (type F)
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_FLOAT_ZERODIVIDE
Division by 0 (type F)
Exception class: CX_SY_ZERODIVIDE
COMPUTE_INT_ABS_OVERFLOW
Integer overflow while calculating the absolute value
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_INT_DIV_OVERFLOW
Integer overflow at division
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_INT_MINUS_OVERFLOW
Integer overflow at subtraction
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_INT_PLUS_OVERFLOW
Integer overflow at addition
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_INT_TIMES_OVERFLOW
Integer overflow at multiplication
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_INT_ZERODIVIDE
Division by 0 (type I)
Exception class: CX_SY_ZERODIVIDE
COMPUTE_LOG10_ERROR
Invalid call of the mathematical function LOG10
Exception classes: CX_SY_ARITHMETIC_OVERFLOW, CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_LOG_ERROR
Invalid call of the mathematical function LOG
Exception classes: CX_SY_ARITHMETIC_OVERFLOW, CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_MATH_DOMAIN
Invalid call of a mathematical function
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_MATH_ERROR
Error performing a mathematical function
Exception class: None since this runtime error can no longer be caught
COMPUTE_MATH_LOSS
Inaccurate result of a mathematical function
Exception class: CX_SY_PRECISION_LOSS
COMPUTE_MATH_OVERFLOW
Overflow at a mathematical function
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_MATH_UNDERFLOW
Underflow at a mathematical function
Exception class: None since exception no longer occurs
COMPUTE_POW_DOMAIN
Invalid argument when using powers
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_POW_RANGE
Overflow or underflow when using powers
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_SINH_DOMAIN
Invalid call of the mathematical function SINH
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_SINH_OVERFLOW
Overflow at mathematical function SINH
Exception class: CX_SY_ARITHMETIC_OVERFLOW
COMPUTE_SIN_DOMAIN
Invalid call of the mathematical function SIN
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_SIN_LOSS
Inaccurate result of the function SIN
Exception class: CX_SY_PRECISION_LOSS
COMPUTE_SQRT_DOMAIN
Invalid call of the mathematical function SQRT
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_TANH_DOMAIN
Invalid call of the mathematical function TANH
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_TAN_DOMAIN
Invalid call of the mathematical function TAN
Exception class: CX_SY_ARG_OUT_OF_DOMAIN
COMPUTE_TAN_LOSS
Inaccurate result of the function TAN
Exception class: CX_SY_PRECISION_LOSS
CONNE_IMPORT_WRONG_COMP_DECS
Import error; a component of a structured type in the dataset has wrong decimal places
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_COMP_LENG
Import error; a component of a structured type in the dataset has the wrong length
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_COMP_TYPE
Import error; a component of a structured type in the dataset has the wrong type
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_FIELD_DECS
Import error; a field in the dataset has wrong decimal places
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_FIELD_LENG
Import error; a field in the dataset has the wrong length
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_FIELD_TYPE
Import error; a field in the dataset has the wrong type
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_OBJECT_TYPE
Import error; type conflict between simple and structured data types
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONNE_IMPORT_WRONG_STRUCTURE
Import error; type conflict between structured objects
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
CONVT_CODEPAGE
Character set conversion not possible for one or more characters
Exception class: CX_SY_CONVERSION_CODEPAGE
CONVT_CODEPAGE_INIT
Conversion of texts between code pages not supported
Exception class: CX_SY_CODEPAGE_CONVERTER_INIT
CONVT_NO_NUMBER
Value to be converted cannot be interpreted as a number
Exception class: CX_SY_CONVERSION_NO_NUMBER
CONVT_OVERFLOW
Overflow at conversion (all types, not type P)
Exception class: CX_SY_CONVERSION_OVERFLOW
CREATE_DATA_ILLEGAL_DECIMALS
Invalid value for the addition DECIMALS
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_DATA_ILLEGAL_INIT_SIZE
Invalid value for the addition INITIAL SIZE
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_DATA_ILLEGAL_LENGTH
Invalid value for the addition LENGTH
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_DATA_LEN_NOT_ALLOWED
The addition LENGTH was used for a type other than C, N, X, or P
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_DATA_NOT_ALLOWED_TYPE
The type specified dynamically in the addition TYPE is not typed completely.
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_DATA_UNKNOWN_TYPE
The type specified in the addition TYPE is unknown.
Exception class: CX_SY_CREATE_DATA_ERROR
CREATE_OBJECT_CLASS_ABSTRACT
You attempted to instantiate an abstract class.
Exception class: CX_SY_CREATE_OBJECT_ERROR
CREATE_OBJECT_CLASS_NOT_FOUND
The class specified in the dynamic CREATE OBJECT was not found.
Exception class: CX_SY_CREATE_OBJECT_ERROR
CREATE_OBJECT_CREATE_PRIVATE
You attempted to create an object of a class defined as 'CREATE PRIVATE'.
Exception class: CX_SY_CREATE_OBJECT_ERROR
CREATE_OBJECT_CREATE_PROTECTED
You attempted to create an object of a class defined as 'CREATE PROTECTED'.
Exception class: CX_SY_CREATE_OBJECT_ERROR
DATA_LENGTH_NEGATIVE
Invalid subfield access: Length negative
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
DATA_LENGTH_0
Invalid subfield access: Length 0
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
DATA_LENGTH_TOO_LARGE
Invalid subfield access: Length too large
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
DATA_OFFSET_NEGATIVE
Invalid subfield access: Offset negative
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
DATA_OFFSET_LENGTH_TOO_LARGE
Invalid subfield access: Offset + length too large
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
DATA_OFFSET_LENGTH_NOT_ALLOWED
Invalid subfield access: Inadequate type
Exception class: CX_SY_OFFSET_NOT_ALLOWED
DATASET_CANT_CLOSE
File could not be closed; there might be no more space in the file system.
Exception class: CX_SY_FILE_CLOSE
DATASET_CANT_OPEN
File cannot be opened
Exception class: CX_SY_FILE_OPEN
DATASET_NO_PIPE
OPEN DATASET with the addition FILTER is not supported on the current operating system.
Exception class: CX_SY_PIPES_NOT_SUPPORTED
DATASET_NO_POSITION
Access to current read/write position of file not possible
Exception class: CX_SY_FILE_POSITION
DATASET_NOT_OPEN
File not open
Exception class: CX_SY_FILE_OPEN_MODE
DATASET_OFFSET_TO_LARGE
Offset specified exceeds the system limit
Exception class: CX_SY_FILE_POSITION
DATASET_PIPE_CLOSED
Pipe for file closed
Exception class: CX_SY_PIPE_REOPEN
DATASET_READ_ERROR
Error reading a file
Exception class: CX_SY_FILE_IO
DATASET_READ_ONLY
File opened in read-only mode
Exception class: CX_SY_FILE_OPEN_MODE
DATASET_SEEK_ERROR
Error positioning in a file
Exception class: CX_SY_FILE_POSITION
DATASET_TOO_MANY_FILES
Maximum number of open files exceeded
Exception class: CX_SY_TOO_MANY_FILES
DATASET_WRITE_ERROR
Error writing a file
Exception class: CX_SY_FILE_IO
DYN_CALL_METH_CLASSCONSTRUCTOR
You attempted to call the class constructor.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_CLASS_ABSTRACT
You attempted to call an abstract method.
Exception class: CX_SY_DYN_CALL_ILLEGAL_CLASS
DYN_CALL_METH_CLASS_NOT_FOUND
You attempted to call a method of a class that does not exist.
Exception class: CX_SY_DYN_CALL_ILLEGAL_CLASS
DYN_CALL_METH_CONSTRUCTOR
You attempted to call the instance constructor.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_EXCP_NOT_FOUND
You attempted to catch an unknown exception.
Exception class: CX_SY_DYN_CALL_EXCP_NOT_FOUND
DYN_CALL_METH_NOT_FOUND
You attempted to call an unknown method.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_NOT_IMPLEMENTED
You attempted to call a method not yet implemented.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_NO_CLASS_METHOD
You attempted to call an instance method through a class.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_PARAM_KIND
You attempted to pass a parameter with a wrong parameter type.
Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
DYN_CALL_METH_PARAM_LITL_MOVE
You attempted to pass a constant actual parameter to a formal EXPORTING, CHANGING, or RETURNING parameter.
Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
DYN_CALL_METH_PARAM_MISSING
A required parameter was not filled.
Exception class: CX_SY_DYN_CALL_PARAM_MISSING
DYN_CALL_METH_PARAM_NOT_FOUND
You attempted to pass an unknown parameter.
Exception class: CX_SY_DYN_CALL_PARAM_NOT_FOUND
DYN_CALL_METH_PARAM_TAB_TYPE
You attempted to pass a parameter with a wrong table type.
Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
DYN_CALL_METH_PARAM_TYPE
You attempted to pass a parameter with a wrong type.
Exception class: CX_SY_DYN_CALL_ILLEGAL_TYPE
DYN_CALL_METH_PARREF_INITIAL
An initial data reference was passed for a required parameter.
Exception class: CX_SY_DYN_CALL_PARAM_MISSING
DYN_CALL_METH_PRIVATE
You attempted to call a private method outside.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_PROTECTED
You attempted to call a protected method outside.
Exception class: CX_SY_DYN_CALL_ILLEGAL_METHOD
DYN_CALL_METH_REF_IS_INITIAL
You attempted to call a method to an initial reference.
Exception class: CX_SY_REF_IS_INITIAL
EXPORT_BUFFER_NO_MEMORY
The EXPORT data cluster is too large for the application buffer.
Exception class: CX_SY_EXPORT_BUFFER_NO_MEMORY
EXPORT_DATASET_CANNOT_OPEN
The IMPORT/EXPORT statement was unable to open the file.
Exception class: CX_SY_FILE_OPEN
EXPORT_DATASET_WRITE_ERROR
The Export statement could not write the file.
Exception class: CX_SY_FILE_IO
GENERATE_SUBPOOL_DIR_FULL
The system is unable to generate another temporary subroutine pool.
Exception class: CX_SY_GENERATE_SUBPOOL_FULL
IMPORT_ALIGNMENT_MISMATCH
Import error; identical sequence of components but with type conflict or with different integration into structured data types
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
IMPORT_TYPE_MISMATCH
Import error; only at IMPORT...FROM MEMORY | FROM SHARED BUFFER...
Exception class: None since this runtime error can not longer be caught
IMPORT_WRONG_END_POS
Import error; dataset has a different length.
Exception class: CX_SY_IMPORT_MISMATCH_ERROR
MOVE_CAST_ERROR
Type conflict assigning between object and/or interface references (only MOVE...?TO... or operator ?=)
Exception class: CX_SY_MOVE_CAST_ERROR
OPEN_DATASET_NO_AUTHORITY
No authorization to access a file
Exception class: CX_SY_FILE_AUTHORITY
OPEN_PIPE_NO_AUTHORITY
No authorization to access a file (OPEN DATASET...FILTER...)
Exception class: CX_SY_FILE_AUTHORITY
PERFORM_PROGRAM_NAME_TOO_LONG
Invalid program name in the PERFORM statement
Exception class: CX_SY_PROGRAM_NOT_FOUND
REFI_WRONG_SECTION
Wrong offset/length specification in the REPLACE statement
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
REPLACE_INFINITE_LOOP
SECTION of length 0 in the REPLACE statement
Exception class: CX_SY_REPLACE_INFINITE_LOOP
RMC_COMMUNICATION_FAILURE
Communication error during Remote Method Call
Exception class: CX_SY_RMC_COMM_FAILURE
RMC_INVALID_STATUS
State error during Remote Method Call
Exception class: CX_SY_RMC_INVALID_STATUS
RMC_SYSTEM_FAILURE
System error during Remote Method Call
Exception class: CX_SY_RMC_SYSTEM_FAILURE
STRING_LENGTH_NEGATIVE
Invalid access with negative length to a string
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
STRING_LENGTH_TOO_LARGE
Invalid access to a string (length too large)
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
STRING_OFFSET_NEGATIVE
Invalid access with negative offset to a string
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
STRING_OFFSET_TOO_LARGE
Invalid access to a string (offset too large)
Exception class: CX_SY_RANGE_OUT_OF_BOUNDS
STRING_OFFSET_LENGTH_TOO_LARGE
Invalid access to a string (offset + length too large)
Exception class: CX_SY_LOCALIZATION_ERROR
TEXTENV_CODEPAGE_NOT_ALLOWED
Character set not released in the system (SET LOCALE...)
TEXTENV_INVALID
Error setting the text environment (SET LOCALE...)
Exception class: CX_SY_LOCALIZATION_ERROR

Similar Messages

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • Error in Transport of ABAP Program in Process Chain

    Hi All,
    I am trying to transport a process chain that contains ABAP programs.
    I have transported the programs along with the other process chain variants
    There is an error that occurs when I transport - "Errors occurred during post-handling RS_AFTER_IMPORT for EVEN L" 
    The Process chain in the target system is fine except that I am not able to see the ABAP programs in the process chain.
    I am not able to locate the error.
    Your help will be appreciated
    Thanks,
    Shruti

    If a Process Variant (in this case; 'ABAP Program with success/failed' ) does not exist in the succeeding systems, it is very likely that this Process Variant has been created as a customized variant by a user. Unless the user transports this variant to further systems, this variant cannot be used in the process chain.
    Therefore it is better to use general Process Variants (those delivered by SAP) in the process chains. The General Variant here can be 'ABAP Program'.
    - Shruti Kulkarni

  • CONVT_NO_NUMBER Dump error in Process Chain Abap Program

    Hi Experts,
    The daily running process chain is failed at ABAP program with the error CONVT_NO_NUMBER.
    The reason for the exception is:                                       
    The program attempted to interpret the value "40-799" as a number, but 
    since the value contravenes the rules for correct number formats,   
    this was not possible.
    I am not familiar with ABAP.
    Please suggest me how to proceed..
    Thanks
    <BMP>

    Hi,
    In ST22
    Short text                                  
        Unable to interpret "40-799" as a number.
    Error analysis                                                                     
        An exception occurred that is explained in detail below.                       
        The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
         caught in                                                                     
        procedure "FM_DIR_LIST" "(FORM)", nor was it propagated by a RAISING clause.   
        Since the caller of the procedure could not have anticipated that the          
        exception would occur, the current program is terminated.                      
        The reason for the exception is:                                               
        The program attempted to interpret the value "40-799" as a number, but         
        since the value contravenes the rules for correct number formats,              
        this was not possible.   
    I am trying post the code but SDN is not accepting more than 15000Char's
    So can i get ur (mail) details
    So that i can send u the exact code...
    Thanks,
    BMP

  • Getting errors while conversion of  ABAP program into Unicode check

    Hi,
    I changed the one ABAP program for some requirement and try to save it, it is giving error that the program is not unicode compatible.I set the unicode checks active box  under Attributes and again activate it .It is not allowing to concatenate the two variables which is declared as follows :
    constants: c_tab    type x value '09',      "tab character
                      c_cr     type x value '0D'.       "carriage return character
    I tried to use field symbols but still giving error (code after change)
    constants: c_tab    type x value '09',      "tab character
                      c_cr     type x value '0D'.       "carriage return character
    field-symbols : <f_c_tab> type any,
                            <f_c_cr> type  any.
    Assign c_tab to <f_c_tab> CASTING type c.
    Assign c_cr  to  <f_c_cr>  CASTING type c.
    error :The length of "C_TAB" in bytes must be a multiple of the size of a Unicode character (regardless of the size of the Unicode character).
    pls guide me so that I can cancatenate the c_tab and c_cr variables

    Hi,
    Tab Character ----->Data: tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    Carraige Return---->Data : cr(2)  type c value cl_abap_char_utilities=>cr_lf..
    You will not be able to use the concatenate statement for hexadecimal variables in unciode system.
    Try using the above equivalent character variables. In unicode system avoid using hexadecimal variables wherever possible
    Regards,
    lakshman.

  • ADF Handling Unexpected Errors

    Hi All,
    I have a question related to ADF exception handling.
    Imagine a button on a ADF jspx page which has a binding to a Application Module method. If the AM method throws a Null Pointer Exception, the normal behavior we notice is that
    error message is shown in a pop up to the user.
    Our application requirements is that we need to redirect the user to a global error page with a message to contact help desk for any unexpected error.
    My question is how to we redirect user to a error page if any unexpected errors occurs in Model project/AM instead of exposing the error to the client in a popup.

    Hi Timo,
    The link you gave was helpful.
    I did the following:
    1) We Created a Class that extends DCErrorHandlerImpl to handle the model exceptions. In the reportException, we check if the errors can be handled by app, if not we re throw the exception.
            throw (NullPointerException)e.getCause(); // Inside the report Exception Method..
    2) The exception gets propagated to the Controller layer. We have  written a class that extends oracle.adf.view.rich.context.ExceptionHandler. Inside the exception handler class, we check if exception occurred in RENDER_RESPONSE phase, if yes, we do a java script redirect to error page. For any other phase, we rethrow the exception.
    3) The exceptions that are re thrown from the ExceptionHandler class are propagated to the method exception handler defined in adfc-config.xml and finally user is redirected to a error page.
    The above approach works fine for different scenarios.
    But only in case of a bounded task flow running as a region, step 3 does not work fine.
    After step2, we see the following in console and user see a java script popup. The exception does not get propagated to the method handler in the adfc-config.xml.
    I did not really understand why the exception does not reach the method call activity in adfc.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5

  • What are the major situations  to go to the short dump in abap programming?

    What are the major situations  to go to the short dump in abap programming?

    Hi,
    The major situations that an ABAP Program can result a dumb are as follows...
    1) Poor coding i.e., if the data in the data base is less, then even a poor code can give you the result.  But when you transport the program into Production, then there the same program will give you a dump, resulting 'TIMED OUT' error.  So performance tunning is required for each and every program.
    2) while calling a function module.
    3) extracting of data into fields which are not type casted.
    4) in case of x/y value, one should check the value of 'y' should not be zero, else a dump will result.
    these are few which i can give for time being........

  • ABAP Program Warning

    Hi Experts,
    I got below error when checking an ABAP program, which was generated in maintaining datasouce with RSA6.
    Description:
    Type Group RSFH
    In Unicode programs, the "-" character canot appear in names, as it does here in the name "RSFH_C_TFMETHODE-TEST".
    Any input will be very appreciated.
    Thanks,
    Bill

    Hi
    It should be Warning Message, not an error i think.. Which Version of SAP you are working...
    Still you can Execute the Program, as if its only Warning..
    You can see that in the Attributes of the Program..
    If it has a Program name , then goto SE38 -> give program name -> select Attributes Radio button.-> display....
    You can see that is unicode enabled or not....
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Jul 9, 2008 8:27 AM

  • ABAP Program step in PC

    Hi,
    In the Process chain I have an ABAP Program step at the end of the chain. The issue is the process chain executes successfully all the steps and this last program step also executes fine as per our logic but the status of this process step alone shows as Red due to which the whole chain status turns red.
    In the job log, i get the below message
    Process ABAP Program, variant XXX has status Canceled (instance )
    Note: This doesn't happen at all times when we execute the chain. In success case, Instance is generated for the ABAP program step.
    Kindly suggest to overcome this.
    Thanks,
    Dinesh

    Hi Dinesh,
    I have also got some random errors like these with ABAP programs in Process Chains. I could overcome the same by editing the PC, deleting the ABAP program step, re-creating the ABAP program step, saving, activating and re-scheduling the process chain.
    what I could gather is that the ABAP program steps get corrupted due to unknown reasons!!!
    Please try it. May be it is helpful.
    Thanks,
    Sarath

  • Satellite L505-10K - Unexpected error when using recovery disk creator

    Toshiba Satellite L505-10k
    Can't make any recovery disc when I open toshiba recovery media creator, it says: an unexpected error occurred. Close the program and then restart it (error code: 0D00F6-49-00000015) and then I click ok and then it comes again and then I click ok and it comes again and I click ok and then the program comes and when I create the disc it comes to the verification, but then it says: Unable to read the following file. E: \ Boot \ fonts \ chs_boot.ttf (error code: 02015-20-00000000).
    I really do need help, I'm afraid something will happen to my computer, so is there anyone who knows something about this kind of problem?
    Thankful for your help.

    Hi
    I don't now if that works be cause when I got my computer I tried to create an recovery disc but it says yeah, you know, and I was looking in the folder if the file was there as it says that it could not read but the file isn't there so I don't think that it works to do an recovery from the HDD but I know that I can order an recovery disc from toshiba but I don't know if it works to do an recovery with it du you think so? but if I order an recovery disc do you think that I can get it for my language? I'm from sweden.

  • When i try to open Lightroom4.3 I get the following "unexpected error opening catalog"

    when I try to open Lightroom 4.3 I get the following "unexpected error opening catalog" and the program quits, how can I fix that?

    http://forums.adobe.com/community/search.jspa?peopleEnabled=true&userID=&spotlight=false&c ontainerType=14&container=3316&rankBy=date&q=%22unexpected+error+opening+catalog%22

  • ABAP program is terminated with error Function ROLLBACK on connection R/3

    Hi,
    We are reading a DB table A and matching with table B and placing into a internal table and further looping at the internal table.
    Table A has 3- 5 million records
    Table B has 2-4 million records
    When the program run in batch or dialog process, it stops without apparently reason, it don not trace any log in ST22 transaction. When we trace it in SM21 trace the following log:
    22:18:33 BTC  014 100                BZ  Y Unexpected return value 1 when calling up DbSlR
    22:18:33 BTC  014 100                BY  J Function ROLLBACK on connection R/3 failed
    22:18:33 BTC  014 100                R3  9 Error in DB rollback/SyFlush, return code 016384
    22:18:33 BTC  014 100                Q0  2 Stop Workproc14, PID 729286
    22:18:33 BTC  014 100                F3  T Invalid object name for TemSe object: " "
    22:18:33 BTC  014 100                EC  F Failed to create log for job BIDTPR_291659_1 22085900%_IMMEDIATE %NEWSTEP/
    22:18:33 BTC  014 100                F2  0 Calling program reports invalid handle for TemSe object (magic==X'NULL-ptr'
    22:18:33 BTC  014 100                R4  7 Delete session 001 after error 023
    The tables and ABAP program are in a BW system.
    Any idea what would be the cause. I found  a similar problem in the forum but no solution provided there..
    Regards
    Rob

    Hi Rob,
    Please check the entries in the work process trace file from this time (dev_wp14 from the work directory)
    Error in DB rollback/SyFlush, return code 016384
    usually has a preceding entry in the wp log of
    SHO: Could not allocate SHO segment of ..... bytes (rc=1)
    Usually this is a result of a SELECT statement that returns a very large result set is executed.             
    While the result set is fetched the ABAP heap is exhausted. Since no             
    more memory is available the ABAP engine abruptly cancels the execution          
    and begins error handling. The database interface rejects to execute a           
    ROLLBACK statement while the SELECT statement is still active. As the            
    rollback fails the task handler restarts the SAP work process and no             
    ABAP short dump or job log entries can be written.                                                                               
    The rejected ROLLBACK is a direct result of the lack of ABAP heap memory         
    and does not represent an error in itself.                                                                               
    The solution here is to increase the memory areas "extended memory" and          
    / or "heap". Please check/adjust your SAP memory settings!
    As mentioned, Similar issues have been resolved with the note #741864.                     
    The key is that the abap/shared_object_size_MB is too small for the          
    system and the operation performed, please increase this to 100MB to         
    start from the default of 20MB and then increase further if the dump         
    persists as more maybe needed of course. There is no problem increasing      
    this parameter since you have a 64bit system and SAP kernel.                                                                               
    Similar issues have been resolved with the note #741864 and note #986790     
    along with the increase in abap/shared_object_size_MB. These notes may       
    not be necessary just the increase but this issue frequently occurs in       
    these areas so perhaps they can help.                                        
    Hope this helps,
    Paul

  • Error when Consuming a WS from an ABAP program

    Hello,
    I am getting an error when I try to consume a WS from my ABAP program. The error states ' Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/' and the code is SOAP: 14
    This should be a simple call to a WS from BOBJ. I have searched OSS and SDN and I can't find any help. We are using 7.01 SP3
    Actually I watched the blog by Thomas Jung to get me started and thing went well except forthe part where I was supposed to create the logical port via SOAMANAGER. I got this error 'Error: Initial value "context operation table" in methodDELETE_INVALID_INTERFACE_NODES of class CL_SRT_WSP_CONFIG_SIDL' so I used LPCONFIG instead and them SM59.
    Has anyone encountered something like this?
    Thanks!
    Rich

    Ok so I got the bright idea of putting an external breakpoint in the DELETE_INVALID_INTERFACE_NODES method of class CL_SRT_WSP_CONFIG_SIDL and interestingly I think I am on to something. The code that is throwing an expection is srt_wsp_error_is_initial lt_operations[] 'context operation table'. "#EC NOTEXT at approximentally line 89.
    So I am doing my amateur sleuthing in the debugger and it leads me to the WSDL and what looks like a missing operation for a port type. I say this b/c all the port type /port type  tags have operation/operation tags embedded within them. simliar to this
       <portType name="Real-time_Services" />
    - <portType name="Batch_Jobs">
    - <operation name="Oracle">
      <input message="tns:Oracle_Input" />
      <output message="tns:Oracle_Output" />
      </operation>
      </portType>
    - <portType name="Realtime_Service_Admin">
    - <operation name="Get_RTService_List">
      <input message="tns:Get_RTService_List_Input" />
      <output message="tns:Get_RTService_List_Output" />
      </operation>
    - <operation name="Run_Realtime_Service">
      <input message="tns:Run_Realtime_Service_Input" />
      <output message="tns:Run_Realtime_Service_Output" />
      </operation>
    - <operation name="Get_RTMsg_Format">
      <input message="tns:Get_RTMsg_Format_Input" />
      <output message="tns:Get_RTMsg_Format_Output" />
      </operation>
      </portType>
    Note the first port type = Real-time_services doesn't have an end port tag and in the debugger my ABAP is shortdumping when trying to proess this port type
    I think I found my error. Can anyone who has seen this before verify this for me before I give the WSDL creator heck
    Thanks
    Rich

  • ABAP Programming Error

    Category               ABAP Programming Error
    Runtime Errors         MESSAGE_TYPE_X
    ABAP Program           CL_RSBM_LOG_DTP_DP============CP
    Application Component  BW-WHM-DST
    Date and Time          28.04.2014 15:08:07
    Short text
         The current application triggered a termination with a short dump.
    What happened?
         The current application program detected a situation which really
         should not occur. Therefore, a termination with a short dump was
         triggered on purpose by the key word MESSAGE (type X).

    Error analysis
        Short text of error message:
        *** Data request to the OLTP ***
        Long text of error message:
        Technical information about the message:
        Message class....... "RSM"
        Number.............. 000
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
      You may able to find an interim solution to the problem
      in the SAP note system. If you have access to the note system yourself,
      please use the following search criteria:
          "MESSAGE_TYPE_X" " "
          "CL_RSBM_LOG_DTP_DP============CP" bzw.
       "CL_RSBM_LOG_DTP_DP============CM001"
          "ADD_MSG"
      If you cannot solve the problem yourself, please send the
      following documents to SAP:
    Information on where terminated
        Termination occurred in the ABAP program "CL_RSBM_LOG_DTP_DP============CP" -
         in "ADD_MSG".
        The main program was "RSBATCH_EXECUTE_PROZESS ".
        In the source code you have the termination point in line 111
        of the (Include) program "CL_RSBM_LOG_DTP_DP============CM001".
        The program "CL_RSBM_LOG_DTP_DP============CP" was started as a background job.
        Job Name....... "BIDTPR_1276822_1"
        Job Initiator.. "BWREMOTE"
        Job Number..... 15080600
    Source Code Extract
    Line  SourceCde
       81
       82   l_posit = l_posit + 1.
       83
       84   l_s_mess-requid    = p_requid.
       85   l_s_mess-datapakid = p_datapakid.
       86   l_s_mess-step      = l_step.
       87   l_s_mess-substep   = l_substep.
       88   l_s_mess-runid     = p_runid.
       89   l_s_mess-posit     = l_posit.
       90   MOVE-CORRESPONDING i_s_msg TO l_s_mess.
       91   if not ( l_s_mess-msgty = 'I' or
       92            l_s_mess-msgty = 'S' or
       93            l_s_mess-msgty = 'W' or
       94            l_s_mess-msgty = 'A' or
       95            l_s_mess-msgty = 'E' or
       96            l_s_mess-msgty = 'X' ).
       97     l_s_mess-msgty = 'I'.
       98   endif.
       99   CALL FUNCTION 'RSSM_GET_TIME'
      100     IMPORTING
      101       e_timestampl = l_s_mess-timestamp.
      102   APPEND l_s_mess TO p_t_mess.
      103
      104   READ TABLE p_t_header INTO l_s_header WITH KEY
      105        requid    = p_requid
      106        datapakid = p_datapakid
      107        step      = l_step
      108        substep   = l_substep
      109        runid     = p_runid.
      110   IF sy-subrc <> 0.
    >>>>>     MESSAGE x000(rsm).
      112   ENDIF.
      113   IF l_s_header-max_state  IS INITIAL OR
      114      l_s_header-max_state < cl_rsbm_log_dtp_req=>convert_msgty_to_state( l_s_mess-msgty ).
      115     l_s_upd-requid     = p_requid.
      116     l_s_upd-datapakid  = p_datapakid.
      117     l_s_upd-step       = l_step.
      118     l_s_upd-substep    = l_substep.
      119     l_s_upd-runid      = p_runid.
      120     l_s_upd-max_state = cl_rsbm_log_dtp_req=>convert_msgty_to_state( l_s_mess-msgty ).
      121     APPEND l_s_upd TO l_t_upd.
      122     l_header_changed = 'X'.
      123   ENDIF.
      124   IF l_header_changed = 'X'.
      125     IF l_s_header-substep <> '0' AND
      126        l_s_header-step    <> '0'.
      127       READ TABLE p_t_header INTO l_s_header WITH KEY
      128            requid    = p_requid
      129            datapakid = p_datapakid
      130            step      = l_step

  • Error consuming Web service from an ABAP Program

    Hello guys,
    I'm trying to consume a Web Service that is exposed in the internet. The conecction to the Web Service its via SSL.
    I'm having a problem at the moment I call the web service from my abap program.  But I'm able to test the same web service, from the SE80 tx with out trouble.
    I have identify that there is a difference in the SOAP envelope, that its received in the Web service, when I call it from the test enviorment and when I call it from the program. 
    This is how it is received from the TEST tool (a succesfull call of th WS) :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header><n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/"><TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Error</TraceLevel></n0:Trace></soap-env:Header><soap-env:Body><nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"><body>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;Mensaje&gt;&lt;RutEmpresa&gt;&lt;Numero&gt;76555400&lt;/Numero&gt;&lt;Digito&gt;4&lt;/Digito&gt;&lt;/RutEmpresa&gt;&lt;RutUsuario&gt;&lt;Numero&gt;12307972&lt;/Numero&gt;&lt;Digito&gt;8&lt;/Digito&gt;&lt;/RutUsuario&gt;&lt;Convenio&gt;58422&lt;/Convenio&gt;&lt;Pin&gt;aro79728&lt;/Pin&gt;&lt;Archivo&gt;&lt;Tipo&gt;PPR&lt;/Tipo&gt;&lt;Plantilla&gt;2142970592&lt;/Plantilla&gt;&lt;Nombre&gt;cargatest174.txt&lt;/Nombre&gt;&lt;Cuerpo&gt;&lt;![CDATA[G126919727     JORGE CRISTIAN VARGAS ROMERO                                                     0000VVC01600000000000000000000245FAC0000000089900032000021030000010000000000190000   2910200714082008Boletas honorarios|]]&gt;&lt;/Cuerpo&gt;&lt;/Archivo&gt;&lt;Fecha&gt;20080814&lt;/Fecha&gt;&lt;/Mensaje&gt;</body></nr1:putXMLDocument></soap-env:Body></soap-env:Envelope>
    And this is how  it is received when I consume the web service from the ABAP program.
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header><n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/"><TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Error</TraceLevel></n0:Trace></soap-env:Header><soap-env:Body><nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"><body>&lt;?xml version="1.0" encoding="utf-8" ?&gt;&lt;nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"&gt;&lt;body&gt;&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;Mensaje&gt;&lt;RutEmpresa&gt;&lt;Numero&gt;76555400&lt;/Numero&gt;&lt;Digito&gt;4&lt;/Digito&gt;&lt;/RutEmpresa&gt;&lt;RutUsuario&gt;&lt;Numero&gt;12307972&lt;/Numero&gt;&lt;Digito&gt;8&lt;/Digito&gt;&lt;/RutUsuario&gt;&lt;Convenio&gt;58422&lt;/Convenio&gt;&lt;Pin&gt;aro79728&lt;/Pin&gt;&lt;Archivo&gt;&lt;Tipo&gt;PPR&lt;/Tipo&gt;&lt;Plantilla&gt;2142970592&lt;/Plantilla&gt;&lt;Nombre&gt;cargatest174.txt&lt;/Nombre&gt;&lt;Cuerpo&gt;&lt;![CDATA[G126919727 JORGE CRISTIAN VARGAS ROMERO 0000VVC01600000000000000000000245FAC0000000089900032000021030000010000000000190000 2910200714082008Boletas honorarios|]]&gt;&lt;/Cuerpo&gt;&lt;/Archivo&gt;&lt;Fecha&gt;20080814&lt;/Fecha&gt;&lt;/Mensaje&gt;&lt;/body&gt;&lt;/nr1:putXMLDocument&gt;</body></nr1:putXMLDocument></soap-env:Body></soap-env:Envelope>
    As you can see, it is generating a nr1:putXMLDocument tag, that it should not go there.
    Why do you think that this situation is happening? Please guys, this is very important, and need your help.  Thanks in advance.
    Samuel.

    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Calling WebServices from ABAP via HTTPS
    Consuming Web Service from ABAP by Durairaj Athavan Raja
    Search on SDN wiki, and you will find above mentioned links.

Maybe you are looking for

  • Absences not deducted from Absence Quota for One Employee

    Dear Friends, I am facing an issue for one employee, when I recorded an Annual Leave absence to him, it is not updated in his Absence quotas infotype. But this is working fine for all other employees in the same employee group/subgroup grouping. But

  • Java class call from Stored Proc or trigger

    Hi Experts! I have windows 2K server with Oracle 8i Enterprise Edition installed. Please let me know if I can call a java class from Stored Procedure or Trigger. If there is a way, then help me out with code sample or description. Regards, Atul [emai

  • ISync in 10.4.7 (intel) refuses to install conduit for Palm

    Hello, I am trying to install th iSync conduit to sync my Palm Zire 71 with iSync, but every time I try to enable the settings iSync tells me the Hotsync Manager was not installed properly despite it working perfectly fine syncing the Zire. I have re

  • Why dose my iPod turn white when I turn it on?

    My iPod touch is not working correctly. When I turn it on it goes to the apple like it is soposed to but then goes to a whole white page. Why dose that happened?

  • Boot Camp Drivers wont Install on Windows 7

    Hi I recently instllaled Windows 7 on my MacBook running Lion and when i go to install the drivers on Windows 7 it says "BootCamp x64 is incompatable with this model" How do i get the drivers to install? Cheers