<?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: Error in L_TO_CREATE_MOVE_SU in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735647#M899063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaustub,&lt;/P&gt;&lt;P&gt;If u are getting the MESSAGE type as error after calling the FM then the ur program execution will stop at that point. So Comment the messages provided by the FM(Comes when u call the FM from Pattern) and handle the exceptions by checking the sy-subrc. Probably After calling the FM check the sy-subrc value. If it is Not 0 then pass that data to one internal table and display all those records as error log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: CALL FUNCTION 'xxxxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;Comment the above message and do like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;wa_errors-doc = ur doc number or what ever data u have.&lt;/P&gt;&lt;P&gt;APPEND wa_errors to i_errors.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After processing all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_errors INTO wa_errors.&lt;/P&gt;&lt;P&gt;WRITE wa_errors-doc.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 13:51:17 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-04-25T13:51:17Z</dc:date>
    <item>
      <title>Error in L_TO_CREATE_MOVE_SU</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735646#M899062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a standard SAP function module to create a transfer Order for a storage unit. The function module is "L_TO_CREATE_MOVE_SU". The issue with this function module is that, if the user enters the wrong Storage bin for a fixed storage type, the function module raises an exception and exits out of the function module. The message displayed is "Storage bin XXXX is not a fixed bin for material XXXXXX." I would like to capture this error before calling the function module, so that it does not dump like that. Can anyone suggest why this error comes and how I can capture it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735646#M899062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T13:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in L_TO_CREATE_MOVE_SU</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735647#M899063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaustub,&lt;/P&gt;&lt;P&gt;If u are getting the MESSAGE type as error after calling the FM then the ur program execution will stop at that point. So Comment the messages provided by the FM(Comes when u call the FM from Pattern) and handle the exceptions by checking the sy-subrc. Probably After calling the FM check the sy-subrc value. If it is Not 0 then pass that data to one internal table and display all those records as error log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: CALL FUNCTION 'xxxxx'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;Comment the above message and do like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;wa_errors-doc = ur doc number or what ever data u have.&lt;/P&gt;&lt;P&gt;APPEND wa_errors to i_errors.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After processing all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_errors INTO wa_errors.&lt;/P&gt;&lt;P&gt;WRITE wa_errors-doc.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735647#M899063</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-04-25T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in L_TO_CREATE_MOVE_SU</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735648#M899064</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;Check in LEIN table if the combination exists&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 14:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-l-to-create-move-su/m-p/3735648#M899064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T14:01:29Z</dc:date>
    </item>
  </channel>
</rss>

