<?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: please help to change this code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585682#M1081698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use for all entries in the select query.&lt;/P&gt;&lt;P&gt;check the modified select query below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZWM_SINGLEMAT INTO TABLE LV_ZWM_SINGLEMAT for all entries in i_t331 &lt;/P&gt;&lt;P&gt;WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;LGTYP = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;SINGLE = 'X'.&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;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 09:32:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T09:32:19Z</dc:date>
    <item>
      <title>please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585681#M1081697</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 am not abaper but i have to work on this code, currently i have this code in this code i need to exclude the the storage type belongs =  001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below i would like to exclude  LGTYP = 001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is here it is comparing the two materials and giving the error message, below for the storage type 001 it should exclude.&lt;/P&gt;&lt;P&gt;**************************************************************************************&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    IF LV_MATNR NE I_LTAP-MATNR.&lt;/P&gt;&lt;P&gt;      LV_ERR = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************************************************&lt;/P&gt;&lt;P&gt;*Get data.&lt;/P&gt;&lt;P&gt;SELECT * FROM ZWM_SINGLEMAT INTO TABLE LV_ZWM_SINGLEMAT&lt;/P&gt;&lt;P&gt;WHERE LGNUM   = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;      LGTYP   = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;      SINGLE  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Process data&lt;/P&gt;&lt;P&gt;READ TABLE LV_ZWM_SINGLEMAT.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE MATNR INTO LV_MATNR FROM LQUA&lt;/P&gt;&lt;P&gt;  WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;        LGTYP = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;        LGPLA = I_LTAP-NLPLA.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    IF LV_MATNR NE I_LTAP-MATNR.&lt;/P&gt;&lt;P&gt;      LV_ERR = c_x.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CLEAR LV_ERR.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 09:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585681#M1081697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T09:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585682#M1081698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use for all entries in the select query.&lt;/P&gt;&lt;P&gt;check the modified select query below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZWM_SINGLEMAT INTO TABLE LV_ZWM_SINGLEMAT for all entries in i_t331 &lt;/P&gt;&lt;P&gt;WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;LGTYP = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;SINGLE = 'X'.&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;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 09:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585682#M1081698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T09:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585683#M1081699</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 you want to exclude lgtyp = 001 in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE LV_ZWM_SINGLEMAT.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR INTO LV_MATNR FROM LQUA&lt;/P&gt;&lt;P&gt;WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;LGTYP &amp;lt;&amp;gt; '001' AND&lt;/P&gt;&lt;P&gt;LGPLA = I_LTAP-NLPLA.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;IF LV_MATNR NE I_LTAP-MATNR.&lt;/P&gt;&lt;P&gt;LV_ERR = c_x.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR LV_ERR.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 09:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585683#M1081699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T09:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585684#M1081700</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;above the select statement add this delete statement to exclude lgty '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delete  I_T331 where lgtyp = '001'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*Get data.&lt;/P&gt;&lt;P&gt;SELECT * FROM ZWM_SINGLEMAT INTO TABLE LV_ZWM_SINGLEMAT&lt;/P&gt;&lt;P&gt;WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;LGTYP = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;SINGLE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 09:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585684#M1081700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585685#M1081701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This is include program, so using the same variables available in this code we have to exclude the condition for the storage type 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advice how we can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 10:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585685#M1081701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: please help to change this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585686#M1081702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   when am trying to use ur program its giving error message I_T331 is not internal table so i could not able to use your statement Delete I_T331 where lgtype ='031'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify I changed like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After select statment Data is moving to LV_ZWM_SINGLEMAT later he is reading this Table and checking subrc if it is success then he is going forward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My change before reading the internal table LV_ZWM_SINGLEMAT  I deleted the entry using your previous statement Delete LV_ZWM_SINGLEMAT where LGTYP = '031'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it ok. please confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************************************************************&lt;/P&gt;&lt;P&gt;Total New code is here below&lt;/P&gt;&lt;P&gt;*Get data.&lt;/P&gt;&lt;P&gt;SELECT * FROM ZWM_SINGLEMAT INTO TABLE LV_ZWM_SINGLEMAT&lt;/P&gt;&lt;P&gt;WHERE LGNUM   = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;      LGTYP   = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;      SINGLE  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Change Murali Start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Deleting the etries which are belongs to storage type 031&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete LV_ZWM_SINGLEMAT where LGTYP = '031'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Change Murali End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Process data&lt;/P&gt;&lt;P&gt;READ TABLE LV_ZWM_SINGLEMAT.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE MATNR INTO LV_MATNR FROM LQUA&lt;/P&gt;&lt;P&gt;  WHERE LGNUM = I_T331-LGNUM AND&lt;/P&gt;&lt;P&gt;        LGTYP = I_T331-LGTYP AND&lt;/P&gt;&lt;P&gt;        LGPLA = I_LTAP-NLPLA.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    IF LV_MATNR NE I_LTAP-MATNR.&lt;/P&gt;&lt;P&gt;      LV_ERR = c_x.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CLEAR LV_ERR.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;Could you please confirm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Murali,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 11:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-to-change-this-code/m-p/4585686#M1081702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T11:17:36Z</dc:date>
    </item>
  </channel>
</rss>

