Catching error in BAPI

Hi experts,
I am new to BAPI.
Can anyone tell me " How to catch error in BAPI ".
Thanks,
Shipra

Hi,
In the BAPI return internal table you have to check for the Error or ABort message types..
Ex..
Check for error or abort messages
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
  EXIT.
ENDLOOP.
IF SY-SUBRC = 0.
  WRITE: / 'Exception occured'.
ELSE.
   WRITE: / 'Update is successful'.
ENDIF.
Thanks
Naren

Similar Messages

  • How do we catch errors in Servlets?

    Hello, i 'm using Servlets and JDBC.
    i'm having a form.html where the user inserts data in the input fields.
    It's a registration page.
    I would like to check for possible user errors.
    For example if the user has not typed anything in a required field like field "password", so the field is null.
    I would like to inform the user that this field is null and he/she shall type in it again.
    (I'm talking generally not only for a registration page but to any page that requires correct data)
    *1.* Shall i use Javascript?
    *2.* Shall i direct the user to an error page where the page describes the error, what the user has to do in order to correct it and direct him back to the previous page?
    *3.* Shall i only use if/else?
    I would appreciate if sm could give me some advice on this matter or post me some links related to catch errors in servlets.
    Thanks, in advance!
    Edited by: g_p_java on Jul 11, 2009 12:15 PM

    Here is a possible approach to this issue:
    * use javascript to validate all textfields on the form client-side every time the user clicks the submit button. If it fails, put a message in red next to the problem textfield describing what the problem is. Dont allow submit if there are validation issues.
    * More than one validation may apply to a given textfield. For instance, the field cant be empty is checked before its checked for an invalid date.
    * Check to see if its an invalid date format first (example: mm/dd/yyyy), then check to see if its an invalid date (non leap year for example).
    * recheck all validation back on the server (necessary if user disabled javascript or a hacker bypasses your client side validation). Redraw the page and populate it, but put messages next to the problem fields as you did for javascript.
    * The invalid date format and invalid date should pass if given an empty value since the its the empty value validation (if it applicable for that field) that is repsonsible for that test.
    *since you will be applying this validation over and over again for all your JSP pages for this project and future projects, it may be a good idea to create reusable code for it. You may also research google for good approaches.
    Your javascript code should be from a single javascript file that is included into each JSP page so it can be reused.
    @see http://www.xs4all.nl/~sbpoley/webmatters/formval.html
    * All textfields should be validated throughly so your database never gets bad data (data is king).
    * common things to check for:
    invalid date format, invalid date, empty textfield, invalid email address, invalid telephone number format, invalid zip code, etc, etc, etc

  • Time machine osx 10.6.8 problem slow backupd CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. mdworker32 kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

    Hello Guys I have a problem that I can not get to the bottom.
    Time Machine has suddenly stopped working it really slow to make up. Copy a few kb at a time and long hours it takes to close the back. (up to a few tens of megs, 10, 20 Mb).
    I made ​​the following list of tests that will follow along with the log file.
    First of all I made ​​a copy as root with Carbon Copy Cloner disk of the iMac. (So that they can go back in case of disaster)
    Following the guides Pondini (pondini.org) I did the following steps:
    1) Changed the internfaccia FW800 to USB hard drive (does not change anything, still slow)
    2) Changed to another external HD for time machine with FW800 and USB (nothing changes still slow)
    3) Recreated the full backup with Time Machine on either drive (still slow)
    4) Reinstalled the 10.6.8 Combo Pack (still slow)
    5) Re spootlight indexed with the disk (still slow)
    6) At this point, in desperation I reinstalled on the internal drive of my iMac 10.6.8 creating a new user, User Migration Assistant from my hd clone with Carbon Copy Cloner. Recreated the full backup with Time Machine.
    The first full backup is fast, but slow incremental backups are back (as to 'start a few kb at a time).
    I compared the log files with those of my other machine with same configuration and I found these errors:
    backupdir [19376]: CFPropertyListCreateFromXMLData (): Old-style plist parser: missing semicolon in dictionary.
    mdworker32 [20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint () to catch errors logged as They Are.
    You know help me? I saw that this error is from 10.5 to 10.7, but no one has found a real solution to the issue.
    I never installed antivirus software and tried with different external drives COPN capacity equal to or greater than the external drive. Only at the end I tried to divide the external drive to back up into two parts by a 1.5 TB and 500 GB but with the same mistakes that I have described.
    thanks
    Stefano
    Ciao  Ragazzi ho un problema a cui non riesco a venire a capo.
    improvvisamente time machine ha smesso di funzionare va veramente lento a fare backup. Copia pochi kb alla volta e impiega tanto tempo ore per chiudere il backup. (backup di poche decine di mega, 10, 20 Mb).
    Ho effettuato le seguenti prove che vi elenco di seguito insieme al file log.
    Prima di tutto ho fatto una copia  come utente root con Carbon Copy cloner del disco del imac.(in maniera tale di poter tornare indietro in caso di disastro)
    Seguendo le guide di Pondini (pondini.org) ho effettuato i seguenti passaggi:
    1) Cambiato internfaccia del disco rigido da FW800 a USB (non cambia nulla, sempre lento)
    2) Cambiato hd esterno con un altro per time machine con FW800 e USB (non cambia nulla sempre lento)
    3) Ricreato il full Backup con time machine su entrambe i dischi (sempre lento)
    4) Reinstallato il Combo pack 10.6.8 (sempre lento)
    5) Re indicizzato con spootlight il disco (sempre lento)
    6) A questo punto preso dalla disperazione ho reinstallato sul disco interno del mio imac il 10.6.8 creando un nuovo utente, Assistente migrazione utente dal mio hd clonato con Carbon copy cloner. Ricreato il backup completo con time machine.
    Il primo full backup è veloce, ma i backup incrementali sono tornati lentissimi (come all' inizio pochi kb alla volta).
    Ho confrontato il file log con quelli di un mio altro mac con la stessa configurazione ed ho trovato questi errori:
    backupd[19376]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    mdworker32[20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Sapete darmi aiuto? Ho visto che questo errore è presente dal 10.5 al 10.7 ma nessuno ha trovato una vera soluzione alla questione.
    Non ho mai installato software antivirus ed ho provato con diversi dischi esterni copn capacità uguale o superiore al disco esterno. Solo alla fine ho provato a dividere il disco esterno del backup in due parti una da 1,5TB e una da 500 Gb ma con i medesimi errori che vi ho descritto.
    grazie
    Stefano
    File LOG:
    Jan  9 00:31:37 ihomez newsyslog[19803]: logfile turned over
    Jan  9 00:33:26 ihomez com.apple.backupd[19376]: Copied 534.0 GB of 1020.2 GB, 649387 of 1786353 items
    Jan  9 01:33:27 ihomez com.apple.backupd[19376]: Copied 728.3 GB of 1020.2 GB, 805293 of 1786353 items
    Jan  9 02:33:27 ihomez com.apple.backupd[19376]: Copied 938.5 GB of 1020.2 GB, 807979 of 1786353 items
    Jan  9 02:55:58 ihomez com.apple.backupd[19376]: Copied 808871 files (1012.7 GB) from volume i5 2TB.
    Jan  9 03:08:03 ihomez com.apple.backupd[19376]: No pre-backup thinning needed: 100.0 MB requested (including padding), 383.44 GB available
    Jan  9 03:10:13 ihomez backupd[19376]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 03:27:54 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sampling process 12446 for 5 seconds with 10 milliseconds of run time between samples
    Jan  9 03:27:59 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sampling completed, processing symbols...
    Jan  9 03:28:00 ihomez mds[19366]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    Jan  9 03:28:00 ihomez [0x0-0x12012].com.getdropbox.dropbox[0]: Sample analysis of process 12446 written to file /Users/home/.dropbox/s4f0a50aa
    Jan  9 03:33:30 ihomez com.apple.backupd[19376]: Copied 717781 files (13.0 MB) from volume i5 2TB.
    Jan  9 04:06:38 ihomez com.apple.backupd[19376]: Starting post-backup thinning
    Jan  9 04:06:38 ihomez com.apple.backupd[19376]: No post-back up thinning needed: no expired backups exist
    Jan  9 04:06:39 ihomez com.apple.backupd[19376]: Backup completed successfully.
    Jan  9 04:33:45 ihomez com.apple.backupd[20287]: Starting standard backup
    Jan  9 04:33:46 ihomez com.apple.backupd[20287]: Backing up to: /Volumes/Time Machime LA/Backups.backupdb
    Jan  9 04:33:46 ihomez mds[19366]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    Jan  9 04:40:18 ihomez com.apple.backupd[20287]: No pre-backup thinning needed: 100.0 MB requested (including padding), 382.47 GB available
    Jan  9 04:59:25 ihomez backupd[20287]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 05:31:48 ihomez com.apple.backupd[20287]: Copied 720482 files (13.0 MB) from volume i5 2TB.
    Jan  9 05:45:22 ihomez com.apple.backupd[20287]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.98 GB available
    Jan  9 06:05:14 ihomez backupd[20287]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 06:32:57 ihomez com.apple.backupd[20287]: Copied 12.7 MB of 12.7 MB, 538084 of 538084 items
    Jan  9 06:36:52 ihomez com.apple.backupd[20287]: Copied 717781 files (12.7 MB) from volume i5 2TB.
    Jan  9 08:12:05 ihomez mds[19366]: (Normal) DiskStore: Creating index for /
    Jan  9 08:12:30 ihomez System Preferences[20910]: Preference bundle "/Users/home/Library/PreferencePanes/Archives.prefPane" is misplaced, ignoring...
    Jan  9 08:12:32 ihomez System Preferences[20910]: Error loading /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio:  dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHD Audio, 262): no suitable image found.  Did find:\n    /Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: no matching architecture in universal wrapper
    Jan  9 08:12:32 ihomez System Preferences[20910]: Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x20056cb80 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
    Jan  9 08:23:40 ihomez mdworker[20945]: Error, could not create MachMessagePort for com.apple.AddressBook.abd
    Jan  9 08:23:46 ihomez mdworker32[20948]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:23:52 ihomez mdworker32[20950]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:30:47 ihomez com.apple.Finder[225]: Failed to send message to backup server: error = -2
    Jan  9 08:30:41 ihomez com.apple.backupd[20287]: Starting post-backup thinning
    Jan  9 08:30:49 ihomez com.apple.backupd[20287]: No post-back up thinning needed: no expired backups exist
    Jan  9 08:30:51 ihomez com.apple.launchd[1] (0x1001017c0.mach_init.mdworker[20949]): Exited: Killed
    Jan  9 08:35:39 ihomez mdworker[20959]: (Normal) Import: Spotlight giving up on importing file /Users/home/Desktop/testdisk-6.11.3/recupero/recup_dir.34/f2515784.abcdp after 240.256 seconds, 239.841 seconds of which was spent in the Spotlight importer plugin.
    Jan  9 08:35:39 ihomez com.apple.launchd[1] (0x1001017c0.mach_init.mdworker[20959]): Exited with exit code: 75
    Jan  9 08:36:55 ihomez com.apple.backupd[20287]: Backup completed successfully.
    Jan  9 08:37:17 ihomez mdworker32[20974]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 08:39:36 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 08:41:09 ihomez mdworker[20969]: Corrupt JPEG data: 10053 extraneous bytes before marker 0xed
    Jan  9 08:41:37 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: zip importer encountered an error (3) scanning "/Users/home/Downloads/Griffin Seconda serie.zip".
    Jan  9 08:45:44 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: FontImporter: Validation failed - "/Users/home/Library/Fonts Disabled/MT Extra".
    Jan  9 08:45:44 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[20969]: FontImporter: Validation Result - "<CFArray 0x10204f310 [0x7fff70eaeee0]>{type = mutable-small, count = 5, values = (\n    0 : <CFString 0x102762af8 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityInformation"}\n    1 : <CFString 0x102762b18 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityTechnicalError"}\n    2 : <CFString 0x102762b58 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityMajorError"}\n    3 : <CFString 0x102762b78 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityFatalError"}\n    4 : <CFString 0x102762b38 [0x7fff70eaeee0]>{contents = "kATSFontTestSeverityMinorError"}\n)}".
    Jan  9 08:45:55 ihomez mdworker[20969]: Error, could not create MachMessagePort for com.apple.AddressBook.abd
    Jan  9 08:46:09 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:03:32 ihomez mdworker[21011]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:04:02: --- last message repeated 5 times ---
    Jan  9 09:05:15 ihomez mdworker[20969]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 09:05:43 ihomez mdworker32[21036]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:05:44 ihomez mdworker[20969]: iCal.mdimporter: could not parse ICS file: /Applications/Microsoft Office 2008/Office/EntourageCore.framework/Versions/12/Resources/it.lproj/Timezones.ic s
    Jan  9 09:13:28 ihomez mdworker32[21053]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:16:17 ihomez mdworker32[21074]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan  9 09:33:45 ihomez com.apple.backupd[21102]: Starting standard backup
    Jan  9 09:33:46 ihomez com.apple.backupd[21102]: Backing up to: /Volumes/Time Machime LA/Backups.backupdb
    Jan  9 09:40:46 ihomez com.apple.backupd[21102]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.68 GB available
    Jan  9 09:57:57 ihomez backupd[21102]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 10:29:58 ihomez com.apple.backupd[21102]: Copied 718890 files (12.9 MB) from volume i5 2TB.
    Jan  9 10:43:35 ihomez com.apple.backupd[21102]: No pre-backup thinning needed: 100.0 MB requested (including padding), 381.48 GB available
    Jan  9 11:02:16 ihomez backupd[21102]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan  9 11:31:08 ihomez com.apple.backupd[21102]: Copied 12.7 MB of 12.7 MB, 642967 of 642967 items
    Jan  9 11:33:07 ihomez com.apple.backupd[21102]: Copied 716189 files (12.7 MB) from volume i5 2TB.
    Jan  9 13:26:26 ihomez com.apple.backupd[21102]: Backup deletion was canceled by user
    Jan  9 13:26:26 ihomez com.apple.backupd[21102]: Starting post-backup thinning
    Jan  9 13:26:27 ihomez com.apple.backupd[21102]: Backup completed successfully.

    Thanks for the quick response.
    I followed the steps you listed and also remove the files that were creating problems spootlight, including the audio plugin and the panel preferences file.
    Then I stopped by the timemachine reindexed spootlight 'option in the preferences panel spootight privacy. After I restarted my iMac and formatted the external drive again, Time Machine and restarting a full backup. This morning after a quick full backup and disk indexing completed incremental backups are always slow. Proceeds with a few kb at a time. I resend you the log files and screen capture. My iMac is constantly backed up.
    Thank you for your time.
    Stefano
    File log:
    Jan 10 00:30:05 ihomez newsyslog[757]: logfile turned over
    Jan 10 00:43:30 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling process 278 for 5 seconds with 10 milliseconds of run time between samples
    Jan 10 00:43:35 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling completed, processing symbols...
    Jan 10 00:43:35 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sample analysis of process 278 written to file /Users/home/.dropbox/s4f0b7ba2
    Jan 10 00:44:08 ihomez mdworker32[805]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:00:51 ihomez mdworker[579]: -[ABAddressBook sharedAddressBook] Can't ABACQUIRE_FILE_LOCK /SourceCache/AddressBook/AddressBook-883/Framework/AddressBook/ABAddressBook.m: 3314
    Jan 10 01:04:41 ihomez osascript[897]: Initializer-based scripting additions have been deprecated. Please update this addition: "/Library/ScriptingAdditions/QXPScriptingAdditions.osax"
    Jan 10 01:07:56 ihomez mdworker32[930]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:08:01 ihomez mdworker32[931]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:09:44 ihomez com.apple.backupd[479]: Copied 94.7 GB of 990.4 GB, 506176 of 1771170 items
    Jan 10 01:13:34 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling process 278 for 5 seconds with 10 milliseconds of run time between samples
    Jan 10 01:13:39 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sampling completed, processing symbols...
    Jan 10 01:13:39 ihomez [0x0-0xe00e].com.getdropbox.dropbox[278]: Sample analysis of process 278 written to file /Users/home/.dropbox/s4f0b82ad
    Jan 10 01:14:19 ihomez mdworker32[946]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 01:20:02 ihomez mdworker32[969]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:00:16 ihomez mdworker32[1025]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:09:44 ihomez com.apple.backupd[479]: Copied 316.2 GB of 990.4 GB, 530801 of 1771170 items
    Jan 10 02:10:51 ihomez mdworker32[1052]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:11:00 ihomez mdworker[937]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 02:15:01 ihomez mdworker[937]: Corrupt JPEG data: 10053 extraneous bytes before marker 0xed
    Jan 10 02:15:37 ihomez mdworker32[1063]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:30:55 ihomez mdworker32[1098]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 02:38:32 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[937]: FontImporter: Validation failed - "/Users/home/Library/Fonts Disabled/MT Extra".
    Jan 10 02:38:32 ihomez /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[937]: FontImporter: Validation Result - "<CFArray 0x10256a570 [0x7fff70e20ee0]>{type = mutable-small, count = 5, values = (\n    0 : <CFString 0x104eb5af8 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityInformation"}\n    1 : <CFString 0x104eb5b18 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityTechnicalError"}\n    2 : <CFString 0x104eb5b58 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityMajorError"}\n    3 : <CFString 0x104eb5b78 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityFatalError"}\n    4 : <CFString 0x104eb5b38 [0x7fff70e20ee0]>{contents = "kATSFontTestSeverityMinorError"}\n)}".
    Jan 10 02:38:55 ihomez mdworker[937]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 02:38:56 ihomez mdworker32[1115]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jan 10 03:09:44 ihomez com.apple.backupd[479]: Copied 517.9 GB of 990.4 GB, 651137 of 1771170 items
    Jan 10 04:09:45 ihomez com.apple.backupd[479]: Copied 723.7 GB of 990.4 GB, 787449 of 1771170 items
    Jan 10 05:09:46 ihomez com.apple.backupd[479]: Copied 947.2 GB of 990.4 GB, 789860 of 1771170 items
    Jan 10 05:20:55 ihomez com.apple.backupd[479]: Copied 790597 files (982.2 GB) from volume i5 2TB.
    Jan 10 05:32:32 ihomez com.apple.backupd[479]: No pre-backup thinning needed: 1.60 GB requested (including padding), 873.52 GB available
    Jan 10 05:33:14 ihomez mdworker[1452]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:35:07: --- last message repeated 5 times ---
    Jan 10 05:35:36 ihomez backupd[479]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:35:45 ihomez mdworker[1475]: CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    Jan 10 05:59:42 ihomez com.apple.backupd[479]: Copied 699486 files (1.9 MB) from volume i5 2TB.
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: Starting post-backup thinning
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: No post-back up thinning needed: no expired backups exist
    Jan 10 06:34:52 ihomez com.apple.backupd[479]: Backup completed successfully.
    Jan 10 07:10:09 ihomez com.apple.backupd[1752]: Starting standard backup
    Jan 10 07:10:09 ihomez com.apple.backupd[1752]: Backing up to: /Volumes/TimeMachine LA/Backups.backupdb

  • Error during BAPI while uploading Material data through MM01

    Hi all,
    i am facing one problem when uploading Material data thorough BAPI in MM01.i am attaching the code below and the error given.
    but in the debugger all the value is being stored.
    REPORT  ZFINISHED_MAT.
    Data: Begin of legacy_data occurs 0,
         MATNR LIKE MARA-MATNR,
         MBRSH LIKE MARA-MBRSH,            "Industry Sector
         MTART LIKE MARA-MTART,            "Matl Type
         WERKS LIKE MARD-WERKS,            "Plant
         LGORT LIKE MARD-LGORT,            "Storage location
         VKORG LIKE MVKE-VKORG,
         VTWEG LIKE MVKE-VTWEG,
         MAKTX LIKE MAKT-MAKTX,             "Matl Desc.
         MEINS LIKE MARA-MEINS,             "Base UOM
         MATKL LIKE MARA-MATKL,             "Matl.Grp
    *     BISMT LIKE MARA-BISMT,
         SPART LIKE MARA-SPART,             "Division
    *     BRGEW LIKE MARA-BRGEW,             "Gross weight
         GROES LIKE MARA-GROES,
         FERTH LIKE MARA-FERTH,
         ZEINR LIKE MARA-ZEINR,
         TAXKM1 LIKE MLAN-TAXM1,
         TAXKM2 LIKE MLAN-TAXM2,
         TAXKM3 LIKE MLAN-TAXM3,
         TAXKM4 LIKE MLAN-TAXM4,
         KTGRM LIKE MVKE-KTGRM,
    *     GEWEI LIKE MARA-GEWEI,             "Weight unit
    *     NTGEW LIKE MARA-NTGEW,             "Net weight
    *     KLART LIKE RMCLF-KLART,
         MTVFP LIKE MARC-MTVFP,             "Availibility Check
    *     XGCHP LIKE MARA-XGCHP,
         XCHPF LIKE MARA-XCHPF,             "Batch Management
         TRAGR LIKE MARA-TRAGR,
         LADGR TYPE MARC-LADGR,
         VPRSV LIKE MBEW-VPRSV,            "Price Control
         VERPR LIKE MBEW-VERPR,
    *     SPRAS LIKE MAKT-SPRAS,
      END OF LEGACY_DATA.
    DATA: BEGIN OF IT_MAKT OCCURS 0.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARD1 LIKE BAPI_MARD,
    BAPI_MARDX1 LIKE BAPI_MARDX, " Checkbox Structure for BAPI_MARD
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MVKE1 LIKE BAPI_MVKE,
    BAPI_MVKEX1 LIKE BAPI_MVKEX, " Checkbox Structure for BAPI_MVKE
    BAPI_MLAN1 LIKE BAPI_MLAN,
    BAPI_MLANX1 LIKE bapi_mlan1, " Checkbox Structure for BAPI_MLAN
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *              $PARAMETERS DECLARATION$
    SELECTION-SCREEN BEGIN OF BLOCK B11
                              WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME. " DEFAULT 'C:\TEST1.XLS'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK B11 .
    *              $DATA DECLARATION$
    *DATA : BDC_DATA LIKE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    DATA : IT_EXCEL TYPE STANDARD TABLE OF  ALSMEX_TABLINE INITIAL SIZE 0 WITH HEADER LINE,
            IT_EXCEL_DUMMY TYPE ALSMEX_TABLINE.
    DATA : MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : L_MSTRING(480).
    DATA :L_SUBRC LIKE SY-SUBRC.
    DATA: V_FILE TYPE STRING.
    *              $AT-SELECTON SCREEN DECLARATION$
    AT SELECTION-SCREEN ON P_FILE.
      IF P_FILE IS INITIAL.
        MESSAGE E398(00) WITH 'FILE NAME NEEDS TO BE SPECIFIED'.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         PROGRAM_NAME        = SYST-CPROG
    *   DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME          = 'P_FILE'
       IMPORTING
         FILE_NAME           = P_FILE
    start-of-selection.
    perform data_fetch_to_xls.
    perform insertion.
    *&      Form  data_fetch_to_xls
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM data_fetch_to_xls .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = 1
          I_BEGIN_ROW             = 2
          I_END_COL               = 25
          I_END_ROW               = 2
        TABLES
          INTERN                  = IT_EXCEL
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        WRITE: /'ERROR UPLOADING XLS FILE FROM PRESENTATION SERVER !' ,
               /'RETURN CODE : ', SY-SUBRC.
      ELSE.
    *************NOW FILL DATA FROM EXCEL INTO FINAL LEGACY DATA ITAB----LEGACY_DATA***************
        IF NOT IT_EXCEL[] IS INITIAL.
          CLEAR LEGACY_DATA.
          REFRESH LEGACY_DATA[].
          LOOP AT IT_EXCEL.
            IT_EXCEL_DUMMY = IT_EXCEL.
            AT NEW COL.
              CASE IT_EXCEL_DUMMY-COL.
                WHEN 1.
                  LEGACY_DATA-MATNR = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 2.
                  LEGACY_DATA-MBRSH = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 3.
                  LEGACY_DATA-MTART = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 4.
                  LEGACY_DATA-WERKS = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 5.
                  LEGACY_DATA-LGORT = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 6.
                  LEGACY_DATA-VKORG = IT_EXCEL_DUMMY-VALUE(4).
                 WHEN 7.
                  LEGACY_DATA-VTWEG = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 8.
                  LEGACY_DATA-MAKTX = IT_EXCEL_DUMMY-VALUE(40).
                WHEN 9.
                  LEGACY_DATA-MEINS = IT_EXCEL_DUMMY-VALUE(3).
                WHEN 10.
                  LEGACY_DATA-MATKL = IT_EXCEL_DUMMY-VALUE(9).
                WHEN 11.
                  LEGACY_DATA-SPART = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 12.
                  LEGACY_DATA-GROES = IT_EXCEL_DUMMY-VALUE(32).
                WHEN 13.
                  LEGACY_DATA-FERTH = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 14.
                  LEGACY_DATA-ZEINR = IT_EXCEL_DUMMY-VALUE(22).
                 WHEN 15.
                  LEGACY_DATA-TAXKM1 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 16.
                  LEGACY_DATA-TAXKM2 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 17.
                  LEGACY_DATA-TAXKM3 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 18.
                  LEGACY_DATA-TAXKM4 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 19.
                  LEGACY_DATA-KTGRM = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 20.
                  LEGACY_DATA-MTVFP = IT_EXCEL_DUMMY-VALUE(2).
                 WHEN 21.
                  LEGACY_DATA-XCHPF = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 22.
                  LEGACY_DATA-TRAGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 23.
                  LEGACY_DATA-LADGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 24.
                  LEGACY_DATA-VPRSV = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 25.
                  LEGACY_DATA-VERPR = IT_EXCEL_DUMMY-VALUE(14).
                  APPEND LEGACY_DATA.
                  CLEAR LEGACY_DATA.
              ENDCASE.
            ENDAT.
            AT END OF ROW.
            ENDAT.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " data_fetch_to_xls
    *&      Form  insertion
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM insertion .
    LOOP AT legacy_data.
    * Header
    BAPI_HEAD-MATERIAL = legacy_data-MATNR.
    BAPI_HEAD-IND_SECTOR = legacy_data-MBRSH.
    BAPI_HEAD-MATL_TYPE = legacy_data-MTART.
    BAPI_HEAD-BASIC_VIEW = 'X'.
    BAPI_HEAD-SALES_VIEW = 'X'.
    BAPI_HEAD-STORAGE_VIEW = 'X'.
    *BAPI_HEAD-PURCHASE_VIEW = 'X'.
    BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
    REFRESH IT_MAKT.
    *IT_MAKT-LANGU = legacy_data-SPRAS.
    IT_MAKT-MATL_DESC = legacy_data-MAKTX.
    APPEND IT_MAKT.
    BAPI_MARD1-PLANT = legacy_data-WERKS.
    BAPI_MARD1-STGE_LOC = legacy_data-LGORT.
    BAPI_MARDX1-PLANT = legacy_data-WERKS.
    BAPI_MARDX1-STGE_LOC = legacy_data-LGORT.
    ** Client Data - Basic
    BAPI_MARA1-MATL_GROUP = legacy_data-MATKL.
    *bapi_mara1-OLD_MAT_NO = legacy_data-bismt.
    BAPI_MARA1-BASE_UOM = legacy_data-MEINS.
    BAPI_MARA1-PROD_MEMO = LEGACY_DATA-FERTH.
    BAPI_MARA1-SIZE_DIM = LEGACY_DATA-GROES.
    BAPI_MARA1-DOCUMENT = LEGACY_DATA-ZEINR.
    BAPI_MARA1-BATCH_MGMT = LEGACY_DATA-XCHPF.
    *BAPI_MARA1-UNIT_OF_WT = legacy_data-GEWEI.
    BAPI_MARA1-TRANS_GRP = legacy_data-TRAGR.
    BAPI_MARA1-DIVISION = legacy_data-SPART.
    BAPI_MARAX-MATL_GROUP = 'X'.
    *BAPI_MARAX-OLD_MAT_NO = 'X'.
    BAPI_MARAX-BASE_UOM = 'X'.
    BAPI_MARAX-PROD_MEMO = 'X'.
    BAPI_MARAX-SIZE_DIM = 'X'.
    BAPI_MARAX-DOCUMENT = 'X'.
    BAPI_MARAX-BATCH_MGMT = 'X'.
    *BAPI_MARAX-UNIT_OF_WT = 'X'.
    BAPI_MARAX-TRANS_GRP = 'X'.
    BAPI_MARAX-DIVISION = 'X'.
    *SALES
    BAPI_MVKE1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKE1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKE1-DELYG_PLNT = legacy_data-DWERK.
    BAPI_MVKE1-ACCT_ASSGT = legacy_data-KTGRM.
    BAPI_MVKEX1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKEX1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKEX1-DELYG_PLNT = 'X'.
    BAPI_MVKEX1-ACCT_ASSGT = 'X'.
    ** Plant - Purchasing
    BAPI_MARC1-PLANT = legacy_data-WERKS.
    BAPI_MARC1-LOADINGGRP = legacy_data-LADGR.
    BAPI_MARC1-AVAILCHECK = legacy_data-MTVFP.
    *BAPI_MARC1-MRP_GROUP =  legacy_data-disgr.
    BAPI_MARCX-PLANT = legacy_data-WERKS.
    BAPI_MARCX-LOADINGGRP = 'X'.
    BAPI_MARCX-AVAILCHECK = 'X'.
    *BAPI_MARCX-MRP_GROUP =  'X'.
    * Accounting
    BAPI_MBEW1-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEW1-PRICE_CTRL = legacy_data-VPRSV.
    BAPI_MBEW1-STD_PRICE =  legacy_data-VERPR.
    *BAPI_MBEW1-VAL_CLASS =  legacy_data-BKLAS.
    *BAPI_MBEW1-STD_PRICE = legacy_data-STPRS.
    *BAPI_MBEW1-PRICE_UNIT = legacy_data-PEINH.
    BAPI_MBEWX-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEWX-PRICE_CTRL = 'X'.
    BAPI_MBEWX-STD_PRICE =  'X'.
    *BAPI_MBEWX-VAL_CLASS =  'X'.
    * TAX JURISDICTION CODE
    BAPI_MLAN1-TAXCLASS_1 = LEGACY_DATA-TAXKM1.
    BAPI_MLAN1-TAXCLASS_2 = LEGACY_DATA-TAXKM2.
    BAPI_MLAN1-TAXCLASS_3 = LEGACY_DATA-TAXKM3.
    BAPI_MLAN1-TAXCLASS_4 = LEGACY_DATA-TAXKM4.
    BAPI_MLAN1-TAXCLASS_1 = 'X'.
    BAPI_MLAN1-TAXCLASS_2 = 'X'.
    BAPI_MLAN1-TAXCLASS_3 = 'X'.
    BAPI_MLAN1-TAXCLASS_4 = 'X'.
    *--- BAPI to create material
    call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
    HEADDATA = BAPI_HEAD
    CLIENTDATA = BAPI_MARA1
    CLIENTDATAX = BAPI_MARAX
    *PLANTDATA = BAPI_MARC1
    *PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
    IMPORTING
    RETURN = BAPI_RETURN
    TABLES
    MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
    IF BAPI_RETURN-TYPE = 'E'.
    WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,legacy_data-maTNR.
    ELSEIF BAPI_RETURN-TYPE = 'S'.
    WRITE: 'Successfully created material' ,legacy_data-maTNR.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    " insertion
    The error: The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it does not contain an entr
    suggestion will be vry helpful,
    Kind Regards,
    Edited by: Prasenjit Sengupta on Nov 16, 2009 9:11 AM

    Hi Prasenjit,
    Did you get any solution for this as I am getting same error from BAPI to update MRP controller in MARC table.
    Regards,
    Suruchi

  • Catch error in BPM process

    I'm working with 11g.
    I have a BPM process and I want catch the system errors to redirect the work flow at a subprocess or in the particular form that can help external users
    I have tried with "evant subprocess" but don't work (BUG fix in only for PS5(11.1.1.6 version) )
    Can you help me?
    Thanks
    Elena

    Can you be more specific about the bug?
    It's true that the fault handling framework for recovery (as in BPEL) is in an upcoming release. But you can (in 11.1.1.4) put the activities that would generate errors in an embedded subprocess, then put a boundary catch event on the subprocess to catch and handle system and/or business errors. The flow out of whatever handles the error can rejoin the main flow or loop back to retry. A common pattern is to have to flow go to a human activity where the outcome of the activity determines whether to retry.
    You can also catch error events in an event subprocess, but you can't continue the main flow from there. That flow (within the event subprocess) either interrupts or is concurrent with the main flow.

  • How can we find error in BAPI Creation?

    Can any one help out in How to findout Errors in BAPI Creation and Usage?

    HI,
    you can findout error by declaring BAPI RETURN type structure .
    for ex:"
    DATA : return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
          EXPORTING
            sales_header_in     = header
            sales_header_inx    = headerx
          IMPORTING
            salesdocument_ex    = v_vbeln
          TABLES
            return              = return
            sales_items_in      = item
            sales_items_inx     = itemx
            sales_partners      = partner
            sales_conditions_in = i_conditions.
        LOOP AT return WHERE type = 'E' OR type = 'A'.
          EXIT.
        ENDLOOP.
    if helpful reward points.

  • More trouble with registering sapccmsr and EYE CATCH error

    Hello all,
    I saw that this was a topic in an earlier thread. That thread was very helpful for troubleshooting, but it seems I have everything properly set up and patched, but I am still receiving the dreaded EYE CATCH error. The system is a Unicode dual-stack XI system. Here are the details:
    sapccm4x registers with no problems.
    sapccmsr results in the following:
    <b>LE06201:xitadm 160% ./sapccmsr -j2ee -R pf=/sapmnt/XIT/profile/START_DVEBMGS00_LE06201
    INFO: CCMS agent sapccmsr working directory is /usr/sap/ccms/XIT_00/sapccmsr
    INFO: CCMS agent sapccmsr config file is /usr/sap/ccms/XIT_00/sapccmsr/csmconf
    INFO: Central Monitoring System is [XIT]. (found in config file)
    INFO: additional Central Monitoring System is [SLM]. (found in config file)
          additional CENTRAL system y/[n] ?   :
    INFO: found ini file /usr/sap/ccms/XIT_00/sapccmsr/sapccmsr.ini.
    INFO: Checking Distributed Statistical Records Library dsrlib.so
    INFO: DSR: Path /usr/sap/ccms/dsr for Distributed Statistical Records.
    INFO: checking version an Unicodeness of dsrlib.so
    INFO: DSR: Dynamic Library dsrlib.so (version 22) successfully loaded.
    INFO:
          CCMS version  20040229, 64 bit, multithreaded, Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    patch collection 2007/4, OSS note 1013331
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
          pid           26318
          profile       /sapmnt/XIT/profile/START_DVEBMGS00_LE06201
    ERROR: Cannot open Monitoring Segment 0 rtc = 245
    Last reported error: [249]  CCMS monitoring segment has wrong EYE CATCH. It seems to be created as non-unicode segment.
    This program runs as unicode. Please use non-unicode version
    INFO: dsr: dsrlib unloaded.
    EXITING with code 1</b>
    Based on the information in the earlier thread, I checked that the files are consistent in their Unicodeness:
    <b>LE06201:xitadm 35% pwd
    /sapmnt/XIT/exe
    LE06201:xitadm 165% sapccm4x -v
          CCMS version  20040229, 64 bit, multithreaded, Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    patch collection 2007/4, OSS note 1013331
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 166% sapccmsr -v
          CCMS version  20040229, 64 bit, multithreaded, Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    patch collection 2007/4, OSS note 1013331
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 167% saposcol -v
          SAPOSCOL version  COLL 20.94 640 - V3.73 64Bit, 64 bit, single threaded, Non-Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    COLL 20.94 640 - V3.73 64Bit
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 107% disp+work -v | more
    disp+work information
    kernel release                640
    kernel make variant           640_REL
    DBMS client library           OCI_920
    DBSL shared library version   640.00
    compiled on                   SunOS 5.8 Generic_117350-38 sun4u
    compiled for                  64 BIT
    compilation mode              UNICODE
    compile time                  Oct 29 2006 21:30:34
    update level                  0
    patch number                  155
    source id                     0.155
    supported environment
    database (SAP, table SVERS)   610
                                  620
                                  630
                                  640
    DBMS server
       ORACLE 9.2.0..
       ORACLE 10.1.0..
       ORACLE 10.2.0..
    operating system
    SunOS 5.8
    SunOS 5.9
    SunOS 5.10
    LE06201:xitadm 169% pwd
    /sapmnt/XIT/exeU
    LE06201:xitadm 170% sapccm4x -v
          CCMS version  20040229, 64 bit, multithreaded, Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    patch collection 2007/4, OSS note 1013331
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 171% sapccmsr -v
          CCMS version  20040229, 64 bit, multithreaded, Unicode
          compiled at   Jul  7 2007
          systemid      370 (Solaris on SPARCV9 CPU)
          relno         6400
          patch text    patch collection 2007/4, OSS note 1013331
          patchno       191
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 172% saposcol -v
          SAPOSCOL version  COLL 20.88 640 - V3.60 64Bit, 64 bit, single threaded, Non-Unicode
          compiled at   Apr 16 2005
          systemid      370 (SUN on SPARC CPU with Solaris 2.2)
          relno         6400
          patch text    COLL 20.88 640 - V3.60 64Bit
          patchno       68
          intno         20020600
          running on    LE06201 SunOS 5.9 Generic_122300-02 sun4us
    LE06201:xitadm 111% disp+work -v | more
    disp+work information
    kernel release                640
    kernel make variant           640_REL
    DBMS client library           OCI_920
    DBSL shared library version   640.00
    compiled on                   SunOS 5.8 Generic_117350-38 sun4u
    compiled for                  64 BIT
    compilation mode              UNICODE
    compile time                  Oct 29 2006 21:30:34
    update level                  0
    patch number                  155
    source id                     0.155
    supported environment
    database (SAP, table SVERS)   610
                                  620
                                  630
                                  640
    DBMS server
       ORACLE 9.2.0..
       ORACLE 10.1.0..
       ORACLE 10.2.0..
    operating system
    SunOS 5.8
    SunOS 5.9
    SunOS 5.10</b>
    Anyone have any ideas why I am unable to register the sapccmsr? Thanks in advance for your help.
    Best Regards,
    Warren Chirhart

    Hi,
    I'd just like to make some additional comments.
    The issue comes from the "jmon.dll" library which is non-unicode. You have to download the latest SAR archive of the SAP CCMS agents from the Service Marketplace and update your agents as well as your "jmon.dll" library by replacing the EXE and DLL files.
    The agent files are located under:
    /usr/sap/<SID>/<INSTNACE>/exe
    The "jmon.dll" library is located under:
    /usr/sap/<SID>/<INSTNACE>/j2ee/os_libs
    Most probably you would have to shut down / restart the instance after you update the library so the changes take effect.
    You can find the latest SAP CCMS agents SAR archive in SMP under:
    https://websmp109.sap-ag.de/swdc
    Then browse to:
    /SAP Support Packages/SAP Support Packages and Patches/Entry by Application Group/SAP NetWeaver/SAP NETWEAVER/SAP NETWEAVER <version>/Entry by Component/Application Server ABAP/SAP KERNEL <version> <32-BIT | 64-BIT> UNICODE/<OS>/#Database independent/ccmagent_<agent_version>.sar
    Hope this helps.
    Kind regards,
    Rosen

  • Catching error in call transaction

    Hi,
    Can anyone tell me how to catch errors in call transaction method.
    Please provide step by step guide.
    Thanks,
    Shipra

    Hi Shipra...
    This is the way...
    data : It_MSG type table of BDCMSGCOLL with header line.
    DATA : V_MESSAGE TYPE STRING.
    LOOP AT ITAB.
      PERFORM MAP_BDCDATA.
      CALL Transaction 'MK01'
      USING it_bdcdata
      MODE 'N'
      Messages into IT_MSG.
      if sy-subrc ne 0.  "when the Transaction is unsuccessful
    **Display the Error messages
            LOOP AT IT_MSG WHERE MSGTYP = 'E'.
             CALL FUNCTION 'FORMAT_MESSAGE'
                 EXPORTING
                   msgtyp = it_msg-msgtyp
                   msgno = it_msg-msgnr
                   msgid = it_msg-msgid
                   msgv1 = it_msg-msgv1
                   msgv2 = it_msg-msgv2
                IMPORTING
                   MESSAGE  = V_MESSAGE.
               WRITE:/ V_MESSAGE.
            ENDLOOP.
          REFRESH : IT_BDCDATA, IT_MSG.
    ENDLOOP.
    <b>Reward if Helpful.</b>

  • Catching errors such as divide by zero and typing non-numeric characters

    Fellows: How do I extend following script to catch errors such as divide by zero and typing non-numeric characters.      Thanks
    This program takes two integers (whole numbers), then displays the sum, average, division,
    Modula of those numbers and finally the first number raised to the power of the second number.
    import java.io.*;
    public class HWOne
         public static void main(String[] args) throws IOException  // error handling
              // variable declaration
              String firstdigit, seconddigit;
              int first, second, sum, total, modus, power;
              float division;
              double average;
              BufferedReader myIn = new BufferedReader(new InputStreamReader(System.in));
              //Invoke user response
              System.out.print("Please enter first digit ");
                   firstdigit = myIn.readLine();
                   first = Integer.parseInt(firstdigit);
              System.out.print("Please enter second digit ");
                   seconddigit = myIn.readLine();
                   second = Integer.parseInt(seconddigit);
              //computations
              sum = first + second;
              average = (double)sum / (double)2;
              division = (float)first / (float)second;
              modus = first % second;
              power = (int)Math.pow(first, second);
              //Screen message
              System.out.println("Sum: " + sum);
              System.out.println("Average: " + average);
              System.out.println("Division: " + division);
              System.out.println("Modula: " + modus);
              System.out.println("Power: " + power);

    Have you learnt about try/catch statements yet?
    The parseInt method throws a NumberFormatException. So you place the call to that method inside a try statement and catch the exception.
    For divide by zero, you can use an if statement. If the divisor != 0 perform division.

  • Handling errors in BAPI

    Hi frnds i m unable to know the answer for the q?
    How do u handle errors in BAPI.
    i.e i m using standard BAPI po creation if some errors occurs then how to handle those errors
    how can we know the errors.
    plz reply me back frnds...
    thnks...

    Hi Sanjay,
       Call BAPI like this :
      data: it_retrun typa table of bapireturn.
    CALL FUNCTION 'BAPI_PO_CREATE'
      EXPORTING
        po_header                        =
      PO_HEADER_ADD_DATA               =
      HEADER_ADD_DATA_RELEVANT         =
      PO_ADDRESS                       =
      SKIP_ITEMS_WITH_ERROR            = 'X'
      ITEM_ADD_DATA_RELEVANT           =
      HEADER_TECH_FIELDS               =
    IMPORTING
      PURCHASEORDER                    =
      tables
        po_items                         =
      PO_ITEM_ADD_DATA                 =
        po_item_schedules                =
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_TEXT                     =
       RETURN                           = it_return
      PO_LIMITS                        =
      PO_CONTRACT_LIMITS               =
      PO_SERVICES                      =
      PO_SRV_ACCASS_VALUES             =
      PO_SERVICES_TEXT                 =
      PO_BUSINESS_PARTNER              =
      EXTENSIONIN                      =
      POADDRDELIVERY                   =
    IT_RETURN will contains all message returned from BAPI. For error message you can read IT_RETURN table where type = 'E'.
    Thanks
    Swagatika

  • Error catcher: Error #1069: Property _bindingsByDestination not found

    I appear to be having a rather strange issue. In my Flex project I have a mx:Canvas with a mx:Resize inside. The mx:Resize is redundant and not needed at all. Currently it looks like this:
    <mx:Resize easingFunction="{Bounce.easeOut}" />
    Nothing uses it at all, its completly redundant. If I remove that one line of MXML the flash player complains with this error:
    Error catcher: Error #1069: Property _bindingsByDestination not found on ********* and there is no default value.
    Any ideas?
    Regards:
    John

    don't use the name property.  that is a string:
    targets=(obj.dropTarget.parent)
    trace(targets);
    trace(targets.x)

  • OLE Automation: catch error message

    Hi, Experts.
    I am interested in catching error messages after OLE commands. I show it in Excel example, but interested in general:
    REPORT zlcka_ole .
    TYPE-POOLS ole2.
    DATA h_excel TYPE ole2_object.
    DATA h_workbooks TYPE ole2_object.
    DATA h_workbook TYPE ole2_object.
    DATA h_range TYPE ole2_object.
    CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
    SET PROPERTY OF h_excel 'Visible' = 1.
    CALL METHOD OF h_excel 'Workbooks' = h_workbooks.
    CALL METHOD OF h_workbooks 'Add' = h_workbook.
    CALL METHOD OF h_excel 'Rows' = h_range
      EXPORTING
        #1 = 3.
    SET PROPERTY OF h_range 'Name' = 'TEST'.
    CALL METHOD OF h_excel 'Range' = h_range
      EXPORTING
        #1 = 'TEST'.
    SET PROPERTY OF h_range 'Hidden' = 1.
    WRITE / sy-subrc.
    WRITE / sy-msgli.
    I turned on debuging Automation of GUI and execute program.
    Result was sy-subrc = 3 sy-msgli = ''
    But in logfile(directory: SapWorkDir) I find:
    <275=Automation(Error): *****************************ERROR OCCURED IN MODULE: [CALL METHOD OF 12 ('[Excel.Application.10]') 'Range' Imode 1002]*********************************************************************************************************************************
    <275=Automation(Error): PROGRAM_ID                                                          |MODULE_NAME              |METHOD_NAME          |ERROR DESCRIPTION                                        |VERSION                    |GUI VERSION       |MODULE_PATH              |
    <275=Automation(Error): ********************************************************************************************************************************************************************************************************************************************************
    <275=Automation(Error): CALL METHOD OF 12 ('[Excel.Application.10]') 'Range' Imode 1002     |Class name not found     |Hidden               |Unable to set the Hidden property of the Range class     |Version info not found     |6206.6.64.970     |Module doesnot exist     |
    <275=Automation(Error): ********************************************************************************************************************************************************************************************************************************************************
    Is there anybody know how to get that error message <i>"Unable to set the Hidden property of the Range class"</i>?
    SAP Version: 4.6C

    Hi,
    in SRM all messages are stored in the message handler. Also when you set a message within the check BAdI, the message is stored later in the message handler. If you want to know when a message is moved to the message handler, just set a break-point in FM BBP_PD_MSG_ADD.
    Regards

  • Catching Errors: opinions needed

    Under what conditions should a program try to catch Errors (not Exceptions) ? The docs for the Error class read:
    "An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch."
    However, nothing enforces the fact that I should not try to catch an Error. I can catch a StackOverFlowError, ExceptionInInitializerError, etc. just as I would catch any Exception class.
    Everything I have read talks plenty about Exception handling, but basically nothing about Error handling.
    My questions are: 1) Why doesn't the JVM prevent me from catching Errors? 2) Under what conditions should I try to catch Errors? 3) What are good practices for handling Errors?

    My questions are: 1) Why doesn't the JVM prevent me from catching Errors? In case you need to catch them.
    2) Under what conditions should I try to catch Errors?When you want to perform an action when a specific error occurs.
    An action I perform is to shutdown my server when an OutOfMemoryError or StackOverflowError occurs. This is required as an Error only results in the end of the thread which threw it. The other threads can keep running, leaving a running but unless application, like a zombie. Under this condition, if the application is not working it should shutdown. e.g. System.exit();
    3) What are good practices for handling Errors?When you catch an erro you should rethrow it. (I don't always, but this is considered good practice)

  • Catching Error Message

    Hi,
    Question : could you please tell me how to catch footer error message?
    Background :
    I am working with FM L_TO_CREATE_SINGLE .
    This FM has so many exceptions and I am catching those in my custom program.
    the problem is FM is throwing error message while it executes and simply coming out of my custom program and displaying error message at footer so I am not able to catch error message.
    Please help me how to catch this error and see my code below
            CALL FUNCTION 'L_TO_CREATE_SINGLE'
              EXPORTING
                I_LGNUM                     = '620'
                I_BWLVS                     = '999'
                I_MATNR                     = WA_RECORD_OUT-MATNR
                I_WERKS                     = WA_RECORD_OUT-WERKS
                I_ANFME                     = WA_PHY_INV_HIS-QUANTITY
                I_ALTME                     = WA_PHY_INV_HIS-UNIT_OF_MEASURE
               I_SQUIT                     = 'X'
               I_VLTYP                     = WA_RECORD_OUT-LGTYP
               I_VLPLA                     = WA_RECORD_OUT-LGPLA
               I_VLENR                     = WA_PHY_INV_HIS-STO_UNIT
               I_NLTYP                     = WA_PHY_INV_HIS-STO_TYPE
               I_NLPLA                     = WA_PHY_INV_HIS-STO_BIN
               I_COMMIT_WORK               = 'X'
               I_BNAME                     = SY-UNAME
               I_KOMPL                     = 'X'
             IMPORTING
               E_TANUM                     = I_TANUM
            EXCEPTIONS
               NO_TO_CREATED               = 1
               BWLVS_WRONG                 = 2
               BETYP_WRONG                 = 3
               BENUM_MISSING               = 4
               BETYP_MISSING               = 5
               FOREIGN_LOCK                = 6
               VLTYP_WRONG                 = 7
               VLPLA_WRONG                 = 8
               VLTYP_MISSING               = 9
               NLTYP_WRONG                 = 10
               NLPLA_WRONG                 = 11
               NLTYP_MISSING               = 12
               RLTYP_WRONG                 = 13
               RLPLA_WRONG                 = 14
               RLTYP_MISSING               = 15
               SQUIT_FORBIDDEN             = 16
               MANUAL_TO_FORBIDDEN         = 17
               LETYP_WRONG                 = 18
               VLPLA_MISSING               = 19
               NLPLA_MISSING               = 20
               SOBKZ_WRONG                 = 21
               SOBKZ_MISSING               = 22
               SONUM_MISSING               = 23
               BESTQ_WRONG                 = 24
               LGBER_WRONG                 = 25
               XFELD_WRONG                 = 26
               DATE_WRONG                  = 27
               DRUKZ_WRONG                 = 28
               LDEST_WRONG                 = 29
               UPDATE_WITHOUT_COMMIT       = 30
               NO_AUTHORITY                = 31
               MATERIAL_NOT_FOUND          = 32
               LENUM_WRONG                 = 33
               OTHERS                      = 34       .
            IF SY-SUBRC <> 0.
              CASE sy-subrc.
                WHEN 1.  MESSAGE = 'no_to_created'.
                WHEN 2.  MESSAGE = 'bwlvs_wrong' .
                WHEN 3.  MESSAGE = 'betyp_wrong'.
                WHEN 4.  MESSAGE = 'benum_missing'.
                WHEN 5.  MESSAGE = 'betyp_missing'.
                WHEN 6.  MESSAGE = 'foreign_lock'.
                WHEN 7.  MESSAGE = 'vltyp_wrong'.
                WHEN 8.  MESSAGE = 'vlpla_wrong'.
                WHEN 9.  MESSAGE = 'vltyp_missing'.
                WHEN 10. MESSAGE = 'nltyp_wrong'.
                WHEN 11. MESSAGE = 'nlpla_wrong'.
                WHEN 12. MESSAGE = 'nltyp_missing'.
                WHEN 13. MESSAGE = 'rltyp_wrong'.
                WHEN 14. MESSAGE = 'rlpla_wrong'.
                WHEN 15. MESSAGE = 'rltyp_missing'.
                WHEN 16. MESSAGE = 'squit_forbidden'.
                WHEN 17. MESSAGE = 'manual_to_forbidden'.
                WHEN 18. MESSAGE = 'letyp_wrong'.
                WHEN 19. MESSAGE = 'vlpla_missing'.
                WHEN 20. MESSAGE = 'nlpla_missing'.
                WHEN 21. MESSAGE = 'sobkz_wrong'.
                WHEN 22. MESSAGE = 'sobkz_missing'.
                WHEN 23. MESSAGE = 'sonum_missing'.
                WHEN 24. MESSAGE = 'bestq_wrong'.
                WHEN 25. MESSAGE = 'lgber_wrong'.
                WHEN 26. MESSAGE = 'xfeld_wrong'.
                WHEN 27. MESSAGE = 'date_wrong'.
                WHEN 28. MESSAGE = 'drukz_wrong'.
                WHEN 29. MESSAGE = 'ldest_wrong'.
                WHEN 30. MESSAGE = 'update_without_commit'.
                WHEN 31. MESSAGE = 'no_authority'.
                WHEN 32. MESSAGE = 'material_not_found'.
                WHEN 33. MESSAGE = 'lenum_wrong'.
                WHEN 34. MESSAGE = 'ERROR_MESSAGE'.
                WHEN OTHERS.
                  message id sy-msgid type sy-msgty number sy-msgno with
                          sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDCASE.
    Thanks
    SB

    Hi I have resloved it myself. here is the working code, thanks for all your help
    CALL FUNCTION 'L_TO_CREATE_SINGLE'
              EXPORTING
                I_LGNUM                     = '620'
                I_BWLVS                     = '999'
                I_MATNR                     = WA_RECORD_OUT-MATNR
                I_WERKS                     = WA_RECORD_OUT-WERKS
                I_ANFME                     = WA_PHY_INV_HIS-QUANTITY
                I_ALTME                     = WA_PHY_INV_HIS-UNIT_OF_MEASURE
               I_SQUIT                     = 'X'
               I_VLTYP                     = WA_RECORD_OUT-LGTYP
               I_VLPLA                     = WA_RECORD_OUT-LGPLA
               I_VLENR                     = WA_PHY_INV_HIS-STO_UNIT
               I_NLTYP                     = WA_PHY_INV_HIS-STO_TYPE
               I_NLPLA                     = WA_PHY_INV_HIS-STO_BIN
               I_COMMIT_WORK               = 'X'
               I_BNAME                     = SY-UNAME
               I_KOMPL                     = 'X'
             IMPORTING
               E_TANUM                     = I_TANUM
             EXCEPTIONS
               NO_TO_CREATED               = 1
               BWLVS_WRONG                 = 2
               BETYP_WRONG                 = 3
               BENUM_MISSING               = 4
               BETYP_MISSING               = 5
               FOREIGN_LOCK                = 6
               VLTYP_WRONG                 = 7
               VLPLA_WRONG                 = 8
               VLTYP_MISSING               = 9
               NLTYP_WRONG                 = 10
               NLPLA_WRONG                 = 11
               NLTYP_MISSING               = 12
               RLTYP_WRONG                 = 13
               RLPLA_WRONG                 = 14
               RLTYP_MISSING               = 15
               SQUIT_FORBIDDEN             = 16
               MANUAL_TO_FORBIDDEN         = 17
               LETYP_WRONG                 = 18
               VLPLA_MISSING               = 19
               NLPLA_MISSING               = 20
               SOBKZ_WRONG                 = 21
               SOBKZ_MISSING               = 22
               SONUM_MISSING               = 23
               BESTQ_WRONG                 = 24
               LGBER_WRONG                 = 25
               XFELD_WRONG                 = 26
               DATE_WRONG                  = 27
               DRUKZ_WRONG                 = 28
               LDEST_WRONG                 = 29
               UPDATE_WITHOUT_COMMIT       = 30
               NO_AUTHORITY                = 31
               MATERIAL_NOT_FOUND          = 32
               LENUM_WRONG                 = 33
               ERROR_MESSAGE               = 99
               OTHERS                      = 34.
            IF SY-SUBRC NE 0.
              CALL FUNCTION 'FORMAT_MESSAGE'
                EXPORTING
                  ID        = SY-MSGID
                  LANG      = '-D'
                  NO        = SY-MSGNO
                  V1        = SY-MSGV1
                  V2        = SY-MSGV2
                  V3        = SY-MSGV3
                  V4        = SY-MSGV4
                IMPORTING
                  MSG       = MESSAGE
                EXCEPTIONS
                  NOT_FOUND = 1
                  OTHERS    = 2.
           ENDIF.
    Edited by: Rob Burbank on Oct 12, 2011 3:44 PM

  • How to catch error

    In my application I want to cathc an error from mysql database.
    Does anybody know?
    Thanks in advance.

    You should be getting an SQLException
    But if you are really getting an error you can do
    try {
       ... throws an Error
    } catch(SQLException e) {
        e.printStackTrace();
    } catch (Error e) {
        e.printStackTrace();
    }

Maybe you are looking for

  • Need help in writing a tricky sql/PL/Sql Procedure

    Hi, I have a Branch table with just two fields in it node1 and Node2, The table looks like this node1 | node2 -------|--------- 1 | 2 3 | 2 3 | 4 4 | 5 1 | 5 1 | 6 5 | 6 in the above data if you draw lines between node_1 and node_2 you will see that

  • Help:  How to add a library item to hide the default Window menu

    Hi, In this post: Help: How to add a library item to hide the default Window menu, it described how to create an menu that will hide the default window menu. I'd like to know if there a way to put this component into library so that others can direct

  • Wicd Doesn't Show Networks

    I just installed wicd, had it working and everything, and then after I restarted X and wicd, it said I wasn't connected. The internet still worked, though; firefox was fine and I was torrenting at about 60 Kbps. Then, after a reboot, the whole thing

  • COPA Report cumulative figures

    Hi experts, I want following output from the COPA report 1) Actuals for the month 2) Actuals year to date I am using Account based PA. I have designed a form wherein user entry is required and the user has to mention the period for which the report i

  • Using button control in BEx Analyzer to filter on multiple items

    I'm trying to create a button control in BEx Analyzer to duplicate the following command: DATA_PROVIDER=*&FILTER_IOBJNM_1=<StructureID>&FILTER_IOBJNM_2=<StructureID>&FILTER_IOBJNM_3=<StructureID>&FILTER_VALUE_1=<Item1>&FILTER_VALUE_2=<Item2>&FILTER_V