<?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 assign data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753793#M903038</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;internal table new field what step and create assign the new data, it's possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;S.HARI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Apr 2008 11:15:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-26T11:15:59Z</dc:date>
    <item>
      <title>assign data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753793#M903038</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;internal table new field what step and create assign the new data, it's possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;S.HARI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 11:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753793#M903038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: assign data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753794#M903039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hariharalingam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your requirement is to add one more field in an internal table and populate it ..right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first check your data declaration&lt;/P&gt;&lt;P&gt;assume int_table is your internal table&lt;/P&gt;&lt;P&gt;if internal table declaration is&lt;/P&gt;&lt;P&gt;(01) data : int_table type table of TABLE.&lt;/P&gt;&lt;P&gt;  where table is a ztable or standard table..then if the field is already present in the TABLE in se11,it is already present in your internal table..you just need to fill it&lt;/P&gt;&lt;P&gt;if it is a field ot there in the TABLE you need to create as mentioned in the next step&lt;/P&gt;&lt;P&gt;(02) data: int_table type table of XXX.&lt;/P&gt;&lt;P&gt;     imagine you have a declaration&lt;/P&gt;&lt;P&gt;     types\data : begin of XXX,&lt;/P&gt;&lt;P&gt;                abc type ab-abc,&lt;/P&gt;&lt;P&gt;                end of XXX.&lt;/P&gt;&lt;P&gt;    then to add field to internal table&lt;/P&gt;&lt;P&gt;   add field in the types declaration&lt;/P&gt;&lt;P&gt;      types\data : begin of XXX,&lt;/P&gt;&lt;P&gt;                abc type ab-abc,&lt;/P&gt;&lt;P&gt;                 newfield type ab-newfield,&lt;/P&gt;&lt;P&gt;                end of XXX.         &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filling data:&lt;/P&gt;&lt;P&gt;based on your requirement fetch data from table or user..and store it to a workarea&lt;/P&gt;&lt;P&gt;use modify statement to update your internal table like&lt;/P&gt;&lt;P&gt;modify table int_table from workarea transporting newfield.&lt;/P&gt;&lt;P&gt;This will update only the the field "newfield"..no other fields will be updated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 05:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753794#M903039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T05:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: assign data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753795#M903040</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;Suppose , if you want to add new field value in internal table then you need to append the fields value after looping .This is the procedure for  ADDING FIELdS IN TO INTERNAL TABLE. just copy n paste in se38 editor and run the program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       STRUCTURE DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;  TYPES : BEGIN OF ST_VBAP,&lt;/P&gt;&lt;P&gt;          VBELN TYPE VBAP-VBELN,&lt;/P&gt;&lt;P&gt;          POSNR TYPE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;          MATNR TYPE VBAP-MATNR,&lt;/P&gt;&lt;P&gt;           END OF ST_VBAP.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       INTERNAL DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;  DATA : IT_VBAP TYPE STANDARD TABLE OF ST_VBAP WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  WRITE : 'BEFORE APPENDING' COLOR COL_BACKGROUND.&lt;/P&gt;&lt;P&gt;  SKIP 2.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  SKIP 2.&lt;/P&gt;&lt;P&gt;  SELECT  VBELN&lt;/P&gt;&lt;P&gt;          POSNR&lt;/P&gt;&lt;P&gt;          MATNR&lt;/P&gt;&lt;P&gt;     FROM VBAP UP TO 5 ROWS&lt;/P&gt;&lt;P&gt;     INTO TABLE IT_VBAP.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'NO DATA FOUND' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*----&lt;DEL&gt;BEFORE APPENDING&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;  WRITE : /5 'Sales Document' COLOR COL_HEADING,&lt;/P&gt;&lt;P&gt;           20 'Sales Document Item' COLOR COL_HEADING,&lt;/P&gt;&lt;P&gt;           40 'Material Number' COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAP.&lt;/P&gt;&lt;P&gt;    WRITE : /  IT_VBAP-VBELN,&lt;/P&gt;&lt;P&gt;            20 IT_VBAP-POSNR,&lt;/P&gt;&lt;P&gt;            50 IT_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;*--&lt;DEL&gt;NEW DATA TO BE APPENDED&lt;/DEL&gt;--&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IT_VBAP-VBELN = 'KF'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IT_VBAP-POSNR = '007'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IT_VBAP-MATNR = '1000'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;APPEND IT_VBAP.&lt;/STRONG&gt;*----&lt;DEL&gt;AFTER APPENDING&lt;/DEL&gt;-----&lt;/P&gt;&lt;P&gt;  WRITE : / 'AFTER APPENDING' COLOR COL_BACKGROUND.&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAP.&lt;/P&gt;&lt;P&gt;    WRITE : /  IT_VBAP-VBELN,&lt;/P&gt;&lt;P&gt;            20 IT_VBAP-POSNR,&lt;/P&gt;&lt;P&gt;            50 IT_VBAP-MATNR.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " append_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if usefull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Fareedas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 10:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-data/m-p/3753795#M903040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T10:48:24Z</dc:date>
    </item>
  </channel>
</rss>

