‎2008 Apr 21 5:34 AM
Hi all,
we have a option in menu bar to specific task in standard report.now user wants this option in application bar as push button.
if i include this "Menu bar Fcode" in application bar, will it work the same with out modifying any code.
is there any way to initiate the function code from abap program.
Regards, sri
‎2008 Apr 21 6:59 AM
hi,
You can assign you new Function codes in Application toolbar
by creating SE41.
There an Application toolbar give the name of your function and assign Function code to it .
Save -Check - Activate .
Your user defined application you can see in your output.
Before that you have to assign in the report .
If the normal report .
(at event)
Start-of-selection.
set pf-status 'ZMENU'.
If it is module Pool report .
Process before output.
set pf-status 'ZMENU'.
Process after report.
case sy-ucomm.
Example : (think in application tool bar if you have given EXIT,SAVE as Function
codes).
when 'EXIT'.
Leave program.
when 'SAVE'.
Modify ztable from wa_table.
endcase.
This is the way you can create menu bar according to the customer requirement.
Regards,
Madhavi
‎2008 Apr 21 7:07 AM
You can copy this reprt to a zreport and set your application toolbar using SET PF-STATUS.
Eg. SET PF-STATUS '9000'.