<?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 Fill data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-data/m-p/5941167#M1334608</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;&lt;/P&gt;&lt;P&gt;I want a logic if i populate value to 3 fields of a item table out of 5 fiels, i should pass X value to the corresponding fields of Xtable which is of same type of item table. same way i have to do for more than 10 table. if any one have implemented same before please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 10:55:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-16T10:55:06Z</dc:date>
    <item>
      <title>Fill data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-data/m-p/5941167#M1334608</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;&lt;/P&gt;&lt;P&gt;I want a logic if i populate value to 3 fields of a item table out of 5 fiels, i should pass X value to the corresponding fields of Xtable which is of same type of item table. same way i have to do for more than 10 table. if any one have implemented same before please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 10:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-data/m-p/5941167#M1334608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fill data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-data/m-p/5941168#M1334609</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;data: counter type i.
data: f1,f2,f3,f4,f5.

loop at it into wa.

clear: counter,f1,f2,f3,f4,f5.

if wa-f1 is not initial.
counter = counter + 1.
f1 = 'X'.
endif.

if wa-f1 is not initial.
counter = counter + 1.
f2 = 'X'.
endif.

if wa-f1 is not initial.
counter = counter + 1.
f3 = 'X'.
endif.

if wa-f1 is not initial.
counter = counter + 1.
f4 = 'X'.
endif.

if wa-f1 is not initial.
counter = counter + 1.
f5 = 'X'.
endif.

if counter ge 3.
clear xtable.  "no workarea for this table.
xtable-f1 = f1.
xtable-f2 = f2.
xtable-f3 = f3.
xtable-f4 = f4.
xtable-f5 = f5.
append xtable. 
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sure with the above logic you can do for 10 fields or any number of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sajid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shaik sajid on Jul 16, 2009 1:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 11:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-data/m-p/5941168#M1334609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T11:01:49Z</dc:date>
    </item>
  </channel>
</rss>

