<?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: How do I call get_ddic_reference? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383044#M1237886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My lr_columns reference is to CL_SALV_COLUMNS_TABLE, not to CL_SALV_COLUMN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears as tho the method GET_DDIC_REFERENCE exists in both classes, but for some reason it is not working correctly when called from CL_SALV_COLUMNS_TABLE in my code, but does work correctly when called from CL_SALV_COLUMN in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense to you?  Why would the method exist in CL_SALV_COLUMNS_TABLE but not work correctly?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I picked a tough one to learn on!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andrew Brusko on Apr 1, 2009 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2009 13:42:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-01T13:42:56Z</dc:date>
    <item>
      <title>How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383037#M1237879</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 am trying to call the get_ddic_reference method.  Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_column ?= lr_columns-&amp;gt;get_column( columnname = 'CARRID' ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lr_column-&amp;gt;get_ddic_reference( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It runs, but does not do anything.  It seems obvious to me that there is nowhere to store the results of the "GET".  how do I format this instruction "lr_column-&amp;gt;get_ddic_reference( )" so that I capture the returned value(s)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 18:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383037#M1237879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-31T18:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383038#M1237880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has a returning parameter type as SALV_S_DDIC_REFERENCE.  So you need to delare the structure for this, then call the method and specify the returning parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ls_ddic_ref type SALV_S_DDIC_REFERENCE.

ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 19:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383038#M1237880</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-03-31T19:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383039#M1237881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Declare the type of  get_ddic_reference and then assign &amp;lt;variable&amp;gt; =  lr_column-&amp;gt;get_ddic_reference( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 05:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383039#M1237881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383040#M1237882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies.  I have a variable defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_ddic_ref TYPE REF TO salv_s_ddic_reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I changed the method call to the follwoing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_column ?= lr_columns-&amp;gt;get_column( columnname = 'CARRID' ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a compile error that states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result type of the function method cannot be converted into the type of LS_DDIC_REF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something about column 'CARRID' that might be causing the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383040#M1237882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383041#M1237883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure of what you mean when you say "Declare the type of get_ddic_reference ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383041#M1237883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T10:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383042#M1237884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange.  when I TYPE ls_ddic_ref as follows:&lt;/P&gt;&lt;P&gt;ls_ddic_ref TYPE REF TO salv_s_ddic_reference&lt;/P&gt;&lt;P&gt;I get the compile error stated in the above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I TYPE it like this:&lt;/P&gt;&lt;P&gt;ls_ddic_ref(60) TYPE c.&lt;/P&gt;&lt;P&gt;I get past the compile error.  I get a different warning, but I do not get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383042#M1237884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T13:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383043#M1237885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the signature of the method GET_DDIC_REFERENCE of class CL_SALV_COLUMN and declare the variable with same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the compiler error when I use like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Method GET_DDIC_REFERENCE signature
* @7B\QReturning@	VALUE( VALUE )	TYPE SALV_S_DDIC_REFERENCE

  DATA: ls_ddic_ref TYPE salv_s_ddic_reference.   " Same as method returning type
  TRY.
      lr_column ?= lr_columns-&amp;gt;get_column( 'CARRID' ).
    CATCH cx_salv_not_found.                            "#EC NO_HANDLER
  ENDTRY.
  ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).
&lt;/CODE&gt;&lt;/PRE&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, 01 Apr 2009 13:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383043#M1237885</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-01T13:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383044#M1237886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My lr_columns reference is to CL_SALV_COLUMNS_TABLE, not to CL_SALV_COLUMN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears as tho the method GET_DDIC_REFERENCE exists in both classes, but for some reason it is not working correctly when called from CL_SALV_COLUMNS_TABLE in my code, but does work correctly when called from CL_SALV_COLUMN in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense to you?  Why would the method exist in CL_SALV_COLUMNS_TABLE but not work correctly?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I picked a tough one to learn on!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Andrew Brusko on Apr 1, 2009 3:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383044#M1237886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383045#M1237887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, you seems to be little confused here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first post says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TRY.
lr_column ?= lr_columns-&amp;gt;get_column( columnname = 'CARRID' ).
CATCH cx_salv_not_found .
ENDTRY.

lr_column-&amp;gt;get_ddic_reference( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this code, it is clear that you are trying to get the COLUMN object from all the COLUMNS. So, your LR_COLUMN would be referring to CL_SALV_COLUMN_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I don't think GET_DDIC_REFERENCE in CL_SALV_COLUMNS_TABLE  would make any sense because it should return the DDIC reference for one Column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*... set the columns technical
  DATA: lr_columns TYPE REF TO cl_salv_columns_table,
        lr_column  TYPE REF TO cl_salv_column_table.
  DATA: ls_ddic_ref TYPE salv_s_ddic_reference.

  TRY.
      lr_column ?= lr_columns-&amp;gt;get_column( 'CARRID' ).
    CATCH cx_salv_not_found.                            "#EC NO_HANDLER
  ENDTRY.

  ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).
&lt;/CODE&gt;&lt;/PRE&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, 01 Apr 2009 13:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383045#M1237887</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-01T13:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383046#M1237888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry...you are right.  I'm very new to this and still not relating everything correctly in my mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me restate this correctly (I'll take my time this time!):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating my original ALV reference (gr_alv) from the following method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;        cl_salv_table=&amp;gt;factory(&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            list_display   = if_salv_c_bool_sap=&amp;gt;false&lt;/P&gt;&lt;P&gt;            container_name = 'my_control_area'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            r_salv_table   = gr_alv&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            t_table        = it_sflight&lt;/P&gt;&lt;P&gt;               ).&lt;/P&gt;&lt;P&gt;      CATCH cx_salv_msg INTO gr_error.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this reference (gr_alv), I create a reference to CL_SALV_COLUMNS_TABLE (lr_columns) as follows:  lr_columns = gr_alv-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From lr_columns I am calling GET_COLUMNS which I thought was retruning a reference (lr_column) to CL_SALV_COLUMN_TABLE, but it might be returning a reference to CL_SALV_COLUMN.  Apparently these are to similar but slightly different classes.  I'm not sure which class I am getting a reference to in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My call looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_column ?= lr_columns-&amp;gt;get_column( columnname = 'CARRID' ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your prior post you reference class CL_SALV_COLUMN, but I am wondering if I am really working with an instance of CL_SALV_COLUMN_TABLE and if this is why your version works and mine does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for misstating this the first time...hope this makes sense, and above all, Thanks For Reading!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 14:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383046#M1237888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383047#M1237889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are my declarations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gr_alv TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;P&gt;DATA: lr_columns TYPE REF TO cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;DATA: lr_column TYPE REF TO cl_salv_column_table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 14:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383047#M1237889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T14:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383048#M1237890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have look at the class CL_SALV_COLUMN_TABLE. It is a subclass of the  CL_SALV_COLUMN_LIST which is a subclass of the CL_SALV_COLUMN. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CL_SALV_COLUMN
  '---- CL_SALV_COLUMN_LIST
          '---- CL_SALV_COLUMN_TABLE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mehtod GET_DDIC_REFERENCE is being inherited from the CL_SALV_COLUMN into the calss CL_SALV_COLUMN_TABLE. So, when we are calling the method, it actually calls the method from the CL_SALV_COLUMN. That's why I mentioned this class in my first reply&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the program SALV_DEMO_TABLE_COLUMNS to the Z program and try to Put the code as given in previous post in the subroutine DISPLAY_FULLSCREEN.&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, 01 Apr 2009 15:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383048#M1237890</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-01T15:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383049#M1237891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what to say.  I did as you have suggested in program SALV_DEMO_TABLE_COLUMNS and it compiled perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that is in there is exactly the same as the code that I am using in my program, but it will not compile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following DATA declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reference for COLUMNS subclass&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: lr_columns TYPE REF TO cl_salv_columns_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reference for COLUMN subclass&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: lr_column TYPE REF TO cl_salv_column_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define a variable TYPEd to salv_s_ddic_reference for GET_DDIC_REFERENCE method&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; DATA: ls_ddic_ref TYPE REF TO salv_s_ddic_reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have the following method calls:&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Get a column instance to sample the GET methods&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_column ?= lr_columns-&amp;gt;get_column( 'CARRID' ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_not_found .&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change the Short Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_shorttext = text-car.&lt;/P&gt;&lt;P&gt;  lr_column-&amp;gt;set_short_text( value = l_shorttext ).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get DDIC Reference&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the set_short_text in to be sure that all the references were working and it is.  When I un-comment the ls_ddic_ref = lr_column-&amp;gt;get_ddic_reference( ). line I get the compile error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to waste any more of your time.  you have told me all the correct things to do...I have made some mistake somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time and help...you have spent more time that you should have to!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 15:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383049#M1237891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383050#M1237892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found what I was doing wrong...beginner mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was declaring my variables using TYPE REF TO instead of just TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big difference!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for wasting your time...but you did make a lot of things more clear to me...thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 17:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383050#M1237892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T17:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383051#M1237893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a simple mistake in your coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
* Define a variable TYPEd to salv_s_ddic_reference for GET_DDIC_REFERENCE method
DATA: ls_ddic_ref TYPE REF TO salv_s_ddic_reference.  " &amp;lt;&amp;lt;&amp;lt; It's a structure not a class/interface !!!

DATA: ls_ddic_ref   TYPE salv_s_ddic_reference.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 17:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383051#M1237893</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-04-01T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I call get_ddic_reference?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383052#M1237894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.  I just found that mistake a few seconds before your post...I feel like a real beginner!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 17:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-call-get-ddic-reference/m-p/5383052#M1237894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T17:55:07Z</dc:date>
    </item>
  </channel>
</rss>

