<?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: creating code from code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378768#M1237111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read ABAP help on INSERT REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 07:42:52 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-03-30T07:42:52Z</dc:date>
    <item>
      <title>creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378761#M1237104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                i need to develop a program which has selection screen to take the input from user like target program name, fields and tables from which the data comes, data selection conditions etc. . On dat basis it will create a new alv program code. Do u guys have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378761#M1237104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T05:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378762#M1237105</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;Could you please be more specific , do you want to display the code on the alv or create a new program based on the selection&lt;/P&gt;&lt;P&gt;Its pretty simple we can easily do this in both the cases&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378762#M1237105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378763#M1237106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This very much sounds like building a query via transaction SQVI, right? Better to use that instead of re-inventing the wheel....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378763#M1237106</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-03-30T05:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378764#M1237107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever  there is a need to generate reports without doing any ABAP coding in a quick span of time, go for ABAP Queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transaction codes associated with ABAP Query are &lt;/P&gt;&lt;P&gt;SQ01 - ABAP Query &lt;/P&gt;&lt;P&gt;SQ02 - Infoset &lt;/P&gt;&lt;P&gt;SQ03 - User group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use report painter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode FGRP - It shows a sap menu structure only for report painter/writer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378764#M1237107</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2009-03-30T05:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378765#M1237108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your requirement is creating a report from within a report then its quite easy:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZRAJ_DYNAMIC.

DATA: code TYPE TABLE OF rssource-line.

APPEND  'REPORT ZRAJ_DYN1.'
   TO code.

APPEND  'WRITE / ''This is a dynamically created report...''.'
   TO code.

.............................
(you may append watever code you need to append this way)
.............................

INSERT REPORT 'ZRAJ_DYN1' FROM code.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rajan roy on Mar 30, 2009 8:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378765#M1237108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T05:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378766#M1237109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for dynamic source code generation within the program.&lt;/P&gt;&lt;P&gt;Here's sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab occurs 0,
        line(150),
        end of itab.

data: v_name like sy-repid.

parameters: p_table like dd02l-tabname.

itab-line = 'Report sy-repid.'.
append itab. clear itab.
itab-line = 'tables:'.
append itab. clear itab.
concatenate p_table '.' into itab.
itab-line = 'data: begin of itab occurs 0.'.
append itab. clear itab.
concatenate 'include structure' p_table '.' into itab separated by space.
itab-line = 'data:end of itab.'.
append itab. clear itab.
itab-line = 'form f_select.'.
append itab. clear itab.
itab-line = 'select * into table itab'.
append itab. clear itab.
concatenate 'FROM' p_table '.' INTO itab separated by space.
itab-line = 'endform.'.
append itab. clear itab.


generate subroutine pool itab name v_name.
perform f_select in program (v_name).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 05:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378766#M1237109</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-03-30T05:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378767#M1237110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont need to generate the code in same program...i need it to make a new program from my existing program..In my existing prog selection screen, it takes the names of required tables and fields which are used in target prog . .this target prog is totally diffrent from existing prog.&lt;/P&gt;&lt;P&gt; Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: khan on Mar 30, 2009 1:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378767#M1237110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378768#M1237111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read ABAP help on INSERT REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378768#M1237111</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-30T07:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating code from code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378769#M1237112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use INSERT REPORT &amp;lt;Target Program Name&amp;gt; FROM &amp;lt;internal table&amp;gt; PROGRAM TYPE &amp;lt;pid&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pid indicates whethe the program is Executable program , Function group or function pool , Include program ,M Module pool,Subroutine pool . Try this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srikanth(sriiiiii)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 12:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-code-from-code/m-p/5378769#M1237112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T12:06:27Z</dc:date>
    </item>
  </channel>
</rss>

