<?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: Deleting rows on a module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487671#M1256021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;have a Tab selection for table control, with that u can select the required rows &lt;/P&gt;&lt;P&gt;and only those rows gets saved to the database table,also u can delete the unwanted rows &lt;/P&gt;&lt;P&gt;from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simple coding for ur refrerence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program  ycoe_module29 message-id zmsg.&lt;/P&gt;&lt;P&gt;data  : begin of i_ysrtmm occurs 0,&lt;/P&gt;&lt;P&gt;        sno type ysrtmm-sno,&lt;/P&gt;&lt;P&gt;        sname type ysrtmm-sname,&lt;/P&gt;&lt;P&gt;        scity type ysrtmm-scity,&lt;/P&gt;&lt;P&gt;        sedu type ysrtmm-sedu,&lt;/P&gt;&lt;P&gt;        spercent type ysrtmm-spercent,&lt;/P&gt;&lt;P&gt;        select(1),&lt;/P&gt;&lt;P&gt;        end of i_ysrtmm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_ysrtmm1 like i_ysrtmm occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;  module status_8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop with control control.&lt;/P&gt;&lt;P&gt;    module fill_table_control.&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;process after input.&lt;/P&gt;&lt;P&gt;  loop with control control.&lt;/P&gt;&lt;P&gt;    module read_table_control.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  module user_command_8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;module status_8000 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'STAT29'.&lt;/P&gt;&lt;P&gt;  describe table i_ysrtmm1 lines lines.&lt;/P&gt;&lt;P&gt;  control-lines = lines.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_8000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module fill_table_control output.&lt;/P&gt;&lt;P&gt;describe table i_ysrtmm1 lines wk_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if wk_init is not initial.&lt;/P&gt;&lt;P&gt;    read table i_ysrtmm1 into i_ysrtmm index control-current_line.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;module read_table_control input.&lt;/P&gt;&lt;P&gt;  lines = sy-loopc.&lt;/P&gt;&lt;P&gt;  read table i_ysrtmm1 index control-current_line.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    modify i_ysrtmm1 from i_ysrtmm index control-current_line.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move-corresponding i_ysrtmm to i_ysrtmm1.&lt;/P&gt;&lt;P&gt;    append i_ysrtmm1.&lt;/P&gt;&lt;P&gt;    clear i_ysrtmm.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_8000 input.&lt;/P&gt;&lt;P&gt; case sy-ucomm.&lt;/P&gt;&lt;P&gt;  when 'INSE'.&lt;/P&gt;&lt;P&gt;loop at i_ysrtmm1.&lt;/P&gt;&lt;P&gt;        i_final-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;        i_final-sno   = i_ysrtmm1-sno.&lt;/P&gt;&lt;P&gt;        i_final-sname = i_ysrtmm1-sname.&lt;/P&gt;&lt;P&gt;        i_final-scity = i_ysrtmm1-scity.&lt;/P&gt;&lt;P&gt;        i_final-sedu  = i_ysrtmm1-sedu.&lt;/P&gt;&lt;P&gt;        i_final-spercent = i_ysrtmm1-spercent.&lt;/P&gt;&lt;P&gt;        append i_final.&lt;/P&gt;&lt;P&gt;        clear : i_final.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select sno sname scity sedu spercent&lt;/P&gt;&lt;P&gt;      from ysrtmm into table i_check for all&lt;/P&gt;&lt;P&gt;      entries in i_final where sno = i_final-sno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        if i_final[] is not initial.&lt;/P&gt;&lt;P&gt;          insert ysrtmm from table i_final.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            commit work.&lt;/P&gt;&lt;P&gt;            message i010.&lt;/P&gt;&lt;P&gt;            clear : i_ysrtmm,i_ysrtmm1,i_final.&lt;/P&gt;&lt;P&gt;            refresh : i_ysrtmm,i_ysrtmm1,i_final.&lt;/P&gt;&lt;P&gt;            leave screen.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            rollback work.&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; when 'DELE'.&lt;/P&gt;&lt;P&gt;      delete i_ysrtmm1 where select = 'X'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 11:03:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-28T11:03:08Z</dc:date>
    <item>
      <title>Deleting rows on a module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487669#M1256019</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;My requirement is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i picked the data acoording to purchase document No.dynamically in a table control,and i saved it into a ztable,so according to that purchase doc No. the line items have displayed in a table control but i dont want to save all line items which comes from purchase doc no. for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for pur.doc.No :100&lt;/P&gt;&lt;P&gt;i will get 10 line items in that i want to save only 5 line items remainig have to be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more requirement is how to put vertical scroll arrows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for ur reply,.....&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 09:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487669#M1256019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows on a module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487670#M1256020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt; At PBO before passing  data in a internal table to Table control you need to delete data which are&lt;/P&gt;&lt;P&gt;you don't want to display from the internal table before display to output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 09:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487670#M1256020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows on a module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487671#M1256021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;have a Tab selection for table control, with that u can select the required rows &lt;/P&gt;&lt;P&gt;and only those rows gets saved to the database table,also u can delete the unwanted rows &lt;/P&gt;&lt;P&gt;from the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simple coding for ur refrerence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program  ycoe_module29 message-id zmsg.&lt;/P&gt;&lt;P&gt;data  : begin of i_ysrtmm occurs 0,&lt;/P&gt;&lt;P&gt;        sno type ysrtmm-sno,&lt;/P&gt;&lt;P&gt;        sname type ysrtmm-sname,&lt;/P&gt;&lt;P&gt;        scity type ysrtmm-scity,&lt;/P&gt;&lt;P&gt;        sedu type ysrtmm-sedu,&lt;/P&gt;&lt;P&gt;        spercent type ysrtmm-spercent,&lt;/P&gt;&lt;P&gt;        select(1),&lt;/P&gt;&lt;P&gt;        end of i_ysrtmm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_ysrtmm1 like i_ysrtmm occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE51&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;  module status_8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop with control control.&lt;/P&gt;&lt;P&gt;    module fill_table_control.&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;process after input.&lt;/P&gt;&lt;P&gt;  loop with control control.&lt;/P&gt;&lt;P&gt;    module read_table_control.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  module user_command_8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;module status_8000 output.&lt;/P&gt;&lt;P&gt;  set pf-status 'STAT29'.&lt;/P&gt;&lt;P&gt;  describe table i_ysrtmm1 lines lines.&lt;/P&gt;&lt;P&gt;  control-lines = lines.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_8000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module fill_table_control output.&lt;/P&gt;&lt;P&gt;describe table i_ysrtmm1 lines wk_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if wk_init is not initial.&lt;/P&gt;&lt;P&gt;    read table i_ysrtmm1 into i_ysrtmm index control-current_line.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;module read_table_control input.&lt;/P&gt;&lt;P&gt;  lines = sy-loopc.&lt;/P&gt;&lt;P&gt;  read table i_ysrtmm1 index control-current_line.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    modify i_ysrtmm1 from i_ysrtmm index control-current_line.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move-corresponding i_ysrtmm to i_ysrtmm1.&lt;/P&gt;&lt;P&gt;    append i_ysrtmm1.&lt;/P&gt;&lt;P&gt;    clear i_ysrtmm.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_8000 input.&lt;/P&gt;&lt;P&gt; case sy-ucomm.&lt;/P&gt;&lt;P&gt;  when 'INSE'.&lt;/P&gt;&lt;P&gt;loop at i_ysrtmm1.&lt;/P&gt;&lt;P&gt;        i_final-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;        i_final-sno   = i_ysrtmm1-sno.&lt;/P&gt;&lt;P&gt;        i_final-sname = i_ysrtmm1-sname.&lt;/P&gt;&lt;P&gt;        i_final-scity = i_ysrtmm1-scity.&lt;/P&gt;&lt;P&gt;        i_final-sedu  = i_ysrtmm1-sedu.&lt;/P&gt;&lt;P&gt;        i_final-spercent = i_ysrtmm1-spercent.&lt;/P&gt;&lt;P&gt;        append i_final.&lt;/P&gt;&lt;P&gt;        clear : i_final.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select sno sname scity sedu spercent&lt;/P&gt;&lt;P&gt;      from ysrtmm into table i_check for all&lt;/P&gt;&lt;P&gt;      entries in i_final where sno = i_final-sno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        if i_final[] is not initial.&lt;/P&gt;&lt;P&gt;          insert ysrtmm from table i_final.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            commit work.&lt;/P&gt;&lt;P&gt;            message i010.&lt;/P&gt;&lt;P&gt;            clear : i_ysrtmm,i_ysrtmm1,i_final.&lt;/P&gt;&lt;P&gt;            refresh : i_ysrtmm,i_ysrtmm1,i_final.&lt;/P&gt;&lt;P&gt;            leave screen.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            rollback work.&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; when 'DELE'.&lt;/P&gt;&lt;P&gt;      delete i_ysrtmm1 where select = 'X'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487671#M1256021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows on a module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487672#M1256022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to your second question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease add this codes in PBO to get the scroll bar.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : line type i.

DESCRIBE TABLE itab LINES line.
tablecontrol-lines = line + 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your First Question is not clear are you using standard tcode to display the contents or you r using a Z modulepool.&lt;/P&gt;&lt;P&gt;Incae you r using a zmodule pool then you can delete the contents as per your requirement.&lt;/P&gt;&lt;P&gt;Incase of standard program you need to find a Userexit or BAdi and delete the unsed data before getting displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 16:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487672#M1256022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T16:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting rows on a module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487673#M1256023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the scroll bar(Vertical) in a table control for my second question with your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 05:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-rows-on-a-module-pool/m-p/5487673#M1256023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T05:27:30Z</dc:date>
    </item>
  </channel>
</rss>

