<?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: message type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993411#M954004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Error Message type.&lt;/P&gt;&lt;P&gt;Refer the below coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON FIELD field_name.
  SELECT query.
    IF SY-SUBRC NE 0.
      MESSAGE 'message text' TYPE 'E'.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2008 07:43:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-09T07:43:42Z</dc:date>
    <item>
      <title>message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993409#M954002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I enter wrong data on screen-field, I should get  message and after if I press enter, I should come back to that screen-field again so that I can enter proper data and proceed.&lt;/P&gt;&lt;P&gt;What type of mesaage I should use here.&lt;/P&gt;&lt;P&gt;Kindly suggest me with coding.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993409#M954002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T07:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993410#M954003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_PSPNR IS not initial INITIAL  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from &amp;lt;db table&amp;gt; into &amp;lt;&amp;gt; where .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;    MESSAGE E011(ZPS) .&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993410#M954003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T07:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993411#M954004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Error Message type.&lt;/P&gt;&lt;P&gt;Refer the below coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON FIELD field_name.
  SELECT query.
    IF SY-SUBRC NE 0.
      MESSAGE 'message text' TYPE 'E'.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993411#M954004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T07:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993412#M954005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if u are doing Module pool then in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the field name between CHAIN ENDCHAIN method and write the validation b/w the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u need further clarification revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandipan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 08:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993412#M954005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T08:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993413#M954006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT bukrs&lt;/P&gt;&lt;P&gt;           lifnr&lt;/P&gt;&lt;P&gt;           gjahr&lt;/P&gt;&lt;P&gt;           INTO CORRESPONDING FIELDS OF TABLE i_bsak&lt;/P&gt;&lt;P&gt;           FROM bsak &lt;/P&gt;&lt;P&gt;           WHERE budat IN s_budat&lt;/P&gt;&lt;P&gt;            AND  bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;            AND  blart IN s_blart&lt;/P&gt;&lt;P&gt;            AND  uzawe IN s_uzawe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF  i_bsak[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE i019."No Records found&lt;/P&gt;&lt;P&gt; LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here if where condition is not satisfied, then internal table i_bsak will empty and a message will be displaying no records found. and once u click it will back to the selection screen, and from there u can again enter the correct inputs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Vipin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 08:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993413#M954006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T08:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993414#M954007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For printing the Error Messages after validations of EKKO- EBELN, please find below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module validate_ebeln input.&lt;/P&gt;&lt;P&gt;  case ok_code_5000.&lt;/P&gt;&lt;P&gt;    when 'DISP'.&lt;/P&gt;&lt;P&gt;      select single ebeln&lt;/P&gt;&lt;P&gt;             into ekko&lt;/P&gt;&lt;P&gt;             from ekko&lt;/P&gt;&lt;P&gt;             where ebeln = ekko-ebeln.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        clear ekko.&lt;/P&gt;&lt;P&gt;        clear ok_code.&lt;/P&gt;&lt;P&gt;        message e003 with ekko-ebeln.      " PO Does Not exist&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    when 'CHAN'.&lt;/P&gt;&lt;P&gt;      select single ebeln&lt;/P&gt;&lt;P&gt;             into ekko&lt;/P&gt;&lt;P&gt;             from ekko&lt;/P&gt;&lt;P&gt;             where ebeln = ekko-ebeln.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        clear ekko.&lt;/P&gt;&lt;P&gt;        clear ok_code_5000.&lt;/P&gt;&lt;P&gt;        message e003 with ekko-ebeln.      " PO Does not exists&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    when 'CREA'.&lt;/P&gt;&lt;P&gt;      clear: w_ebeln,&lt;/P&gt;&lt;P&gt;             w_bukrs,&lt;/P&gt;&lt;P&gt;             w_bsart,&lt;/P&gt;&lt;P&gt;             w_lifnr,&lt;/P&gt;&lt;P&gt;             w_ekorg,&lt;/P&gt;&lt;P&gt;             w_ekgrp,&lt;/P&gt;&lt;P&gt;             w_aedat,&lt;/P&gt;&lt;P&gt;             w_ernam,&lt;/P&gt;&lt;P&gt;             t_po_item.&lt;/P&gt;&lt;P&gt;      refresh t_po_item.&lt;/P&gt;&lt;P&gt;      select single ebeln&lt;/P&gt;&lt;P&gt;       into ekko&lt;/P&gt;&lt;P&gt;       from ekko&lt;/P&gt;&lt;P&gt;       where ebeln = ekko-ebeln.&lt;/P&gt;&lt;P&gt;      if sy-subrc        = 0.&lt;/P&gt;&lt;P&gt;        clear ekko.&lt;/P&gt;&lt;P&gt;        clear ok_code_5000.&lt;/P&gt;&lt;P&gt;        message e004 with ekko-ebeln.        " PO Already exists.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;endmodule.                 " VALIDATE_ebeln  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 08:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/3993414#M954007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T08:31:37Z</dc:date>
    </item>
  </channel>
</rss>

