<?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: RFITEMAR, Varaints in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099723#M103166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;Let me be clearer.&lt;/P&gt;&lt;P&gt;I want to save a layout for the program YRFITEMAR; this is a copy of RFITEMAR, &lt;/P&gt;&lt;P&gt;I would like to create a layout for the YRFITEMAR and make the layout the default layout. I have been able to create new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layouts using administration but I could not save/set one of these new layouts as the default initial layout. I have tried to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;default an SAP defined layout but couldn't do it. Further I have changed the program name parameter in FI_ITEMS_DISPLAY to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-repid, so it does accept the new program name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2005 12:20:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-25T12:20:31Z</dc:date>
    <item>
      <title>RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099720#M103163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I have made a copy of the program RFITEMAR/txn FBL5N, But I cannot save layouts for this program, I can create a new layout but cannot set this layout as the default initial layout. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be appreciated,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 07:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099720#M103163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099721#M103164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV layouts are program specific. On the ALV screen you goto layout administration, where you can change a layout or set it to default. What is the problem , are you getting any error message while saving the variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 08:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099721#M103164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099722#M103165</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;there's a fm 'FI_ITEMS_DISPLAY'&lt;/P&gt;&lt;P&gt;in the report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check  parameters  and change par.  caller_repid    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 09:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099722#M103165</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-10-25T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099723#M103166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;Let me be clearer.&lt;/P&gt;&lt;P&gt;I want to save a layout for the program YRFITEMAR; this is a copy of RFITEMAR, &lt;/P&gt;&lt;P&gt;I would like to create a layout for the YRFITEMAR and make the layout the default layout. I have been able to create new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layouts using administration but I could not save/set one of these new layouts as the default initial layout. I have tried to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;default an SAP defined layout but couldn't do it. Further I have changed the program name parameter in FI_ITEMS_DISPLAY to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-repid, so it does accept the new program name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 12:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099723#M103166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099724#M103167</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;&lt;/P&gt;&lt;P&gt;check the other parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I_SAVE           = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 12:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099724#M103167</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-10-25T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099725#M103168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The following is a piece of code from FI_ITEMS_DISPLAY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not is_u_variant-variant is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  check existence of named variant:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform alv_variant_check changing x_varexist.&lt;/P&gt;&lt;P&gt;    if x_varexist is initial.&lt;/P&gt;&lt;P&gt;      message i000(msitem) with is_u_variant-variant.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  check existence of default variant:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform alv_default_check changing x_varexist.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if x_varexist is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  take 1SAP, if it exists:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear is_u_variant.&lt;/P&gt;&lt;P&gt;    case acctype.&lt;/P&gt;&lt;P&gt;      when 'D'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        is_u_variant-report = c_program_ar.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      when 'K'.&lt;/P&gt;&lt;P&gt;        is_u_variant-report = c_program_ap.&lt;/P&gt;&lt;P&gt;      when 'S'.&lt;/P&gt;&lt;P&gt;        is_u_variant-report = c_program_gl.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;    is_u_variant-variant = '1SAP'.&lt;/P&gt;&lt;P&gt;    is_u_variant-username = sy-uname.&lt;/P&gt;&lt;P&gt;    perform alv_variant_check changing x_varexist.&lt;/P&gt;&lt;P&gt;    if x_varexist is initial.&lt;/P&gt;&lt;P&gt;      clear is_u_variant.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you dont have a default variant for the first time system changes is_u_variant-report to c_program_ar (RFITEMAR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And from that point onwards the variants that you create, get created for RFITEMAR !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you first try changing &amp;lt;b&amp;gt;is_u_variant-report&amp;lt;/b&amp;gt; in debugger after the above processing block to YRFITEMAR and then try creating a layout and mark it as default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think then next time onwards you should be able to see the default layout..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2005 12:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099725#M103168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-25T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099726#M103169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I re-did everything&lt;/P&gt;&lt;P&gt;1) Created a copy of RFITEMAR &amp;amp;#8211; ZRF2&lt;/P&gt;&lt;P&gt;2) Changed c_program_ar to sy-repid (it would accept the current program)&lt;/P&gt;&lt;P&gt;3) Extecuted ZRF2&lt;/P&gt;&lt;P&gt;4) Created a new layout and made it the default layout in Administration&lt;/P&gt;&lt;P&gt;	But the new layout does not default.&lt;/P&gt;&lt;P&gt;5) I can create a new layout for RFITEMAR and make it default , SO authorization is not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything else I should change other than the one mentioned above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 09:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099726#M103169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: RFITEMAR, Varaints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099727#M103170</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;&amp;lt;b&amp;gt;2) Changed c_program_ar to sy-repid (it would accept the current program)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me what exactly you did to change this? As this is a constant declared in TOP include of function group FI_ITEMS.&lt;/P&gt;&lt;P&gt;Did you change it in LFI_ITEMSTOP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you changed it to SY-REPID in the function module FI_ITEMS_DISPLAY itself? If this is the case then actually sy-repid at this point will be SAPLFI_ITEMS.&lt;/P&gt;&lt;P&gt;Try changing it to your program name YRFITEMAR or ZRF2 like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_u_variant-report = 'ZRF2'. "'YRFITEMAR' whatever it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you overwrote it in debugger by filling your program name into is_u_variant-report after at this point in FI_ITEMS_DISPLAY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*... no field catalog given by caller?&lt;/P&gt;&lt;P&gt;  describe table it_u_fieldcat lines nlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually what I am trying to say is that if you dont have a default variant for the first time, system tries to change is_u_variant-report to RFITEMAR inside FI_ITEMS_DISPLAY fm. So when it executes and you start saving layouts they are really saved for RFITEMAR or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 09:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfitemar-varaints/m-p/1099727#M103170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T09:38:52Z</dc:date>
    </item>
  </channel>
</rss>

