<?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: Moving Parameter value into Workarea in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246641#M1013604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting similar kind of solution...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ytest_dynamic.
 
TYPE-POOLS : abap.
DATA : table_des TYPE REF TO cl_abap_structdescr.
DATA : ifields TYPE abap_compdescr_tab,
          wa_field LIKE LINE OF ifields.
DATA: it_fieldcat TYPE lvc_t_fcat,
          wa_fieldcat TYPE lvc_s_fcat.
DATA: i_tab TYPE REF TO data.
 
FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE STANDARD TABLE.
 
PARAMETERS: p_table(30) TYPE c DEFAULT 'SFLIGHT'.
 
 
"Create the Table definiton using the table name
table_des ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).
"Transfer all the fields to a table.
ifields = table_des-&amp;gt;components.
  
LOOP AT ifields INTO wa_field.
  CLEAR wa_fieldcat.
  wa_fieldcat-fieldname = wa_field-name .
  wa_fieldcat-datatype = wa_field-type_kind.
  wa_fieldcat-inttype = wa_field-type_kind.
  wa_fieldcat-intlen = wa_field-length.
  wa_fieldcat-decimals = wa_field-decimals.
  wa_fieldcat-coltext = wa_field-name.
  wa_fieldcat-outputlen = wa_field-length.
 
  APPEND  wa_fieldcat TO it_fieldcat.
ENDLOOP.
 
CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
  EXPORTING
    it_fieldcatalog           = it_fieldcat
  IMPORTING
    ep_table                  = i_tab
*    e_style_fname             =
  EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS                    = 2
        .
IF sy-subrc ne 0.

ENDIF.
 
ASSIGN i_tab-&amp;gt;* TO &amp;lt;fs&amp;gt;. "Internal Table will be created.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2008 13:23:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T13:23:33Z</dc:date>
    <item>
      <title>Moving Parameter value into Workarea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246638#M1013601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to take the input of structures into the Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to define a workarea of the structure which are inputted into the Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 13:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246638#M1013601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Parameter value into Workarea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246639#M1013602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use some of the following function module in a AT SELECTION-SCREEN ON VALUE REQUEST form.&lt;/P&gt;&lt;P&gt;- RS_COMPLEX_OBJECT_CHANGE&lt;/P&gt;&lt;P&gt;- RS_COMPLEX_OBJECT_CREATE&lt;/P&gt;&lt;P&gt;- [RS_COMPLEX_OBJECT_EDIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rs_complex_object_edit&amp;amp;cat=sdn_all]&lt;/P&gt;&lt;P&gt;- RS_COMPLEX_OBJECT_HEADER&lt;/P&gt;&lt;P&gt;- RS_COMPLEX_OBJECT_TREE&lt;/P&gt;&lt;P&gt;- RS_COMPLEX_OBJECT_TYPEINFO_GET&lt;/P&gt;&lt;P&gt;These are the "structure editor" function modules used when you test a function module, could look like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zrgstst.
PARAMETERS param LIKE t002.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR param.
  CALL FUNCTION 'RS_COMPLEX_OBJECT_EDIT'
       EXPORTING
            object_name = 'T002'
            mode        = 'X'
       CHANGING
            object      = param.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 13:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246639#M1013602</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-08T13:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Parameter value into Workarea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246640#M1013603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Creating" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;/A&gt;&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 13:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246640#M1013603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Parameter value into Workarea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246641#M1013604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting similar kind of solution...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ytest_dynamic.
 
TYPE-POOLS : abap.
DATA : table_des TYPE REF TO cl_abap_structdescr.
DATA : ifields TYPE abap_compdescr_tab,
          wa_field LIKE LINE OF ifields.
DATA: it_fieldcat TYPE lvc_t_fcat,
          wa_fieldcat TYPE lvc_s_fcat.
DATA: i_tab TYPE REF TO data.
 
FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE STANDARD TABLE.
 
PARAMETERS: p_table(30) TYPE c DEFAULT 'SFLIGHT'.
 
 
"Create the Table definiton using the table name
table_des ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).
"Transfer all the fields to a table.
ifields = table_des-&amp;gt;components.
  
LOOP AT ifields INTO wa_field.
  CLEAR wa_fieldcat.
  wa_fieldcat-fieldname = wa_field-name .
  wa_fieldcat-datatype = wa_field-type_kind.
  wa_fieldcat-inttype = wa_field-type_kind.
  wa_fieldcat-intlen = wa_field-length.
  wa_fieldcat-decimals = wa_field-decimals.
  wa_fieldcat-coltext = wa_field-name.
  wa_fieldcat-outputlen = wa_field-length.
 
  APPEND  wa_fieldcat TO it_fieldcat.
ENDLOOP.
 
CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
  EXPORTING
    it_fieldcatalog           = it_fieldcat
  IMPORTING
    ep_table                  = i_tab
*    e_style_fname             =
  EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS                    = 2
        .
IF sy-subrc ne 0.

ENDIF.
 
ASSIGN i_tab-&amp;gt;* TO &amp;lt;fs&amp;gt;. "Internal Table will be created.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 13:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246641#M1013604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Parameter value into Workarea</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246642#M1013605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you fulfil you requirement ?&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, 13 Aug 2008 08:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-parameter-value-into-workarea/m-p/4246642#M1013605</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-13T08:30:24Z</dc:date>
    </item>
  </channel>
</rss>

