Skip to Content
author's profile photo
Former Member

Create Monitor Entries from Update Routine..

Hi,

There used to be a How to guide with name " How to.... Create monitor entries from update routine". I used to have that but I have deleted it by mistake. I am not finding on marketplace.

If anybody is having that please let me knwo.

Thanks for help.

Su

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Jan 28, 2005 at 05:31 PM

    Hi,

    I don't know about the How To guide you are referring to, but here is some sample code that might help...

    • Check to see if the Resp CCTR is blank in the record being loaded

    if COMM_STRUCTURE-RESP_CCTR EQ space .

    • Create monitor message, 'E' mess in Monitor, others in Appl.log

    RETURNCODE = 1.

    MONITOR-MSGID = 'RSM'.

    MONITOR-MSGTY = 'E'.

    MONITOR-MSGNO = '799'.

    MONITOR-MSGV1 = 'Responsible Cost Center not found.' .

    MONITOR-MSGV2 = 'Order number = ' .

    MONITOR-MSGV3 = COMM_STRUCTURE-COORDER.

    append MONITOR.

    EXIT.

    ENDIF.

    • Check to see if the Sales Disrict is blank in the record being loaded

    if COMM_STRUCTURE-SALES_DIST EQ space .

    • Create monitor message, 'E' mess in Monitor, others in Appl.log

    RETURNCODE = 1.

    MONITOR-MSGID = 'RSM'.

    MONITOR-MSGTY = 'E'.

    MONITOR-MSGNO = '799'.

    MONITOR-MSGV1 = 'Sales District not found.' .

    MONITOR-MSGV2 = 'Cost Center = ' .

    MONITOR-MSGV3 = COMM_STRUCTURE-RESP_CCTR.

    append MONITOR.

    EXIT.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded