<?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: How to remove function module error? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529876#M1070646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just select from table PROJ yourself instead of using the function module. You can then throw whatever error you want depending upon the return code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 09:31:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T09:31:19Z</dc:date>
    <item>
      <title>How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529873#M1070643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iam using a FM to get the database value of project name(PROJ-PSPID),Iam using this in my module pool program,when I enter wrong project name,the FM itself throwing the error,I want my own error message rather FM error message.How to achieve it?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529873#M1070643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529874#M1070644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the FM call, do a sy-subrc check and based on the value you can trigger your own message..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529874#M1070644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529875#M1070645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI when you call fm.&lt;/P&gt;&lt;P&gt;here in exception you can use as in place of if sy-subrc ,&lt;/P&gt;&lt;P&gt;case sy-subrc.&lt;/P&gt;&lt;P&gt;when '1'.&lt;/P&gt;&lt;P&gt;write.'jhjk'.&lt;/P&gt;&lt;P&gt;when '2'.&lt;/P&gt;&lt;P&gt;write: 'jfkj'.&lt;/P&gt;&lt;P&gt;endcsae.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529875#M1070645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529876#M1070646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just select from table PROJ yourself instead of using the function module. You can then throw whatever error you want depending upon the return code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529876#M1070646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529877#M1070647</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;Try like this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'RZL_READ_DIR'
        exporting
          name           = p_file
          srvname        = ' '
        tables
          file_tbl       = lt_file
        exceptions
          argument_error = 1
          not_found      = 2
          send_error     = 3
          system_failure = 4
          others         = 5.
      if sy-subrc NE 0.
        case sy-subrc.
          when 1.
            message i000(zdmf) with text-108.
          when 2.
            message i000(zdmf) with text-109.
          when 3.
            message i000(zdmf) with text-110.
          when 4.
            message i000(zdmf) with text-111.
          when 5.
            message i000(zdmf) with text-112.
        endcase.
        return.
      endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529877#M1070647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529878#M1070648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First you use conversion routines using FMs &lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ABPSN_INPUT&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ABPSN_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then validate the value of PROJ-PSPID you entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529878#M1070648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529879#M1070649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rock,&lt;/P&gt;&lt;P&gt;After executing the function module , check for sy-subrc value as shown below&lt;/P&gt;&lt;P&gt;data: w_return type bapiret2,&lt;/P&gt;&lt;P&gt;        it_return type table of bapiret2.&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;call function '.....'&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    PERFORM fm_update_return_msg&lt;/P&gt;&lt;P&gt;                  USING  'E'&lt;/P&gt;&lt;P&gt;                         your Message class&lt;/P&gt;&lt;P&gt;                         'msg no' &lt;/P&gt;&lt;P&gt;                          ' ' &lt;/P&gt;&lt;P&gt;                          ' ' &lt;/P&gt;&lt;P&gt;                          ' '  &lt;/P&gt;&lt;P&gt;                          ' '&lt;/P&gt;&lt;P&gt;                  CHANGING w_return.&lt;/P&gt;&lt;P&gt;      APPEND w_return TO IT_RETURN.&lt;/P&gt;&lt;P&gt;      clear w_return.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fm_update_return_msg  USING    p_msgty  TYPE sy-msgty&lt;/P&gt;&lt;P&gt;                                    p_msgid  TYPE sy-msgid&lt;/P&gt;&lt;P&gt;                                    p_msgno  TYPE sy-msgno&lt;/P&gt;&lt;P&gt;                                    p_msg_v1 TYPE sy-msgv1&lt;/P&gt;&lt;P&gt;                                    p_msg_v2 TYPE sy-msgv2&lt;/P&gt;&lt;P&gt;                                    p_msg_v3 TYPE sy-msgv3&lt;/P&gt;&lt;P&gt;                                    p_msg_v4 TYPE sy-msgv4&lt;/P&gt;&lt;P&gt;                           CHANGING p_return TYPE bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BALW_BAPIRETURN_GET2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      type   = p_msgty&lt;/P&gt;&lt;P&gt;      cl     = p_msgid&lt;/P&gt;&lt;P&gt;      number = p_msgno&lt;/P&gt;&lt;P&gt;      par1   = p_msg_v1&lt;/P&gt;&lt;P&gt;      par2   = p_msg_v2&lt;/P&gt;&lt;P&gt;      par3   = p_msg_v3&lt;/P&gt;&lt;P&gt;      par4   = p_msg_v4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return = p_return.&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "fm_update_return_msg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 09:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529879#M1070649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529880#M1070650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all of u guys for u r replies,but I have tried sy-subrc,before the control coming out of FM itself,the error is coming,and as far as not using that FM and just checking with select statement is concerned,it is not possible becoz of the conversion I need to use the routines to see the correctness of the value.PLZ advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 10:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529880#M1070650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529881#M1070651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved : This error was coming only in IDES,when I did the same in DEV server,it has not come.Thanks all for u r valuble replies and u r valuble time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 11:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529881#M1070651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove function module error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529882#M1070652</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;1.check whether it is generated by exception in the FM.if yes then comment exceptions and messages&lt;/P&gt;&lt;P&gt;2.if the message is generaeted from inside.u have to do the cecking before the function module and throw error and dont let the function module to execute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 11:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-function-module-error/m-p/4529882#M1070652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T11:37:30Z</dc:date>
    </item>
  </channel>
</rss>

