Skip to Content

Unable to write monitor messages in DTP

Hello all,

Has anybody been successful writing monitor messages into a DTP? I am using the code as documented in the online help and the document "How To...Routines within Transformations", as follows:

monitor_rec-msgid = 'ZBW'.

monitor_rec-msgty = 'E'.

monitor_rec-msgno = '001'.

monitor_rec-msgv1 = 'Test error'.

monitor_rec-msgv2 = 'Line 2'.

raise exception type CX_RSROUT_ABORT.

This causes the load to fail with an error, but the monitor only shows the following messages:

Error in substep

An exception has occurred

Exception CX_RS_STEP_FAILED logged

I know that my message type and class are set up correctly, because if

I insert the following code, I can get messages in the job log (but

still not the monitor):

message E001(ZBW) with

monitor_rec-msgv1

monitor_rec-msgv2

monitor_rec-msgv3

monitor_rec-msgv4.

Am I not looking in the right place in the DTP monitor? We are on the latest SP for BW 7.0.

I have opened a message with SAP on this but they have not replied after a month...

Thanks,

Bryan

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2007 at 08:55 AM

    Hi Bryan,

    I think after this code

    monitor_rec-msgid = 'ZBW'.
    monitor_rec-msgty = 'E'.
    monitor_rec-msgno = '001'.
    monitor_rec-msgv1 = 'Test error'.
    monitor_rec-msgv2 = 'Line 2'.

    there should be one statement of

    <i>

    append monitor.

    </i>

    and you may comment

    <i>

    raise exception type CX_RSROUT_ABORT.

    </i>

    Hope that helps.

    Regards

    Mr Kapadia

    Assigning points is the way to say thanks in SDN.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2007 at 07:41 AM

    Hi

    Try two things:

    Firstly add a record number to the monitor: e.g.

    monitor_rec-recno = '1'. "in the start routine

    or the current record number in a normal routine.

    Secondly, I also disabled raising the exception, the request went red anyway.

    Regards

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 11, 2007 at 07:58 AM

    Hi Bryan,

    SP- 08 is quite pre-mature for DTP related issues ...better upgrade to latest SP.

    If not all most of the DTP related issues are taken care of in SP>10.

    You may wish to take a look at below-

    Note 962357 - Consulting Note: CX_RS_STEP_FAILED in the DTP log

    Assign points if this is helpful.

    Regards,

    Anil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 10:51 AM

    Hi Bryan,

    Yours code is fine.

    "monitor_rec-msgid = 'ZBW'.

    monitor_rec-msgty = 'E'.

    monitor_rec-msgno = '001'.

    monitor_rec-msgv1 = 'Test error'.

    monitor_rec-msgv2 = 'Line 2'.

    raise exception type CX_RSROUT_ABORT.

    append monitor_rec into monitor."

    You have to modify in the DTP Update TAB, the type of "ERROR HANDLING".

    Put it in "Valid RecordsUpdate, Reporting Possible (Request Green)" and choose the maximum number of errors per pack.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Bryan and Rodrigo:

      Apart from what said here, look also at message

      monitor-entries-in-failed-packages

      It seems that in order to display the MSGV1 - MSGV4 entries you have to maintain the message number in se91 in a custom message class and put " & & & &" in the description. That solved my problem of the custom messages not appearing as part of the error message.

      Example code:

      monitor_rec-msgid = 'ZBW_MAPPING_ERROR'. "This is the class name in se91

      monitor_rec-msgty = 'E'. "if you don't put E then it will not go to the error stag

      monitor_rec-msgno = '000'. "This is the message number in the se91 class

      monitor_rec-msgv1 = 'test1'.

      monitor_rec-msgv2 = 'test2'.

      monitor_rec-msgv3 = 'test3'.

      append monitor_rec to MONITOR.

      This example is for the transformation rules and not for the start/end/expert routines.

      Regards

      Angelo

      Keywords: monitor_rec-msgv1 monitor_rec-msgv2 monitor_rec-msgv3 monitor_rec-msgv4

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.