<?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: Need help with this dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164417#M1370714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: w_tabname TYPE tabname.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;infty&amp;gt; TYPE any TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'P' p_inftyp INTO w_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (w_tabname) TO &amp;lt;infty&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  rp_provide_from_last &amp;lt;infty&amp;gt;  space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF pnp-sw-found NE c_one .&lt;/P&gt;&lt;P&gt;    REJECT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried like getting error that &amp;lt;infty&amp;gt; is a table without a header line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 08:54:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-13T08:54:56Z</dc:date>
    <item>
      <title>Need help with this dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164414#M1370711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to display the locked records in infotype . The infotype  is given in the selection screen . Depending upon the infotype selected i need populate some fields to the final internal table to display in alv.my problem is how to get the infotype fields at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zhrr0014 NO STANDARD PAGE HEADING.


INFOTYPES : 0002,
            0006,
            0007,
            0008,
            0014,
            0015,
            0021,
            0032,
            0185,
            0267.

TABLES: pernr.

TYPES: BEGIN OF ty_final,
           pernr  TYPE pernr-pernr,
           cname  TYPE p0002-cname,
           inftyp TYPE infty,
           begda  TYPE sy-datum,
           endda  TYPE sy-datum,
           uname  TYPE aenam,
           aedtm  TYPE aedtm,
      END OF ty_final.

DATA:gt_final TYPE STANDARD TABLE OF ty_final,
     gs_final LIKE LINE OF gt_final.


DATA: w_name TYPE cname .

CONSTANTS: c_one TYPE c VALUE '1'.

INITIALIZATION.

  pnp-sw-ignorelockedrecords = 'N'.


  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
  PARAMETERS :p_inftyp TYPE p0000-infty.
  SELECTION-SCREEN END OF BLOCK b1.





START-OF-SELECTION .

GET pernr.

  PERFORM update_report.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  UPDATE_REPORT
*&amp;amp;---------------------------------------------------------------------*

FORM update_report .

  

  *rp_provide_from_last *p_infty* space pn-begda pn-endda."*contains the infotype no like 0002,0006 (some infotypes)

  IF pnp-sw-found NE c_one .
    REJECT.
  ENDIF.
 
 
 

  gs_final-pernr = p0002-pernr.   

  w_name = p0002-cname.

  gs_final-cname  = p0002-cname.

  gs_final-inftyp  = '0002'.

  gs_final-begda = p0002-begda.

  gs_final-endda = p0002-endda.

  gs_final-uname = p0002-uname.

  gs_final-aedtm = p0002-aedtm. 

  APPEND gs_final TO gt_final.   " gt_final is the final internal table 

  CLEAR gs_final.



ENDFORM.                    " UPDATE_REPORT

i know this can be done in dynamic programming and getting any idea .  Please help me out 

thanks in advance&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mohammed  abdul hai on Oct 13, 2009 10:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mohammed  abdul hai on Oct 13, 2009 10:37 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mohammed  abdul hai on Oct 13, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 08:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164414#M1370711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164415#M1370712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abadul,&lt;/P&gt;&lt;P&gt;use field symbols to achieve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search 'dynamic internal table' in SDN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 08:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164415#M1370712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T08:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164416#M1370713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;Have a look on given below link[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7654737"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 08:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164416#M1370713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164417#M1370714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: w_tabname TYPE tabname.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;infty&amp;gt; TYPE any TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'P' p_inftyp INTO w_tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN (w_tabname) TO &amp;lt;infty&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  rp_provide_from_last &amp;lt;infty&amp;gt;  space pn-begda pn-endda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF pnp-sw-found NE c_one .&lt;/P&gt;&lt;P&gt;    REJECT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried like getting error that &amp;lt;infty&amp;gt; is a table without a header line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 08:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-this-dynamic-internal-table/m-p/6164417#M1370714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T08:54:56Z</dc:date>
    </item>
  </channel>
</rss>

