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: 

Button on toolbar after executing the report i.e. after result display

Former Member
0 Kudos

Hi, after executing the report result is being displayed.Now at this stage I want a button on the application toolbar clicking on which will allow a perform to get triggered.

I tried in following manner:

SELECTION-SCREEN: FUNCTION KEY 1.

*INITIALIZATION.

TABLES: SSCRFIELDS.

*MOVE icon_mail TO sscrfields-functxt_01.

*form SEND_EMAIL .

IF sy-ucomm = 'FC01'.

PERFORM SEND_MAIL_ASSET_STATUS.

ENDIF.

But it's not ok.The above way is not working.

Please note: I want button on toolbar only after executing the report i.e. after result display.

How can I do this?

Kindly guide.

Best regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can get a button in the application tool bar by setting PF status.

Create a new PF status for your report.

Add a button in the appilcation tool bar part of the PF status.

Use the command "SET PF-STATUS 'XXX'." to set the PF status.

Thanks,

Sowmya.

3 REPLIES 3

agnihotro_sinha2
Active Contributor
0 Kudos

hi,

Did u declare this Button on the PF-STATUS routine???

Use this button in PF status routine. pass the name of routine in ALV display and Catch the SY-UCOMM at USER-COMMAND.

ags.

Former Member
0 Kudos

hi

if you are using alv than just pass 3 values to function call

I_CALLBACK_PROGRAM = SY-REPID " program name

I_CALLBACK_PF_STATUS_SET = 'STATUS' "PF-STATUS

I_CALLBACK_USER_COMMAND = 'UCOMMAND' " subroutine name

and check the value of UCOMM in subroutine

Former Member
0 Kudos

Hi,

You can get a button in the application tool bar by setting PF status.

Create a new PF status for your report.

Add a button in the appilcation tool bar part of the PF status.

Use the command "SET PF-STATUS 'XXX'." to set the PF status.

Thanks,

Sowmya.