<?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: Field Catalog from data object.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395767#M1546133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey thanks Max..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for some method and i was trying method GET_COMPONENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the information..&lt;/P&gt;&lt;P&gt;Points awarded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yadesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 17:18:44 GMT</pubDate>
    <dc:creator>former_member261876</dc:creator>
    <dc:date>2010-11-09T17:18:44Z</dc:date>
    <item>
      <title>Field Catalog from data object..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395764#M1546130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;g_head_ref      TYPE REF TO data,&lt;/P&gt;&lt;P&gt;       g_item_ref      TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL BADI handle-&amp;gt;set_header_item_data&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_document_type    = g_document_type&lt;/P&gt;&lt;P&gt;        i_head_item        = g_head_item&lt;/P&gt;&lt;P&gt;        i_ab_document_type = doc_typ&lt;/P&gt;&lt;P&gt;        i_header_table     = g_header_table&lt;/P&gt;&lt;P&gt;        i_item_table       = g_item_table&lt;/P&gt;&lt;P&gt;        i_map_fields       = g_map_fields&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_subrc            = l_subrc&lt;/P&gt;&lt;P&gt;        e_head_ref         = g_head_ref&lt;/P&gt;&lt;P&gt;        e_item_ref         = g_item_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i get the g_data_ref and g_item_ref filled with the values..&lt;/P&gt;&lt;P&gt;now i assigned these object to field symbols to display the same in the ALV.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issues is follwoing--&amp;gt;&lt;/P&gt;&lt;P&gt;I dont know the table structure or table name with which these ref object or the field symbols is type of now....&lt;/P&gt;&lt;P&gt; (in this case it can be a local prog type defined structure..)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i create a fieldcatlog out of it..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried &lt;/P&gt;&lt;P&gt;FM 'REUSE_ALV_FIELDCATALOG_MERGE' --&amp;gt; need an internal table with defined type...&lt;/P&gt;&lt;P&gt;cl_abap_structdescr=&amp;gt;describe_by_data --&amp;gt; need a DDIC structure (in this case it can be a local prog type defined structure..)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the class cl_abap_structdescr is the correct way to do it...please let me know exact flow of methods...if there is some other solution do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yadesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395764#M1546130</guid>
      <dc:creator>former_member261876</dc:creator>
      <dc:date>2010-11-09T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field Catalog from data object..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395765#M1546131</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;i don't know what the variable g_map_fields, perhaps has it the definition of the table? if it's so you can use it to fill catalog table for ALV, else you can use CL_ABAP_STRUCTDESCR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data: g_head_ref TYPE REF TO data.
data: g_item_ref TYPE REF TO data.


..............................................................

field-symbols: &amp;lt;fs_head&amp;gt; type table.
field-symbols: &amp;lt;fs_wa&amp;gt; type any.

data: l_comp type flag.

DATA: MY_STRUCT TYPE REF TO CL_ABAP_STRUCTDESCR.

ASSIGN g_head_ref-&amp;gt;* TO &amp;lt;fs_head&amp;gt;.

LOOP AT &amp;lt;fs_head&amp;gt; ASSIGNING &amp;lt;fs_wa&amp;gt;.
    MY_STRUCT ?= CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_DATA( &amp;lt;fs_wa&amp;gt; ).
    EXIT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in MY_STRUCT-&amp;gt;COMPONENTS you have the definition of the table and u can use it in order to fill the catalog table for ALV&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, 09 Nov 2010 16:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395765#M1546131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field Catalog from data object..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395766#M1546132</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;*Issues is follwoing--&amp;gt;&lt;/P&gt;&lt;P&gt;*I dont know the table structure or table name with which these ref object or the field symbols is type of now....&lt;/P&gt;&lt;P&gt;*(in this case it can be a local prog type defined structure..)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but you should have any "names" at runtime, in debug mode... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case we've to use field-symbol approach... Try to give any debug information... tables name, field name, etc.. of your interest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395766#M1546132</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2010-11-09T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field Catalog from data object..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395767#M1546133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey thanks Max..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for some method and i was trying method GET_COMPONENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the information..&lt;/P&gt;&lt;P&gt;Points awarded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yadesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-catalog-from-data-object/m-p/7395767#M1546133</guid>
      <dc:creator>former_member261876</dc:creator>
      <dc:date>2010-11-09T17:18:44Z</dc:date>
    </item>
  </channel>
</rss>

