<?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: Module Pool with ALV and GUI Upload functionality - Possible ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991088#M1342541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; Firstly is this a report or is this a module POOl program?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Both in the module pool and a normal report you can make use of ALV.&lt;/P&gt;&lt;P&gt;&amp;gt; In module pool make use of the ALV GRID object using the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; For details you can refer the example programs BC_ALV_GRID_CONTROL and BCALV_GRID_DEMO.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; From the ALV grid there is an option to download the data into excel. This button is present on the grid itself.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regardign you first issue; there is no way SAP can identify that the first column of the ecel sheet contains profit centres.&lt;/P&gt;&lt;P&gt;&amp;gt; But since you are going to use GUI_UPLOAD; so when you upload the file into an internal table keep the first column of the internal table of type PRCTR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Anur Parab&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ankur and Christine. Both the replies were insightful. The client have changed their requirements. As per the new requirement, I'm supposed to develop a screen where in, after clicking the 5th radio button (Add new Profit Center) , a new screen will pop up, which will have 2 input options - "Enter Old Legacy Number" (Store Number in old Software , PRCTR in SAP )   and "Enter New Profit Centre Number" (in SAP) with the submit button. On clicking the submit button, the values entered by the user should get saved in the Z Table which I created earlier.  Can this thing be done in normal executable program , or should this be done in module pool only ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 04:25:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-13T04:25:49Z</dc:date>
    <item>
      <title>Module Pool with ALV and GUI Upload functionality - Possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991085#M1342538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;               I've a requirement where in , I'm supposed to create 5 radio buttons.&lt;/P&gt;&lt;P&gt;1. Upload an Excel File&lt;/P&gt;&lt;P&gt;2. View the Excel File&lt;/P&gt;&lt;P&gt;3. Compute Data&lt;/P&gt;&lt;P&gt;4. View all the computed data till date&lt;/P&gt;&lt;P&gt;5. Enter a new profit center &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each radio buttons have different functionality just as the name suggests. Now, I've 2 issues here. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1st Issue:&lt;/STRONG&gt; The client uses a column in it's Excel file which is called - "Store", which is nothing but the Profit Center in SAP standards. How will SAP identify the "Store" column in the Excel file as "PRCTR" ? Is there any key ? Note that, I'm using a Z Table and not any specific Database table. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2nd Issue:&lt;/STRONG&gt; In the 4th radio button , there's - View all computed data option. Now, the user wants to see the output in the form of ALV , so that he can transfer the same output to excel file. Is this possible ? I mean, will it be ok if I use the input interface as Module Pool , and the 4th radio button's output as ALV ? Is it technically possible ? Because, the "GUI_UPLOAD" functionality too will be used (to upload the excel file) on clicking the 1st radio button. In short, can GUI_UPLOAD be used in Module Pool ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prithvi  Sridhar on Aug 12, 2009 3:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 09:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991085#M1342538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-12T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool with ALV and GUI Upload functionality - Possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991086#M1342539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't use a module pool.  I'd build a normal executable program with screens.  Then you can have any combination of screen output types you like.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On your first point, your program will take the store field and put it into your profit centre table field - SAP won't do it by itself, your program will do it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 09:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991086#M1342539</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-08-12T09:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool with ALV and GUI Upload functionality - Possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991087#M1342540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Firstly is this a report or is this a module POOl program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both in the module pool and a normal report you can make use of ALV.&lt;/P&gt;&lt;P&gt;In module pool make use of the ALV GRID object using the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details you can refer the example programs BC_ALV_GRID_CONTROL and BCALV_GRID_DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the ALV grid there is an option to download the data into excel. This button is present on the grid itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardign you first issue; there is no way SAP can identify that the first column of the ecel sheet contains profit centres.&lt;/P&gt;&lt;P&gt;But since you are going to use GUI_UPLOAD; so when you upload the file into an internal table keep the first column of the internal table of type PRCTR.&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;Anur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 10:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991087#M1342540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-12T10:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool with ALV and GUI Upload functionality - Possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991088#M1342541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; Firstly is this a report or is this a module POOl program?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Both in the module pool and a normal report you can make use of ALV.&lt;/P&gt;&lt;P&gt;&amp;gt; In module pool make use of the ALV GRID object using the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; For details you can refer the example programs BC_ALV_GRID_CONTROL and BCALV_GRID_DEMO.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; From the ALV grid there is an option to download the data into excel. This button is present on the grid itself.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regardign you first issue; there is no way SAP can identify that the first column of the ecel sheet contains profit centres.&lt;/P&gt;&lt;P&gt;&amp;gt; But since you are going to use GUI_UPLOAD; so when you upload the file into an internal table keep the first column of the internal table of type PRCTR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Anur Parab&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ankur and Christine. Both the replies were insightful. The client have changed their requirements. As per the new requirement, I'm supposed to develop a screen where in, after clicking the 5th radio button (Add new Profit Center) , a new screen will pop up, which will have 2 input options - "Enter Old Legacy Number" (Store Number in old Software , PRCTR in SAP )   and "Enter New Profit Centre Number" (in SAP) with the submit button. On clicking the submit button, the values entered by the user should get saved in the Z Table which I created earlier.  Can this thing be done in normal executable program , or should this be done in module pool only ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 04:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991088#M1342541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T04:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Module Pool with ALV and GUI Upload functionality - Possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991089#M1342542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can this thing be done in normal executable program , or should this be done in module pool only ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't think there there is anything that can be done in a module pool that can't be done in an executable program, and the program has the minor advantage of not needing to have a transaction code to run it.  I think I'd always go with the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 10:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-with-alv-and-gui-upload-functionality-possible/m-p/5991089#M1342542</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2009-08-13T10:44:49Z</dc:date>
    </item>
  </channel>
</rss>

