10-11-2008 7:50 AM
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
10-11-2008 7:57 AM
Hi...
Pass the events correctly in program, You should get SUM button.
Thanks,
Naveen.I
10-11-2008 7:57 AM
Hi...
Pass the events correctly in program, You should get SUM button.
Thanks,
Naveen.I
10-11-2008 7:58 AM
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.
10-11-2008 7:59 AM
10-11-2008 8:06 AM
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
10-11-2008 8:21 AM
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!!
10-11-2008 8:40 AM
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
10-13-2008 5:29 AM
Hi All,
Thanks for all your help.
My problem is solved.
Regards
Sujeer Shetty