<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: regarding message statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941015#M693341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this statement : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  MESSAGE s001(zzg) WITH 'UPDATE SUCCESFULLY'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this statement fired before i modify anything, so which place i put this statement. in program..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 21:30:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T21:30:14Z</dc:date>
    <item>
      <title>regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941012#M693338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) i m Modifying record in my own database table using modify statement ,what i want that after modify it will display message "data modify successfully" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) i m Deleting record in my own database table using delete statement ,what i want that after delete it will display message "data delete successfully" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me how will i use the message statement......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941012#M693338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941013#M693339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message text-e01 type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use different types according to ur requirement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A - Abend &lt;/P&gt;&lt;P&gt;: Transaction terminated &lt;/P&gt;&lt;P&gt;E - Error &lt;/P&gt;&lt;P&gt;: Error message &lt;/P&gt;&lt;P&gt;I - Info &lt;/P&gt;&lt;P&gt;: Information &lt;/P&gt;&lt;P&gt;S - Status &lt;/P&gt;&lt;P&gt;: Status message &lt;/P&gt;&lt;P&gt;W - Warning &lt;/P&gt;&lt;P&gt;: Correction possible &lt;/P&gt;&lt;P&gt;X - Exit &lt;/P&gt;&lt;P&gt;: Transaction terminated with short dump &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In text elements maintain the message description you want to ddisplay. For eg: Double click on text-e01 and write the description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sri Tayi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941013#M693339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941014#M693340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zenithi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sy-subrc after the statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify &amp;lt;ztable&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message s000(message class) with "data modify successfully" &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete &amp;lt;ztable&amp;gt; from &amp;lt;workarea&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message s000(message class) with "data delete successfully"&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopes it will help you.&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941014#M693340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941015#M693341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this statement : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  MESSAGE s001(zzg) WITH 'UPDATE SUCCESFULLY'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this statement fired before i modify anything, so which place i put this statement. in program..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941015#M693341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941016#M693342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post your entire code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941016#M693342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941017#M693343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZDESKDLC NO STANDARD PAGE HEADING LINE-SIZE 255.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DATA DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZDESKDLC.&lt;/P&gt;&lt;P&gt;*start-of-selection.&lt;/P&gt;&lt;P&gt;data: flag.&lt;/P&gt;&lt;P&gt;*flag = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;    PARAMETERS: CCOD LIKE ZDESKDLC-CCODE MODIF ID ABC.&lt;/P&gt;&lt;P&gt;    PARAMETERS: DESKCODE LIKE ZDESKDLC-DESK_CODE MODIF ID ABC.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END   OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECTION SCREEN WITH RADIO BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: DELETE RADIOBUTTON GROUP G1 USER-COMMAND R DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;  PARAMETERS: UPDATE RADIOBUTTON GROUP G1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;    PARAMETERS: CCOD1 LIKE ZDESKDLC-CCODE MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                DESKCD LIKE ZDESKDLC-DESK_CODE MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                SR_MANAG LIKE ZDESKDLC-SR_MANAGEMENT MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                LASTNAME LIKE ZDESKDLC-LAST_NAME MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                FIRSTNM LIKE ZDESKDLC-FIRST_NAME MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                DEPART LIKE ZDESKDLC-DEPARTMENT MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                ADM_SYS LIKE ZDESKDLC-ADMIN_SYSTEM MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                RACF_ID LIKE ZDESKDLC-RACF_ID MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                OPEN_DT LIKE ZDESKDLC-OPEN_DATE MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                CLOSE_DT LIKE ZDESKDLC-CLOSE_DATE MODIF ID DEF,&lt;/P&gt;&lt;P&gt;                SAPUSRID LIKE ZDESKDLC-SAP_USER_ID MODIF ID DEF.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END   OF BLOCK B2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; AT SELECTION-SCREEN.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  IF DELETE = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'DEF'.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF UPDATE = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF SCREEN-GROUP1 = 'ABC'.&lt;/P&gt;&lt;P&gt;        SCREEN-ACTIVE = '0'.&lt;/P&gt;&lt;P&gt;        screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DELETE QUERY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF DELETE = 'X'.&lt;/P&gt;&lt;P&gt;  DELETE from zdeskdlc where&lt;/P&gt;&lt;P&gt;  CCODE = CCOD AND&lt;/P&gt;&lt;P&gt;  DESK_CODE = DESKCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  MESSAGE s001(zig) WITH 'data delete successfully'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; UPDATE QUERY&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF UPDATE = 'X'.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-CCODE       = CCOD1.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-DESK_CODE      = DESKCD.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-SR_MANAGEMENT  = SR_MANAG.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-LAST_NAME      = LASTNAME.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-FIRST_NAME  = FIRSTNM.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-DEPARTMENT  = DEPART.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-ADMIN_SYSTEM = ADM_SYS.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-RACF_ID = RACF_ID.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-OPEN_DATE = OPEN_DT.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-CLOSE_DATE = CLOSE_DT.&lt;/P&gt;&lt;P&gt;  ZDESKDLC-SAP_USER_ID = SAPUSRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY ZDESKDLC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  MESSAGE s001(zig) WITH 'data modify successfully'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941017#M693343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941018#M693344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you are finished with your AT SELECTION SCREEN event, you have to start the START-OF-SELECTION event,, if not all the code you have written will be triggered just when the selection screen is built.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So may be before your DELETE QUERY put the START-OF-SELECTION event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 21:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941018#M693344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T21:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941019#M693345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zenithi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 22:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941019#M693345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941020#M693346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have some bad coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
* UPDATE QUERY
*----------------------------------------------------------------------*
IF UPDATE = 'X'.
ZDESKDLC-CCODE = CCOD1.
ZDESKDLC-DESK_CODE = DESKCD.
ZDESKDLC-SR_MANAGEMENT = SR_MANAG.
ZDESKDLC-LAST_NAME = LASTNAME.
ZDESKDLC-FIRST_NAME = FIRSTNM.
ZDESKDLC-DEPARTMENT = DEPART.
ZDESKDLC-ADMIN_SYSTEM = ADM_SYS.
ZDESKDLC-RACF_ID = RACF_ID.
ZDESKDLC-OPEN_DATE = OPEN_DT.
ZDESKDLC-CLOSE_DATE = CLOSE_DT.
ZDESKDLC-SAP_USER_ID = SAPUSRID.

MODIFY ZDESKDLC.
ENDIF.

IF SY-SUBRC = 0.
MESSAGE s001(zig) WITH 'data modify successfully'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message will be sent even if the MODIFY is not done because the Message code is outside the IF statement in which the MODIFY is contained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your delete code is done OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODIFY message will display when you don't expect it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to make this change in addition to the other suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust wording&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Brian Sammond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 22:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941020#M693346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T22:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941021#M693347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more question........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) suppose i am Modifying record in my own database table using modify statement , but data already there... now i want to put the message "data is alreday inserted"... so what to do.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zenithi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 23:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941021#M693347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T23:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941022#M693348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use sy-subrc NE 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an entry is modified sy-subrc = 0, if not sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 23:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941022#M693348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T23:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941023#M693349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zenithi,Before modify statement read that table.&lt;/P&gt;&lt;P&gt;coz modify statement will inseart a new record if that record already exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Read table &amp;lt;table&amp;gt; with key &amp;lt;filed&amp;gt; = &amp;lt;table &amp;gt;-&amp;lt;field&amp;gt;.,&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;"data is already inserted".&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;modify &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message "uploaded successfully"&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Quadri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 23:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941023#M693349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T23:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941024#M693350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report i have selecttion screen, in selection screen 10 text box. like company code, first name , last name.... etc. what i want user enter company code in first text box and press execute after that company code related data automatically fill in all other text box. like first name = xxxx, last name = yyyy.&lt;/P&gt;&lt;P&gt;so which query i use for this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me how will i use the query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 16:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941024#M693350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T16:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941025#M693351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my report i have selecttion screen, in selection screen 10 text box. like company code, first name , last name.... etc. what i want user enter company code in first text box and press execute after that company code related data automatically fill in all other text box. like first name = xxxx, last name = yyyy.&lt;/P&gt;&lt;P&gt;so which query i use for this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me how will i use the query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 17:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941025#M693351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941026#M693352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the AT SELECTION SCREEN EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have 2 parameters in the Sel Screen, Customer No(KUNNR) and Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paramters: P_KUNNR type KUNNR,&lt;/P&gt;&lt;P&gt;P_name like KNA1-Name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;If not P_KUNNR is initial.&lt;/P&gt;&lt;P&gt;Select single name into P_NAME from KNA1 where kunnr = P_kunnr.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fills in the Name of the customer if you just enter the Customer Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 18:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941026#M693352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T18:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: regarding message statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941027#M693353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MESSAGE statement in ABAP is used to put output messages. Please find some information on this topic and reward points if you find the information useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE xnnn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID id TYPE mtype NUMBER n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE xnnn(mid).&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sends a message. Messages are stored in the table T100, are processed using transaction SE91 and can be created by forward navigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP runtime environment handles messages according to the type declared in the MESSAGE statement and the context in which the message was sent. The following message types exist:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A - Abend&lt;/P&gt;&lt;P&gt;    : Transaction terminated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E - Error&lt;/P&gt;&lt;P&gt;    : Error message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I - Info&lt;/P&gt;&lt;P&gt;    : Information &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S - Status&lt;/P&gt;&lt;P&gt;    : Status message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W - Warning&lt;/P&gt;&lt;P&gt;    : Correction possible &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X - Exit&lt;/P&gt;&lt;P&gt;    : Transaction terminated with short dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages are mainly used to handle user input on screens. The following table shows the behavior of each message type in each context. An explanation of the numbers used is included at the end of the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                            A     E     I     S     W     X&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;PAI Module                   1     2     3     4     5     6&lt;/P&gt;&lt;P&gt;PAI Module for POH            1     7     3     4     7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    6&lt;/P&gt;&lt;P&gt;PAI Module for POV            1     7     3     4     7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;AT SELECTION-SCREEN ...     1     8     3     4     9     6&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN for  POH  1     7     3     4     7     6&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN for  POV  1     7     3     4     7     6&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON EXIT 1     7     3     4     7     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;AT LINE-SELECTION           1    10     3     4    10     6&lt;/P&gt;&lt;P&gt;AT PFn                      1    10     3     4    10     6&lt;/P&gt;&lt;P&gt;AT USER-COMMAND             1    10     3     4    10     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;INITIALIZATION              1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;START-OF-SELECTION          1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;GET                         1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;END-OF-SELECTION            1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;TOP-OF-PAGE                 1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;END-OF-PAGE                 1    11     3     4    11     6&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING ...      1    10     3     4    10     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;LOAD-OF-PROGRAM             1     1     4     4     4     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;PBO Module                   1     1     4     4     4     6&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT  1     1     4     4     4     6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;Procedure:                    see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Messages&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1. The message appears in a dialog box and the program terminates. When the user has confirmed the message, control returns to the next- highest area. All the internal sessions are deleted from the stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   2. The message appears in the status line. Then PAI terminates and the system returns to the current screen. All the screen fields combined using FIELD or CHAIN are now ready for input. The user must enter new values. The system triggers the PAI event again, with the new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   3. The message appears in a dialog box. Once the user has confirmed the message, the program continues immediately after the MESSAGE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   4. The message appears in the status line of the next screen. The program continues immediately after the message statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   5. The message appears in the status line. Then the system continues as in 2, except that the user can quit the message using ENTER without having to enter new values. The system continues handling the PAI event from immediately after the message statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   6. No message is displayed and a runtime error, MESSAGE_TYPE_X, is triggered. The short dump text contains the message identification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   7. The program terminates with a runtime error DYNPRO_MSG_IN_HELP. While F1 and F4 are processed, the system cannot send error messages or warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   8. The message appears in the status line. Then the system stops selection screen processing and returns to the selection screen itself. The screen fields specified in the additions to the AT SELECTION-SCREEN statement are now ready for input. The user must enter new values. The system then starts processing the selection screen again with the new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   9. The message appears in the status line. Then the system continues as in 8, except the the user can quit the message using ENTER, without having to enter new values. The system continues handling the PAI event from immediately after the message statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  10. The message appears in the status line and the processing block terminates. The list level is displayed as before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  11. The message appears in the status line and the processing block terminates. The system then returns to the program call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  12. For a demonstration of messages in different contexts, see Example Programs for Messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE xnnn.&lt;/P&gt;&lt;P&gt;Extras:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... WITH f1 ... f4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RAISING exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... INTO f&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outputs the message nnn from the message class i with the type x. You can specify the message class i using the MESSAGE-ID addition to the REPORT statement, PROGRAM, or another introductory program statement.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE I001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You can specify a different message class in parentheses after the error number, for example MESSAGE I001(SU).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;When executing the statement, the following system variables are set:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGID (message class)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGTY (message type)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SY-MSGNO (message number)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... WITH f1 ... f4&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserts the contents of a field fi in the message instead of in the placeholder &amp;amp;i. If unnumbered variables (&amp;amp;) are used in a message text, these are replaced consecutively by the fields f1 to f4.&lt;/P&gt;&lt;P&gt;To aid compilation, only numbered variables (&amp;amp;1 to &amp;amp;4) are to be used in future if several fields are involved.&lt;/P&gt;&lt;P&gt;If a "&amp;amp;" is supposed to appear in the message at runtime, you must enter &amp;amp;&amp;amp;.&lt;/P&gt;&lt;P&gt;In the long text of a message, the symbol &amp;amp;Vi&amp;amp; is replaced by the field contents of fi.&lt;/P&gt;&lt;P&gt;After WITH, you can specify 1 to 4 fields.&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can output up to 50 characters per field. If the field contains more characters, these are ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E0004 WITH 'Hugo'.&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the statement, the contents of the fields f1 to f4 are assigned to the system fields SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4.&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... RAISING exception&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only possible within a function module or a method (see FUNCTION, METHOD):&lt;/P&gt;&lt;P&gt;Triggers the exception exception.&lt;/P&gt;&lt;P&gt;If the program calling the function module or method handles the exception itself, control returns immediately to that program (see CALL FUNCTION and CALL METHOD). Only then are the current values passed from the procedure to the EXPORTING-, CHANGING- (und RETURNING) parameters of the function module or method, if they are specified as pass-by- reference. However, the calling program can refer to the system field values (see above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the calling program does not handle the exception itself, the message is output (see RAISE).&lt;/P&gt;&lt;P&gt;You cannot use this addition in conjunction with the ... INTO cf addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE E001 RAISING NOT_FOUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... INTO f&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of displaying the message, the system places the message text in the field f. The message type is not evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use this addition in conjunction with the ...RAISING exception addition. The system sets the following system variables: SY-MSGID (message class), SY-MSGTY (message type), SY-MSGNO (message number) and SY-MSGV1, SY-MSGV2, SY-MSGV3, SY-MSGV4 (parameters).&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA msgtext(72).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E004 WITH 'Hugo' INTO msgtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID id TYPE mtype NUMBER n.&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for variant 1, where you can set the following message components dnyamically:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;    Message class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE&lt;/P&gt;&lt;P&gt;    Message type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER&lt;/P&gt;&lt;P&gt;    Message number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use all the other additions as with the basic form.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID 'SU' TYPE 'E' NUMBER '004' WITH 'Hugo'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outputs the message with the number 004 and MESSAGE-ID SU (see above) as an E (Error) message and replaces the first variable (&amp;amp;) with 'Hugo'.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructs the message dynamically from the contents of the system fields SY-MSGID, SY-MSGTY, SY-MSGNR , SY-MSGV1 , SY-MSGV2,SY-MSGV3,and SY-MSGV4. These may, for example, be set by an exception after CALL FUNCTION or CALL TRANSACTION ... USING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE xnnn(mid).&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in variant 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;MESSAGE X004(SU) WITH 'Hugo'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE_TYPE_UNKNOWN: message type unknown&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE_TYPE_X: Triggers termination with a short dump&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 18:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-message-statement/m-p/2941027#M693353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T18:56:23Z</dc:date>
    </item>
  </channel>
</rss>

