<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235845#M1011282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Yin your code there is nowhere astmt where u retrieve the last order number from your ztable.&lt;/P&gt;&lt;P&gt;if you want to increment the order number next to the last order number in the z table then first you have to get the last order number present in the z table..&lt;/P&gt;&lt;P&gt;try with this. hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data order type i value 1.&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select max (order number) from ztable into order.&lt;/STRONG&gt;  " first get the order number from the ztable &lt;/P&gt;&lt;P&gt;order = order + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = order.&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 04:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T04:27:59Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235842#M1011279</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;  i had created a  ztable with four fields.&lt;/P&gt;&lt;P&gt;now in module pool when i click the 'create button' the orderdata should be updated in the ztable ( using table control).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order number should be generated automatically. It should be incremented by1 from the latest order present in the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;       wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;       save_ok  type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data order type i value 1.&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      order = order + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_zatest-ORDERNO = order.&lt;/P&gt;&lt;P&gt;      wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;      wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;      wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt; can u help me with proper code why it is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 22:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235842#M1011279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T22:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235843#M1011280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data order type i .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;order = order + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = order.&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;clear wa_zatest&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;try with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 23:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235843#M1011280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T23:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235844#M1011281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : begin of itab occurs 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;orderno type ztest-orderno,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;end of itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data v_order type i.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select orderno&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from ztest into table itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sort itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;loop at itab.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at last.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;move itab-orderno to v_order.  '' use the control brk event LAST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v_order = v_order + 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = &lt;STRONG&gt;v_order&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insted of append you need to use insert stmt.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert wa_zatest into table ztest  index sy-tabix&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235844#M1011281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235845#M1011282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Yin your code there is nowhere astmt where u retrieve the last order number from your ztable.&lt;/P&gt;&lt;P&gt;if you want to increment the order number next to the last order number in the z table then first you have to get the last order number present in the z table..&lt;/P&gt;&lt;P&gt;try with this. hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data order type i value 1.&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select max (order number) from ztable into order.&lt;/STRONG&gt;  " first get the order number from the ztable &lt;/P&gt;&lt;P&gt;order = order + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = order.&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235845#M1011282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235846#M1011283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;In your code there is nowhere astmt where u retrieve the last order number from your ztable.&lt;/P&gt;&lt;P&gt;if you want to increment the order number next to the last order number in the z table then first you have to get the last order number present in the z table..&lt;/P&gt;&lt;P&gt;try with this. hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls c_zatest type tableview using screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data order type i value 1.&lt;/P&gt;&lt;P&gt;this code is in PAI&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select max (order number) from ztable into order.&lt;/STRONG&gt;  " first get the order number from                                                                                &lt;/P&gt;&lt;P&gt;the ztable &lt;/P&gt;&lt;P&gt;order = order + 1.  &lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = order.&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235846#M1011283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235847#M1011284</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;Kindly check the code below.&lt;/P&gt;&lt;P&gt;I think this would surely work.&lt;/P&gt;&lt;P&gt;And Please reward if helpful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare these globally.&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;P&gt;data : it_zatest type table of zatest,&lt;/P&gt;&lt;P&gt;wa_zatest type zatest,&lt;/P&gt;&lt;P&gt;wa1_zatest type zatest .&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write this code in your PBO.&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;SELECT  MAX( ORDERNO ) FROM zatest INTO wa1_zatest-ORDERNO.&lt;/P&gt;&lt;P&gt;wa_zatest-ORDERNO = wa1_zatest-ORDERNO + 1.&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this code in PAI&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_zatest-POSNR = ZATEST-POSNR.&lt;/P&gt;&lt;P&gt;wa_zatest-MATNR = ZATEST-MATNR.&lt;/P&gt;&lt;P&gt;wa_zatest-ZMENG = ZATEST-ZMENG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_zatest into it_zatest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AMIT BISHT on Aug 6, 2008 6:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235847#M1011284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235848#M1011285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear, &lt;/P&gt;&lt;P&gt;Best practice is go to tcode SNRO creat no range there&lt;/P&gt;&lt;P&gt;then fetch latest serial no using enque deque technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the present method you are applying will fail if your Modile pool program is used by multiple user's simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as there is no locking trechnique available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235848#M1011285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235849#M1011286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dear, &lt;/P&gt;&lt;P&gt;Best practice is go to tcode SNRO creat no range there&lt;/P&gt;&lt;P&gt;then fetch latest serial no using enque deque technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the present method you are applying will fail if your Modile pool program is used by multiple user's simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as there is no locking trechnique available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 04:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235849#M1011286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T04:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235850#M1011287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA DECLARATION........&lt;/P&gt;&lt;P&gt;tables:ztest2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls: tctrl type tableview using screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  it_test type standard table of ztest2,&lt;/P&gt;&lt;P&gt;        wa_test type ztest2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: order type i value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;PAI&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER = ORDER + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_test-orderno = order.&lt;/P&gt;&lt;P&gt;wa_test-posnr = ztest2-posnr.&lt;/P&gt;&lt;P&gt;wa_test-matnr = ztest2-matnr.&lt;/P&gt;&lt;P&gt;wa_test-zmeng = ztest2-zmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_test to it_test.&lt;/P&gt;&lt;P&gt;insert into ztest2 values wa_test.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0200  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN ALSO IT IS NOT WORKING.PLZ HELP ME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 17:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235850#M1011287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235851#M1011288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, thanks its working now.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all my condition r satisfied, &lt;/P&gt;&lt;P&gt;but if for 1 ordernumber  i want several item number and then should  get updated in ztable ,wht is the way for doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ur reference this is the modified code.&lt;/P&gt;&lt;P&gt;tables:ztest2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls: tctrl type tableview using screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :   it_test type standard table of ztest2,&lt;/P&gt;&lt;P&gt;          wa_test type ztest2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: order type i value 1.&lt;/P&gt;&lt;P&gt;data: item type ztest2-posnr,&lt;/P&gt;&lt;P&gt;        mat type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item = ztest2-posnr mod 10.&lt;/P&gt;&lt;P&gt;if item ne 0.&lt;/P&gt;&lt;P&gt;message e000(zpawan) with 'error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara into mat&lt;/P&gt;&lt;P&gt;where matnr = ztest2-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;message e001(zpawan) with 'error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( ORDERNO ) FROM ZTEST2 INTO ORDER.&lt;/P&gt;&lt;P&gt;ORDER = ORDER + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_test-orderno = order.&lt;/P&gt;&lt;P&gt;wa_test-posnr = ztest2-posnr.&lt;/P&gt;&lt;P&gt;wa_test-matnr = ztest2-matnr.&lt;/P&gt;&lt;P&gt;wa_test-zmeng = ztest2-zmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_test to it_test.&lt;/P&gt;&lt;P&gt;insert into ztest2 values wa_test.&lt;/P&gt;&lt;P&gt;when 'BACK'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message s002(zpawan) with 'sucess'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0200  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 18:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4235851#M1011288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T18:57:21Z</dc:date>
    </item>
  </channel>
</rss>

