<?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: Using complex structures in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451053#M829070</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;You can declae the same internal table in Grid display even as though the components are also in other &lt;/P&gt;&lt;P&gt;internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 05:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T05:14:55Z</dc:date>
    <item>
      <title>Using complex structures in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451051#M829068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know if its possible to use complex structures in an ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a internal table in which one of the components is an other internal table.&lt;/P&gt;&lt;P&gt;Is there a way to use this directly in ALV or do I need to use some kind of workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 11:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451051#M829068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using complex structures in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451052#M829069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;As U mentioned ur one component of internal table is existing in another inter table.&lt;/P&gt;&lt;P&gt;see for ALV display ur values shuld exist in one internal table only. but if ur internal table contains two structure or one strcture and one internal table ,then u can use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REUSE_ALV_FIELDCATALOG_MERGE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to make common catalog for structure and internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
 EXPORTING
   I_PROGRAM_NAME               =
   I_INTERNAL_TABNAME           =
  I_STRUCTURE_NAME             =
*   I_CLIENT_NEVER_DISPLAY       = 'X'
*   I_INCLNAME                   =
*   I_BYPASSING_BUFFER           =
*   I_BUFFER_ACTIVE              =
  CHANGING
    CT_FIELDCAT                  =
* EXCEPTIONS
*   INCONSISTENT_INTERFACE       = 1
*   PROGRAM_ERROR                = 2
*   OTHERS                       = 3&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;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;If not please send ur code For better understanding of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards Point If helpful .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neetu chhabra on Feb 27, 2008 5:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 04:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451052#M829069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T04:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using complex structures in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451053#M829070</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;You can declae the same internal table in Grid display even as though the components are also in other &lt;/P&gt;&lt;P&gt;internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 05:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451053#M829070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T05:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using complex structures in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451054#M829071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the definition of the table, and the different structures used in it, that want to use in the ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_0167_opt, "Optional IT0167 fields&lt;/P&gt;&lt;P&gt;         dtype LIKE rpbenodp-relation, "Relation&lt;/P&gt;&lt;P&gt;         dname LIKE rpbenodp-dep_name, "Full name&lt;/P&gt;&lt;P&gt;         dstud LIKE p0106-ben03, "Student indicator&lt;/P&gt;&lt;P&gt;         sdisa LIKE p0106-disab, "Disability indicator&lt;/P&gt;&lt;P&gt;       END OF t_0167_opt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_0168_opt, "Optional IT0168 fields&lt;/P&gt;&lt;P&gt;         itype LIKE rpbenodp-relation, "Relation&lt;/P&gt;&lt;P&gt;         iname LIKE rpbenodp-dep_name, "Full name&lt;/P&gt;&lt;P&gt;         perct LIKE p0168-bpt01, "Percentage&lt;/P&gt;&lt;P&gt;         contf TYPE c,           "Contingency flag&lt;/P&gt;&lt;P&gt;       END OF t_0168_opt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_0169_opt, "Optional IT0169 fields&lt;/P&gt;&lt;P&gt;         stype LIKE rpbenodp-relation, "Relation&lt;/P&gt;&lt;P&gt;         sname LIKE rpbenodp-dep_name, "Full name&lt;/P&gt;&lt;P&gt;         sperc LIKE p0169-bpt01, "Percentage&lt;/P&gt;&lt;P&gt;         sflag TYPE c,           "Contingency flag&lt;/P&gt;&lt;P&gt;       END OF t_0169_opt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_0379_opt, "Optional IT0379 fields&lt;/P&gt;&lt;P&gt;         ptype LIKE rpbenodp-relation, "Relation&lt;/P&gt;&lt;P&gt;         pname LIKE rpbenodp-dep_name, "Full name&lt;/P&gt;&lt;P&gt;         pperc LIKE p0379-bpt01, "Percentage&lt;/P&gt;&lt;P&gt;         pflag TYPE c,           "Contingency flag&lt;/P&gt;&lt;P&gt;       END OF t_0379_opt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_smchanges, "Changes in smoker status&lt;/P&gt;&lt;P&gt;         pernr LIKE pernr-pernr, "Employee number&lt;/P&gt;&lt;P&gt;         ename LIKE p0001-ename, "Full name&lt;/P&gt;&lt;P&gt;         osmok LIKE p0376-smoke, "Old smoker status&lt;/P&gt;&lt;P&gt;         odate LIKE p0376-begda, "Effective date change&lt;/P&gt;&lt;P&gt;         nsmok LIKE p0376-smoke, "New smoker status&lt;/P&gt;&lt;P&gt;         opsmk LIKE p0106-smoke, "Old spouse smoker status&lt;/P&gt;&lt;P&gt;         opdat LIKE p0106-begda, "Effective date change&lt;/P&gt;&lt;P&gt;         npsmk LIKE p0106-smoke, "New spose smoker status&lt;/P&gt;&lt;P&gt;       END OF t_smchanges,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       BEGIN OF t_benchanges, "Changes in beneficiary status&lt;/P&gt;&lt;P&gt;         pernr LIKE pernr-pernr, "Employee number&lt;/P&gt;&lt;P&gt;         ename LIKE p0001-ename, "Full name&lt;/P&gt;&lt;P&gt;         infty(4) TYPE n,        "Changed infotype&lt;/P&gt;&lt;P&gt;         cdate LIKE sy-datum,    "Change date&lt;/P&gt;&lt;P&gt;         cplan LIKE p0168-bplan, "Plan change&lt;/P&gt;&lt;P&gt;         stext(60) TYPE c,       "Free text&lt;/P&gt;&lt;P&gt;       END OF t_benchanges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GLOBAL STRUCTURES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  BEGIN OF t_output_all, "Output table&lt;/P&gt;&lt;P&gt;         pernr LIKE p0000-pernr, "Employee numer&lt;/P&gt;&lt;P&gt;         ename LIKE p0001-ename, "Employee name&lt;/P&gt;&lt;P&gt;         werks LIKE p0001-werks, "Personnel area&lt;/P&gt;&lt;P&gt;         btrtl LIKE p0001-btrtl, "Personne sub-area&lt;/P&gt;&lt;P&gt;         persg LIKE p0001-persg, "Employee group&lt;/P&gt;&lt;P&gt;         persk LIKE p0001-persk, "Employee sub-group&lt;/P&gt;&lt;P&gt;         ansvh LIKE p0001-ansvh, "Contract&lt;/P&gt;&lt;P&gt;         massn LIKE p0000-massn, "Action&lt;/P&gt;&lt;P&gt;         massg LIKE p0000-massg, "Reason&lt;/P&gt;&lt;P&gt;         gesch LIKE p0002-gesch, "Gender&lt;/P&gt;&lt;P&gt;         provr LIKE p0224-provr, "Province of residence&lt;/P&gt;&lt;P&gt;         plstx LIKE t528t-plstx, "Position title&lt;/P&gt;&lt;P&gt;         gbdat LIKE p0002-gbdat, "Date of birth&lt;/P&gt;&lt;P&gt;         fgbdt LIKE p0021-fgbdt, "Date of birth spouse&lt;/P&gt;&lt;P&gt;         ansal LIKE p0008-ansal, "anual salary&lt;/P&gt;&lt;P&gt;         bengr LIKE p0171-bengr, "First Program grouping&lt;/P&gt;&lt;P&gt;         bstat LIKE p0171-bstat, "Second Program Grouping&lt;/P&gt;&lt;P&gt;         smoke LIKE p0376-smoke, "Employee Smoker indicator&lt;/P&gt;&lt;P&gt;         ssmok LIKE p0106-smoke, "Spouse smoker indicator&lt;/P&gt;&lt;P&gt;         perid LIKE p0002-perid, "Social insurance number&lt;/P&gt;&lt;P&gt;         sprsl LIKE p0002-sprsl, "Employee language of preference&lt;/P&gt;&lt;P&gt;         stras LIKE p0006-stras, "Home address&lt;/P&gt;&lt;P&gt;         ort01 LIKE p0006-ort01, "City&lt;/P&gt;&lt;P&gt;         state LIKE p0006-state, "Province&lt;/P&gt;&lt;P&gt;         land1 LIKE p0006-land1, "Country&lt;/P&gt;&lt;P&gt;         pstlz LIKE p0006-pstlz, "Postal code&lt;/P&gt;&lt;P&gt;         rtdat LIKE p9041-dat01, "Retirement Date Day type&lt;/P&gt;&lt;P&gt;         bsgrd LIKE p0008-bsgrd, "Capacity Utilization level&lt;/P&gt;&lt;P&gt;         zzlocod LIKE p0006-zzlocod, "location code&lt;/P&gt;&lt;P&gt;         zzlocat LIKE p0006-zzlocat, "Office / location indicator&lt;/P&gt;&lt;P&gt;         hplan LIKE p0167-bplan, "Health plan&lt;/P&gt;&lt;P&gt;         bopti LIKE p0167-bopti, "Health plan option&lt;/P&gt;&lt;P&gt;         depcv LIKE p0167-depcv, "Health plan coverage&lt;/P&gt;&lt;P&gt;         hbedt LIKE p0167-begda, "Health plan start date&lt;/P&gt;&lt;P&gt;         hendt LIKE p0167-endda, "Health plan end date&lt;/P&gt;&lt;P&gt;         ibedt LIKE p0168-begda, "Insurance plan start date&lt;/P&gt;&lt;P&gt;         iendt LIKE p0168-endda, "Insurance plan end date&lt;/P&gt;&lt;P&gt;         iplan LIKE p0168-bplan, "Insurance plan code&lt;/P&gt;&lt;P&gt;         bcovr LIKE p0168-bcovr, "Insurance plan option&lt;/P&gt;&lt;P&gt;         covam LIKE q0168-covam, "Insurance Coverage amount&lt;/P&gt;&lt;P&gt;         covov LIKE p0168-covov, "Alternate insurrance coverage amount&lt;/P&gt;&lt;P&gt;         splan LIKE p0169-bplan, "Savings plan&lt;/P&gt;&lt;P&gt;         pardt LIKE p0169-pardt, "Savings plan participation date&lt;/P&gt;&lt;P&gt;         eepct LIKE p0169-eepct, "Pre-tax contribution percentage&lt;/P&gt;&lt;P&gt;         bcpct LIKE p0169-bcpct, "Bonus Pre-tax contribution percentage&lt;/P&gt;&lt;P&gt;         sbedt LIKE p0169-begda, "Savings plan start date&lt;/P&gt;&lt;P&gt;         sendt LIKE p0169-endda, "Savings plan end date&lt;/P&gt;&lt;P&gt;         pplan LIKE p0379-bplan, "Stock Purchase plan&lt;/P&gt;&lt;P&gt;         sprdt LIKE p0379-pardt, "Participation date&lt;/P&gt;&lt;P&gt;         pbedt LIKE p0379-begda, "Start date&lt;/P&gt;&lt;P&gt;         pendt LIKE p0379-endda, "End date&lt;/P&gt;&lt;P&gt;         ptamt LIKE p0379-ptamt, " Post Tax contribution amount&lt;/P&gt;&lt;P&gt;       END OF t_output_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTERNAL TABLES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_total OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE t_output_all.&lt;/P&gt;&lt;P&gt;DATA:  t167 TYPE TABLE OF t_0167_opt,&lt;/P&gt;&lt;P&gt;       t168 TYPE TABLE OF t_0168_opt,&lt;/P&gt;&lt;P&gt;       t169 TYPE TABLE OF t_0169_opt,&lt;/P&gt;&lt;P&gt;       t379 TYPE TABLE OF t_0379_opt,&lt;/P&gt;&lt;P&gt;     END OF i_total,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-complex-structures-in-alv/m-p/3451054#M829071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:26:03Z</dc:date>
    </item>
  </channel>
</rss>

