<?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: Restriction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842480#M1132768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to exclude the movement type that is entered in selection screen which is defined as parameter, you can check for NON EQUALITY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_bwart type bwart obligatory.

select &amp;lt;flds&amp;gt;... into &amp;lt;itab&amp;gt; from &amp;lt;table&amp;gt; where bwart ne p_bwart and (add_cond).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2008 03:40:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-25T03:40:08Z</dc:date>
    <item>
      <title>Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842479#M1132767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one parameter option as Movement type in report, when i enter the movement type in the selection screen it will display all the material except that movement type correpond to the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex : materia A&lt;/P&gt;&lt;P&gt;      materia B&lt;/P&gt;&lt;P&gt;      materia C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if material A and B have same movement type 321 abd c have 300, if i enter 321 in the selection screen report should be show material C only.&lt;/P&gt;&lt;P&gt;can any one pls tell me how to do.&lt;/P&gt;&lt;P&gt; Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 02:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842479#M1132767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T02:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842480#M1132768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to exclude the movement type that is entered in selection screen which is defined as parameter, you can check for NON EQUALITY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_bwart type bwart obligatory.

select &amp;lt;flds&amp;gt;... into &amp;lt;itab&amp;gt; from &amp;lt;table&amp;gt; where bwart ne p_bwart and (add_cond).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 03:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842480#M1132768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T03:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842481#M1132769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display the material that not hit the movement type what i enter in the selection scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : Maetrial A&lt;/P&gt;&lt;P&gt;       Material B&lt;/P&gt;&lt;P&gt;       Material C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i enter the 321 movement type in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose material A have the movement type 321 and material B have movement type 321 and 101 etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and material C have only 300 movement type at this case i want to display the material C .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 03:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842481#M1132769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T03:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842482#M1132770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Movement Type
PARAMETERS: p_bwart TYPE bwart OBLIGATORY.

" Select Data as per conditions into internal table
SELECT &amp;lt;flds&amp;gt; INTO TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;table&amp;gt;
  WHERE (cond).

" Move data to final Output table
&amp;lt;itab_final&amp;gt;[] = &amp;lt;itab&amp;gt;[].

" Delete materials in final output table which have movement type
"   entered in selection screen
LOOP AT &amp;lt;itab&amp;gt; INTO &amp;lt;wa&amp;gt; WHERE bwart = p_bwart.
  DELETE &amp;lt;itab_final&amp;gt; WHERE matnr = &amp;lt;wa&amp;gt;-matnr.
ENDLOOP.

" Now final output table will have the data excluding the materials
"  with movement type entered in selection screen&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 04:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842482#M1132770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T04:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842483#M1132771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was tryed ur sugestion but i didn't get it in bellow is the my coding can u please show me where can i change the coding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZMMR039&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zmmr039 message-id zpraveen1.&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;tables : mseg,mkpf,makt.&lt;/P&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_mseg_mkpf,&lt;/P&gt;&lt;P&gt;        matnr like mseg-matnr,  " Material Number&lt;/P&gt;&lt;P&gt;        lgort like mseg-lgort,  " Storage location&lt;/P&gt;&lt;P&gt;        bwart like mseg-bwart,  " Movement type&lt;/P&gt;&lt;P&gt;        erfmg like mseg-erfmg,  " Quantity&lt;/P&gt;&lt;P&gt;        erfme like mseg-erfme,  " Units of Measurements&lt;/P&gt;&lt;P&gt;        mblnr like mseg-mblnr,  " Material Document&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       mblnr like mkpf-mblnr,  " Material Document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        budat like mkpf-budat,  " Posting Date&lt;/P&gt;&lt;P&gt;        zeile  like mseg-zeile, " Item&lt;/P&gt;&lt;P&gt;        charg  like mseg-charg, " Batch&lt;/P&gt;&lt;P&gt;        cputm  like mkpf-cputm, " entry time&lt;/P&gt;&lt;P&gt;        end of t_mseg_mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_makt,&lt;/P&gt;&lt;P&gt;        matnr like makt-matnr,  " Material number&lt;/P&gt;&lt;P&gt;        maktx like makt-maktx,  " Material Description&lt;/P&gt;&lt;P&gt;        end of t_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_t_mseg_mkpf type t_mseg_mkpf,&lt;/P&gt;&lt;P&gt;       it_mseg_mkpf type standard table of t_mseg_mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_t_makt type t_makt,&lt;/P&gt;&lt;P&gt;       it_makt type standard table of t_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_output type zsnonmove,&lt;/P&gt;&lt;P&gt;       it_output type standard table of zsnonmove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  v_page     type string,&lt;/P&gt;&lt;P&gt;        v_date(10) type c,&lt;/P&gt;&lt;P&gt;        wa_heading type slis_listheader,&lt;/P&gt;&lt;P&gt;        i_heading type standard table of slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  so_enste_l1(4) type c,&lt;/P&gt;&lt;P&gt;        so_enste_l2(2) type c,&lt;/P&gt;&lt;P&gt;        so_enste_l3(2) type c,&lt;/P&gt;&lt;P&gt;        so_enste_h1(4) type c,&lt;/P&gt;&lt;P&gt;        so_enste_h2(2) type c,&lt;/P&gt;&lt;P&gt;        so_enste_h3(2) type c,&lt;/P&gt;&lt;P&gt;        so_enste1(10)  type c,&lt;/P&gt;&lt;P&gt;        so_enste2(10)  type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&amp;gt; start of selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block 001 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter      :   pa_lgort    like  mseg-lgort,&lt;/P&gt;&lt;P&gt;                        pa_bwart    like  mseg-bwart.  "Movement type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options :   so_matnr     for  mseg-matnr,   "Material&lt;/P&gt;&lt;P&gt;                        so_budat     for  mkpf-budat.   "Posting date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----&amp;gt; end of selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---&amp;gt; start of at selection screen event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**--&amp;gt; start of selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform retrivedata.&lt;/P&gt;&lt;P&gt;perform processdata.&lt;/P&gt;&lt;P&gt;perform alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  retrivedata&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form retrivedata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mseg&lt;SUB&gt;matnr mseg&lt;/SUB&gt;lgort mseg&lt;SUB&gt;bwart mseg&lt;/SUB&gt;erfmg mseg&lt;SUB&gt;erfme mseg&lt;/SUB&gt;mblnr mseg&lt;SUB&gt;zeile mseg&lt;/SUB&gt;charg&lt;/P&gt;&lt;P&gt; mkpf&lt;SUB&gt;budat mkpf&lt;/SUB&gt;cputm mkpf~mblnr into corresponding fields of table it_mseg_mkpf&lt;/P&gt;&lt;P&gt; from mseg inner join mkpf&lt;/P&gt;&lt;P&gt; on    mseg&lt;SUB&gt;mblnr = mkpf&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt; where mseg~lgort =  pa_lgort  and&lt;/P&gt;&lt;P&gt;       mseg~bwart ne pa_bwart  and&lt;/P&gt;&lt;P&gt;       mseg~matnr in so_matnr  and&lt;/P&gt;&lt;P&gt;       mkpf~budat in so_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select matnr maktx from makt into corresponding fields of table it_makt&lt;/P&gt;&lt;P&gt; for all entries in it_mseg_mkpf where matnr = it_mseg_mkpf-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " retrivedata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  processdata&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form processdata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mseg_mkpf into wa_t_mseg_mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : wa_t_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_makt into wa_t_makt with key matnr = wa_t_mseg_mkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-matnr   to  wa_output-matnr.&lt;/P&gt;&lt;P&gt;move wa_t_makt-maktx        to  wa_output-maktx.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-mblnr   to  wa_output-mblnr.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-bwart   to  wa_output-bwart.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-lgort   to  wa_output-lgort.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-erfmg   to  wa_output-erfmg.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-erfme   to  wa_output-erfme.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-budat   to  wa_output-budat.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-zeile   to  wa_output-zeile.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-charg   to  wa_output-charg.&lt;/P&gt;&lt;P&gt;move wa_t_mseg_mkpf-cputm   to  wa_output-cputm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; collect wa_output into it_output.&lt;/P&gt;&lt;P&gt; clear sy-subrc.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " processdata&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  alv&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_INTERFACE_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BYPASSING_BUFFER                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BUFFER_ACTIVE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_callback_program                = sy-repid&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_PF_STATUS_SET          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_USER_COMMAND           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_callback_top_of_page            = 'TOP-OF-PAGE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_HTML_TOP_OF_PAGE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_CALLBACK_HTML_END_OF_LIST       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_structure_name                  = 'ZSNONMOVE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BACKGROUND_ID                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_GRID_TITLE                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_GRID_SETTINGS                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_LAYOUT                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_FIELDCAT                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCLUDING                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_SPECIAL_GROUPS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_SORT                           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_FILTER                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_SEL_HIDE                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_DEFAULT                         = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_save                            = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_VARIANT                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EVENTS                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EVENT_EXIT                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_PRINT                          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_REPREP_ID                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SCREEN_START_COLUMN             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SCREEN_START_LINE               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SCREEN_END_COLUMN               = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_SCREEN_END_LINE                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_HTML_HEIGHT_TOP                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_HTML_HEIGHT_END                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_ALV_GRAPHICS                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_HYPERLINK                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_ADD_FIELDCAT                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCEPT_QINFO                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IR_SALV_FULLSCREEN_ADAPTER        =&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;  E_EXIT_CAUSED_BY_CALLER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ES_EXIT_CAUSED_BY_USER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    t_outtab                          = it_output[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                            = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;endform.                    " alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form top-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-&amp;gt; refresh&lt;/P&gt;&lt;P&gt;  refresh i_heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_heading-typ  = 'H'.&lt;/P&gt;&lt;P&gt;  wa_heading-info = ' Display Non Moving Products'.&lt;/P&gt;&lt;P&gt;  append wa_heading to i_heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_heading-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  concatenate 'By  : ' sy-uname into wa_heading-info separated&lt;/P&gt;&lt;P&gt;by space.&lt;/P&gt;&lt;P&gt;  append wa_heading to i_heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      it_list_commentary = i_heading[].&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;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "top-of-page&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 04:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842483#M1132771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T04:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842484#M1132772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I havent seen you following my advice in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, do the following modifications and check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Declare a temporary internal table
DATA: it_temp TYPE STANDARD TABLE OF ty_mseg_mkgf,
      wa_temp TYPE ty_mseg_mkpf.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comment BWART restriction in where condition:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT mseg~matnr mseg~lgort mseg~bwart mseg~erfmg mseg~erfme
       mseg~mblnr mseg~zeile mseg~charg
       mkpf~budat mkpf~cputm mkpf~mblnr
       INTO CORRESPONDING FIELDS OF TABLE it_mseg_mkpf
       FROM mseg INNER JOIN mkpf
       ON mseg~mblnr = mkpf~mblnr
       WHERE mseg~lgort = pa_lgort AND
*             mseg~bwart NE pa_bwart AND   " Comment BWART condition
             mseg~matnr IN so_matnr AND
             mkpf~budat IN so_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Move data to temporary internal table
it_temp[] = it_mseg_mkpf[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" For material that have movement entered in the selection delete
"   from the output
LOOP AT it_temp INTO wa_temp WHERE bwart EQ pa_bwart.
  DELETE it_mkpf_mseg WHERE matnr = wa_temp-matnr.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 05:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842484#M1132772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T05:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restriction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842485#M1132773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2008 06:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restriction/m-p/4842485#M1132773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-25T06:14:49Z</dc:date>
    </item>
  </channel>
</rss>

