Re: [sap-abap] Function button in report
Posted by
Admin at
Share this post:
|
on 06/25/2009 01:50:00 AM
U can add function buttons (user command) in alv lists.....just u have to
go to the pf-status...and add the required button in that and assign some
code...and now in ur report u write the code for that respective user
command..The sample code is given below for u reference.
******************************************************************************************************
*& Form set_pf_stat_l
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
* -->RT_EXTAB text
*---------------------------------------------------------------------*
FORM set_pf USING rt_extab TYPE slis_t_extab.
CLEAR rt_extab.
* APPEND 'V-A' TO rt_extab.
* APPEND '&RNT_PREV' TO rt_extab.
* APPEND 'VEAZ' TO rt_extab.
* APPEND 'QMEL' TO rt_extab.
* APPEND 'QAMV' TO rt_extab.
* APPEND 'PLOS' TO rt_extab.
* APPEND 'PRLS' TO rt_extab.
* APPEND 'PRZG' TO rt_extab.
SET PF-STATUS 'ZSTANDARD' EXCLUDING rt_extab.
ENDFORM. "set_pf_stat_l
*&--------------------------------------------------------------------*
*& Form user_command
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
* -->P_UCOMM text
* -->P_SELFIELD text
*---------------------------------------------------------------------*
FORM user_command USING p_ucomm TYPE sy-ucomm
p_selfield TYPE slis_selfield.
data : flg type sy-tabix.
CASE p_ucomm .
WHEN 'POST' .
clear : flg.
LOOP AT it_head WHERE xstov IS NOT INITIAL.
MESSAGE e003(zcheck) WITH it_head-augbl .
.........
..........
.........
ENDLOOP .
*****************************************************************************************************************
On Thu, Jun 25, 2009 at 2:30 AM, isacsk via sap-abap <
sap-abap@groups.ittoolbox.com> wrote:
>
>
> Yes, it can be. I would just like to know how to add buttons in report.
> ______________________________________________________________
> > Od: sap-abap@Groups.ITtoolbox.com
> > Komu: isacsk <isac@centrum.sk>
> > Datum: 24.06.2009 22:54
> > PÅedmÄt: Re: [sap-abap] Function button in report
> >
> > > > > >> > > > > > > > > > > > >I've put buttons in normal ABAP reports
> before (no ALV involved) if that >
> is what you are asking? >
> Neal >
> isacsk via sap-abap wrote: >
> > >
> > >
> > Hello everybody, >
> > I wonder if it is possible to have an function button in report (no >
> > selection screen). I have ALV-LIST in report, I know in the ALV >
> > toolbar I can have buttons but I wonder if it is possible to have an >
> > button just under ALV list in the same report. >
> > Thanks a lot. __.____._
Toolbox.com
4343 N. Scottsdale Road
Suite 280
Scottsdale, AZ 85251