cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to write monitor messages in DTP

bryan_koetting2
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

0 Kudos

Hello Bryan and Rodrigo:

Apart from what said here, look also at message

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

Former Member
0 Kudos

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.

former_member186358
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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