MESSAGES
is not specified, each message is sent in accordance with its
definition in the context, as described under
Messages . If the addition MESSAGES is specified, the messages
are not sent; instead, for each message, a row is appended to the
internal table itab , which is specified after INTO . The
row type of the internal table must refer to the structure
SYMSG in ABAP Dictionary. The
columns msgty , msgid , msgno , and msgv1 to
msgv4 contain the message type, message class, message number,
and content of any placeholders. The internal table itab is
initialized at the start of the statement DEMAND .
Example ABAP Coding Creates an instance of the context demo_travel ,
fills the key fields, and requests the derived values.
CONTEXTS demo_travel.
PARAMETERS: p_carrid TYPE context_t_demo_travel-carrid,
p_connid TYPE context_t_demo_travel-connid.
DATA: context_ref TYPE context_demo_travel,
fields TYPE context_t_demo_travel.
SUPPLY carrid = p_carrid
connid = p_connid
TO CONTEXT context_ref.
DEMAND cityfrom = fields-cityfrom
cityto = fields-cityto
fltime = fields-fltime
FROM CONTEXT context_ref.
cl_demo_output=>display_text( |{ fields-cityfrom } {
fields-cityto } {
fields-fltime }| ).
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved