Debugging Triggers

I've created a trigger but when it is invoked I get:
ORA-04098: trigger 'POSTAL_CITY_INSERT' is invalid and failed re-
validation
How can I debug this?
When I alter/compile it I get:
MGR-00072: Warning: TRIGGER POSTAL_CITY_INSERT created with
compilation errors.
How can I easily find out what the compile errors are?
null

Hi,
Just say SHOW ERRORS on the sql prompt and it will do the
needful and it will show the errors along with the line
and column numbers. Also you can have a look at the table
user_errors and give the trigger name for the name field and
trigger for the type field in the where clause.
Hope this helps.
Rashmi
Richard Schultz (guest) wrote:
: I've created a trigger but when it is invoked I get:
: ORA-04098: trigger 'POSTAL_CITY_INSERT' is invalid and failed
re-
: validation
: How can I debug this?
: When I alter/compile it I get:
: MGR-00072: Warning: TRIGGER POSTAL_CITY_INSERT created with
: compilation errors.
: How can I easily find out what the compile errors are?
null

Similar Messages

  • Use of DBMS_OUTPUT.GET_LINE to debug triggers

    I states in the PL/SQL Users Guide and Reference (page 9-16):
    "Package DBMS_OUTPUT enables you to display output from PL/SQL blocks and subprograms, which makes it easier to test and debug them. The procedure put_line outputs information to a buffer in the SGA. You display the information Overview of Product-Specific Packages by calling the procedure get_line or by setting SERVEROUTPUT ON in SQL*Plus."
    Also in Supplied PL/SQL Packages and Types Reference it states:
    "A trigger might want to print out some debugging information. To do this, the trigger would do:
    DBMS_OUTPUT.PUT_LINE(I got here:||:new.col|| is the new value);
    If you have enabled the DBMS_OUTPUT package, then this PUT_LINE would be buffered, and you could, after executing the statement (presumably some INSERT, DELETE, or UPDATE that caused the trigger to fire), get the line of information back.
    For example:
    BEGIN
    DBMS_OUTPUT.GET_LINE(:buffer, :status);
    END;
    It could then display the buffer on the screen. You repeat calls to GET_LINE until status comes back as nonzero. For better performance, you should use calls to GET_LINES which can return an array of lines."
    I have tried to use this, but cannot get anything out. I do not find any actual examples in any of the docs on how to use this.
    Jim Azeltine
    [email protected]

    With SET SERVEROUTPUT ON, it causes the usage of DBMS_OUPUT.PUT_LINE to display automatically. With SET SERVEROUPUT OFF, you have to use DBMS_OUPUT.ENABLE to allow things from DBMS_OUTPUT.PUT_LINE to be stored to a buffer and DBMS_OUTPUT.GET_LINE or DBMS_OUTPUT.GET_LINES to retrieve the items from the buffer into variables and use PRINT or SET AUTOPRINT ON or something to display them. I have always just used SET SERVEROUTPUT ON, however I imagine the other method might be useful under certain circumstances where you want to store the values to variables or enter the values into audit tables or something other than just display them directly to the screen. There are also many environments where SET SERVEROUTPUT ON cannot be used, since it is a SQL*Plus command. Below I have given, first, an example of usage of SET SERVEROUTPUT ON, then, second, an example with SET SERVEROUTPUT OFF, that uses DBMS_OUTPUT.ENABLE and DBMS_OUTPUT.GET_LINE and SET AUTOPRINT ON.
    SQL> SET ECHO ON
    SQL> -- trigger for demonstration:
    SQL> CREATE OR REPLACE TRIGGER test_trigger
      2    BEFORE INSERT ON anytable
      3    FOR EACH ROW
      4  BEGIN
      5    DBMS_OUTPUT.PUT_LINE ('I got here: '
      6                          || :NEW.anycolumn
      7                          || ' is the new value.');
      8    :NEW.anycolumn := 0;
      9    DBMS_OUTPUT.PUT_LINE ('I got here: '
    10                          || :NEW.anycolumn
    11                          || ' is the new value.');
    12  END test_trigger;
    13  /
    Trigger created.
    SQL>
    SQL>
    SQL> -- example with serverouput on
    SQL> SET SERVEROUTPUT ON
    SQL> INSERT INTO anytable VALUES (1)
      2  /
    I got here: 1 is the new value.
    I got here: 0 is the new value.
    1 row created.
    SQL>
    SQL>
    SQL> -- example with serveroutput off:
    SQL> SET SERVEROUTPUT OFF
    SQL> EXECUTE DBMS_OUTPUT.ENABLE (40)
    PL/SQL procedure successfully completed.
    SQL> INSERT INTO anytable VALUES (1)
      2  /
    1 row created.
    SQL> VARIABLE buffer VARCHAR2 (40)
    SQL> VARIABLE status NUMBER
    SQL> SET AUTOPRINT ON
    SQL> BEGIN
      2    DBMS_OUTPUT.GET_LINE(:buffer, :status);
      3  END;
      4  /
    PL/SQL procedure successfully completed.
        STATUS
             0
    BUFFER
    I got here: 1 is the new value.
    SQL> BEGIN
      2    DBMS_OUTPUT.GET_LINE(:buffer, :status);
      3  END;
      4  /
    PL/SQL procedure successfully completed.
        STATUS
             0
    BUFFER
    I got here: 0 is the new value.
    SQL> BEGIN
      2    DBMS_OUTPUT.GET_LINE(:buffer, :status);
      3  END;
      4  /
    PL/SQL procedure successfully completed.
        STATUS
             1
    BUFFER
    SQL>

  • Unable to respond to Calendar Invitations

    I seem to be running into a strange bug and am curious if anyone has seen this before. On all of my devices (iPhone, iPad, and iMac), I am unable to respond to a Calendar event.  On the iOS devices, when I tap on a response, it displays in the calendar, then switches back over to tentative about two seconds after I respond.  On the Mac end, I get an error that may be potentially helpful (screenshot attached). I have also tried the iCloud.com browser and run into the same issue.
    I am seeing this issue when trying to respond to invitations that have been sent from various services (gmail, iCloud, and AOL), so it doesn't look like it's something on their ends.
    Error from iCloud.com:
    TITLE
    Report Calendar problem.
    MESSAGE
    Help Apple improve its products by sending us diagnostic and usage information about iCloud.
    BUTTON ONE
    OK
    ORIGIN
    server
    TYPE
    error
    APPLICATION NAME
    calendar
    CURRENT VIEW
    Month
    BUILD NUMBER
    1U43
    TIME
    Mon Nov 18 2013 08:58:52 GMT-0600 (CST)        (1384786732977)
    HOST
    www.icloud.com
    USER AGENT
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.71 (KHTML, like Gecko) Version/7.0 Safari/537.71
    DSID
    218050986
    ENVIRONMENT
    PROD
    RECENT LOG MESSAGES
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN initialize statechart
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN gotoState: __ROOT_STATE__
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: starting from current state: ---
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: current states before: ---
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: --> entering state: __ROOT_STATE__
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: --> entering state: waitingToFinishLaunching
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: current states after: waitingToFinishLaunching
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: END gotoState: __ROOT_STATE__
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: END initialize statechart
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Creating local CK.User object
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: OfflineDataSource:  The user name has changed.  Clearing localStorage and sessionStorage.
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: OfflineDataSource:  Successfully set up session storage
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN sendEvent: 'applicationHasFinishedLaunching'
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: waitingToFinishLaunching: will handle event 'applicationHasFinishedLaunching'
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Creating local CK.AccountPreferences object
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , saveToMailbox: false , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , hideToDosOutsideView: false , alarmsByDefault: false , hideToDos: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , showTodoPane: true , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , todoSortOrder: priority , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  saveToMailbox
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , hideToDosOutsideView: false , alarmsByDefault: false , hideToDos: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , showTodoPane: true , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , todoSortOrder: priority , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  hideToDosOutsideView
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , alarmsByDefault: false , hideToDos: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , showTodoPane: true , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , todoSortOrder: priority , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  hideToDos
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , alarmsByDefault: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , showTodoPane: true , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , todoSortOrder: priority , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  showTodoPane
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , alarmsByDefault: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , todoSortOrder: priority , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  todoSortOrder
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , alarmsByDefault: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , hideEvents: false , triggerAlarmsInUI: true , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  triggerAlarmsInUI
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Cal.Preferences({showDeclinedEvents: false , showHoursAtATime: 12 , calendarListWidth: 250 , timeFormat: 12 , visibleDays: 7 , alarmsByDefault: false , enableTimeZone: true , timeSeparator: : , viewingMode: 2 , promptEventUpdates: true , dateFormat: MM/DD/YYYY , hideEventsNum: 1 , emailParticipantsSharingChange: false , showBirthdays: false , startWithTodayInWeekView: false , isCalendarListVisible: true , hideEvents: false , lastAlarmSet:  , selectedCollection: home , defaultEventAlarm: [object Object] , defaultCalendar: home , startingWeekday: 0 , hideToDosNum: 7 , dateSeparator: / , lastTimeZoneSet: America/Winnipeg,Canada/Saskatchewan,US/Pacific , guid: 1}) BUSY_LOADING:  Deleting key from underlying data hash due to normalization:  hideToDosNum
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: The retrieved preferences do not include all necessary keys — saving back a complete set.
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG:   -  removed:  saveToMailbox,hideToDosOutsideView,hideToDos,showTodoPane,todoSortOrder,trigger AlarmsInUI,hideToDosNum
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: The preferences have not changed, so there is no need to save them.
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Pending fetch request:  {range: [10/27/2013 - 11/30/2013] , delegate: SC.ArrayController:sc1551 , loadDetails: false , callbackIfLoaded: true , store: Calendar main store (Cal.Store:sc3094)}
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: -->  Request 1:   GET to https://p03-calendarws.icloud.com:443/ca/time?clientBuildNumber=1U43&clientId=34 77FDFE-8F04-4B60-B9A3-FEDA20308B68&clientVersion=5.0&dsid=218050986&lang=en-us&r equestID=2&usertz=America%2FWinnipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN gotoState: waitingForStartupData
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: starting from current state: waitingToFinishLaunching
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: current states before: waitingToFinishLaunching
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: pivot state = __ROOT_STATE__
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: <-- exiting state: waitingToFinishLaunching
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: --> entering state: waitingForStartupData
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Issuing startup request…
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Updating loaded state to 257 for range [12/1/2013 - 1/4/2014]…
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: -->  Request 2:   GET to https://p03-calendarws.icloud.com:443/ca/startup?clientBuildNumber=1U43&clientId =3477FDFE-8F04-4B60-B9A3-FEDA20308B68&clientVersion=5.0&dsid=218050986&endDate=2 014-01-04&lang=en-us&requestID=3&startDate=2013-12-01&usertz=America%2FWinnipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: current states after: waitingForStartupData
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: END gotoState: waitingForStartupData
    Mon, 18 Nov 2013 14:58:37 GMT:  INFO:  SC.Statechart<sc2295>: END sendEvent: 'applicationHasFinishedLaunching'
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: <--  Response 1:  200  (92ms),  headers: Cache-Control=no-store, no-cache, must-revalidate, max-age=0, Content-Type=text/json, Expires=Mon, 26 Jul 1997 05:00:00 GMT, X-Transaction-Id=e76b3bbc-5061-11e3-8f13-984be175f634  body: (omitted)
    Mon, 18 Nov 2013 14:58:37 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: APPLICATION: Received applicationWillBecomeActive
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: APPLICATION: Received routeDidChange
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 0,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: <--  Response 2:  200  (652ms, suspended for 589ms),  headers: Cache-Control=no-store, no-cache, must-revalidate, max-age=0, Content-Type=text/json, Expires=Mon, 26 Jul 1997 05:00:00 GMT, X-Transaction-Id=e778a1bc-5061-11e3-8f13-984be175f634  body: (omitted)
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Updating loaded state to 1025 for range [12/1/2013 - 1/4/2014]…
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN sendEvent: 'startupHasBeenLoaded'
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: waitingForStartupData: will handle event 'startupHasBeenLoaded'
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: BEGIN gotoState: readyToUse
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: starting from current state: waitingForStartupData
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: current states before: waitingForStartupData
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: pivot state = __ROOT_STATE__
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: <-- exiting state: waitingForStartupData
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: --> entering state: readyToUse
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: current states after: readyToUse
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: END gotoState: readyToUse
    Mon, 18 Nov 2013 14:58:38 GMT:  INFO:  SC.Statechart<sc2295>: END sendEvent: 'startupHasBeenLoaded'
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Online mode
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Enqueuing new commit cycle because cycles are suspended…
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Beginning commit cycle (Cal.CommitCycle:sc7225)  (no pending cycles)…
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: For Calendar with storeKey 9:  requiresSharingAPI=false,  requiresUpdateAPI=true
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: -->  Request 3:   POST to https://p03-calendarws.icloud.com:443/ca/collections/882c60b8167f94373d999eba3ed 1ba94b8671fdbeb1f0972ad3862e7c2c38780?clientBuildNumber=1U43&clientId=3477FDFE-8 F04-4B60-B9A3-FEDA20308B68&clientVersion=5.0&dsid=218050986&endDate=2014-01-04&l ang=en-us&methodOverride=PUT&requestID=4&startDate=2013-12-01&usertz=America%2FW innipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: We cannot advance from the 'main' stage to the next stage yet, because there is 1 pending/outstanding request…
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Triggering pended fetch request:  {range: [10/27/2013 - 11/30/2013] , delegate: SC.ArrayController:sc1551 , loadDetails: false , callbackIfLoaded: true , store: Calendar main store (Cal.Store:sc3094)}
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Fetching event data for range [10/27/2013 - 11/30/2013] from the server…
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Enqueuing new read cycle because there is a commit cycle in progress…
    Mon, 18 Nov 2013 14:58:38 GMT:  DEBUG: Updating loaded state to 257 for range [10/27/2013 - 11/30/2013]…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: <--  Response 3:  200  (365ms),  headers: Content-Type=text/json, X-Transaction-Id=e84b4bda-5061-11e3-bdfa-984be16804c4  body: (omitted)
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: commit cycle (Cal.CommitCycle:sc7225):  There are no more pending/outstanding requests.
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: pushRetrieve():  Merging newly-loaded data for storeKey 9 into main store…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'ctag' ('FT=-@RU=5c162550-1ccc-4821-80d6-e2fab587c348@S=1685'), since it didn’t change in Calendar main store (it was 'FT=-@RU=5c162550-1ccc-4821-80d6-e2fab587c348@S=1684')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'extendedDetailsAreIncluded' ('true'), since it didn’t change in Calendar main store (it was 'false')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'participants' ('882c60b8167f94373d999eba3ed1ba94b8671fdbeb1f0972ad3862e7c2c38780:[email protected],882c60b8167f94373d999eba3ed1ba94b8671fdbeb1f0972ad3862e7c2c38780:[email protected]'), since it didn’t change in Calendar main store (it was 'null')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'lastModifiedDate' ('20131118,2013,11,18,14,58,898'), since it didn’t change in Calendar main store (it was '20131115,2013,11,15,18,28,1108')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'enabled' ('true'), since it didn’t change in Calendar main store (it was 'false')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG:   >  taking value from server-retrieved data for 'symbolicColor' ('null'), since it didn’t change in Calendar main store (it was 'purple')…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: Ending commit cycle (Cal.CommitCycle:sc7225) and will move on to pending cycles (read cycle (Cal.ReadCycle:sc7442))
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: Beginning read cycle (Cal.ReadCycle:sc7442)  (no pending cycles)…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: -->  Request 4:   GET to https://p03-calendarws.icloud.com:443/ca/events?clientBuildNumber=1U43&clientId= 3477FDFE-8F04-4B60-B9A3-FEDA20308B68&clientVersion=5.0&dsid=218050986&endDate=20 13-11-30&lang=en-us&requestID=5&startDate=2013-10-27&usertz=America%2FWinnipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: read cycle (Cal.ReadCycle:sc7442):  There is 1 pending/outstanding request  (a read)…
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: SC.Module: Prefetching module 'calendar/secondary'.
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'calendar/secondary' -> '/applications/calendar/1U43/frameworks/calendar/secondary/1U43/en-us/javascrip t-strings.js'
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: SC.Module: Module 'calendar/secondary' finished loading.
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: SC.Module: Module 'calendar/secondary' was prefetched, not evaluating until needed.
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: <--  Response 4:  200  (660ms),  headers: Cache-Control=no-store, no-cache, must-revalidate, max-age=0, Content-Type=text/json, Expires=Mon, 26 Jul 1997 05:00:00 GMT, X-Transaction-Id=e884207c-5061-11e3-bdfa-984be16804c4  body: (omitted)
    Mon, 18 Nov 2013 14:58:39 GMT:  DEBUG: Updating loaded state to 1025 for range [10/27/2013 - 11/30/2013]…
    Mon, 18 Nov 2013 14:58:40 GMT:  DEBUG: read cycle (Cal.ReadCycle:sc7442):  There are no more pending/outstanding requests.
    Mon, 18 Nov 2013 14:58:40 GMT:  DEBUG: Delta calculations for Cal.MonthEventsCollectionView:sc3164:  added: 56,  removed: 0,  updated: 0
    Mon, 18 Nov 2013 14:58:40 GMT:  DEBUG: Ending read cycle (Cal.ReadCycle:sc7442)  (no pending cycles)
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Attempting to load 'calendar/secondary'
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Module 'calendar/secondary' already loaded.
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'calendar/secondary'.
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Module 'calendar/secondary' has completed loading, invoking callbacks.
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Attempting to load 'calendar/secondary/event_inspector'
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/event_inspector' already loaded.
    Mon, 18 Nov 2013 14:58:46 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'calendar/secondary/event_inspector'.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/event_inspector' has completed loading, invoking callbacks.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Object:sc10534:initStatechart()
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: -> entering "EI Closed"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: We need to load the event details…
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: Retrieving details for Event with storeKey 139…
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: -->  Request 5:   GET to https://p03-calendarws.icloud.com:443/ca/eventdetail/home/62CD0577-431E-408D-AC0 F-EFA3D50C4D12?clientBuildNumber=1U43&clientId=3477FDFE-8F04-4B60-B9A3-FEDA20308 B68&clientVersion=5.0&dsid=218050986&lang=en-us&requestID=6&usertz=America%2FWin nipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Object:sc10534:dispatch('show')
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: ContactsAutocomplete name order preference set: 'first,last'
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: "EI Closed" handled event 'show' with a transition to "ReadOnly EI Opened"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: <- leaving  "EI Closed"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: -> entering "ReadOnly EI Opened"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: <--  Response 5:  200  (135ms),  headers: Cache-Control=no-store, no-cache, must-revalidate, max-age=0, Content-Type=text/json, Expires=Mon, 26 Jul 1997 05:00:00 GMT, X-Transaction-Id=ed1d53ce-5061-11e3-b714-984be1734e54  body: (omitted)
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Object:sc10534:dispatch('statusChange')
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Attempting to load 'calendar/secondary/event_inspector/invitees_list'
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/event_inspector/invitees_list' already loaded.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'calendar/secondary/event_inspector/invitees_list'.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/event_inspector/invitees_list' has completed loading, invoking callbacks.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: "ReadOnly EI Opened" handled event 'statusChange' with a transition to "Event Invitation"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG:   -> entering "Event Invitation"
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: Warning: Use the element reference for the heightForString method. Just using class names may result in inaccurate values.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Attempting to load 'calendar/secondary/alarms'
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/alarms' already loaded.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Evaluating JavaScript for module 'calendar/secondary/alarms'.
    Mon, 18 Nov 2013 14:58:47 GMT:  DEBUG: SC.Module: Module 'calendar/secondary/alarms' has completed loading, invoking callbacks.
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: SC.Object:sc10534:dispatch('button1Action')
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Warning: Use the element reference for the heightForString method. Just using class names may result in inaccurate values.
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Beginning commit cycle (Cal.CommitCycle:sc7225)  (no pending cycles)…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: -->  Request 6:   POST to https://p03-calendarws.icloud.com:443/ca/events/home/62CD0577-431E-408D-AC0F-EFA 3D50C4D12?clientBuildNumber=1U43&clientId=3477FDFE-8F04-4B60-B9A3-FEDA20308B68&c lientVersion=5.0&dsid=218050986&endDate=2014-01-04&ifMatch=C%3D2714%40U%3Db92d24 18-7a97-4736-8263-997a344ac99a&lang=en-us&methodOverride=PUT&requestID=7&startDa te=2013-10-27&usertz=America%2FWinnipeg,  headers: Content-Type=text/plain,  body: (omitted)
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: We cannot advance from the 'main' stage to the next stage yet, because there is 1 pending/outstanding request…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG:   "Event Invitation" handled event 'button1Action' with a transition to "EI Closed"
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG:   <- leaving  "Event Invitation"
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: <- leaving  "ReadOnly EI Opened"
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: -> entering "EI Closed"
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: <--  Response 6:  403  (536ms),  headers: Content-Type=text/json, X-Transaction-Id=edd59bdc-5061-11e3-8b5e-984be1741b40  body: {"status": 403, "ChangeSet": {"UpcomingAlarm": [], "fullState": false}, "message": null, "guid": "62CD0577-431E-408D-AC0F-EFA3D50C4D12"}
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Received special response:  CW.Response:sc13580<POST /ca/events/home/62CD0577-431E-408D-AC0F-EFA3D50C4D12, status=403
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Failed to update Event with storeKey 139
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: commit cycle (Cal.CommitCycle:sc7225):  There are no more pending/outstanding requests.
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Event with storeKey 139 is not included in the changeset, so we need to roll back its data…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Rolling back all properties of Event with storeKey 139 to the values at the beginning of the commit cycle…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Rolling back all properties of Invitee with storeKey 227 to the values at the beginning of the commit cycle…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Rolling back all properties of Invitee with storeKey 229 to the values at the beginning of the commit cycle…
    Mon, 18 Nov 2013 14:58:48 GMT:  DEBUG: Ending commit cycle (Cal.CommitCycle:sc7225)  (no pending cycles)
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: CloudKit: ErrorCatcher dialog invoked.
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Attempting to load 'cloudkit/error_catcher'
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' is not loaded, loading now.
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Loading CSS file in 'cloudkit/error_catcher' -> '/applications/calendar/1U43/frameworks/cloudkit/error_catcher/1U43/en-us/style sheet.css'
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'cloudkit/error_catcher' -> '/applications/calendar/1U43/frameworks/cloudkit/error_catcher/1U43/en-us/javas cript.js'
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' finished loading.
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Evaluating and invoking callbacks for 'cloudkit/error_catcher'.
    Mon, 18 Nov 2013 14:58:52 GMT:  DEBUG: SC.Module: Module 'cloudkit/error_catcher' has completed loading, invoking callbacks.

    To make an email or reply you compose in Gmail contain an invitation:
    Start composing a new message or reply in Gmail.
    Click Add event info.
    Type the event title under Event:.
    Specify a location (optional) under Where:.
    Set the event's time and duration under When:.
    Continue composing and eventually send your message
    To make an email or reply you compose in Gmail contain an invitation:
    Start composing a new message or reply in Gmail.Click Add event info.Type the event title under Event:.Specify a location (optional) under Where:.Set the event's time and duration under When:.Continue composing and eventually send your message

  • Why Not Use WHEN OTHERS - Friday Question

    There are several people on this forum that abhor use of WHEN OTHERS in the same vein as GOTO (which really is a bad practice).  I have an open mind and am looking for the reason it should be avoided.
    When used to output the state during unexpected exceptions, WHEN OTHES can dramatically reduce debug time.  The only bad exception handler is WHEN OTHERS THEN NULL.  Error logging to a table is important and should include the back trace and call stack in addition to listing pertinent parameter, constant and variable values.  I consider this debug instrumentation.  If you write perfect code or you don't have end users that are very creative in finding bugs that occur because of the convoluted way they get to the code that causes the error you don't need it.  Or you like the thrill of the hunt going slogging through thousands of lines of code to try to figure out what caused the error.  I am lazy and want to have it spelled out for me.  Below is my error logging table (CODE is  a session level transaction identifier used for filtering) and my error logging procedure is equivalent to DBMS_OUTPUT.PUT_LINE.  This makes it easy to take other people's code and replace DBMS_OUTPUT with my error logging.  This becomes very useful for debugging triggers since there is no standard output device.
    CREATE TABLE SUPPORT.MESSAGE_LOGS
      CODE        INTEGER                           NOT NULL,
      TEXT        VARCHAR2(4000 BYTE)               NOT NULL,
      CREATED_ON  TIMESTAMP(6)                      NOT NULL,
      CREATED_BY  VARCHAR2(100 BYTE)                NOT NULL,
      OSUSER      VARCHAR2(100 BYTE),
      MACHINE     VARCHAR2(100 BYTE),
      PROGRAM     VARCHAR2(100 BYTE),
      BACK_TRACE  CLOB,
      CALL_STACK  CLOB
    Typical insert is:
    INSERT INTO message_logs (
                  code,
                  text,
                  created_on,
                  created_by,
                  osuser,
                  machine,
                  program,
                  back_trace,
                  call_stack )
    VALUES      (
                  utilities.get_xaction_sequence,
                  pv_text,
                  SYSTIMESTAMP,
                  UPPER ( utilities.get_session_user ),
                  UPPER ( utilities.get_osuser ),
                  UPPER ( utilities.get_machine ),
                  UPPER ( utilities.get_program ),
                  DBMS_UTILITY.format_error_backtrace,
                  DBMS_UTILITY.format_call_stack
    Typical error text:
    ERROR in UTILITIES.CREATE_FILE: ORA-29280: invalid directory path
    Directory = FILEDIR
    File Name = _Revoke_From_COGNOS_ALL_Script19-MAR-12.SQL
    Linesize = 32000
    Text - 1st chacters = -- File created on 19-Mar-2012 11:16:38

    Hoek wrote:
    C'mon Ed, now shirley you must have an opinion regarding the use of WHEN OTHERS?
    Feel free to share it with us
    My opinion is that I hate it when an application -- any application, under any framework, in any language -- swallows an error message.  As to getting into the weeds of WHEN OTHERS, I tend to agree that it should be avoided but am open to arguments for exceptions.  Does that sound like waffling?  It's not intended to be.  Here's where I have to make a confession.  When I transitioned from the role of "developer" (we called them "programmer/analyst" then) to dba, my shop was also transitioning from IBM's IMS database (hierarchical) to relational databases - first DB2, then as client-sever architecture came in they settled on Oracle as the C/S database.  Because I was viewed as an "early adopter" and had been doing some development work on our first client-server apps, I was tagged to become our first Oracle DBA. (My first oracle db was v7.3 on Win 3.11)   As a result of that path, I never really got heavily into development with PL/SQL.  I can do OK on  individual procedures - mostly for one-off or stand-alone use. But I never developed that mental framework and toolbox of procedures that only comes with working heavily in a language.  
    Don't call me Shirley

  • Debugging the program that will get triggered for a particular output type

    Hi all,
             I have one program,which will get triggered when a Sales order of type 'VOR' is created.Whenever 'VOR' order is created it will trigger the 'ZALT' output type.And this output type 'ZALT'has been configured to my program.This output type configuration has been set up by my functional consultant.
    My problem is I created Sales order of type 'VOR'.But I want to debug my program,which has to be triggered because of that 'VOR' sales order type,which in turn triggers 'ZALT' output type and in turn triggers my program.
    My problem is I created Sales order of type 'VOR' by keeping debugging point in my program.But it is not going to my program and simply displaying sales order has been saved.
    So is the outtype has been configured properly?.Do I need to go to my functional consultant?Could anyone explain in this regard?
    Rgds,
    Balaji

    Hi Balaji,
    If possible, try to repeat the output in the output type messages screen of VA02 and change its dipatch time to '1'(Through further data). Now put the break point in the program assigned to output tye 'ZALT'(You can see this in the TNAPR table) and run the program RSNAST00 through SE38. The program will stop at the break point.
    If its not possible to repeat the output and if you want to check it the first time the output type is processed, ask the functional consultant to change the dispatch time in the condition record that is being retrieved for proposing the output type to '1'. Now run RSNAST00. The program will stop at the breakpoint.
    Thanks,
    Vinay

  • Debugging customized function module when Idoc is triggered via ALE

    Hi,
    Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
    However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
    How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
    Any help would be greatly appreciated.
    Thanks in advance,
    Mick

    Hi Mick, this might be of some help 4 u.
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Create Model View
    Tcode BD82 - Generate partner Profiles & Create Ports
    Tcode BD64 - Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE - for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 - Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 - Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 - Send Material Data
    Tcode WE05 - Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
    save and goback.
    2) Tcode BD50---> check the MATMAS check box save and comeback.
    3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52---> give message type : matmas press ok button.
    select all what ever you want and delete remaining fields.
    save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
    it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
    give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    cheers,
    Hema.

  • Debugging is not Triggered

    Hi Experts,
    I've the problem that the Debugging is not triggered. I found your replies in SDN. I tried in all ways that you have specified.
    ie: i) From SE80>UTILITIES>SETTINGS>ABAP EDITOR>DEBUGGING--> enetr the username for EXTERNAL Debugging.
        ii) Thro SICF ---> Activated the Breakpoints.
        iii) Trying with Trace also.
    It doesnt trigger the Debugging. Could you please tell me is there any other way to activate this... or where i may go wrong....
    This is my Scenario...
    I've developed one BSP application. Its worked fine in old server. After that i had transport that application to new server.
    Thats also done successfully. When i try to debug, it doesnt trigger that...
    Regards,
    Anita.

    Hi Anita,
    When you set a breakpoint, you do so for a user (see the message at the bottom of SAP Gui when setting a breakpoint). So indeed, the breakpoint must be set for the same user as the one who logged in to SICF.
    If you want to change the user for which the breakpoint is set, then go to menu Utilities->Settings->ABAP Editor->Debugging, and change the value of the Users field with the admin user. The next breakpoints will be set for the admin user, so that when he connects, he will enter debug mode (of course, he must be connected in SAP Gui too).
    Hope this is clear enough...
    Regards,
    Tanguy

  • Debugging not triggered!!!

    Hi Friends,
    I have created a BSP application, until last working day the debuging was triggering perfectly for this application, but today its not...
    I have checked the following:
    1)From SE80>UTILITIES>SETTINGS>ABAP EDITOR>DEBUGGING--> enetr the username for EXTERNAL Debugging.
    The username entered is the same as my loginID.
    2)I am using the classical debugger.
    3) I always keep one session for debugging.
    But still not getting it, what might be the priblem?
    Thanks,
    Anubhav.

    Hi Raja,
    Actually when i execute the BSP , popup comes for the IE asking for USERNAME and PWRD, here i was entering different username than my LOGINID, when i used the same IDs for SAP logon and IE , it is working fine..
    Many thanks for the help,
    Anubhav.

  • Debugging N step badi triggering GOA workflow

    Hi Gurus,
    We have a approval workflow which is triggered whenever a GOA document is saved or its change version is saved.
    The BADI is used for determining the approvers and assigning leves as we have multiple level approval process.
    I want to debug this badi whenever i create a GOA document using transaction BBP_CTR_MAINCC.
    I tried using normal session break point technique but it didn't work. I also tried to put infinite loop in the badi and tried debugging using sm50 but without success.
    Request you to suggest how to debug that badi .
    Regards,
    Rohit

    I think you can just debug the badi from SE19.
    1. Create a GOA in the web frontend, but don't do any approval just yet
    2. Write the GOA number down somewhere.
    3. the object type is BUS2000113
    4. Start SE19 and start debugging the BADI workflow
    5. Enter the object id = goa number, object type = BUS2000113
    6. Start debugging
    Regards,
    Robin

  • Redefined method is not getting triggered while Debugging

    Hi Experts,
    I have a requirement wherein I need to desplay Role information in Header level. To achieve this I have enhanced component ICCMP_BP_DETAIL and Window ICCMP_BP_DETAIL/MoreWindow. I have redefined method IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION of class ZL_ICCMP_BP_MOREWINDOW_IMPL. But, surprisingly, while debugging, flow is not coming to this redefined method, though it was coming in standard method. Please guide what can be the possible reason for this.
    Regards,
    Keya
    Edited by: Keya Sit on Oct 14, 2009 2:32 PM

    Hi Keya,
    Hope you have activated your redefined method. Also check the configuration for controller replacement in SPRO and check the View Cluster-BSPWDVC_CMP_EXT.
    Regards
    Prasenjit

  • Debug VA01 at the point where output gets triggered

    Hi buddies,
    I need the point where output type ZOC1 is getting triggered while saving a sales order in VA01. I have put numerous breakpoints in the output type print program but it is not taking me there at the 1st instant when I save the sales order. Later, when I check the print preview, at that time I am being taken to the print program. How do I check where the output program is getting called in VA01 ?
    Request someone to help me out with this.
    Thanks,
    Dikshitha

    1st time the LDC field is coming in the print preview (after saving) but it is not coming in the print out of the order confirmation. The order confirmation print out comes out as soon as the sales order is saved.
    2nd time the LDC comes in the preview and the print out.
    You can see the LDC field in the additional data B tab of the material. After I enter a date in this field and save, the order confirmation printout goes to the user. What happens in the backend is that the LDC field first goes and gets updated in the text of the material (order confirmation text) and has to get printed along with what ever is already there in the text. But the problem here is that the text gets printed the 1st time and the LDC gets printed only the 2nd time.
    So what I think is that by the time the LDC gets updated in the text, the text is already being printed. Thats the reason we are able to see the LDC when the output is triggered for the 2nd time and not when it is triggering the 1st time.
    I need to get this on the printout the 1st time itself. I was thinking of giving a delay of 20 or 30 seconds just before the output program is getting called in VA01.

  • Triggering Just-in-time Debugging

    Hi all,
    One can start the JVM with the option of putting itself into debug mode if an uncaught exception is thrown.
    Do you know whether it's possible to explicitely put the JVM into debug mode without throwing an exception. Say I have a Java program with a UI and I want to have a command in the UI that puts the program (JVM) in debug mode.
    Thanks,
    Boris

    Do you know whether it's possible to explicitely put
    the JVM into debug mode without throwing an exception.
    Say I have a Java program with a UI and I want to have
    a command in the UI that puts the program (JVM) in
    debug mode.For all current JDI implementations, the debugee JVM must be
    started with debugging enabled for you to be able to attach
    later and debug. Ways to do that are described here:
    http://java.sun.com/j2se/1.5.0/docs/guide/jpda/conninv.html#Invocation
    The 'attach on demand' capability (where you can attach and debug
    any VM, regardless of how it was started (given the appropriate access
    permissions)) is the topic of Bug-IDs 4841257, 6173612, and 6173750
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4841257
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6173612
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6173570

  • How can I implement a recursive update within triggers?

    Given
    INSTANCE (table)
    INST_ID
    etc.
    INSTANCE_STRUCTURE (table)
    PARENT_ID (fk to INST_ID)
    CHILD_ID (fk to INST_ID)
    And that I COULD write code which recursively navigates the hierarchy (ie. START WITH parent_id = ? CONNECT BY PRIOR child_id = parent_id) and issues UPDATEs to each "child" along the way, thereby propogating the desired update, how can I accomplish the same thing using triggers?
    Keep in mind I am using Oracle 7.3 and I have no choice. Also, the DBA is very difficult to get a hold of and I have no idea if there may be some server settings which are preventing some of my attempts from succeeding.
    Of course the simplest method is to make an update trigger on INSTANCE select all CHILD_ID from INSTANCE_STRUCTURE and issue UPDATE to each which, in turn, would invoke the same trigger, however, we can't have a mutating table, now can we?
    Next, I tried the old global variable in a package bit. That's when I first started getting this "end of channel" business which essentially disconnects me from Oracle (while using SQLPlus). I started to debug that, and then other users started getting errors ... apparently due to the global variable being global ACROSS sessions ... which I did not expect (correct me if I'm wrong and I can try it again), however, due to the amount of data I'm dealing with in any one particular line of hierarchy, I'm not sure I wouldn't get an error anyhow ... particularly if I have to maintain a global array for everyone at once. Anyhow, it was during that, that I realized the "too many open cursors" thing and so I started working with START WITH CONNECT BY to identify all rows which must be dealt with.
    Then, I tried setting up some new tables (as opposed to global variables) in which I would identify userenv('sessionid') and other data so that a BEFORE UPDATE, FOR EACH ROW trigger could check to make sure that the AFTER UPDATE trigger had not begun yet (IOW, not recursing yet). Basically, everything's fine until the AFTER UPDATE trigger tries to apply UPDATEs for the children (identified from a cursor on START WITH CONNECT BY) ... then I get the "end of channel" thing again.
    Obviously, this whole thing is an attempt to denormalize some data for performance reasons.
    Any help would be appreciated.
    Thanks.

    Nevermind, I figured somethin' out.

  • Break points are not triggering in RFC from portal application

    Helllo,
    I am running Biller Direct application from portal, which is triggering a standard SAP RFC FM back end, am trying to debug my execution from portal, for this i put the External Break point, Session break-poiint at the beginning of this SAP RFC FM, but, its not stoppping at ll, here the user is a Web user, not dialog user.
    How can i stop my execution in this SAP RFC FM to check how the structures are populated?
    Thank you

    Hi Raju,
    Please try the below way and check if it works.
    Open the RFC in R/3 i.e.
    SE37 -> give FM NAME -> DISPLAY.
    Click on UTILITIES -> SETTINGS -> CLICK THE TAB debugging.
    In the screen against the field users : give the value 'WEBLOGIN'.
    Uncheck the FLAG 'IP MATCHING'.
    And at the bottom check the check box against the field
    'Session Break Point Activate Immediately'.
    Save these settings.
    Then go to the line at which you want to debug the code and put an external break point over there.
    But, please take care of one thing as we are giving it as a WEBLOGIN, when ever some logs in, it will reach the brteak point and stop there. We have to click F8 to continue. Or else, the portal will be hanged for them.
    Thanks & regards,
    Y Gautham

  • IPC Debugging...

    Hi All,
    I have implemented a new Base Condition Formula in IPC in Netweaver Developer Studio, and beautiful thing happened is it's NOT working. I heard that debugging the code is possible in NDS when the pricing request is triggered from CRM. For this I started the 'Debug Configurations' from menu...
    Run->Debug ---> Remote Java Applications with following connection properties Host:localhost port:8000. And it dissappointed me saying
    "Failed to connect to remote VM. Connection refused"
    Since I've never worked on IPC and NDS, "?" popped up in my mind.
    Can anyone help me ?
    Regards,
    Phani.

    Hi Phani
    I have got this working by:
    - Using a local IPC
    - Changing the IPC server.bat file, adding the following to the line that executes JavaServer 
    -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
    So the line in server.bat looks like:
    @"%JAVA_HOME%binjava" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xms64m -Xmx512m -cp "%CLASSPATH%" com.sap.sxe.socket.server.JavaServer
    (Thanks Google)
    - Adding my breakpoint to the PricingUserExits class before compiling it and placing it on the IPC.
    - Restarted IPC (using my new server.bat file rather than as a Windows service as I normally do)
    - Attach the debugger as you described
    Then it worked beautifully - I created a transaction in CRM, it hung, I went to Eclipse and it was stopped on my breakpoint.
    Cheers
    Dom
    Cheers

Maybe you are looking for

  • How to save Special Characters in oracle?

    Is there any way to enter special characters such as ºC ? i am using J2EE and Oracle 9 i. When i try to enter 2ºC after updating the datbase it is converted to 2ºC when it is displayed in HTML. All special characters are prefixed with Â. Pls suggest

  • Iphone 5 trouble with charging, please help?

         Haven't had my iPhone for long (around November for my birthday) and for about the last couple of weeks recently I have had major trouble with the battery charge.      At first I thought it was the cables, so I got new one after new one and they

  • Adobe Encore has stopped working

    Hey a,, I'm a CC user but downloaded (as per Adobe's advice) the old (CS6) version of Premiere which comes with Encore CS6.  Uninstalled Premiere so i was left with just Encore, but it won't even start at all - I immediately get a 'Adobe Encore has s

  • Premium messaging scams

    My current bill has 2 charges on my wife's number for premium messaging services "Pure Luv Alerts"  and "Cellfunz". She swears she never subscribed to them. A quick internet search shows numerous scam reports from others who had the same thing happen

  • Standard Report for Customer Listing

    Hi Gurus Is there any standard report available for Customer listing which display customer details. Points will be rewarded.. Regards Happy