<?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: Adding more fields to a transparent table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003546#M709661</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;Instead of field in horizonatal way, you need to change table design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Table: zhpa_uc_census
Client
Job Codes and Description for IT1610
Job Code description for IT1610
Ethnic_code "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Create it as key field, it will be of value 01,02,03,04, 05 ....
End Date
Start Date
EEO Census Job Code Description
Male Count
Female Count
Total Count
Minority Count
Ethnic_count " &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; No of count of Ethnic Code    

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or as suggested by Niamesh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 17:59:04 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-11-14T17:59:04Z</dc:date>
    <item>
      <title>Adding more fields to a transparent table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003544#M709659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a transparent table that has the following fields in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table: zhpa_uc_census&lt;/P&gt;&lt;P&gt;Client&lt;/P&gt;&lt;P&gt;Job Codes and Description for IT1610&lt;/P&gt;&lt;P&gt;Job Code description for IT1610&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;EEO Census Job Code Description&lt;/P&gt;&lt;P&gt;Male Count&lt;/P&gt;&lt;P&gt;Female Count&lt;/P&gt;&lt;P&gt;Total Count&lt;/P&gt;&lt;P&gt;Minority Count&lt;/P&gt;&lt;P&gt;Ethnic01 Count&lt;/P&gt;&lt;P&gt;Ethnic02 Count&lt;/P&gt;&lt;P&gt;Ethnic03 Count&lt;/P&gt;&lt;P&gt;Ethnic04 Count&lt;/P&gt;&lt;P&gt;Ethnic05 Count  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next year, I will need to add more ethnic groups to the table, but I do not know how many.  The year after that, more ethnic groups could be added.  My problem is that each time they add more ethnic groups, I will need to update my transparent tables and also update the program code to take these new ethnic groups into consideration.  Is there a better way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is one of the loops from my program where I am gathering data from one of the transparent tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_zhpa_uc_census.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF t_zhpa_feeder_grps-zzfeedergrp = t_zhpa_uc_census-zzjobcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zzjobcode  =  t_zhpa_feeder_grps-zzjobcode.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-begda      =  sy-datum.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-endda      =  99991231.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zmale      =  t_zhpa_uc_census-zmale.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zfemale    =  t_zhpa_uc_census-zfemale.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-ztotal     =  t_zhpa_uc_census-ztotal.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-ztotal_min =  t_zhpa_uc_census-ztotal_min.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zethnic01  =  t_zhpa_uc_census-zethnic01.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zethnic02  =  t_zhpa_uc_census-zethnic02.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zethnic03  =  t_zhpa_uc_census-zethnic03.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zethnic04  =  t_zhpa_uc_census-zethnic04.&lt;/P&gt;&lt;P&gt;        t_zhpa_uc_census_total-zethnic05  =  t_zhpa_uc_census-zethnic05.&lt;/P&gt;&lt;P&gt;        COLLECT t_zhpa_uc_census_total.&lt;/P&gt;&lt;P&gt;        CLEAR t_zhpa_uc_census_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 17:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003544#M709659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more fields to a transparent table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003545#M709660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change entire design of the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to make header table and item table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Head table would have columns&lt;/P&gt;&lt;P&gt;Client&lt;/P&gt;&lt;P&gt;Job Codes and Description for IT1610&lt;/P&gt;&lt;P&gt;Job Code description for IT1610&lt;/P&gt;&lt;P&gt;End Date&lt;/P&gt;&lt;P&gt;Start Date&lt;/P&gt;&lt;P&gt;EEO Census Job Code Description&lt;/P&gt;&lt;P&gt;Male Count&lt;/P&gt;&lt;P&gt;Female Count&lt;/P&gt;&lt;P&gt;Total Count&lt;/P&gt;&lt;P&gt;Minority Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item table wold have columns,&lt;/P&gt;&lt;P&gt;PRIMARY KEY form header &lt;/P&gt;&lt;P&gt;Counter .. length 3&lt;/P&gt;&lt;P&gt;ETHINC ... one one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when you fill the data you can generate the counter in the details table. You will have all your ETHINC01 to ETHINC05 in the rows .. not in column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 17:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003545#M709660</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-14T17:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding more fields to a transparent table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003546#M709661</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;Instead of field in horizonatal way, you need to change table design&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Table: zhpa_uc_census
Client
Job Codes and Description for IT1610
Job Code description for IT1610
Ethnic_code "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Create it as key field, it will be of value 01,02,03,04, 05 ....
End Date
Start Date
EEO Census Job Code Description
Male Count
Female Count
Total Count
Minority Count
Ethnic_count " &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; No of count of Ethnic Code    

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or as suggested by Niamesh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 17:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-more-fields-to-a-transparent-table/m-p/3003546#M709661</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-11-14T17:59:04Z</dc:date>
    </item>
  </channel>
</rss>

