Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I want some1 to explain me the code

former_member184874
Participant
0 Kudos

I want some1 to explain me the code: This is used in a subroutine/form to display using function REUSE_ALV_GRID_DISPLAY.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

Moderator message: please do more research before posting, avoid "SMS speak"

Message was edited by: Thomas Zloch

2 REPLIES 2

kakshat
Advisor
Advisor
0 Kudos

This is a simple message statement used in ABAP to raise a message to the user. The 'SY-' fields are system fields which contain the paramters identifying the message.

SY-MSGID - Message Class

SY-MSGTY - Message Type

SY-MSGNO - Message Number

SY-MSGV* - Message Variables

You can check the keyword help in transaction ABAPHELP.

Former Member
0 Kudos

This is to display a message when raising statement is used inside a function module.

whenever the exceptions defined in exceptions section of function module occurs inside the FM it will trigger a message with raising statement. Which you will display here in your program.

this is a normal message display statement having system fields contains the values.

read here for more understanding of raising statement.

http://help.sap.com/saphelp_nw70/helpdata/en/d1/801f1c454211d189710000e8322d00/content.htm