<?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: Submitting a dynamic program with layout name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570260#M1659823</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;Your questions seems to be a little unclear. can you explain a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try if i understood it correctly: You are trying to call a program in you code dynamically and and you want to pass the layout name to that program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 14:18:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-20T14:18:24Z</dc:date>
    <item>
      <title>Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570258#M1659821</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 searched many blogs and the SDN forum but couldn't find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know the layout fields of an ALV report for a later usage. Let me explain it with code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used below code to extract data of a dynamic program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;cl_salv_bs_runtime_info=&amp;gt;set(
  EXPORTING display  = abap_false
    metadata = abap_true
    data     = abap_true ).
  Submit (program)  USING SELECTION-SET variant EXPORTING LIST TO MEMORY
            AND RETURN.
  TRY.
      cl_salv_bs_runtime_info=&amp;gt;get_data_ref(
  IMPORTING r_data = lf_ref ).
      ASSIGN lf_ref-&amp;gt;* TO &amp;lt;lt_data&amp;gt;.
    CATCH cx_salv_bs_sc_runtime_info.
      MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
  ENDTRY.
  cl_salv_bs_runtime_info=&amp;gt;clear_all( ).
  CREATE DATA lf_ref1 LIKE LINE OF &amp;lt;lt_data&amp;gt;.
  ASSIGN lf_ref1-&amp;gt;* TO &amp;lt;lt_line&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to submit program with a (known) layout. If it is not possible, how can i modify the ALV report to fit a layout's display properties. (If I can manage to get -dynamic program- layout's visible fields, it will work too.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570258#M1659821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570259#M1659822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;the layout fields is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alv_variant-variant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: alv_variant      LIKE disvariant.&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;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570259#M1659822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570260#M1659823</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;Your questions seems to be a little unclear. can you explain a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try if i understood it correctly: You are trying to call a program in you code dynamically and and you want to pass the layout name to that program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkatesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570260#M1659823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570261#M1659824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can submit a report that contain an ALV and when submit it you can pass the layout as a parameters.&lt;/P&gt;&lt;P&gt;The field that I mentioned contain the layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570261#M1659824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570262#M1659825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello venkatesh333,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, I am creating a program, which submit another program (with dynamic name and variant) and get its output tables (in a saved layout) to send as a mail in EXCEL format. Shortly, I am copying the "send mail as xls attachment"  function of the alv report. The difference is that my program does it automatically. For example, people from MM can send a (xls) mail to a end user everyday with same program, same variant and same layout. I hope it is more clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570262#M1659825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T14:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570263#M1659826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My submitted report is dynamic so I can't know the name of the layout field (alv_variant) before run-time. Does this name generic for all ALV reports? If so, this may work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: We cant impose other program to use alv_variant-variant as parameter. Also, other program may use own definitions for this parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kerimmkilic on Jan 20, 2012 3:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570263#M1659826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570264#M1659827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you try sending spool data as email, rather trying to get the layout dynamically and then trying to send th email.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 19:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570264#M1659827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570265#M1659828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table LTDX seems to store ALV variants.  If that helps any.  I would debug an ALV report with a variant specified to find a FM or select that retrieves the rest of the layout data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 20:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570265#M1659828</guid>
      <dc:creator>bryan_cain</dc:creator>
      <dc:date>2012-01-20T20:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570266#M1659829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I searched many blogs and the SDN forum but couldn't find a solution.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I need to know the layout fields of an ALV report for a later usage. Let me explain it with code:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I used below code to extract data of a dynamic program.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;cl_salv_bs_runtime_info=&amp;gt;set(
&amp;gt;   EXPORTING display  = abap_false
&amp;gt;     metadata = abap_true
&amp;gt;     data     = abap_true ).
&amp;gt;   Submit (program)  USING SELECTION-SET variant EXPORTING LIST TO MEMORY
&amp;gt;             AND RETURN.
&amp;gt;   TRY.
&amp;gt;       cl_salv_bs_runtime_info=&amp;gt;get_data_ref(
&amp;gt;   IMPORTING r_data = lf_ref ).
&amp;gt;       ASSIGN lf_ref-&amp;gt;* TO &amp;lt;lt_data&amp;gt;.
&amp;gt;     CATCH cx_salv_bs_sc_runtime_info.
&amp;gt;       MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
&amp;gt;   ENDTRY.
&amp;gt;   cl_salv_bs_runtime_info=&amp;gt;clear_all( ).
&amp;gt;   CREATE DATA lf_ref1 LIKE LINE OF &amp;lt;lt_data&amp;gt;.
&amp;gt;   ASSIGN lf_ref1-&amp;gt;* TO &amp;lt;lt_line&amp;gt;.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; What I need is to submit program with a (known) layout. If it is not possible, how can i modify the ALV report to fit a layout's display properties. (If I can manage to get -dynamic program- layout's visible fields, it will work too.)&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thank you.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read the metadata of an ALV layout using the FM LT_DBDATA_READ_FROM_LTDX, the type of variant should be 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 20:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570266#M1659829</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2012-01-20T20:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570267#M1659830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answers but it doesn't help unfortunately. Table LTDX stores the details of a layout like user id, last change data etc.&lt;/P&gt;&lt;P&gt;What I need is the table header properties (visible or not). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took your suggestion and debugged a program which takes layout variant as parameter. (Program name is RFITEMAP). In this program, ABAP takes pa_vari parameter and send it to ALV layout as gs_variant-variant. The reason that I can't use it in my program is the dynamic variant and dynamic submitted program. I mean I can't send variant name to a submitted program as parameter as long as I can't know its name in that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also spooling doesn't work for my situation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 06:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570267#M1659830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570268#M1659831</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;&lt;/P&gt;&lt;P&gt;Check this LINK  you can take help from this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create dynamic varient and pass  to Submit program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1205345"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use function module to get layout names and  reprot  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 ranges: lr_report for ltdx-report,
          lr_handle for ltdx-handle,
          lr_log_group for ltdx-log_group,
          lr_username  for ltdx-username,
          lr_variant   for ltdx-variant,
          lr_type      for ltdx-type.

call function 'LT_VARIANTS_READ_FROM_LTDX'
    exporting
      i_tool          = r_tool
      i_text          = r_text
    tables
      et_variants     = rt_variants
      it_ra_report    = lr_report
      it_ra_handle    = lr_handle
      it_ra_log_group = lr_log_group
      it_ra_username  = lr_username
      it_ra_variant   = lr_variant
      it_ra_type      = lr_type
    exceptions
      not_found       = 1
      others          = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepak Dhamat on Jan 23, 2012 8:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 06:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570268#M1659831</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2012-01-23T06:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570269#M1659832</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;From your question what I understood is that you are just submitting a program with a name ( dynamic ) &amp;amp; you need the layout used for display. Here as you are not passing any variant name to the program , you will be able to get the details of the &lt;STRONG&gt;default&lt;/STRONG&gt; layout using the function LVC_VARIANT_SELECT. Please note that you have opened several threads related to the same question, try to close it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 08:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570269#M1659832</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-01-23T08:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570270#M1659833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Table LTDX stores the details of a layout like user id, last change data etc.&lt;/P&gt;&lt;P&gt;&amp;gt; What I need is the table header properties (visible or not). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, the db table LTDX also stores the metadata of the ALV layout in the field LTDX-CLUSTD in compressed format, you may read its contents using the FM LT_DBDATA_READ_FROM_LTDX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to submit program with a (known) layout. If it is not possible, &lt;/P&gt;&lt;P&gt;how can i modify the ALV report to fit a layout's display properties.&lt;/P&gt;&lt;P&gt;(If I can manage to get -dynamic program- layout's visible fields, it will work too.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your previous post, it is understood/assumed that, you very well know the name of the ALV layout of the dynamic program that needs to be submitted, if this understanding/assumption is correct, you can care less about the layout with which the ALV of the submitted program is displayed, as you can read back the complete contents(all the columns) of the internal table using the data reference returned by the method GET_DATA_REF( ), now you just have to apply the metadata read back from the FM LT_DBDATA_READ_FROM_LTDX to the contents returned from the  method GET_DATA_REF( ), however, for any reason you wish to read the metadata with which the submitted program has displayed the ALV, you can use the method cl_salv_bs_runtime_info=&amp;gt;get_metadata( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 05:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570270#M1659833</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2012-01-24T05:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570271#M1659834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer is very helpful. My solution lays beyond FM LT_DBDATA_READ_FROM_LTDX. However, I couldn't manage to read LTDX-CLUSTD. I used it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: rt_variants like STANDARD TABLE OF LTDXDATA,
        lr_report like STANDARD TABLE OF LTDXDATA,
        lr_handle like STANDARD TABLE OF LTDXDATA,
        lr_log_group like standard table of LTDXDATA,
        is_varkey type STANDARD TABLE OF LTDXKEY with header line.

is_varkey-report  = program. "working program name.
is_varkey-variant = layout. "working saved layout name.
is_varkey-type    = 'F'. "no idea about it.
append is_varkey.




  call function 'LT_DBDATA_READ_FROM_LTDX'
    exporting
*      i_tool          = "optional. do i really need to input something here?
      is_varkey       = is_varkey
    tables
      t_dbfieldcat  =  rt_variants
*      t_dbsortinfo  =  lr_report
*      t_dbfilter    =  lr_handle
      t_dblayout    =  lr_log_group

    exceptions
      not_found       = 1
      others          = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you tell me how to use this funciton or show an example usage? And how can I find LTDX-CLUSTD in these tables?&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;Edit: Many Thanks Rajesh. At last,  I solved the problem. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kerimmkilic on Jan 24, 2012 8:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 06:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570271#M1659834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T06:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570272#M1659835</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; glad that the answer was helpful, hope you had success in retrieving the layout info from the FM, make sure that you are populating the 'USERNAME' field, if your ALV layout is user specific(and if the report name/username/layout/type combination doesn't uniquely identify the ALV layout, you may have to transfer additioanal parameters)...and if you are displaying hierarchial ALVs you may have to transfer the value 'HI' to the importing parameter I_TOOL of the FM and for displaying normal ALVs the default value 'LT' of the parameter would suffice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 14:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570272#M1659835</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2012-01-24T14:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting a dynamic program with layout name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570273#M1659836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for additional useful info Rajesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is perfectly working. I am just transferring program name, variant, layout and mail details in my main program and it sends mails with excel attachment of the alv report of the related program. I have some formatting issues that need to be solved but I can figure it out from now on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See you around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 14:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-a-dynamic-program-with-layout-name/m-p/8570273#M1659836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T14:56:36Z</dc:date>
    </item>
  </channel>
</rss>

