Issue Commn Error msg in TRY ,,,CATCH

Hi Experts,
I need to issue an error message in my code. I am writng this code below in SE38 for sending outbound data extract to PI(SAP Xi).
  TRY.
  Assign row
*loop at tzcaap into wa_zcaap.
      it_prxkna1-MT_tablename_EXTRACT-RECORD-ROW = itab2.
    it_prxkna1-MT_tablename_EXTRACT-RECORD-flag = itab1_fieldl1-filapcr.
      CALL METHOD meth_prxy->execute_asynchronous
        EXPORTING
          output = it_prxkna1.
      COMMIT WORK.
*endloop .
    CATCH cx_ai_system_fault .
      DATA fault TYPE REF TO cx_ai_system_fault .
      CREATE OBJECT fault.
      WRITE :/ fault->errortext.
  ENDTRY.
If PI message interface  is not set up i need to issue an error message.
please tell me how to do this?
thanks
Dan

Try this:
DATA fault TYPE REF TO cx_ai_system_fault .
data: gv_message type string.
CATCH cx_ai_system_fault into fault.
gv_message = fault->get_text( ).
WRITE :/ gv_message.

Similar Messages

  • Error when using try catch inside oledb command to run stored procedure

    Hi,
    i'm using the below command to run some jobs  using OLEDB Command
    exec sp_start_job @job_name =?
    and it runs successfully
    when i put this code inside try catch block as below , it generates error and don't accept it
    begin try
    exec sp_start_job @job_name =?
    end try
    begin catch
    end catch
    the error message is "Syntax error, PErmission vaiolation or other nonspecific error"
    do you know is there any problem using TRY catch insdie OLEDB command ?
    Thanks ,
    Ahmed Salah

    Hi Ahmed,
    According to your description, if an error raised that fails the package, then you want the package to continue execute.
    To achieve this requirement, we can use Integration Services (SSIS) Event Handlers that we can create custom event handlers for an OnError event when an error occurs to continue processing rest of the package. For more details, please refer
    to the following blog:
    http://visakhm.blogspot.in/2013/03/error-handling-in-ssis-loops.html
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to check a lot of conversion errors with one TRY-CATCH?

    Hi,
    I've to import a lot of data from a flatfile.
    To avoid short dumps when there are non-numeric data's for a numeric field in the file, I load every record in a structure that have only CHAR fields.
    Then I move this fields in a TRY-Catch block to the real fields like this:
    TRY.
        field1 = field_from_file1
        field2 = field_from_file2
        field3 = field_from_file3
    CATCH cx_sy_conversion_no_number INTO lr_exception.
        PERFORM fehler USING lr_exception.
    ENDTRY.
    This construct works until the first field has a conversion error. However I will test all fields to get a complete list of the errors. And I am to lazy to make a TRY-CATCH construct for hundred of move-statements.
    Is there a better trick to check the success of <b>all</b> move operation?
    Regards,
    Stefan

    Hi Stefan,
    sorry, the development system is down right now, so I could not test. But I'm convinced you can figure it out:
    You may specify the parameters of a method as TYPE REF TO DATA.
    Then, in the calling routine you may have
    data:
      anyrefsource type ref to data,
      anyreftarget type ref to data.
    GET REFERENCE OF p_source INTO anyrefsource.
    GET REFERENCE OF p_target INTO anyreftarget.
    call method try_conv
      exporting
        source = anyrefsource
        target = anyreftarget.
    and in the method:
    ASSIGN source->* TO <fs_source>
    and so on...
    BTW: I know you have to use typed parameters in OO. Can't you use "TYPE ANY"?
    regards,
    C.

  • In attempting to burn a playlist onto a new CD, iTunes seems to burn about half the tracks then shuts down and issues an error msg. (4900) - although that msg. has rec'd a lot of attn., there does not appear to be an adequate or workable fix or suggestion

    In attempting to burn playlists onto new CD's, iTunes regularly completes half the burn, stops, ejects the CD and issues error msg. #4900.  Although there appears to have been similar problems for some time, I cannot locate any suggestions for fixing the problem.  I have installed the newest version of iTunes but that does not appear to have any effect on the problem.  Thoughts?

    I had the same problem after updating my DVD-Drive Firmware.
    Disabling the Option to burn "CD TEXT" solved my problem. Hope that helps !!

  • Ajax cfc issue -- indeterminent error msg

    I have one ajax cfc app that works fine.  This app uses the file name from the browse button on the file input object that is passed to my proxy.cfc, which in turn, queries the attachments table in my db to see if this file has already been uploaded for this project.  If the file is not there, then I upload it to the server.  If it is there, I pop-up an error message to the user giving him/her the date/time it was uploaded and by whom.  These values are returned by testing code in the cfc.   It works great.
    I am now working on another app that will populate a lower-order select box in a hierarchy of select boxes based upon the new value in the current select box that has just been selected.  It seems doable, but there is an immediate error that I cannot seem to get past an error thrown by the IE error handler as an unhandled error.  This error is a “throw msg” error within the core Adobe code, which I’ve pasted in below:
    I have modeled the new app after the one that I have working.  In a effort to figure out this cause of this problem, I have even housed it in the original proxy.cfc to eliminate any question about having it in the correct location on the server. 
    At the current point, I am only trying to return an input value from the app, getAreasRmt.  Here are the calling and called code.  The line in the calling code that generates the error is the one where I call the cfc function: “alert (‘Rtnd BuGrpID: ‘ + areaProxy.getAreasRmt(….)));”
    Calling JS:
    getAreasRmt:
         This code will eventually pass back a structure containing all of the areas whose Business Group ID is sBuGrpID. 
         I am running CF8 on a W2003 x64 server with IIS 6.0.
         Thanks in advance for any help/suggestioins.
    Len

    Folks,
    This is my first attempt to bind a CFC to a <cfselect> so I may be missing something very basic that everyone elses knows.
    I've made some progress on this issue, but I'm not sure I'm actually moving forward.   After Googling, reviewing CF8 books and searching this site, I have converted this over to binding my CFC to a <cfselect>, which then calls the procedure within the cfc.  I've also started using cfdebug and FireBug from time to time to try to gain some insight into what is happening.
    But I think that I'm just at a different form of the original error message.  Here is the error from the Ajax Debug Log window:
    window:global: Exception thrown and not caught (http://192.168.1.100/CFIDE/scripts/ajax/package/cfajax.js, line 798) [Note: 798 could be the loction of the original error.  Or not]
    info:http: CFC invocation response:{"COLUMNS":["LOCATIONNAME","LOCATIONID"],"DATA":[["CDPG BOARDS",1],["CDPG Boxed Processor",12],["DIJIC",13],["EPSD BOARDS",2],["EPSD SYSTEM",3],["KM-RDV",4],["LAD",5],["MCPD",6],["MWG",7],["New BOARDS",9],["NEW_BIZ-RDV",11],["NPG",10],["OPD",8],["TestBus",14],["Testing ",15]]}
    info:http: HTTP GET /PHREDsevenInternal/Templates/hierchy.cfc?method=getLocs&returnFormat=json&argumentCollec tion=%7B%7D&_cf_nodebug=true&_cf_nocache=true&_cf_clientid=999030C7709D5E20E12A17ED431EFB2 A&_cf_rc=0
    info:http: Invoking CFC: /PHREDsevenInternal/Templates/hierchy.cfc , function: getLocs , arguments: {}
    info:LogReader: LogReader initialized
    info:global: Logger initialized.
    It is returning the query from the CFC finally. I'm assuming that if there would not have been an error, then the query would have been loaded into the <cfselect> that called it.
    Here is the latest version of both sides of the cfc binding:
    Call side:
    <cfselect bind="CFC:hierchy.getLocs()" bindonload="true" value="LocationID" display="LocationName" name="Location" />
    Here is the CFC code:
    <cfcomponent output="false">
    <!--- Test to see if the passed-in name is in the db already --->
    <cffunction name="getLocs" access="remote" returntype="query">
      <cftry>
        <cfquery name="getLocQry" datasource="PHREDsevenInternalSQL">
         SELECT LocationName,LocationID
         FROM Locations
         ORDER BY LocationName
        </cfquery>
        <cfcatch type="Any">
         <cfdump var="#getLocQry#">
        </cfcatch>
      </cftry>
      <cfreturn getLocQry>
    </cffunction>
    </cfcomponent>
    Question about location of the CFC.  I prefer to keep all my CFC's in a CFC directory so that they can be reuseable.  I tried both relative and full location methods but neither worked.  If it didn't find the CFC, then it would throw an error telling me that it didn't find it, but I could not get the query to run and return the info you see above until I moved it into the directory where the calling cfm lives.  Is there some mystical/magically method for letting CF know where it is if it isn't in the invoking directory?  I know that if I were invoking a CFC that I would have to use the full path dotted method.   I actually did that here but it didn't get me a result back.  It just told me that I needed to return a 2D arrary or serialized query, which told me that I wasn't actually running the query even though CF could not find it.  Or I think that is what it meant.
    I'm at a total loss as how to proceed.  I've spent 4 days on this now and need to get this issue resolved.
    Thanks again for any suggestions/help on this matter.
    Len

  • "catch is unreachable" compiler error with java try/catch statement

    I'm receiving a compiler error, "catch is unreachable", with the following code. I'm calling a method, SendMail(), which can throw two possible exceptions. I thought that the catch statements executed in order, and the first one that is caught will execute? Is their a change with J2SE 1.5 compiler? I don't want to use a generic Exception, because I want to handle the specific exceptions. Any suggestions how to fix? Thanks
    try {
    SendMail(....);
    } catch (MessagingException e1) {
    logger.fine(e1.toString());
    } catch (AddressException e2) {
    logger.fine(e2.toString());
    public String SendMail(....) throws AddressException,
    MessagingException {....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I found the problem:
    "A catch block handles exceptions that match its exception type (parameter) and exception types that are subclasses of its exception type (parameter). Only the first catch block that handles a particular exception type will execute, so the most specific exception type should come first. You may get a catch is unreachable syntax error if your catch blocks do not follow this order."
    If I switch the order of the catch exceptions the compiler error goes away.
    thanks

  • HELP: ERROR MSGS WHEN TRY TO SYNC IPOD 160GB CLASSIC

    I have done the following:
    Installed the latest version of Itunes
    Restored my IPOD (multiple times)
    Restarted computer
    Tried both USB ports on CPU
    Made sure I check Sync Music and Apply
    Results:
    A few albums are on IPOD
    Get error message above
    Thanks in advance for any other suggestions!

    Since your song files on the computer are accessible by iTunes, I think the problem is iTunes not seeing the "required folder" on the iPod.  As a test, try shutting down (powering off) the computer and disconnecting all USB devices (including any hubs).  You can leave standard keyboard/mouse connected, if used.  If the computer is a laptop, connect its power adapter so that it's not running on battery power.  Do a Reset on the iPod
    Reset your iPod - Apple Support
    Start up computer, run iTunes, and connect iPod to a direct USB port by itself.  Try doing a sync.  Any difference?

  • FCP7 - crashing issues, interesting error msg

    OK, more of an informational post here...I'm working on an effed-up project which I'm gonna have to do some forensic work on to make sure these guys don't do this again...lotsa of "worst practice" stuff here, resulting of course in constant crashing...for now, just what the heck is this?:
    "Final Cut Pro quite unexpectedly while using the KGCore plug-in"
    Any takers on what the "KGCore plug-in is"?  Thanks.

    I was getting the exact same error message.\
    I'm running WinXP, 2 GB of RAM. The weirder thing is, if I opened up Lightroom on my wife's acct. on the same computer, it worked perfectly.
    I agree 1.0 is terrible after using 1.3 :-) I tried to re-install 1.2, and 1.3 and got the same error message.
    If it means anything, I had just exported the catalog to my backup drive, deleted the pics, and cleaned up the HD, then Defragged. I don't see where that would be a problem, but ya never know!
    Any help would be great!
    Jeff

  • CK11N: Wrong Error Msg CK 229 (No routing could be found)

    Hi
    When I am running cost estimate for a material which is sub-contracted outside, system is giving error msg CK 229 that "NO Routing Could be found"... Since, this material is sub-contracted, it won't have any
    routing
    In OPR4_CK, CK 229 is defined as a error msg...
    But earlier, we have released std cost estimates for many such sub- contracted materials and system never used to give us this msg
    If I change CK 229 to warning, it will be problem because for Internally manufactured materials routing is MUST and system will just give a warning msg if no routing is found....
    What we are expecting is the behaviour as before.. i.e. for sub- contracted materials, message CK 229 should not be issued as error msg.. But for non-sub contracted materials, it should be error msg
    Regards
    Ajay

    Dear Ajay,
    1.First ensure that sub-contracted material has got a valid sub-contracting info record maintained
    through ME11 against a vendor.The sub-contracting charges will be maintyaine here.
    2.Ensure the source list is maintained for material and vendor combination through ME01.
    3.Ensure the costing variant used in CK11N has the proper priorities maintained for it,say for Eg PPC1
    is used,check in OKKN for this costing variant it has proper priority say first may be for planned
    price,second may be based on value in purchase info record.
    4.Generally for a sub-contracted material the system sometimes shows error message as no souce list
    exists,but routing will be created only for an In-house manufactured products with the procurement type
    E.For a sub-conracted material check the procurement type is E and special procurement value is 30 in
    MRP2 view of the material master.
    Check and revert back.
    Regards
    Mangalraj.S

  • When I try to open Itunes I get this error msg, 'This copy of iTunes is corrupted or is not installed correctly. Please re install iTunes (-42404), I have tried repairing

    When I try to open Itunes I get this error msg, 'This copy of iTunes is corrupted or is not installed correctly. Please re install iTunes (-42404), I have tried repairing, no joy, uninstalling and re installing, no joy. Any ideas?
    <Subject Edited by Host>

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • How to get the returned error messages in the Try/Catch block in DS 3.0?

    A customer sent me the following questions when he tried to implement custom error handling in DS 3.0. I could only find the function "smtp_to" can return the last few lines of trace or error log file but this is not what he wants. Does anyone know the answers? Thanks!
    I am trying to implement the Try/Catch for error handling, but I have
    hard time to get the return the msg from DI, so I can write it to out
    custom log table.
    Can you tell me or point me to sample code that can do this, also, can
    you tell me which tables capture these info if I want to query it from
    DI system tables

    Hi Larry,
    In Data Services XI 3.1 (GAd yesterday) we made several enhancements for our Try/Catch blocks. One of them is the additional of functions to get details on the error that was catched :
    - error_message() Returns the error message of the caught exception
    - error_number() Returns the error number of the caught exception
    - error_timestamp() Returns the timestamp of the caught exception.
    - error_context() Returns the context of the caught exception. For example, "|Session Datapreview_job|Dataflow debug_DataFlow|Transform Debug"
    In previous versions, the only thing you could do was in the mail_to function specify the number of lines you want to include from the error_log, which would send the error_log details in the body of the mail.
    Thanks,
    Ben.

  • Having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    Hi George ,
    Is it happening with all the PDF' or any specific one?
    Could you please share the error message so that we can replicate at our end ?
    Try repairing reader  once and see if that fixes the issue.
    Launch Reader>Navigate to Help>Repair Adobe Reader Installation
    Regards
    Sukrit Dhingra

  • When I try to unzip the files I get the following error msg "checksum error in adbeapecore.dll"

    when I try to unzip the files I get the following error msg "checksum error in adbeapecore.dll"

    Hi,  
    We are tracking this issue at:
    http://forums.adobe.com/message/4286522#4286522
    Please follow the steps and update thread if your issue is resolved.
    Regards,
    Ashutosh

  • When am trying to install Windows server 2008 OS. Error msg was coming 0x80070070:"not having enough space for installation"..Even though i have 20GB space?..Pls resolve this issue earliest.

    Hi Guys
    I have an issue please help on that earliest.
    When am trying to install Windows server 2008 OS. Error msg was coming 0x80070070:"not having enough space for installation"..Even though i have 20GB space?..Pls resolve this issue immediately.
    Regards,
    Shiv

    Is this a clean install or an upgrade?  20 GB, though greater than the minimum, is pretty minimal.  How much memory do you have on the system?  2008 would try to create a page file of 1.5x physical memory, so if you are building on a large
    memory system, you could be having an issue there.
    "Pls resolve this issue immediately"
    Forums are not for support.  They are monitored by people, like yourself, who are willing to take time out of their days to provide the benefit of their past experience.  If you need support, you need to purchase a support contract from Microsoft
    or some other party.
    . : | : . : | : . tim

  • HT201407 How come when I try and restore my iPhone 4 GSM (factory unlocked) with itunes, it starts ok, and then at 60% blocks like for about 5 min, and then continues till 100% and itunes give error msg (-1) ??? what can be the problem

    How come when I try to restore my iPhone 4 GSM (factory unlocked) with itunes, it starts ok, then at 60% blocks like for about 5 min, then continues till 100% and itunes give error msg (-1) ??? what can be the problem.
    thank you in advance.

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    http://support.apple.com/kb/TS3694

Maybe you are looking for

  • How to print check box in ALV list display and how to pick selected ones

    Hi i am displaying one ALV list dispaly. for that im adding one check box fields by filling the fieldcat as below:   wa_fldcat-checkbox = 'X'.   wa_fldcat-edit = 'X'. but the check box is showing disable mode only. i want to display that check box an

  • CO PA Data source

    Hi , Can anyone tell me steps and transactions used to create Data source in R3 side for CO PA Extraction . I am using KEB0 Transaction , What is the procedure , I gave a name and Pressed F8 , IT took to a screen , But that is in Display mode , No sa

  • How do I install camera raw 6.6 in a winzip program to Elements 9?

    How do I install camera raw 6.6 in a winzip program to Elements 9?  I have Windows 7.

  • Printer not recognized after reboot

    I'm using a ProBook 4540s running Windows 7 Professional and printing to an Officejet 7410.  When my laptop reboots I have to uninstall and reinstall the driver s/w to get everything to work.  The error I get is searching preconfigured driver folder,

  • FRG22D Breaks Exchange Server Sync!

    Ok so after FRG22D I can no longer connect to exchange or for that matter even set it up again. System FC on setup. So  I called motorola and they told me it was a certerficate issue and would need to be patched but they had no ETA nor did they commi