<?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 problem, implicit header line in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654763#M1095211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to process idocs day by day, so i needed only AT END OF credat. Docnum is irrelevant in this context. I used it as a key, because most of the tables in db have it as only or first part of key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By your suggestions i created a new structure with different sequence of columns. It solved the problem perfectly. Thank oyu very much.&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;Michael Szczerbowski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 15:01:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-14T15:01:26Z</dc:date>
    <item>
      <title>syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654750#M1095198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep getting this errors like this one in Extended Check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIT_ERRORS stands for 2 fields: Table LIT_ERRORS[] and its header line&lt;/P&gt;&lt;P&gt;Field string LIT_ERRORS is not referenced statically in the program   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the tables have heading line, although i dont want them to have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
    ty_c(1),
    ty_idoc        TYPE yidocproc_idocinfo,                 "shorter name
    ty_recipient   TYPE yidocproc_rcpnts,
    tty_idocs      TYPE STANDARD TABLE OF ty_idoc WITH KEY docnum credat,          "idocs container
    tty_status     TYPE STANDARD TABLE OF teds1-status,
    tty_recvs      TYPE STANDARD TABLE OF soos1,            "email recipients&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM process_idocs
                TABLES
                   lit_idocs  TYPE tty_idocs
                   lit_errors TYPE tty_errors.
  DATA:
        lit_bommats TYPE tty_idocs,
        lit_other   TYPE tty_idocs,
        wa_date     TYPE sy-datum.

  FIELD-SYMBOLS:
        &amp;lt;fs_idoc&amp;gt; TYPE ty_idoc.

  " loop thru idocs, process them day by day
LOOP AT lit_idocs[] ASSIGNING &amp;lt;fs_idoc&amp;gt;.

    " filter out bommats to be processed
    IF &amp;lt;fs_idoc&amp;gt;-mestyp EQ 'BOMMAT'
      AND ( &amp;lt;fs_idoc&amp;gt;-status EQ '64' OR &amp;lt;fs_idoc&amp;gt;-status EQ '51' ) .  "check for not processed ?
      INSERT &amp;lt;fs_idoc&amp;gt; INTO TABLE lit_bommats.
    ELSE.
      INSERT &amp;lt;fs_idoc&amp;gt; INTO TABLE lit_other.
    ENDIF.

    AT END OF credat.
      " check idocs not to be processed for a given day
      PERFORM check_idocs
                TABLES
                  lit_other[]
                  lit_errors[].

      IF NOT lit_bommats[] IS INITIAL AND lit_errors[] IS INITIAL.
        " process bommats for a given day
        PERFORM process_bommats
                  TABLES
                     lit_bommats[]
                     lit_errors[].
      ENDIF.

      REFRESH: lit_bommats[],
               lit_other[].

    ENDAT.

  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the END AT credat doesnt work properly, processed idoc one by one. And i have to constantly remember to use [] when using table body.&lt;/P&gt;&lt;P&gt;I've been stuck on this one for 3h or more, any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654750#M1095198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654751#M1095199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM process_idocs
                CHANGING                                              "TABLES
                   lit_idocs  TYPE tty_idocs
                   lit_errors TYPE tty_errors.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654751#M1095199</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-10-14T14:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654752#M1095200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can directly use the table lit_errors without specifying [] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654752#M1095200</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2008-10-14T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654753#M1095201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case it would address the header line instead of the table, wouldn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CHANGING instead of TABLES solved the problem of header lines, but the AT END OF credat still doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654753#M1095201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654754#M1095202</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;PRE&gt;&lt;CODE&gt;LOOP AT lit_idocs[] ASSIGNING &amp;lt;fs_idoc&amp;gt;. &amp;lt;----???????&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shoudl be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lit_idocs ASSIGNING &amp;lt;fs_idoc&amp;gt;.&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, 14 Oct 2008 14:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654754#M1095202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654755#M1095203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lit_idocs into work_area.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lit_idocs ASSIGNING &amp;lt;fs_idoc&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; doesn't work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pawan Kesari on Oct 14, 2008 7:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654755#M1095203</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-10-14T14:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654756#M1095204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither worked. Maybe there's something wrong with my table declaration?&lt;/P&gt;&lt;P&gt;Anyways i store it sorted by credat, so it should be ok &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; but it still fires AT END OF credat on every single loop pass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654756#M1095204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654757#M1095205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is probably because CREDAT is not the first field in structure yidocproc_idocinfo and/or the table lit_idocs is not sorted by that field.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654757#M1095205</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-14T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654758#M1095206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how is your type yidocproc_idocinfo defined..&lt;/P&gt;&lt;P&gt;docnum and credat should be the first and second field in definition..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654758#M1095206</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-10-14T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654759#M1095207</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;Just as Thomas said, check in which position is the field CREDAT: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u should consider the statament AT END OF &amp;lt;FIELD&amp;gt; is triggered as soon as a value of field &amp;lt;FIELD&amp;gt; or a field at the left of &amp;lt;FIELD&amp;gt; is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654759#M1095207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654760#M1095208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It goes &lt;/P&gt;&lt;P&gt;1: docnum &lt;/P&gt;&lt;P&gt;2: status &lt;/P&gt;&lt;P&gt;3: credat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but even if i declare type standard table with key docnum status credat and then sort it by credat (which i did before) it still doesn't work properly. Do i have to declare a new structure based on yidocproc_idocinfo ? or is there a way to miss out on some columns, or change their sequence?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654760#M1095208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654761#M1095209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your table sorted, and is the "credat" field at the beginning of the structure, else the AT END will trigger each time any of the previous fields is changing....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at AT END online documentation from Abap editor&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;AT END OF f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Compatible Work Area with Control Level Processing and Field Symbols Not Allowed as Control Level Criterion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;f is a sub-field of an internal table processed with LOOP. The sequence of statements which follow it is executed &lt;STRONG&gt;if the sub-field f or a sub-field in the current LOOP line defined (on the left) before f has a different value than in the preceding (AT NEW) or subsequent (AT END OF) table line&lt;/STRONG&gt;. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So change to a structure &lt;/P&gt;&lt;P&gt;beginning with "credat" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654761#M1095209</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-10-14T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654762#M1095210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT END OF credat will be trigger if there is a change in any component on the left of credat, which includes docnum and status...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you intended to summarize on credat then it should be the first field,&lt;/P&gt;&lt;P&gt;if you intended to sumarize on docnum and credat then field docnum and credat should be defined in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;beacause you did sort on docnum and credat i assume you want to sumarize docnum and credat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654762#M1095210</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-10-14T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: syntax problem, implicit header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654763#M1095211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to process idocs day by day, so i needed only AT END OF credat. Docnum is irrelevant in this context. I used it as a key, because most of the tables in db have it as only or first part of key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By your suggestions i created a new structure with different sequence of columns. It solved the problem perfectly. Thank oyu very much.&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;Michael Szczerbowski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-implicit-header-line/m-p/4654763#M1095211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:01:26Z</dc:date>
    </item>
  </channel>
</rss>

