<?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: SYNTAX ERROR............. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653062#M611654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudarshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not find any error in the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check these two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do the records have values in other fields like tsl01, tsl02... etc..&lt;/P&gt;&lt;P&gt;2) Take a single record values and add them in calculator, as it may be that the total amount becomes zero, due to equal total debit and credit amount..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Points for usefull answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 03:50:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-28T03:50:54Z</dc:date>
    <item>
      <title>SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653058#M611650</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;here i got some problem i.e my code is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; report for displaying GL a/c Opening balance.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: GLT0,  " G/L account master record transaction figures&lt;/P&gt;&lt;P&gt;        BSEG,  " Accounting Document Segment&lt;/P&gt;&lt;P&gt;        BKPF,  " Accounting Document Header&lt;/P&gt;&lt;P&gt;        V_001_B, " Company Code Global Data&lt;/P&gt;&lt;P&gt;        T001B. " Permitted Posting Periods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: SO_RACCT for GLT0-RACCT memory id RAC visible length 10,&lt;/P&gt;&lt;P&gt;                SO_BUKRS for GLT0-BUKRS memory id BUK.&lt;/P&gt;&lt;P&gt; parameters : RYEAR TYPE GLT0-RYEAR. " FISCAL YEAR&lt;/P&gt;&lt;P&gt; parameters : p_date like sy-datum default sy-datum.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame.&lt;/P&gt;&lt;P&gt;PARAMETERS : loc_cur RADIOBUTTON GROUP RGB USER-COMMAND R DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;PARAMETERS : Tran_cur RADIOBUTTON GROUP RGB .&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_GLT0 like GLT0 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF gt_data OCCURS 0 ,&lt;/P&gt;&lt;P&gt;          BUKRS   LIKE GLT0-BUKRS,&lt;/P&gt;&lt;P&gt;          RYEAR   LIKE GLT0-RYEAR,&lt;/P&gt;&lt;P&gt;          RACCT   LIKE GLT0-RACCT,&lt;/P&gt;&lt;P&gt;          TSLVT   LIKE GLT0-TSLVT,&lt;/P&gt;&lt;P&gt;          TSL01   LIKE GLT0-TSL01,&lt;/P&gt;&lt;P&gt;          TSL02   LIKE GLT0-TSL02,&lt;/P&gt;&lt;P&gt;          TSL03   LIKE GLT0-TSL03,&lt;/P&gt;&lt;P&gt;          TSL04   LIKE GLT0-TSL04,&lt;/P&gt;&lt;P&gt;          TSL05   LIKE GLT0-TSL05,&lt;/P&gt;&lt;P&gt;          TSL06   LIKE GLT0-TSL06,&lt;/P&gt;&lt;P&gt;          TSL07   LIKE GLT0-TSL07,&lt;/P&gt;&lt;P&gt;          TSL08   LIKE GLT0-TSL08,&lt;/P&gt;&lt;P&gt;          TSL09   LIKE GLT0-TSL09,&lt;/P&gt;&lt;P&gt;          TSL10   LIKE GLT0-TSL10,&lt;/P&gt;&lt;P&gt;          TSL11   LIKE GLT0-TSL11,&lt;/P&gt;&lt;P&gt;          TSL12   LIKE GLT0-TSL12,&lt;/P&gt;&lt;P&gt;          TSL13   LIKE GLT0-TSL13,&lt;/P&gt;&lt;P&gt;          TSL14   LIKE GLT0-TSL14,&lt;/P&gt;&lt;P&gt;          TSL15   LIKE GLT0-TSL15,&lt;/P&gt;&lt;P&gt;          TSL16   LIKE GLT0-TSL16,&lt;/P&gt;&lt;P&gt;          TSL_total like GLT0-TSLVT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         TSL_total TYPE i,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          HSLVT  LIKE GLT0-HSLVT,&lt;/P&gt;&lt;P&gt;          HSL01  LIKE GLT0-HSL01,&lt;/P&gt;&lt;P&gt;          HSL02  LIKE GLT0-HSL02,&lt;/P&gt;&lt;P&gt;          HSL03  LIKE GLT0-HSL03,&lt;/P&gt;&lt;P&gt;          HSL04  LIKE GLT0-HSL04,&lt;/P&gt;&lt;P&gt;          HSL05  LIKE GLT0-HSL05,&lt;/P&gt;&lt;P&gt;          HSL06  LIKE GLT0-HSL06,&lt;/P&gt;&lt;P&gt;          HSL07  LIKE GLT0-HSL07,&lt;/P&gt;&lt;P&gt;          HSL08  LIKE GLT0-HSL08,&lt;/P&gt;&lt;P&gt;          HSL09  LIKE GLT0-HSL09,&lt;/P&gt;&lt;P&gt;          HSL11  LIKE GLT0-HSL11,&lt;/P&gt;&lt;P&gt;          HSL12  LIKE GLT0-HSL12,&lt;/P&gt;&lt;P&gt;          HSL13  LIKE GLT0-HSL13,&lt;/P&gt;&lt;P&gt;          HSL14  LIKE GLT0-HSL14,&lt;/P&gt;&lt;P&gt;          HSL15  LIKE GLT0-HSL15,&lt;/P&gt;&lt;P&gt;          HSL16  LIKE GLT0-HSL16,&lt;/P&gt;&lt;P&gt;          HSL_total TYPE TSLXX,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  END OF gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON SO_RACCT.&lt;/P&gt;&lt;P&gt;  IF SO_RACCT-LOW IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE E000(ZGLM).&lt;/P&gt;&lt;P&gt;  ELSEIF GLT0-RACCT = SO_RACCT AND BSEG-ALTKT = SO_RACCT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE E001(ZGLM).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON SO_BUKRS.&lt;/P&gt;&lt;P&gt;  if SO_BUKRS-LOW IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE E002(ZGLM).&lt;/P&gt;&lt;P&gt;  elseif BKPF-BUKRS = SO_BUKRS AND GLT0-BUKRS = SO_BUKRS.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE E003(ZGLM).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON P_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_day = p_date+6(2). "'01'.&lt;/P&gt;&lt;P&gt;   v_mon = p_date+4(2).&lt;/P&gt;&lt;P&gt;   v_year = p_date+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  month = v_mon - 1.&lt;/P&gt;&lt;P&gt;  year = v_year - 1.&lt;/P&gt;&lt;P&gt;  concatenate v_year v_mon v_day into v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_date IS INITIAL.&lt;/P&gt;&lt;P&gt;   MESSAGE E004(ZGLM).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ELSEIF P_DATE &amp;gt; V_DATE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE E005(ZGLM).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TRAN_CUR = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT TSLVT TSL01 TSL02 TSL03 TSL04 TSL05 TSL06 TSL07&lt;/P&gt;&lt;P&gt;         TSL08 TSL09 TSL10 TSL11 TSL12 TSL13 TSL14 TSL15 TSL16 FROM GLT0&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE gt_data where RACCT IN SO_RACCT and BUKRS IN SO_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WHERE RACCT IN SO_RACCT AND BUKRS IN SO_BUKRS AND RYEAR = GLT0-RYEAR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;gt_data-TSL_total = i_glt0-tslvt + i_glt0-tsl01 + i_glt0-tsl02 + i_glt0-tsl03 + i_glt0-tsl04.  (HERE values r not storing into TSL_total field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;move gt_data-tslvt i_glt0-tsl01 i_glt0-tsl02 i_glt0-tsl03 i_glt0-tsl04 to gt_data-TSL_total.  (this is also not working)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; COUNT = 0.&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE: /30 'THE Opening BALANCE IS........', gt_data-TSL_total.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( hi friends my problem is in select query where cond not working if check date field, and while looping gt_data data is not storing into gt_data-TSLtotal field, alternativly i have used MOVE statement it is also not working. )&lt;/P&gt;&lt;P&gt;plz could anyone correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 02:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653058#M611650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T02:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653059#M611651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF TABLE gt_data&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but then you do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT gt_data.

gt_data-TSL_total = i_glt0-tslvt + i_glt0-tsl01 + i_glt0-tsl02 + i_glt0-tsl03 + i_glt0-tsl04.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but the "i_glt0" structure doesn't seem to get filled in your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and do you need a "modify gt_data" inside to loop to keep the total value in the internal table ready for reporting later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 02:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653059#M611651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T02:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653060#M611652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudarshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are only using the table gt_data in your logic. So, all the data that you need is here itself..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_data-tsl_total = gt_data-tslvt + gt_data-tsl01 + gt_data-tsl02 + ... + gt_data-tsl16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_data-hsl_total = gt_data-hslvt + gt_data-hsl01 + gt_data-hsl02 + ... + gt_data-hsl16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY gt_data.&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;After this peace of code, you will have the totals calculated for all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can print the same as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / 'The opening balance is :',&lt;/P&gt;&lt;P&gt;                gt_data-tsl_total.&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;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Points for usefull answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653060#M611652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T03:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653061#M611653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vikas, &lt;/P&gt;&lt;P&gt;Thanks for ur replay, i have done like that even though gt_data-tsl_total field is not getting any value. it is displaying 0.00.&lt;/P&gt;&lt;P&gt;( after adding MODIFY gt_data also )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check it out oncemore plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudharsan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653061#M611653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T03:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653062#M611654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudarshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not find any error in the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check these two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do the records have values in other fields like tsl01, tsl02... etc..&lt;/P&gt;&lt;P&gt;2) Take a single record values and add them in calculator, as it may be that the total amount becomes zero, due to equal total debit and credit amount..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Points for usefull answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 03:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653062#M611654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T03:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653063#M611655</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;for select statement u had written if an IF conditional statement. so check whether if that conditional statement is correct or not. if it is correct only then control enters inside the block. for this put a break point n check it. and also in select ........... in where condition u use and operator which means that all conditions are true only then select statement works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for loop after making changes to that field u have to use UPDATE or MODIFY statement so that that changes are reflected in the internal table as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_data-TSL_total = i_glt0-tslvt + i_glt0-tsl01 + i_glt0-tsl02 + i_glt0-tsl03 + i_glt0-tsl04. (HERE values r not storing into TSL_total field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify gt_data. // changes that are made are reflected to body of internal table body&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;move gt_data-tslvt i_glt0-tsl01 i_glt0-tsl02 i_glt0-tsl03 i_glt0-tsl04 to gt_data-TSL_total. (this is also not working)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;COUNT = 0.&lt;/P&gt;&lt;P&gt;LOOP AT gt_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /30 'THE Opening BALANCE IS........', gt_data-TSL_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 04:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653063#M611655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T04:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX ERROR.............</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653064#M611656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vikas thank u very munch what u told is right it is adding.&lt;/P&gt;&lt;P&gt;( i ' ve given gd rewards )&lt;/P&gt;&lt;P&gt;but i ' ve one more problem i.e &lt;/P&gt;&lt;P&gt;in my selection-screen i have a a/c no , comp code and date field, but i want to get the data based on month and year, suppose if i give 27-08-2007, but i want data for up to 07th month and 2007(date(27) is not checking), but in where condition am trying to check for year ( posting date year not Fiscalyear) month i can check in loop, so how to do it. &lt;/P&gt;&lt;P&gt;  plz help me towords this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 04:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2653064#M611656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T04:33:02Z</dc:date>
    </item>
  </channel>
</rss>

