Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SUM TOOL IN REPORT

Former Member
0 Kudos

HI,

I have to create a report where in i should have the ability to sum the selected colomn.

But, in my report sum button doesnt appear in the application bar.

I tried copying the gui status of a standard program to "ZSTATUS" where there is a sum button and used the same gui status in pf_status_set.

Now i see that there is no application tool bar at all in my report.

I checked the gui status that i copeid "ZSTATUS" in se41 it has all the tools which includes SUM also.

but when the same status is used in my code there is no application bar at all.

Kindly advise.

Thanks and regards

Sujeer

1 ACCEPTED SOLUTION

naveen_inuganti2
Active Contributor
0 Kudos

Hi...

Pass the events correctly in program, You should get SUM button.

Thanks,

Naveen.I

7 REPLIES 7

naveen_inuganti2
Active Contributor
0 Kudos

Hi...

Pass the events correctly in program, You should get SUM button.

Thanks,

Naveen.I

former_member188685
Active Contributor
0 Kudos

is it alv report. if so are you using the pf_status dynamic routine.

call function 'REUSE_ALV_GRID_DISPLAY'
 exporting
  ...
  ..
  I_CALLBACK_PF_STATUS_SET  = 'STATUS'
  ....

form status using extab type slis_t_extab.
"this is how you should use 
set pf-status 'ZTEST' excluding extab.

endform.

Former Member
0 Kudos

did u activate ur user interface in se41

naveen_inuganti2
Active Contributor
0 Kudos

Hi...

Here Sample code to get push button in normal report..,

data: itab like vbak occurs 0 with header line.

set pf-status 'ZSTATUS'.  <--- "should not be 'zstatus'

start-of-selection.
  select * from vbak into corresponding fields of table itab up to 40 rows.

  loop at itab.
    write:/ itab-vbeln.
  endloop.

at user-command.
  case sy-ucomm.
    when 'SUM'.
      write:/ 'function is working'.
  endcase.

You must activate ZSTATUS and also use capital letters betwwen quotes for ZSTATUS in your report.

Thanks,

Naveen.I

Former Member
0 Kudos

Hi,

If you are working with ALV report copy the function group SALV in \to your gui staus and use the USER COMMAND correctly it will work.

Or pass the code where you have used the command some one may help you.

Cheers!!

Former Member
0 Kudos

Hi All,

Thanks all for your quick replies.

I have done everything right and rechecked every thing with your replies everything seem to be at its place.

But, still iam not able to get any tool on Application tool bar. the entire application tool bar vanishes when I use ZSTATUS.

Regards

Sujeer

Former Member
0 Kudos

Hi All,

Thanks for all your help.

My problem is solved.

Regards

Sujeer Shetty