Application Development and Automation 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: 
Read only

Push button in report !!

Former Member
0 Likes
796

Hello Friends,

I like to add a pushbutton to the report. (not in the selection screen).

it must be appear in the report only, not in the selection screen.

Thank you for your time.

Senthil

7 REPLIES 7
Read only

Former Member
0 Likes
760

hi

at user-command.

if sy-lsind = 1.

set pf_status.

endif.

plz refer the prev answer for the same query

Read only

Former Member
0 Likes
760

YOu can use the write statement .

<b>WRITE - Output as icon

Effect

You can output certain characters as icons using the addition ...AS ICON. You should only address these characters with their system-defined names. The include <ICON> (or the more comprehensive include <LIST>) contains the relevant identifiers as constants, e.g. ICON_OKAY (see List of icons).

Example

INCLUDE .

WRITE: / ICON_OKAY AS ICON, "output as icon

'Text line'.

Note

Although an output length of 2 characters is enough for most icons, some (e.g. the traffic light icons ICON_RED_LIGHT, ...) have a greater output length.

You can determine the length of an icon with DESCRIBE FIELD ICON_... output length ....

You cannot print out all list icons. The printable icons are flagged as such in the 'list of icons' mentioned above.</b>

Regards,

Ravi

Read only

rahulkavuri
Active Contributor
0 Likes
760

In the Internal tables declare ICON of type ICON-ID

DATA: BEGIN OF IT_VBAK OCCURS 0,

VBELN LIKE VBAK-VBELN, "Sales Document

VBTYP LIKE VBAK-VBTYP, "SD document category

AUDAT LIKE VBAK-AUDAT, "Document date (date received/sent)

AUGRU LIKE VBAK-AUGRU, "Order reason (reason for the business)

AUART LIKE VBAK-AUART, "Sales Document Type

NETWR LIKE VBAK-NETWR, "Net Sales Order in Doc. Currency

WAERK LIKE VBAK-WAERK, "SD document currency

ICON TYPE ICON-ID, "traffic lights

END OF IT_VBAK.

IT_VBAK-ICON = '@08@'.

U can append ICON-ID to Internal table...

IF u want to get that in the application bar then u need to set the PF-STATUS using SE41..

Then u need to set the User command for that

Read only

Former Member
0 Likes
760

Hi,

Create pf-status by using SET PF-STATUS 'STATUS'.

Cheers,

Bujji

Read only

Former Member
0 Likes
760

Check this code...

REPORT  ZTEST_ICON                                .
include <icon>.

write '123' as icon.

Regards

vijay

Read only

Former Member
0 Likes
760

Hi Senthil,

Please be clear where do you need the PUSHBUTTON. I will assume that you need it in the Application Toolbar.

You must define a <b>GUI-Status</b> in <b>SE41 Menu Painter</b>.

In your program use the GUI-status.

SET PF-STATUS 'PUSH' .

Regards,

Arun Sambargi.

Read only

venkat_o
Active Contributor
0 Likes
760

Hi Senthilkumar,

<b>1</b>.

Create PF status in the event START-OF-SELECTION.

<b>2</b>.

It appears on the report out only .

Have a look at simple coding .

REPORT zvenkat_head MESSAGE-ID zvenkat .

PARAMETERS :p(10).

START-OF-SELECTION.

SET PF-STATUS 'SENTHIL'.

END-OF-SELECTION.

WRITE:/ 'SENTHIL'.

AT USER-COMMAND.

IF sy-ucomm = 'SENTHIL'.

WRITE 😕 'Venkat1'.

ENDIF.

<b>Thanks,

Venkat.O,</b>