<?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: Interactive list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638837#M607378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudha,&lt;/P&gt;&lt;P&gt;please recode the program first bec it may not suggestable code for perforamnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-	First u need to use the &amp;#145;into itab&amp;#146; instead of select&amp;#133;. And endselect&amp;#133;&amp;#133;.( select banfn bnfpo bsart ekgrp matnr werks menge meins frgdt estkz &lt;/P&gt;&lt;P&gt;into table pur_req from eban up to 100 rows).&lt;/P&gt;&lt;P&gt;-	Directly you could fetch the data into in to pur_req instead of eban.&lt;/P&gt;&lt;P&gt;-	And check the data presence in the data base table by se16n by giving the input values what you have give in the where condition&lt;/P&gt;&lt;P&gt;-	If data is occur in data base table then go and check it out in debug mode whether data is populating into internal table properly or not if not make necessary changes to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these above pints are really helpful reward with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 13:16:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T13:16:08Z</dc:date>
    <item>
      <title>Interactive list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638835#M607376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried out the below program but did not get the output. Is there any mistake in the program. Please correct me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the purchasing (MM module) you can process the purchase requisitions. The purchase requisitions define primarily the need for a material/service. List the first 100 purchase requisitions at the plant 'PL01' (table EBAN). Then make it possible to change the purchase requisition itself from the list by clicking twice on the row or by using a push-button.&lt;/P&gt;&lt;P&gt;ADDITIONAL REQUIREMENTS TO THE LIST:&lt;/P&gt;&lt;P&gt;1. CONTENT: PURCHASE REQUISITION NUMBER, ITEM NUMBER, DOCUMENT TYPE, MATERIAL, QUANTITY, UNIT OF MEASURE&lt;/P&gt;&lt;P&gt;2. LAYOUT: MAIN HEADER SHOULD INCLUDE&lt;/P&gt;&lt;P&gt;PROGRAM NAME, COMPANY NAME, PLANT, PURCHASE GROUP, CREATION DATE, PAGE NUMBER&lt;/P&gt;&lt;P&gt;3. ONE PAGE SHOULD HAVE 50 LINE ITEM&lt;/P&gt;&lt;P&gt;________________________________________&lt;/P&gt;&lt;P&gt;report zmjud001 no standard page heading line-size 85 line-count 50. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA /TABLES DECLARATION* &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;tables: eban. &lt;/P&gt;&lt;P&gt;data: prog_nam(8). &lt;/P&gt;&lt;P&gt;data: begin of pur_req occurs 100, &lt;/P&gt;&lt;P&gt;ekgrp like eban-ekgrp, &lt;/P&gt;&lt;P&gt;werks like eban-werks, &lt;/P&gt;&lt;P&gt;banfn like eban-banfn, &lt;/P&gt;&lt;P&gt;bnfpo like eban-bnfpo, &lt;/P&gt;&lt;P&gt;bsart like eban-bsart, &lt;/P&gt;&lt;P&gt;estkz like eban-estkz, &lt;/P&gt;&lt;P&gt;matnr like eban-matnr, &lt;/P&gt;&lt;P&gt;menge like eban-menge, &lt;/P&gt;&lt;P&gt;meins like eban-meins, &lt;/P&gt;&lt;P&gt;numb(3) type n.&lt;/P&gt;&lt;P&gt;data: end of pur_req. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;THE REPORT HEADER &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;prog_nam = sy-repid. &lt;/P&gt;&lt;P&gt;top-of-page. &lt;/P&gt;&lt;P&gt;perform header_write. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECTION &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;start-of-selection. &lt;/P&gt;&lt;P&gt;pur_req-numb = 1. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECT ONLY THOSE FIELDS THAT WILL BE USED FROM THE TABLE EBAN, AND ONLY &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*THE FIRST100 RECORDS OF THE THE PLANT 'PL01' &lt;/P&gt;&lt;P&gt;select banfn bnfpo bsart ekgrp matnr werks menge meins frgdt estkz &lt;/P&gt;&lt;P&gt;into corresponding fields of eban from eban up to 100 rows &lt;/P&gt;&lt;P&gt;where bsart = 'NB' "document type 'NB' = purchase requisition &lt;/P&gt;&lt;P&gt;and werks = 'PL01' &lt;/P&gt;&lt;P&gt;and statu = 'N' "processing status &lt;/P&gt;&lt;P&gt;and loekz = ' '. "deletion indicator &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;THE SELECTED RECORDS SHOULD BE APPENDED TO INTERNAL TABLE 'PUR_REQ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;pur_req-banfn = eban-banfn. &lt;/P&gt;&lt;P&gt;pur_req-matnr = eban-matnr. &lt;/P&gt;&lt;P&gt;pur_req-werks = eban-werks. &lt;/P&gt;&lt;P&gt;pur_req-ekgrp = eban-ekgrp. &lt;/P&gt;&lt;P&gt;pur_req-bnfpo = eban-bnfpo. &lt;/P&gt;&lt;P&gt;pur_req-bsart = eban-bsart. &lt;/P&gt;&lt;P&gt;pur_req-menge = eban-menge. &lt;/P&gt;&lt;P&gt;pur_req-meins = eban-meins. &lt;/P&gt;&lt;P&gt;pur_req-estkz = eban-estkz. &lt;/P&gt;&lt;P&gt;append pur_req. &lt;/P&gt;&lt;P&gt;pur_req-numb = pur_req-numb + 1. &lt;/P&gt;&lt;P&gt;endselect. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHECK WHETHER THE TABLE EBAN CONTAINS ANY PURCHASE REQUISITIONS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if sy-subrc ne 0. &lt;/P&gt;&lt;P&gt;write: / 'No Purchase Requisition found.'. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROCESS THE INTERNAL TABLE; WRITE OUT THE REQUIRED FIELDS AND HIDE THE &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*FIELDS YOU ARE GOING TO USE LATER &lt;/P&gt;&lt;P&gt;loop at pur_req. &lt;/P&gt;&lt;P&gt;write: /1 pur_req-numb, 9 pur_req-banfn, 21 pur_req-bnfpo, 31 pur_req-bsart, 41 pur_req-matnr, &lt;/P&gt;&lt;P&gt;61 pur_req-menge unit pur_req-meins, 82 pur_req-meins. &lt;/P&gt;&lt;P&gt;hide: pur_req-matnr, pur_req-werks, pur_req-banfn. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;clear pur_req-banfn. clear pur_req-matnr. clear pur_req-werks. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IN THE MENU PAINTER (SE41) CREATE A STATUS TO YOUR PROGRAM. HERE YOU CAN &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*DEFINE THE PUSH-BUTTON &lt;/P&gt;&lt;P&gt;set pf-status 'basic'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHOOSE A REQUISITION (WITH DOUBLE CLICKING OR PUSH-BUTTON) IN THE LIST! THE &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*PURCHASE REQUISITION IS GOING TO COME UP &lt;/P&gt;&lt;P&gt;at line-selection. &lt;/P&gt;&lt;P&gt;if pur_req-banfn &amp;lt;&amp;gt; space. &lt;/P&gt;&lt;P&gt;set parameter id 'BAN' field pur_req-banfn. " parameter id for pruchase req. number &lt;/P&gt;&lt;P&gt;call transaction 'ME52' and skip first screen. "trans. code 'ME52': Change Purchase Requis. &lt;/P&gt;&lt;P&gt;clear pur_req-banfn. clear pur_req-matnr. &lt;/P&gt;&lt;P&gt;clear pur_req-werks. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM THE HEADER &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;form header_write. &lt;/P&gt;&lt;P&gt;write: / prog_nam, 32 'FUN-FACTORY', &lt;/P&gt;&lt;P&gt;/ 'Purch.Gr.:', pur_req-ekgrp, 26 'Purchase Requisition List', &lt;/P&gt;&lt;P&gt;61 'As Of Date:', 75 sy-datum, &lt;/P&gt;&lt;P&gt;/ 'Plant:', pur_req-werks, 61 'Page:', 75 sy-pagno. &lt;/P&gt;&lt;P&gt;uline. &lt;/P&gt;&lt;P&gt;write: / text-001, &lt;/P&gt;&lt;P&gt;/ text-002. &lt;/P&gt;&lt;P&gt;uline. &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just got the below output :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZMJUD001                     FUN-FACTORY                     &lt;/P&gt;&lt;P&gt;Purch. Gr.: 001  Purchase Requisition List      As Of Date:   05/09/1997        &lt;/P&gt;&lt;P&gt;Plant: D031                                                      Page: 1 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------" /&gt;&lt;P&gt;Numb.   Requisition  Item    Document  Material        Quantity  Unit of&lt;/P&gt;&lt;P&gt;        Number               Num       Type                      Measure&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 17:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638835#M607376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638836#M607377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; where bsart = 'NB' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the conditions on your select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get output from this code by reducing the WHERE clause to the quoted portion above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You appear to be excluding everything from your select with the combination of conditions you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify that all of the expressions in the WHERE clause on your SELECT are necessary and correct, and not mis-typed.  For example, should it be PLO1 or PL01 (O or zero?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify that data exists that meets those conditions by using SE16 over the file EBAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also simplify this program greatly by directly loading into your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 21:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638836#M607377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638837#M607378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudha,&lt;/P&gt;&lt;P&gt;please recode the program first bec it may not suggestable code for perforamnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-	First u need to use the &amp;#145;into itab&amp;#146; instead of select&amp;#133;. And endselect&amp;#133;&amp;#133;.( select banfn bnfpo bsart ekgrp matnr werks menge meins frgdt estkz &lt;/P&gt;&lt;P&gt;into table pur_req from eban up to 100 rows).&lt;/P&gt;&lt;P&gt;-	Directly you could fetch the data into in to pur_req instead of eban.&lt;/P&gt;&lt;P&gt;-	And check the data presence in the data base table by se16n by giving the input values what you have give in the where condition&lt;/P&gt;&lt;P&gt;-	If data is occur in data base table then go and check it out in debug mode whether data is populating into internal table properly or not if not make necessary changes to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these above pints are really helpful reward with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-list/m-p/2638837#M607378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:16:08Z</dc:date>
    </item>
  </channel>
</rss>

