<?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 Modify dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476772#M557592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to generate internal table and even able to read the data from a data base table into dynamic internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to manipulate the data in the internal table, für example I would like to update few fields and display it in the List. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how di Modify dynamic internal table.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the code below which I am using right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_DYN_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:  type standard table.&lt;/P&gt;&lt;P&gt;data: dy_table type ref to data,&lt;/P&gt;&lt;P&gt;      dy_line  type ref to data,&lt;/P&gt;&lt;P&gt;      xfc type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ifc type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : 	P_BEGDA like P0001-BEGDA default '20071001',&lt;/P&gt;&lt;P&gt;		P_INFTY  like P0001-INFTY default 'P0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;to get the srurcute&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; perform get_structure using l_f_table.&lt;/P&gt;&lt;P&gt; perform create_dynamic_itab .&lt;/P&gt;&lt;P&gt; assign dy_table-&amp;gt;* to  BUT now I have to modify few fields from the dynamic internal table, how do I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_structure using p_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : idetails type abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;       xdetails type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ref_table_des type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : ifc[], dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the structure of the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ref_table_des ?=&lt;/P&gt;&lt;P&gt;      cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).&lt;/P&gt;&lt;P&gt;  idetails[] = ref_table_des-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at idetails into xdetails.&lt;/P&gt;&lt;P&gt;    clear xfc.&lt;/P&gt;&lt;P&gt;    xfc-fieldname = xdetails-name .&lt;/P&gt;&lt;P&gt;    xfc-datatype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-inttype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-intlen = xdetails-length.&lt;/P&gt;&lt;P&gt;    xfc-decimals = xdetails-decimals.&lt;/P&gt;&lt;P&gt;    append xfc to ifc.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&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;form create_dynamic_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = ifc&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form get_data  tables   p_table&lt;/P&gt;&lt;P&gt;               using    p_pernr&lt;/P&gt;&lt;P&gt;                        p_infty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : p_table, p_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            PERNR           = P_PERNR&lt;/P&gt;&lt;P&gt;            INFTY           = p_infty&lt;/P&gt;&lt;P&gt;            BEGDA           = p_datum&lt;/P&gt;&lt;P&gt;            ENDDA           = p_datum&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INFTY_TAB       = p_table&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INFTY_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 09:52:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T09:52:41Z</dc:date>
    <item>
      <title>Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476772#M557592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to generate internal table and even able to read the data from a data base table into dynamic internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to manipulate the data in the internal table, für example I would like to update few fields and display it in the List. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how di Modify dynamic internal table.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the code below which I am using right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_DYN_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:  type standard table.&lt;/P&gt;&lt;P&gt;data: dy_table type ref to data,&lt;/P&gt;&lt;P&gt;      dy_line  type ref to data,&lt;/P&gt;&lt;P&gt;      xfc type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ifc type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters : 	P_BEGDA like P0001-BEGDA default '20071001',&lt;/P&gt;&lt;P&gt;		P_INFTY  like P0001-INFTY default 'P0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;to get the srurcute&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt; perform get_structure using l_f_table.&lt;/P&gt;&lt;P&gt; perform create_dynamic_itab .&lt;/P&gt;&lt;P&gt; assign dy_table-&amp;gt;* to  BUT now I have to modify few fields from the dynamic internal table, how do I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_structure using p_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : idetails type abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;       xdetails type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ref_table_des type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : ifc[], dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the structure of the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ref_table_des ?=&lt;/P&gt;&lt;P&gt;      cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).&lt;/P&gt;&lt;P&gt;  idetails[] = ref_table_des-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at idetails into xdetails.&lt;/P&gt;&lt;P&gt;    clear xfc.&lt;/P&gt;&lt;P&gt;    xfc-fieldname = xdetails-name .&lt;/P&gt;&lt;P&gt;    xfc-datatype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-inttype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-intlen = xdetails-length.&lt;/P&gt;&lt;P&gt;    xfc-decimals = xdetails-decimals.&lt;/P&gt;&lt;P&gt;    append xfc to ifc.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&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;form create_dynamic_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = ifc&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form get_data  tables   p_table&lt;/P&gt;&lt;P&gt;               using    p_pernr&lt;/P&gt;&lt;P&gt;                        p_infty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : p_table, p_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_READ_INFOTYPE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            PERNR           = P_PERNR&lt;/P&gt;&lt;P&gt;            INFTY           = p_infty&lt;/P&gt;&lt;P&gt;            BEGDA           = p_datum&lt;/P&gt;&lt;P&gt;            ENDDA           = p_datum&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INFTY_TAB       = p_table&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INFTY_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476772#M557592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476773#M557593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharanabasappa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure for manipulating dynamic internal table is quite straigthforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS:
  &amp;lt;ls_struc&amp;gt;     TYPE any,
  &amp;lt;ld_fld&amp;gt;         TYPE any.


  LOOP AT &amp;lt;dyn_table&amp;gt; ASSIGNING &amp;lt;ls_struc&amp;gt;.
 
 " Now there are different way to access the structure fields:
" (1) Using component index
  DO.
    ASSIGN COMPONENT syst-index OF STRUCTURE &amp;lt;ls_struc&amp;gt; TO &amp;lt;ld_fld&amp;gt;.
    IF ( syst-subrc ne 0 ).
      EXIT.
    ENDIF.
  ENDDO.
     

" (2) Using component names
  LOOP AT lt_fcat INTO ls_fcat.  " fieldcatalog for creating dynamic itab
     ASSIGN COMPONENT ls_fcat-fieldname OF STRUCTURE &amp;lt;ls_struc&amp;gt; TO &amp;lt;ld_fld&amp;gt;.
    IF ( syst-subrc ne 0 ).
      EXIT.
    ENDIF.
...
  ENDLOOP.

" NOTE: There is no MODIFY required becaue we are working with field symbols.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476773#M557593</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-07-03T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476774#M557594</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;U need to use the field-symbols, a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  FIELD-SYMBOLS: &amp;lt;WA&amp;gt;    TYPE ANY,
                 &amp;lt;FIELD&amp;gt; TYPE ANY.

  LOOP AT &amp;lt;DYN_TABLE&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.
    LOOP AT IFC INTO  XFC.
      ASSIGN COMPONENT XFC-FIELDNAME OF STRUCTURE &amp;lt;WA&amp;gt; TO &amp;lt;FIELD&amp;gt;.
      
      CASE XFC-FIELDNAME.
       WHEN '......'. &amp;lt;FIELD&amp;gt; = .....
       WHEN '......'. &amp;lt;FIELD&amp;gt; = .....
       ..............................
      ENDCASE. 
      
    ENDLOOP.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476774#M557594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476775#M557595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;field symbols&amp;lt;/b&amp;gt; for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a &amp;lt;b&amp;gt;work area&amp;lt;/b&amp;gt; by declaring it &amp;lt;b&amp;gt;like line of dynamic internal table&amp;lt;/b&amp;gt;. then you can use field symbols for field variable by &amp;lt;b&amp;gt;assigning the name&amp;lt;/b&amp;gt; of the field from &amp;lt;b&amp;gt;wa&amp;lt;/b&amp;gt; to the field symbol, i.e for which the data of the field is to be modified. &lt;/P&gt;&lt;P&gt;This should be done inside the loop of dyn.int.tab into wa. &lt;/P&gt;&lt;P&gt;there after modifying the value in wa with the help of field symbols you can update the dyn.int.tab just like any other internal table using &amp;lt;b&amp;gt;wa&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need exact code then give me some time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Vijai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476775#M557595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T10:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476776#M557596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = DB_TABLE
CHANGING
CT_FIELDCAT = FCAT1[].

CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = FCAT1[]
IMPORTING
EP_TABLE = DYN_ITAB.

ASSIGN DYN_ITAB-&amp;gt;* TO &amp;lt;DISP_TABLE&amp;gt;.
CREATE DATA WA LIKE LINE OF &amp;lt;DISP_TABLE&amp;gt;.
ASSIGN WA-&amp;gt;* TO &amp;lt;WA&amp;gt;.

MODIFY &amp;lt;dyn_table&amp;gt; FROM &amp;lt;dyn_wa&amp;gt;.

update (DB_TABLE) from table &amp;lt;dyn_table&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476776#M557596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T10:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476777#M557597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mangalagi S V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476777#M557597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modify dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476778#M557598</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;u can modify dynamic internal table by using this piece of code.u hav to use field symbol for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form modify_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT &amp;lt;dyn_table&amp;gt; INTO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the column value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ASSIGN COMPONENT p_fl1 OF STRUCTURE &amp;lt;dyn_wa&amp;gt; TO &amp;lt;fs5&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the value...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        &amp;lt;fs5&amp;gt;   = p_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MODIFY &amp;lt;dyn_table&amp;gt; FROM  &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here p_fl1 is a field u want to modify and p_value is a value u want to give to that field for modification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swati Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2476778#M557598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T11:30:22Z</dc:date>
    </item>
  </channel>
</rss>

