<?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: Increment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977665#M702976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;I want to use it as an import file in LSMW to import long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried  this below but it does not work.&lt;/P&gt;&lt;P&gt;I can see in the debugger the value of the out_head-tdcount is changed to 000001&lt;/P&gt;&lt;P&gt;but it is not saved in the out_head structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select TDOBJECT TDNAME TDID TDSPRAS from stxh into CORRESPONDING FIELDS OF TABLE out_head&lt;/P&gt;&lt;P&gt;where tdobject in objekt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at out_head.&lt;/P&gt;&lt;P&gt;  out_head-tdcount = SY-TABIX.&lt;/P&gt;&lt;P&gt;  commit work.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a trick?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Nov 2007 20:43:26 GMT</pubDate>
    <dc:creator>joerg_arndt</dc:creator>
    <dc:date>2007-11-04T20:43:26Z</dc:date>
    <item>
      <title>Increment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977663#M702974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;in the sample below I want to fill the field tdcount with 1, 2, 3 etc.&lt;/P&gt;&lt;P&gt;I have no Idea how to manage this.&lt;/P&gt;&lt;P&gt;Any help would be apreciated.&lt;/P&gt;&lt;P&gt;Rg. Jimbob &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of out_head occurs 0,&lt;/P&gt;&lt;P&gt;tdcount(6) type N,&lt;/P&gt;&lt;P&gt;TDOBJECT(10) type C,&lt;/P&gt;&lt;P&gt;TDNAME(70) TYPE C,&lt;/P&gt;&lt;P&gt;TDID(4) type c,&lt;/P&gt;&lt;P&gt;TDSPRAS(1) TYPE C,&lt;/P&gt;&lt;P&gt;end of out_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select TDOBJECT TDNAME TDID TDSPRAS from stxh into CORRESPONDING FIELDS OF TABLE out_head&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it looks like this.&lt;/P&gt;&lt;P&gt;000000	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;P&gt;000000	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;P&gt;000000	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should like this.&lt;/P&gt;&lt;P&gt;000001	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;P&gt;000002	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;P&gt;000003	ANKA   00001000 LTXT	D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 18:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977663#M702974</guid>
      <dc:creator>joerg_arndt</dc:creator>
      <dc:date>2007-11-04T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Increment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977664#M702975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What exactly will be the use of Count Field?&lt;/P&gt;&lt;P&gt;I don't see any method other than looping at the internal table and modifing the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the requirement is just the identification of the row. Then you can use the SY-TABIX field. You will mostly be reading the table or looping at the table. In both the cases the Sy-tabix will indicate the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 19:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977664#M702975</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-04T19:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Increment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977665#M702976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;I want to use it as an import file in LSMW to import long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried  this below but it does not work.&lt;/P&gt;&lt;P&gt;I can see in the debugger the value of the out_head-tdcount is changed to 000001&lt;/P&gt;&lt;P&gt;but it is not saved in the out_head structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select TDOBJECT TDNAME TDID TDSPRAS from stxh into CORRESPONDING FIELDS OF TABLE out_head&lt;/P&gt;&lt;P&gt;where tdobject in objekt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at out_head.&lt;/P&gt;&lt;P&gt;  out_head-tdcount = SY-TABIX.&lt;/P&gt;&lt;P&gt;  commit work.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a trick?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 20:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977665#M702976</guid>
      <dc:creator>joerg_arndt</dc:creator>
      <dc:date>2007-11-04T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Increment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977666#M702977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your code to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at out_head.&lt;/P&gt;&lt;P&gt;out_head-tdcount = SY-TABIX.&lt;/P&gt;&lt;P&gt;modify out_head.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 21:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977666#M702977</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-04T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Increment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977667#M702978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Abhishek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 21:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/increment/m-p/2977667#M702978</guid>
      <dc:creator>joerg_arndt</dc:creator>
      <dc:date>2007-11-04T21:52:52Z</dc:date>
    </item>
  </channel>
</rss>

