Finding error text according to ERROR_CODE

Is the a way to obtain the error text without the use of ERROR_TEXT but only by the error code?

Hi Sachin,
I added PERFORM...ENDPERFORM segment in my FBL5N generated correspondence SAP14 z-copy SAPScript form in the address window: But the perform...endperform does not seems to trigger. Note that I have already created the custom program ZNSC_CHANGE_CORRESPONDENCE as followed:
REPORT  ZNSC_CHANGE_CORRESPONDENCE.
TABLES t001.
TABLES adrc.
DATA lw_t001 TYPE t001.
DATA lw_adrc TYPE adrc.
*&      Form  GET_ADDRESS
*       text
*  -->  p1        text
*  <--  p2        text
FORM GET_ADDRESS USING bukrs type bkorm-bukrs
*                 CHANGING txtab TYPE TXTAB_001G.
                  CHANGING correspondence TYPE char100.
   SELECT SINGLE * FROM t001 INTO lw_t001
     WHERE bukrs = bukrs.
   IF sy-subrc = 0.
     SELECT SINGLE * FROM adrc INTO lw_adrc
       WHERE addrnumber = lw_t001-adrnr.
     CONCATENATE lw_adrc-name1 lw_adrc-name2 lw_adrc-post_code1 lw_adrc-po_box_loc
      INTO correspondence.
   ENDIF.
ENDFORM.                    " GET_ADDRESS
IF &PAGE& EQ '1 '.
/: PERFORM GET_ADDRESS IN PROGRAM ZNSC_CHANGE_CORRESPONDENCE
/: USING &BUKRS&
/: CHANGING &CORRESPONDENCE&
/: ENDPERFORM.
INCLUDE &T001G-TXTAB& OBJECT TEXT ID ADRS LANGUAGE &T001-SPRAS&
ENDIF.
ADDRESS PARAGRAPH AS
  TITLE       &DKADR-ANRED&
  NAME        &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
  STREET      &DKADR-STRAS&
  POBOX       &DKADR-PFACH& CODE &DKADR-PSTL2&
  CITY        &DKADR-ORT01&, &DKADR-ORT02&
  POSTCODE    &DKADR-PSTLZ&
  COUNTRY     &DKADR-LAND1&
  REGION      &DKADR-REGIO&
  FROMCOUNTRY &DKADR-INLND&
  ADDRESSNUMBER &DKADR-ADRNR&
ENDADDRESS

Similar Messages

  • What happens?. Unable to find error text for this exception

    I4m trying to open a workbook and before doing anything it shows me the message "Unable to find error text from this exception", after this, it appears another one "attempt to open workbook failed". Help me to find why i4m not able to open the workbook, which could be the reason.
    Thanks in advance.

    I think this has something to do with the folders that
    you are using? Have you renamed an old folder and then
    recreated another folder as its replacement?
    Christopher

  • Error- Unable to find error text for this exception

    Hi all,
    I am facing the following problem in discoverer ,Please give me your advice.
    while I am trying to open the workbook I am getting the following error
    "Unable to find error text for this exception"
    Could you please tell me how I can find why this warning is come ? or how I can solve this warning.
    if I ignore this warning then the workbook is failing to open.
    thanks and regards
    senthil kumar

    Hi,
    Are you getting this problem with the Desktop, Plus or Viewer editions? It could be that the database is generating the exception. You will need to trace the database session to see the error.
    Rod West

  • How can I find error message according to DAC etl task error code?

    Hi all,
    I run the DAetl tasks accroding to the BI APPS installation guide for Financials - Receivables.
    While I found some task result in errors and restart the run can't resolve them.
    I looked at the error tasks and found in the task detail page some index creating step got error. It indicated error code 1542, howerver I can't find any valueable error message.
    Is't a dac error code or informatica error code? where is the document that list all the error code,error message, root cause and solutions?
    Thanks & Regards,
    Scott
    Edited by: Typhoon on Jun 30, 2009 11:21 AM
    Edited by: Typhoon on Jun 30, 2009 11:37 AM

    Hi
    First try to run the workflow of that mapping individually by hardcoding the parameter values........and running through Informatica monitor itself.......later you can revert the changes.......In this way you can findout whether there is some problem in Informatica mapping or DAC configuration....If the problem is at Informatica mapping I think you need to change the session property for target as "Normal" Instead of "Bulk"(because you have indexes being created for the target which would be set record wise.....). Hope this helps
    With Regards
    Ven
    Edited by: user11254581 on Jun 29, 2009 10:58 PM

  • Unable to find error Text  for this exception/Attempt To open workbook fail

    Hi,
    I am getting this error when I am trying to run a workbook. I had changed one of the folders name in the business area. That folder had a item which was one of the parameters of the workbook.
    Can somebody please help me revert back.If I want to change any folders name,is it not possible.
    Thanks in advance

    You're allowed to change the folder name or the id name (via properties) but just not both at the same time (plus database reports have to be opened and saved).
    But just changing the display name for an item shouldn't cause a problem (because Disco doesn't really look for the display name - it's just for us to understand what it is/does).
    I think you'd know, but is it possible you changed the id name in properties to one that already existed and therefore someone's got an extension of _1 added?
    Russ

  • CLIENT_SEND_FAILED error code: 500, error text: Internal Server Error

    Hi,
    Developed Proxy <-->PI<-->JDBC SELECT scenario and getting the following error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_SEND_FAILED</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>(See attachment HTMLError for details)</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error while sending by HTTP (error code: 500, error text: Internal Server Error) (See attachment HTMLError for details)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    When I cross checked the JDBC Receiver communication channel in Runtime Work Bench
    request and response were successfull. RWB shows the following message.
    2009-06-12 09:34:50 Information The message was successfully received by the messaging system.
    2009-06-12 09:34:50 Information Message successfully put into the queue.
    2009-06-12 09:34:50 Information The message was successfully retrieved from the request queue.
    2009-06-12 09:34:50 Information The message status was set to DLNG.
    2009-06-12 09:34:50 Information Delivering to channel: DB2ReceiverTableSPT
    2009-06-12 09:34:50 Information JDBC Adapter Receiver processing started, required QoS BestEffort
    2009-06-12 09:34:50 Information JDBC Adapter Receiver Channel DB2ReceiverTableSPT:
    2009-06-12 09:36:35 Information Database request processed successfully.
    2009-06-12 09:36:35 Information The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2009-06-12 09:36:35 Information The message status was set to DLVD.
    I had gone thru all the previous threads related to 'CLIENT_SEND_FAILED' but
    those did not solve my problem.
    Can some one help me to solve this issue.
    Thanks,
    Vijay.

    I made necessary changes as per the blog. Appended '_response' for JDBC response structure.
    Still I am facing same problem.
    Strange....delibarately gave the link so that you can cross-check the JDBC config on receiver side...I assume that the proxy is configured properly with the Sync communication....also mapping is done accordingly...
    Regards,
    Abhishek.

  • Use REGEXP_INSTR to find a text string with space(s) in it

    I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
    (This is in a Function.)
    Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
    ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
    Syntax error on command line.
    If ParmIn_Look_For is just 'black' or 'dog' it works fine.
    Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
    look for 'black dog' ??
    Also: If I want to use the option of ignoring white space, is the last parm
    'ix' 'i,x' or what ?
    SELECT
    REGEXP_INSTR(ParmIn_Search_This_String,
    '('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
    INTO Position_Found_In_String
    FROM DUAL;
    Thanks, Wayne

    Maybe something like this ?
    test@ORA10G>
    test@ORA10G> with t as (
      2    select 1 as num, 'this sentence has a black dog in it' as str from dual union all
      3    select 2, 'this sentence does not' from dual union all
      4    select 3, 'yet another dog that is black' from dual union all
      5    select 4, 'yet another black dog' from dual union all
      6    select 5, 'black dogs everywhere...' from dual union all
      7    select 6, 'black dog running after me...' from dual union all
      8    select 7, 'i saw a black dog' from dual)
      9  --
    10  select num, str
    11  from t
    12  where regexp_like(str,'black dog');
           NUM STR
             1 this sentence has a black dog in it
             4 yet another black dog
             5 black dogs everywhere...
             6 black dog running after me...
             7 i saw a black dog
    5 rows selected.
    test@ORA10G>
    test@ORA10G>pratz
    Also, 'x' ignores whitespace characters. Link to doc:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
    Message was edited by:
    pratz

  • [MESSAGE.GENERAL] How can take the actual error text for ABAP proxy error?

    Hi...
    I'm a ABAPer.
    I got to create outbound abap proxy for synchronous server proxy and described below.
    My problem is program can not catch the actual error message when occurred error during send data to XI.
    The return message is just 'MESSAGE.GENERAL'.
    But according to the XI part, 'Key error' is actual reason.
    So... how can i take the actual error text like 'Key error'?
    <b>* Only MESSAGE.GENERAL is return message for all kind of errors.</b>
    Thanks.
    Below----
      TRY.
          CREATE OBJECT abap_proxy.
          CALL METHOD abap_proxy->execute_synchronous
            EXPORTING
              output = gs_out
            IMPORTING
              input  = gs_in.
      Exception Handling
    <b>    CATCH cx_ai_system_fault  INTO  go_sys_exception.
          g_sys_result = go_sys_exception->get_text( ).</b>
        CATCH cx_ai_application_fault INTO go_app_exception.
          g_app_result = go_app_exception->get_text( ).
      ENDTRY.
      COMMIT WORK.
    Return status 'D' is succeeded.
      if  gs_in-sales_group_rer_sap-xstat <> 'D'. 
         WRITE:/ 'System Error Message      :', g_sys_result.
         WRITE:/ 'Application Error Message :', g_app_result.
      endif.
    *--Result--
    System Error Message      : MESSAGE.GENERAL
    Application Error Message :
    Message was edited by: Miju cho
    Message was edited by: Miju cho

    Thanks guys, this was useful.
    My scenario is for Asynchronous communication.
    I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
    Have i got this right?
    I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
    The following receivers support acknowledgments:
    ABAP and Java proxies (XI 3.0 SP1 for the latter)
    Integration processes
    IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
    Receiver adapters support system acknowledgments but not application acknowledgments
    My Receiver is JDBC. So I guess I cannot use acknowledgements either.
    Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
    I'll tell you abt what happened earlier.
    My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
    I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
    Thanks and Regards,
    Ashwin

  • Find dropped text?

    Hello,
    I produce a 2-page newsletter for my college using InDesign CS2 4.0.5; each monthly edition has 10-15 short articles submitted by faculty. My job, as editor, is simply to arrange and size/format the texts. Always there are last minute edits from the review board, which can shorten or lengthen an article, so to meet our print deadline, I have to scramble to re-size textboxes or whatever needs to be done to make everything fit. Twice now, I failed to note that a sentence or short paragraph has dropped out of a textbox. I know about the small symbol at the lower right corner but in all the haste I don't always see it.
    QUESTION: other than checking each textbox individually, is there a way to catch this mistake? is there an InDesign command to run on a "finished" file that would find dropped text and alert me with an error message/warning?
    thanks,
    Linda

    Another way I've seen recommended -- though it DOES require action on your part to actually check -- is to zoom way, way out so you see all of the pages at a tiny size. The "overset text warning" boxes do not shrink, and are much easier to catch.
    Rodney

  • Solman_setup error: Text NL9 Not Found

    Hello Experts,
    I perform a fresh solution manager installation, and applied SPS20 and finally SPS23
    Then when try to run SOLMAN_SETUP a dump is raised with the following information:
    The following error text was processed in the system SLM : Text NL9 Not Found
    The error occurred on the application server solman_SLM_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_COMPONENT_ASSISTANCE~GET_TEXT of program CL_WD_COMPONENT_ASSISTANCE====CP
    Method: SUPPLY_NL_REL_LINKS of program /1BCWDY/SEVJ79UM4LBSJJZ7IXDN==CP
    Method: SUPPLY_NL_REL_LINKS of program /1BCWDY/SEVJ79UM4LBSJJZ7IXDN==CP
    Method: SUPPLY_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: IF_WD_CONTEXT_NODE~GET_ELEMENTS of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CPATTERN================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CPATTERN================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    So far Iam unable to find any suitable information in order to solve this.
    I already execute:
    SGEN
    SIAC_PUBLISH_ALL_INTERNAL
    activate all services in SICF
    I really appreciate your help on this
    thank you

    Thank you for the quick answer, even though your information solved this particular problem, later on while running solman_setup I got similar dumps, therefore i realized that there was an error else were.
    Problem was I imported English language (usually you don't do it) in TC SMLT, and the language part of support packages were missing, any way. I restored a backup I made just before Spanish language import was performed.
    Then I start over again. I imported Spanish language, then supplementation for spanish and finally import language part support packages and everything went fine during solman_setup
    thank you for your valuable information

  • Help please! Another Finder Error

    Hi,
    The script below is designed to backup files from the source area to the backup area preserving the folder hierarchy. While I’m sure it could be written better, it seems to work until it encounters a particular folder containing a file, when I get the following Finder error shown below. At this point it has already done approximately 60 files in about 10 folders. If I remove the file from the folder the script will continue processing a further 300 files and sub-folders before getting the same error on another folder/file.
    Can someone explain what the error means? Any comments or suggestions to improve the script would be welcome.
    tell application "Finder"
    get every item of folder (alias "Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl:")
    {alias "Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl:Pen Testing Brief 2005.doc"}
    "Can't make alias \"Macintosh HD:Users:andy:Documents:NetXxx II:Customers:Lxxxx Bxxxxxh Cxxxxxl::Pen Testing Brief 2005.doc\" into type «class alst»."
    -- Backup Script.
    -- This script will attempt to backup the specified folder(s) and all sub-folders to the external disk
    -- drive. It duplicates the folder sub-folder hierarchy in the backup area.
    -- If a previous backup of the file exists in the backup directory it is renamed to
    -- 'filename-yy-mm-dd (hhmmss).extension' where yy-mm-dd and hhmmss are taken from
    -- the modification date of the file in the backup directory.
    on run
    -- Get the path to the desktop for the log file.
    set desktopPath to (path to desktop from user domain) as string
    -- Get the current date and time formatted.
    set thisDateAndTime to get current date
    tell me
    formatDateAndTime(thisDateAndTime)
    set thatDateAndTime to result
    end tell
    -- Compile the name for the log file.
    set backupLogPath to desktopPath & "Backup Log" & thatDateAndTime & ".txt"
    -- Create and open the log file.
    try
    set backupLogFile to (open for access file backupLogPath with write permission)
    end try
    set backupLog to backupLogFile
    -- Write a starting message to the log file.
    set logMsg to "Backup Starting..." as string
    append2BackupLog(logMsg)
    -- Define the global variables.
    global backupLog -- The file specification of the backup log file.
    global backupPath -- Top level folder for the backup.
    global topSourceFolder -- The top level source folder name without the proceeding path.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Define the backup folder to receive the backups.
    set backupPath to "ANDY:Business:Backups:" as text
    -- Define the folder to be backed up (the source folder).
    set sourceFolder to (path to home folder from user domain) as text
    set sourceFolder to (sourceFolder & "Documents:NetXxx II:")
    set topSourceFolder to "NetXxx II" as text
    -- Process the folder.
    processAFolder(sourceFolder)
    -- All done so write a final entry, close the log file and return.
    set logMsg to "Backup Ending..."
    append2BackupLog(logMsg)
    close access backupLogFile
    end run
    -- This routine process each file in the specified folder.
    on processAFolder(theFolder)
    -- Declare the global variables we reference.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Write a message to the log file that we are processing the folder.
    set logMsg to "Processing folder " & theFolder
    append2BackupLog(logMsg)
    tell application "Finder"
    -- Get a list of everything in the specified folder.
    set allItems to every item of folder theFolder as alias list
    repeat with eachItem in allItems
    -- Check if this is a folder file.
    set fileInfo to info for eachItem
    set thisClass to kind of fileInfo as text
    if thisClass is equal to "Folder" then
    -- We have a another folder so do a recursive call.
    tell me
    processAFolder(eachItem)
    end tell
    else
    -- Store the file information we will need in processAFile() in the global variables.
    set fileName to eachItem as text
    set sourceFileName to name of fileInfo as text -- Get the file name but not the path.
    set sourceFileExtension to name extension of fileInfo as text -- Get the file extension.
    -- Now process the file.
    tell me
    processAFile(fileName)
    end tell
    end if
    end repeat
    end tell
    end processAFolder
    -- This routine processes the specified file.
    on processAFile(fileName)
    -- Define the global variables referenced in this script.
    global topSourceFolder -- The top folder to be backed up.
    global backupPath -- The top folder in the backup area.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Get the folder paths from topSourceFolder downwards to the current folder.
    set currentBackupFolderPath to ""
    set folderTree to ""
    set addFolder to false
    set savedTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {":"}
    tell application "Finder"
    repeat with iFolder in text items of fileName
    set thisFolder to iFolder as text
    if (thisFolder is equal to topSourceFolder) then
    set addFolder to true -- We are now at the top of the tree so start adding the folder names to the folder tree.
    end if
    if thisFolder is equal to sourceFileName then
    set addFolder to false -- As its the current file name we don't want it in the folder tree.
    end if
    if addFolder is true then
    -- While were at it check that the folder exists in the backup area.
    set backupFolder to backupPath & folderTree & thisFolder
    set backupFolderExists to (folder backupFolder exists)
    if backupFolderExists is equal to false then
    -- It does not exist so create the folder in the backup area.
    set backupFolderPath to backupPath & folderTree as file specification
    make new folder at folder backupFolderPath with properties {name:thisFolder}
    end if
    -- Add the folder to the folder tree.
    set folderTree to folderTree & thisFolder & ":"
    end if
    end repeat
    set AppleScript's text item delimiters to savedTID
    -- Set the backup folder path.
    set backupFolder to (backupPath & folderTree)
    -- check if the files exist
    set sourceFileExists to (file fileName exists)
    set backupFileExists to (file sourceFileName of folder backupFolder exists)
    -- Backup the file to the required backup folder.
    if sourceFileExists and not backupFileExists then
    -- File did not exist in the backup directory so copy it there.
    duplicate file fileName to folder backupFolder
    -- Write a log file entry for the file.
    set logMsg to "Backup of " & fileName
    tell me
    append2BackupLog(logMsg)
    end tell
    else
    -- Both files exist, so check if the file in the source folder is newer.
    if (modification date of file fileName) > (modification date of file sourceFileName of folder backupFolder) then
    -- We need to rename the old backup file before we make a backup copy of the newer file.
    set thisDateAndTime to modification date of file sourceFileName of folder backupFolder
    -- Get the current date and time formatted.
    tell me
    formatDateAndTime(thisDateAndTime)
    set thatDateAndTime to result
    end tell
    -- We need to get the file name minus the extension.
    set oldTID to AppleScript's text item delimiters -- Get the current text item delimiters (TIDs).
    set AppleScript's text item delimiters to {"."} -- Set them to ".".
    set justFileName to first text item of sourceFileName -- Get the filename before the "."
    set AppleScript's text item delimiters to oldTID -- Restore the TIDs to what they were.
    -- Build the new file name for the old backup file.
    set newFileName to justFileName & thatDateAndTime & "." & sourceFileExtension
    -- Rename the file in the backup area and take a copy of the newer file.
    set name of file (sourceFileName as text) of folder backupFolder to newFileName
    duplicate file fileName to folder backupFolder
    -- Write the log file entry's for the file rename and the file backup.
    tell me
    set logMsg to "Renamed old backup file to " & newFileName
    append2BackupLog(logMsg)
    set logMsg to "Backup of " & fileName
    append2BackupLog(logMsg)
    end tell
    end if
    end if
    end tell
    end processAFile
    -- Format the specified date & time into a string of the form "dd-mm-yy (hhmmss)".
    on formatDateAndTime(thisDateAndTime)
    set dateString to short date string of thisDateAndTime
    set timeString to time string of thisDateAndTime
    set fileDateString to "" as text
    repeat with iWord in words of dateString
    set fileDateString to fileDateString & "-"
    if length of iWord is 2 then
    set fileDateString to fileDateString & iWord as text
    end if
    if length of iWord is 1 then
    -- Pad single digits out with a leading zero.
    set fileDateString to fileDateString & "0" & iWord as text
    end if
    end repeat
    -- Format the time into "(hhmmss)".
    set fileTimeString to " (" as text
    repeat with iTime in words of timeString
    set fileTimeString to fileTimeString & iTime as text
    end repeat
    set fileTimeString to fileTimeString & ")" as text
    -- Set the return parameter to the result and return.
    set thatDateAndTime to fileDateString & fileTimeString
    end formatDateAndTime
    -- This routine writes the specified message to the end of the log file.
    -- NOTE - the log file is assumed to be already open with write access.
    on append2BackupLog(logMsg)
    global backupLog -- Global variable that defines the path to the log file.
    -- Get the current date and time formatted.
    set dateString to short date string of (get current date) & space & time string of (get current date)
    try
    write (dateString & " " & logMsg & return as text) to backupLog starting at eof
    end try
    end append2BackupLog
    15" MacBook Pro 2.16GHz, 2GB Ram   Mac OS X (10.4.8)  

    Hello
    I was forced to stop my running script so I was able to look at your script/
    Here is a modified version. I didn't check it.
    -- Backup Script.
    -- This script will attempt to backup the specified folder(s) and all sub-folders to the external disk
    -- drive. It duplicates the folder sub-folder hierarchy in the backup area.
    -- If a previous backup of the file exists in the backup directory it is renamed to
    -- 'filename-yy-mm-dd (hhmmss).extension' where yy-mm-dd and hhmmss are taken from
    -- the modification date of the file in the backup directory.
    on run
    -- Get the path to the desktop for the log file.
    set desktopPath to (path to desktop from user domain) as string
    -- Get the current date and time formatted.
    set thisDateAndTime to get current date
    set thatDateAndTime to my formatDateAndTime(thisDateAndTime)
    -- Create and open the log file.
    try
    set backupLogFile to (open for access file (desktopPath & "Backup Log" & thatDateAndTime & ".txt") with write permission)
    on error
    display dialog "something failed !"
    end try
    set backupLog to backupLogFile
    -- Write a starting message to the log file.
    my append2BackupLog("Backup Starting..." as string)
    -- Define the global variables.
    global backupLog -- The file specification of the backup log file. -- Is it correct to define backupLog as global AFTER setting its value ???
    global backupPath -- Top level folder for the backup.
    global topSourceFolder -- The top level source folder name without the proceeding path.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Define the backup folder to receive the backups.
    set backupPath to "ANDY:Business:Backups:" as text
    -- Define the folder to be backed up (the source folder).
    set topSourceFolder to "NetXxx II" as text
    -- Process the folder.
    my processAFolder(((path to home folder from user domain) as text) & "Documents:" & topSourceFolder & ":")
    -- All done so write a final entry, close the log file and return.
    my append2BackupLog("Backup Ending...")
    close access backupLogFile
    end run
    -- This routine process each file in the specified folder.
    on processAFolder(theFolder)
    -- Declare the global variables we reference.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Write a message to the log file that we are processing the folder.
    my append2BackupLog("Processing folder " & theFolder)
    tell application "Finder"
    -- Get a list of everything in the specified folder.
    set allItems to every item of folder theFolder as alias list
    repeat with eachItem in allItems
    -- Check if this is a folder file.
    if (class of item eachItem) is folder then
    -- We have a another folder so do a recursive call.
    my processAFolder(eachItem as text)
    else
    -- Store the file information we will need in processAFile() in the global variables.
    set eachItem to eachItem as alias
    set sourceFileName to name of eachItem -- Get the file name but not the path.
    set sourceFileExtension to name extension of eachItem -- Get the file extension.
    -- Now process the file.
    my processAFile(eachItem as text)
    end if
    end repeat
    end tell
    end processAFolder
    -- This routine processes the specified file.
    on processAFile(fileName)
    -- Define the global variables referenced in this script.
    global topSourceFolder -- The top folder to be backed up.
    global backupPath -- The top folder in the backup area.
    global sourceFileName -- Source file name but not the path.
    global sourceFileExtension -- Get the file extension.
    -- Get the folder paths from topSourceFolder downwards to the current folder.
    set currentBackupFolderPath to ""
    set folderTree to ""
    set addFolder to false
    set savedTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {":"}
    tell application "Finder"
    repeat with iFolder in text items of fileName
    set thisFolder to iFolder as text
    if (thisFolder is equal to topSourceFolder) then set addFolder to true -- We are now at the top of the tree so start adding the folder names to the folder tree.
    if thisFolder is equal to sourceFileName then set addFolder to false -- As its the current file name we don't want it in the folder tree.
    if addFolder is true then
    -- While were at it check that the folder exists in the backup area.
    set backupFolder to backupPath & folderTree & thisFolder
    set backupFolderExists to (folder backupFolder exists)
    if backupFolderExists is equal to false then
    -- It does not exist so create the folder in the backup area.
    set backupFolderPath to backupPath & folderTree as file specification
    make new folder at folder backupFolderPath with properties {name:thisFolder}
    end if
    -- Add the folder to the folder tree.
    set folderTree to folderTree & thisFolder & ":"
    end if
    end repeat
    set AppleScript's text item delimiters to savedTID
    -- Set the backup folder path.
    set backupFolder to (backupPath & folderTree)
    -- check if the files exist
    set sourceFileExists to (file fileName exists)
    set backupFileExists to (file sourceFileName of folder backupFolder exists)
    -- Backup the file to the required backup folder.
    if sourceFileExists and not backupFileExists then
    -- File did not exist in the backup directory so copy it there.
    duplicate file fileName to folder backupFolder
    -- Write a log file entry for the file.
    my append2BackupLog("Backup of " & fileName)
    else
    -- Both files exist, so check if the file in the source folder is newer.
    if (modification date of file fileName) > (modification date of file sourceFileName of folder backupFolder) then
    -- We need to rename the old backup file before we make a backup copy of the newer file.
    set thisDateAndTime to modification date of file sourceFileName of folder backupFolder
    -- Get the current date and time formatted.
    set thatDateAndTime to my formatDateAndTime(thisDateAndTime)
    -- We need to get the file name minus the extension.
    set oldTID to AppleScript's text item delimiters -- Get the current text item delimiters (TIDs).
    set AppleScript's text item delimiters to {"."} -- Set them to ".".
    set justFileName to first text item of sourceFileName -- Get the filename before the "."
    set AppleScript's text item delimiters to oldTID -- Restore the TIDs to what they were.
    -- Build the new file name for the old backup file.
    set newFileName to justFileName & thatDateAndTime & "." & sourceFileExtension
    -- Rename the file in the backup area and take a copy of the newer file.
    set name of file (sourceFileName as text) of folder backupFolder to newFileName
    duplicate file fileName to folder backupFolder
    -- Write the log file entry's for the file rename and the file backup.
    my append2BackupLog("Renamed old backup file to " & newFileName)
    my append2BackupLog("Backup of " & fileName)
    end if
    end if
    end tell
    end processAFile
    -- Format the specified date & time into a string of the form "dd-mm-yy (hhmmss)".
    on formatDateAndTime(thisDateAndTime)
    set dateString to short date string of thisDateAndTime
    set timeString to time string of thisDateAndTime
    set fileDateString to "" as text
    repeat with iWord in words of dateString
    set fileDateString to fileDateString & "-" & text -2 thru -1 of ("0" & iWord)
    end repeat
    -- Format the time into "(hhmmss)".
    set fileTimeString to " (" as text
    repeat with iTime in words of timeString
    set fileTimeString to fileTimeString & iTime as text
    end repeat
    set fileTimeString to fileTimeString & ")" as text
    -- Set the return parameter to the result and return.
    return fileDateString & fileTimeString
    end formatDateAndTime
    -- This routine writes the specified message to the end of the log file.
    -- NOTE - the log file is assumed to be already open with write access.
    on append2BackupLog(logMsg)
    global backupLog -- Global variable that defines the path to the log file.
    -- Get the current date and time formatted.
    set dateString to short date string of (get current date) & space & time string of (get current date)
    try
    write (dateString & " " & logMsg & return as text) to backupLog starting at eof
    end try
    end append2BackupLog
    Yvan KOENIG (from FRANCE samedi 3 mars 2007 21:23:33)

  • Has anybody else noticed that Find/Change searched according to -

    Has anybody else noticed that Find/Change searched according to date added?  It doesn't go page by page — it searches in the ORDER that text was added to a document.
    For instance, if you started with Pages 300-400, then added text to page 200, then added text to pages 100-200, THAT IS THE ORDER Find/Change will search.  Crazy, no?
    By the way, does anyone know how to FORCE Find/Change to always center a spread?  Currently, it moves the various pages all over the place during a search …

    We are using Exchange 2010 and IOS 6.0.1 and seeing this issue with exceptions associated to recurring meetings on both the iPad and iPhone. 
    Oddly, you can make the first change (time of meeting, for example) to an exception in the series and have the change sync from Outlook 2010 to the iPad. If you attempt to make a second change to the same exception, the 2nd change does not sync to the IOS device.  Thoughts?

  • Database error text.. "Resource limit exceeded. MSGID=  Job=753531/IBPADM/WP05"

    Hello All,
    We are getting below runtime errors
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
    Short text
        SQL error in the database when accessing a table.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    How to correct the error
        Database error text........: "Resource limit exceeded. MSGID=  Job=753531/IBPADM/WP05""
       Internal call code.........: "[RSQL/OPEN/PRPS ]"
        Please check the entries in the system log (Transaction SM21).
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
        "SAPLCATL2" or "LCATL2U17"
        "CATS_SELECT_PRPS"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
        In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    System environment
        SAP-Release 700
        Application server... "SAPIBP0"
        Network address...... "3.14.226.140"
        Operating system..... "OS400"
        Release.............. "7.1"
           Character length.... 16 Bits
        Pointer length....... 64 Bits
        Work process number.. 5
        Shortdump setting.... "full"
        Database server... "SAPIBP0"
        Database type..... "DB400"
        Database name..... "IBP"
        Database user ID.. "R3IBPDATA"
        Terminal................. "KRSNBRB032"
        Char.set.... "C"
        SAP kernel....... 721
        created (date)... "May 15 2013 01:29:20"
        create on........ "AIX 1 6 00CFADC14C00 (IBM i with OS400)"
        Database version. "DB4_71"
    Patch level. 118
    Patch text.. " "
    Database............. "V7R1"
    SAP database version. 721
    Operating system..... "OS400 1 7"
    Memory consumption
    Roll.... 0
    EM...... 12569376
    Heap.... 0
    Page.... 2351104
    MM Used. 5210400
    MM Free. 3166288
    Information on where terminated
        Termination occurred in the ABAP program "SAPLCATL2" - in "CATS_SELECT_PRPS".
        The main program was "CATSSHOW ".
        In the source code you have the termination point in line 67
        of the (Include) program "LCATL2U17".
        The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
        procedure "CATS_SELECT_PRPS" "(FUNCTION)", but it was neither handled locally
         nor declared
        in the RAISING clause of its signature.
        The procedure is in program "SAPLCATL2 "; its source code begins in line
        1 of the (Include program "LCATL2U17 ".
    The exception must either be prevented, caught within proedure
    "CATS_SELECT_PRPS" "(FUNCTION)", or its possible occurrence must be declared in
      the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    SM21: Log
    Database error -904 at PRE access to table PRPS
    > Resource limit exceeded. MSGID= Job=871896/VGPADM/WP05
    Run-time error "DBIF_RSQL_SQL_ERROR" occurred
    Please help
    Regards,
    Usha

    Hi Usha
    Could you check this SAP Notes
      1930962 - IBM i: Size restriction of database tables
    1966949 - IBM i: Runtime error DBIF_DSQL2_SQL_ERROR in RSDB4UPD
    BR
    SS

  • Distinguish Infoobject Text according to an attribute

    Hi experts,
    I have an infoobject named ZMATX(Material number).I extract text data from 4 different SAP R/3 and use 0MATERIAL_TEXT datasource.There are common material numbers for these systems however texts are different.I want to distinguish texts according to an attribute(e.g.source system).
    Of course, creating an ODS can solve my problem.However, i do not want to read data for every material one by one and do not want to store text data in an infocube.
    I am looking forward your recommendations,
    Thx,
    Kevser
    (SAP BW 3.1 )

    Hi again,
    When i added an compounding attribute i got  error messages below.
    - (Message id : R7577 ) InfoObject ZMATX or an InfoObject with reference to this objects is still being used in InfoCubes or ODS objects that contain data.
    - (Message id : R7575) The compound or referencing of characteristic &V1 was changed.
    - (Message id : R7578) Diagnosis : InfoObject ZMATX should be changed. InfoCube ZXXX, in which this InfoObject is still being used, still contains data however.
    How can i solve this problem without deleting data from any cube?

  • SQL Extended Events for finding errors

    SQL Extended Events for finding errors, how to find out more than SQL text, like the stored procedure?
    SQL 2012, 2008 and 2005 (not much 2005)
    We had an agent job that was not completing and was not giving any errors. Turned out that too large a number was being SET into an integer field. We set up a SQL Extended Events based on the following URL. It gave us the SQL text and that did help. BUt
    how could we have done even more to find the error? Is there a way to find the stored procedure? Because the SQL text was pretty generic. What else can be used to find errors that are not being reported back to the agent job?
    http://www.brentozar.com/archive/2013/08/what-queries-are-failing-in-my-sql-server/

    Hi,
    Are you able to manually execute the stored procedure? How many steps are there in this job?
    You may create a test job with only one step running this stored procedure and test the result.
    As Kalman suggested, please check the relative message in job history and event viewer.
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for