<?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: parameters on ALV header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256599#M488679</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;Parameter cannot have an input at header level. The other 2 options are&lt;/P&gt;&lt;P&gt;1. Put it as a parameter on your Selection Screen.&lt;/P&gt;&lt;P&gt;2. Else bring to the item level and use editable ALV (where the user can give his input).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2007 01:59:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-29T01:59:16Z</dc:date>
    <item>
      <title>parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256595#M488675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help on having parameter(input fields) on the Header of the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to display normal text on the header now but how do you put parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also I have some buttons on the Application tool bar but the ALV is taking up the whole screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help are greatly appreciated and points will be given. Thanks alot everyone!&lt;/P&gt;&lt;P&gt;Below are my codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.

  MODULE INITIALIZATION_100.

PROCESS AFTER INPUT.
  MODULE USER_COMMAND_0100.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  INITIALIZATION_100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE INITIALIZATION_100 OUTPUT.

DATA: IT_OUTTAB LIKE T001W OCCURS 0.

DATA: IT_VARIANT LIKE DISVARIANT,
      IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.

DATA: K_FIELDCAT LIKE LINE OF IT_FIELDCAT.

PERFORM TOP_OF_PAGE.

K_FIELDCAT-fieldname = 'WEKRS'.
K_FIELDCAT-tabname   = 'IT_OUTTAB'.
APPEND K_FIELDCAT TO IT_FIELDCAT.


IT_VARIANT-REPORT = SY-REPID.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   I_CALLBACK_PROGRAM                = IT_VARIANT-REPORT
   I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
   IT_FIELDCAT                       = IT_FIELDCAT
   I_SAVE                            = 'A'
   IS_VARIANT                        =  IT_VARIANT
  TABLES
    T_OUTTAB                          = IT_OUTTAB.
* EXCEPTIONS
*   PROGRAM_ERROR                     = 1
*   OTHERS                            = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  TOP_OF_PAGE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM TOP_OF_PAGE .

DATA:IT_COMMENTARY TYPE SLIS_T_LISTHEADER.
DATA: K_COMMENTARY LIKE LINE OF IT_COMMENTARY.

K_COMMENTARY-TYP = 'S'.
K_COMMENTARY-KEY = 'Date'.
K_COMMENTARY-INFO = SY-DATUM.
APPEND K_COMMENTARY TO IT_COMMENTARY.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
  EXPORTING
    IT_LIST_COMMENTARY       = IT_COMMENTARY
   I_LOGO                      = 'ENJOYSAP_LOGO'.

ENDFORM.                    " TOP_OF_PAGE
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 01:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256595#M488675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T01:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256596#M488676</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 can't put the parameters on the header of the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if you some more query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 01:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256596#M488676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T01:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256597#M488677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can concatenate the parameter name and parameter value into K_COMMENTARY-INFO . and append it to IT_COMMENTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MGS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 01:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256597#M488677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T01:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256598#M488678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;thanks for the replies but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need these fields to be input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: P_WERKS TYPE T001W-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K_COMMENTARY-TYP = 'S'.&lt;/P&gt;&lt;P&gt;K_COMMENTARY-KEY = 'Plant'.&lt;/P&gt;&lt;P&gt;K_COMMENTARY-INFO = P_WERKS.&lt;/P&gt;&lt;P&gt;APPEND K_COMMENTARY TO IT_COMMENTARY. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 01:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256598#M488678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T01:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256599#M488679</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;Parameter cannot have an input at header level. The other 2 options are&lt;/P&gt;&lt;P&gt;1. Put it as a parameter on your Selection Screen.&lt;/P&gt;&lt;P&gt;2. Else bring to the item level and use editable ALV (where the user can give his input).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 01:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256599#M488679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T01:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256600#M488680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, your first problem is that you appear to be using a dynpro and the REUSE function module within the PBO of the screen.  This is not right.  The REUSE function module calls its own screen internally, so there is no need to call this funciton within your screen, you should remove your screen and call the function directly after retrieving  your data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or instead of calling the function module, you can use the class based approach with your dynpro and use the class CL_GUI_ALV_GRID.&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, 29 May 2007 02:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256600#M488680</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-29T02:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256601#M488681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A nice example of using the function module based ALV is here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap&lt;/A&gt;&lt;EM&gt;Interactive&lt;/EM&gt;ALV+Program&amp;amp;&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, 29 May 2007 02:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256601#M488681</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-29T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256602#M488682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use the class based approach,  see any programs that start with BCALV*&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, 29 May 2007 02:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256602#M488682</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-29T02:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: parameters on ALV header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256603#M488683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks man. I'll give it a go and I'll update this post. thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 02:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-on-alv-header/m-p/2256603#M488683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T02:16:52Z</dc:date>
    </item>
  </channel>
</rss>

