Process Output Types Through Program
Process Output Types Through Program
Introduction
What is an Output type (Message type) ? (source SAP Help)
An output type (or also a "condition type") summarizes messages of the same meaning. It contains parameters that are valid
for all its assigned messages, for example appropriate partner functions.
USE:
For each transmission medium, one form routine in a program is assigned to the output type. This form routine is called for
processing the message (message status record).
Output types or message types are processed from business transactions like vt02n, me22n etc.
When an message type is processed it runs the associated form routine of the output type, but in certain cases we may
require to process the message type through our program so we will see how to do that.
So to process a message type through our program we have to create these parameters in the NAST table.
wa_nast-mandt = sy-mandt.
wa_nast-kappl = <appropriate value>."Application area
wa_nast-objky = <appropriate value>."object key. Po, shipment etc
wa_nast-kschl = <output type>."output type to be processed
wa_nast-spras = <appropriate value>."language
wa_nast-parnr = <appropriate value>."message partner
wa_nast-parvw = <appropriate value>."partner function
wa_nast-erdat = sy-datum."current date
wa_nast-eruhr = sy-uzeit."current time
wa_nast-nacha = <appropriate value>."message transmission medium
wa_nast-anzal = '01'."number of messages
wa_nast-vsztp = <appropriate value>."Dispatch time
wa_nast-vstat = '0'."processing status
3 Now Update the NAST table with the fm 'RV_MESSAGE_UPDATE_SINGLE'