<?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>Question Re: Maintaining ALV Variants without running the program in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053274#M418728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they are client-specific.  Is it possible to have non client-specific ALV layouts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2005 17:59:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-27T17:59:23Z</dc:date>
    <item>
      <title>Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaq-p/1053267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to maintain ALV Layout Variants for a report without running the report first?  Does a separate tcode exist for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 22:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaq-p/1053267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T22:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053268#M418722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;It seems there is a way to save an ALV layout variant as "user-specific" and/or "global". But unfortunately, you either can only save "globals" (with the '/' as first character of the layout name) or "user-specific".  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have tried the I_SAVE parameter as 'U' and can only save "user-specific". You tried I_SAVE as 'X' and can only save "global". You tried I_SAVE as 'A', but only can only save as "user-specific". The odd thing is, on the Save Layout pop-up dialog the User-Specific checkbox is always "greyed-out", but has a check (for 'U' and 'A') or is checkless (for 'X'). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can "user" and "global" layout variants be saved together from same program with I_SAVE as 'A'?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the User-Specific checkbox on the Save Layout pop-up always "greyed-out"? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the following EXPORTING parameters in my function module: &lt;/P&gt;&lt;P&gt;I_DEFAULT = 'X' &lt;/P&gt;&lt;P&gt;I_SAVE = 'A' "&amp;lt;=== this is to be global &amp;amp; user IS_VARIANT = VARIANT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT has the program's name in the REPORT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The "user-specific saving" needs a special authorization: 
Authority-check object 'S_ALV_LAYO' id 'ACTVT' field '23', you can 
avoid this authorization with IS_LAYOUT-NO_AUTHOR = 'X'.&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;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 02:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053268#M418722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T02:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053269#M418723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume I want to create two different variants for a report. Now, if I want to do this without running this on what basis the fields / layout will be changed and be associated to the variant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to make sense out of this requirement. Could you please give more clarity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, technically it sounds possible although I have not tried it myself. Take a look at the function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LVC_VARIANT_SAVE&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(IT_FIELDCAT) TYPE  LVC_T_FCAT&lt;/P&gt;&lt;P&gt;*"     VALUE(IT_SORT) TYPE  LVC_T_SORT&lt;/P&gt;&lt;P&gt;*"     VALUE(IT_FILTER) TYPE  LVC_T_FILT&lt;/P&gt;&lt;P&gt;*"     VALUE(IS_LAYOUT) TYPE  LVC_S_LAYO OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(I_DIALOG) TYPE  C DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"     VALUE(I_OVERWRITE) DEFAULT ' '&lt;/P&gt;&lt;P&gt;*"     VALUE(I_USER_SPECIFIC) DEFAULT ' '&lt;/P&gt;&lt;P&gt;*"     VALUE(I_CUSTOMER_NAME_CHECK) TYPE  C DEFAULT 'X'&lt;/P&gt;&lt;P&gt;*"     VALUE(I_BUFFER_ACTIVE) TYPE  CHAR01 OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(I_BYPASSING_BUFFER) TYPE  CHAR01 OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(E_EXIT) TYPE  C&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      IT_DATA OPTIONAL&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     VALUE(CS_VARIANT) LIKE  DISVARIANT STRUCTURE  DISVARIANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, given the right parameters you should be able to save the layout variants. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, I am not sure where you are going to place the code, if you are not going to execute the code even once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the helpful posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 03:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053269#M418723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T03:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053270#M418724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call this function module &amp;lt;b&amp;gt;LVC_VARIANT_SAVE&amp;lt;/b&amp;gt; before alv display .So this way you can save the variant before display, but with out running the program i'm not sure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will be called when you save any variant in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 04:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053270#M418724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T04:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053271#M418725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I got a solution for this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't it is useful or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a table &amp;lt;b&amp;gt;LTDX&amp;lt;/b&amp;gt; this hold  the variants of a programs. so if you can add an entry to this table&lt;/P&gt;&lt;P&gt;with your program name , variant name, and rest of the parameters.., your job will be done ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this table you can create entries directly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 04:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053271#M418725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T04:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053272#M418726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the feedback.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer the earlier question on why I would need to do this: &lt;/P&gt;&lt;P&gt;Per the functional requirement, the report reverts back to the selection screen if it selects no data.  The development client has no data in it, but it's the only client in which I am authorized to create transports.  I need to get to the variant maintenance screen to copy the variant from the other client and put it in a transport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might try do do something creative with LTDX or by calling the LVC_VARIANT_SAVE in single test from SE37.  I wanted to make sure I wasn't missing something first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 17:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053272#M418726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T17:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053273#M418727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your development instance, do you have another client in which there is data?  Here is what I mean,  when we first went live we had 2 clients for our development instance.  100 and 150.  In client 100, we were allowed to do development work and there was no data.  In 150, there was data, but we were not allowed to develop there.  So  we did our development in 100, and since programs are not client specific, we log on to the 150 client to test.  Are the layouts for ALV client specific?&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 17:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053273#M418727</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-27T17:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053274#M418728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they are client-specific.  Is it possible to have non client-specific ALV layouts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 17:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053274#M418728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T17:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053275#M418729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they are client specific, and my landscape is exactly as you described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to have non client-specific ALV layouts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 18:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053275#M418729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T18:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053276#M418730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what you can probably do. In your development system, just insert one or two records into your internal table of the ALV. Hardcode the internal table field values, but fill in all the fields. Put this in a temporary routine and call it just before your ALV call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the output is shown, you can then create your variant and save it. Then modify your program to remove this temporary routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 18:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053276#M418730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T18:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053277#M418731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you go into "Manage Layouts" from the standard ALV, it does provide a way to import from another client.  Its under the environment menu.  You need to do this programmatically.  I've looked into the code, and you may want to try picking it apart and contructing you own routine to do this programmatically. Have a look a the LSKBSF13 include program.  Put some break points in there and step thru it.  You may be able to use some of the code.&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, 27 Dec 2005 18:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053277#M418731</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-27T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053278#M418732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;  Great idea.  That's probably what I'll do.  It's not pretty but it gets the job done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 18:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053278#M418732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T18:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Maintaining ALV Variants without running the program</title>
      <link>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053279#M418733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it is not pretty, but that is what we can do if we don't have data. We can always create the data using the transactions that create data, but sometimes it is just too much to do that, particularly if you are accessing too many tables that span across several transactions. Also, you need to have the necessary config in place and the authorizations in place to do that. So this is our next best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 18:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/maintaining-alv-variants-without-running-the-program/qaa-p/1053279#M418733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T18:24:42Z</dc:date>
    </item>
  </channel>
</rss>

