<?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: Supressing message from function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636675#M283849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its of no use to execute the Function Module if the internal table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check this first. if the ITAB is not empty,then only call the FM,by this way you can overcome that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF ITAB[] IS NOT INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALLL FUNCTION 'WS_DOWNLOAD'..


 TABLES 
   DATATAB = &amp;lt;b&amp;gt;ITAB&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do so you dont get that message any more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 09:25:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T09:25:34Z</dc:date>
    <item>
      <title>Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636674#M283848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using function 'WS_DOWNLOAD' to download some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no records are downloaded then I m getting message that  '0 bytes transferreed'. &lt;/P&gt;&lt;P&gt;Now I want to supress the messages i.e. it should not display this message, only if it more than o bytes then only it should show this message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module of sy- field to supress the particular message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636674#M283848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636675#M283849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its of no use to execute the Function Module if the internal table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check this first. if the ITAB is not empty,then only call the FM,by this way you can overcome that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF ITAB[] IS NOT INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALLL FUNCTION 'WS_DOWNLOAD'..


 TABLES 
   DATATAB = &amp;lt;b&amp;gt;ITAB&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do so you dont get that message any more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636675#M283849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636676#M283850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the boby of the itab before calling the Fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NOT ITAB[] IS INITIAL.&lt;/P&gt;&lt;P&gt;CALL FM...&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;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636676#M283850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636677#M283851</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;GUI_DOWNLOAD has an EXPORT parameter FILELENGTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If FILELENGTH = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display Message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636677#M283851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636678#M283852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that if there is any data in the file then&lt;/P&gt;&lt;P&gt;by passing empty table I m clearing that file.&lt;/P&gt;&lt;P&gt;So can;t use if itab[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically while clearing the file that table will be initial only so I have to execute that to clear the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to supree this message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u all understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Umesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636678#M283852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636679#M283853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;comment the SY-SUBRC check after u call the FM 'WS_DOWNLOAD' so that all the messages will be supressed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comment this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*  ENDIF.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 09:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636679#M283853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T09:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636680#M283854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     write below logic&lt;/P&gt;&lt;P&gt;      if not itab[] is initial.&lt;/P&gt;&lt;P&gt;       call function 'WS_DOWNLOAD''&lt;/P&gt;&lt;P&gt;      endif.   &lt;/P&gt;&lt;P&gt;      by this logic u can supress message&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;       or &lt;/P&gt;&lt;P&gt;      you have to copy FM to Z and make req changes.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 10:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636680#M283854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Supressing message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636681#M283855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FM SCMS_AO_TABLE_GET_BYTES, has an export parameters FILELENGTH. This return the number of bytes transferred&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCMS_AO_TABLE_GET_BYTES&lt;/P&gt;&lt;P&gt;EXPORTING ...&lt;/P&gt;&lt;P&gt;IMPORTING  = L_LENGTH&lt;/P&gt;&lt;P&gt;TABLES = ITAB&lt;/P&gt;&lt;P&gt;EXceptions ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF L_LENGTH GT 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FILENAME                      = 'C:\ABC.TXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODE                          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_N_FORMAT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_N_SIZE                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_T_FORMAT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WK1_T_SIZE                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECTMASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; filelength                    =  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELDNAMES                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;   FILE_WRITE_ERROR              = 2&lt;/P&gt;&lt;P&gt;   INVALID_FILESIZE              = 3&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 4&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 5&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;P&gt;   INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;P&gt;   CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;P&gt;   OTHERS                        = 10&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;..&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;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Please reward all helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prashant Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 10:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/supressing-message-from-function-module/m-p/1636681#M283855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T10:51:51Z</dc:date>
    </item>
  </channel>
</rss>

