<?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: F4 help for layout parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226965#M1208409</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;you need to check this l_layout structure is initial or not before calling the ALV grid display FM. &lt;/P&gt;&lt;P&gt;If user select from F4 help then l_layout structure get's populated. if user enter's then this structure donot get populated. so you need to check if initial populate this structure before passing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2009 10:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-27T10:22:45Z</dc:date>
    <item>
      <title>F4 help for layout parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226962#M1208406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using one parameter for layout like in std report MB51 &amp;amp; put F4 help for that.&lt;/P&gt;&lt;P&gt;My problem is when user select from layout it is working fine but when user ENTER FROM KEYBOARD it is not accepting the layout..&lt;/P&gt;&lt;P&gt;My code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS :p_layout LIKE disvariant-variant.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.&lt;/P&gt;&lt;P&gt;  PERFORM alv_f4 USING sy-repid p_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM alv_f4 USING p_report CHANGING p_layout.&lt;/P&gt;&lt;P&gt;  l_layout-report = sy-repid .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_LAYOUT'.&lt;/P&gt;&lt;P&gt;  append dynfields.&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname               = sy-cprog&lt;/P&gt;&lt;P&gt;            dynumb               = sy-dynnr&lt;/P&gt;&lt;P&gt;            translate_to_upper   = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields           = dynfields&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;            invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;            invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;            invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;            invalid_request      = 5&lt;/P&gt;&lt;P&gt;            no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;            invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;            undefind_error       = 8&lt;/P&gt;&lt;P&gt;            double_conversion    = 9&lt;/P&gt;&lt;P&gt;            stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;            others               = 11.&lt;/P&gt;&lt;P&gt; read table dynfields with key fieldname = 'P_LAYOUT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_layout = dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_variant = l_layout&lt;/P&gt;&lt;P&gt;      i_save     = 'A'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      es_variant = l_layout&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 2.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    p_layout = l_layout-variant.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest where i m wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 09:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226962#M1208406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for layout parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226963#M1208407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are not capturing teh value enterd manually into the p_layout, but you are handling when user press F4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226963#M1208407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for layout parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226964#M1208408</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;Refer this code. It will definitely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/learn%252bto%252bdisplay%252bdata%252bin%252balv%252bgrid" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/learn%252bto%252bdisplay%252bdata%252bin%252balv%252bgrid&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the use of variant in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226964#M1208408</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-27T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help for layout parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226965#M1208409</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;you need to check this l_layout structure is initial or not before calling the ALV grid display FM. &lt;/P&gt;&lt;P&gt;If user select from F4 help then l_layout structure get's populated. if user enter's then this structure donot get populated. so you need to check if initial populate this structure before passing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 10:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-for-layout-parameter/m-p/5226965#M1208409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T10:22:45Z</dc:date>
    </item>
  </channel>
</rss>

