ABAP program to display sap icons

Source: Internet
Author: User
Document directory
  • Program 1: ABAP code to display all the sap icons.
  • Program 2: ABAP code that demonstrates sap icons in a report.
  • Output

This page contains two ABAP programs. the first program lets you display all the sap icons in a report. there is absolutely no need for this program because the transaction icon does a much better job of this. you shoshould use the tcode icon to view all the existing SAP icons. this program also demonstrates the usage of field-Symbols in ABAP.

The second program demonstrates how to display the icons in an SAP report. Pay special attention to the comments.

 

Program 1: ABAP code to display all the sap icons.
REPORT ZICONS .TABLES: ICON.INCLUDE <ICON>.FIELD-SYMBOLS: <F>.SELECT * FROM ICON.   ASSIGN (ICON-NAME) TO <F>.   WRITE:   /(5) <F>, 20 '@',21 ICON-ID+1(2),23 '@',ICON-OLENG,            ICON-BUTTON,ICON-STATUS,ICON-MESSAGE,ICON-FUNCTION,            ICON-NAME.ENDSELECT.
Program 2: ABAP code that demonstrates sap icons in a report.
REPORT ZREPICON.INCLUDE <ICON>.* It is very important to specifiy a field length of minimum 4* Some icons are wider and require a field length of 5!WRITE: (5) ICON_GREEN_LIGHT, (4) ICON_LOCKED, (4) ICON_LED_GREEN.
Output

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.