‎2006 Jun 08 10:51 AM
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
‎2006 Jun 08 10:53 AM
‎2006 Jun 08 10:55 AM
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
‎2006 Jun 08 10:58 AM
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
‎2006 Jun 08 11:05 AM
Hi,
Create pf-status by using SET PF-STATUS 'STATUS'.
Cheers,
Bujji
‎2006 Jun 08 11:06 AM
Check this code...
REPORT ZTEST_ICON .
include <icon>.
write '123' as icon.Regards
vijay
‎2006 Jun 08 11:12 AM
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.
‎2006 Jun 08 11:17 AM
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>