<?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: Dynamic data processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044949#M1172822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO lv_month TIMES.
lv_cnt = lv_cnt + 1.
CONCATENATE 'LS_FAGL-HSL0' lv_cnt INTO lv_text. "&amp;lt;=Here check&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here for november month you will get 11 and the name is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'LS_FAGL-HSL011'&lt;/STRONG&gt;  but I guess you have your field name as *'LS_FAGL-HSL11' *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so change your field name as &lt;STRONG&gt;'LS_FAGL-HSL011'&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use field symbol as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;fs_field&amp;gt; TYPE ANY
 ASSIGN COMPONENT lv_text OF STRUCTURE LS_FAGL TO &amp;lt;fs_field&amp;gt;.
lv_num  = &amp;lt;fs_field&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:35 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 10:34:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T10:34:01Z</dc:date>
    <item>
      <title>Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044946#M1172819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum up the values based on the month as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*December--(Sum up to November(11))&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF p_monat = lc_12.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     lv_hslxx = ls_fagl-hsl01 + ls_fagl-hsl02 + ls_fagl-hsl03 + ls_fagl-hsl04 +&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                ls_fagl-hsl05 + ls_fagl-hsl06 + ls_fagl-hsl07 + ls_fagl-hsl08 +&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                ls_fagl-hsl09 + ls_fagl-hsl10 + ls_fagl-hsl11 + ls_fagl-hslvt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to process the same dynamically: (As shown below and preparing the string LS_FAGL-HSL&amp;lt;Month No&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_month TYPE numc2 ,&lt;/P&gt;&lt;P&gt;           lv_text  TYPE string,&lt;/P&gt;&lt;P&gt;           lv_num   TYPE hslxx12,&lt;/P&gt;&lt;P&gt;           lv_cnt   TYPE char2.&lt;/P&gt;&lt;P&gt;    CLEAR lv_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_FAGL into LS_FAGL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lv_month = lv_month - p_monat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO lv_month TIMES.&lt;/P&gt;&lt;P&gt;      lv_cnt = lv_cnt + 1.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'LS_FAGL-HSL0' lv_cnt INTO lv_text.&lt;/P&gt;&lt;P&gt;      TRY.&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;lv_num = ( lv_text ) .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        CATCH CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;      ENDTRY.&lt;/P&gt;&lt;P&gt;      lv_hslxx = lv_hslxx + lv_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When moving the data in LV_NUM there is an exception raised...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help in filling you the value in LV_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044946#M1172819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044947#M1172820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;            Use field symbols to achieve the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Sid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044947#M1172820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044948#M1172821</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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : LV_MONTH TYPE NUMC2 ,
       LV_TEXT TYPE STRING,
       LV_NUM TYPE HSLXX12,
       LV_CNT TYPE CHAR2.


FIELD-SYMBOLS: &amp;lt;FS_HSLXX&amp;gt; TYPE ANY.

CLEAR LV_MONTH.

LOOP AT GT_FAGL INTO LS_FAGL.

  LV_MONTH = LV_MONTH - P_MONAT.

  DO LV_MONTH TIMES.
    LV_CNT = LV_CNT + 1.
    CONCATENATE 'LS_FAGL-HSL0' LV_CNT INTO LV_TEXT.
    ASSIGN COMPONEND LV_TEXT OF STRUCTURE LS_FAGL TO &amp;lt;FS_HSLXX&amp;gt;.
    IF SY-SUBRC = 0.
      LV_HSLXX = LV_HSLXX + &amp;lt;FS_HSLXX&amp;gt;.
    ENDIF.
  ENDDO.
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, 20 Jan 2009 10:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044948#M1172821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044949#M1172822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO lv_month TIMES.
lv_cnt = lv_cnt + 1.
CONCATENATE 'LS_FAGL-HSL0' lv_cnt INTO lv_text. "&amp;lt;=Here check&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here for november month you will get 11 and the name is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'LS_FAGL-HSL011'&lt;/STRONG&gt;  but I guess you have your field name as *'LS_FAGL-HSL11' *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so change your field name as &lt;STRONG&gt;'LS_FAGL-HSL011'&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use field symbol as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;fs_field&amp;gt; TYPE ANY
 ASSIGN COMPONENT lv_text OF STRUCTURE LS_FAGL TO &amp;lt;fs_field&amp;gt;.
lv_num  = &amp;lt;fs_field&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:35 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 20, 2009 11:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044949#M1172822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044950#M1172823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you replicate the below code using field symbols?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_FAGL into LS_FAGL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_month = lv_month - p_monat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO lv_month TIMES.&lt;/P&gt;&lt;P&gt;lv_cnt = lv_cnt + 1.&lt;/P&gt;&lt;P&gt;CONCATENATE 'LS_FAGL-HSL0' lv_cnt INTO lv_text.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;lv_num = ( lv_text ) .&lt;/P&gt;&lt;P&gt;CATCH CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;lv_hslxx = lv_hslxx + lv_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also without fieldd symbols cant we achieve? Please explain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044950#M1172823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044951#M1172824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like dis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;value&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;LOOP AT GT_FAGL into LS_FAGL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_month = lv_month - p_monat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO lv_month TIMES.&lt;/P&gt;&lt;P&gt;lv_cnt = lv_cnt + 1.&lt;/P&gt;&lt;P&gt;CONCATENATE 'LS_FAGL-HSL0' lv_cnt INTO lv_text.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT lv_text OF STRUCTURE LS_FAGL TO  &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;lv_num =  &amp;lt;value&amp;gt; .&lt;/P&gt;&lt;P&gt;CATCH CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;lv_hslxx = lv_hslxx + lv_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044951#M1172824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic data processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044952#M1172825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want to do with out field symbols. think u can use the case statement,&lt;/P&gt;&lt;P&gt;and write perform for each case.if u like to, u can use the FS to jus vary the month in the performs..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 10:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-data-processing/m-p/5044952#M1172825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T10:42:44Z</dc:date>
    </item>
  </channel>
</rss>

