zoukankan      html  css  js  c++  java
  • [转]ABAP Program to Display SAP Icons

    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 should 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

     

  • 相关阅读:
    c++参考书籍
    安装驱动踩坑
    杂项讨论
    《机器学习篇》目录
    《计算机技术》目录
    数学:统计:参数估计
    神经网络
    数学:统计:数据的概括性度量
    数学:概率:一维随机变量
    多维随机变量:相互独立的随机变量
  • 原文地址:https://www.cnblogs.com/wequst/p/1513844.html
Copyright © 2011-2022 走看看