zoukankan      html  css  js  c++  java
  • 查找增强点程序02

    08:30:44*&---------------------------------------------------------------------*
    *& Report  ZCESHI_19
    *&
    *&---------------------------------------------------------------------*
    *&
    *&
    *&---------------------------------------------------------------------*
    
    REPORT  ZCESHI_19.
    TABLES : TSTC,     "SAP Transaction Codes
             TADIR,    "Directory of Repository Objects
             MODSAPT,  "SAP Enhancements - Short Texts
             MODACT,   "Modifications
             TRDIR,    "System table TRDIR
             TFDIR,    "Function Module
             ENLFDIR,  "Additional Attributes for Function Modules
             TSTCT.    "Transaction Code Texts
    
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
    
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    IF SY-SUBRC EQ 0.
      SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'
      AND OBJECT = 'PROG'
      AND OBJ_NAME = TSTC-PGMNA.
      MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
      IF SY-SUBRC NE 0.
        SELECT SINGLE * FROM TRDIR WHERE NAME = TSTC-PGMNA.
        IF TRDIR-SUBC EQ 'F'.
          SELECT SINGLE * FROM TFDIR WHERE PNAME = TSTC-PGMNA.
          SELECT SINGLE * FROM ENLFDIR WHERE FUNCNAME =
          TFDIR-FUNCNAME.
          SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'
          AND OBJECT = 'FUGR'
          AND OBJ_NAME EQ ENLFDIR-AREA.
    
          MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
        ENDIF.
      ENDIF.
      SELECT * FROM TADIR INTO TABLE JTAB
      WHERE PGMID = 'R3TR'
      AND OBJECT = 'SMOD'
      AND DEVCLASS = V_DEVCLASS.
      SELECT SINGLE * FROM TSTCT WHERE SPRSL EQ SY-LANGU AND
      TCODE EQ P_TCODE.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transaction Code - ',
      20(20) P_TCODE,
      45(50) TSTCT-TTEXT.
      SKIP.
      IF NOT JTAB[] IS INITIAL.
        WRITE:/(95) SY-ULINE.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 SY-VLINE,
        2 'Exit Name',
        21 SY-VLINE ,
        22 'Description',
        95 SY-VLINE.
        WRITE:/(95) SY-ULINE.
        LOOP AT JTAB.
          SELECT SINGLE * FROM MODSAPT
          WHERE SPRSL = SY-LANGU AND
          NAME = JTAB-OBJ_NAME.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/1 SY-VLINE,
          2 JTAB-OBJ_NAME HOTSPOT ON,
          21 SY-VLINE ,
          22 MODSAPT-MODTEXT,
          95 SY-VLINE.
        ENDLOOP.
        WRITE:/(95) SY-ULINE.
        DESCRIBE TABLE JTAB.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'No of Exits:' , SY-TFILL.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No User Exit exists'.
      ENDIF.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'Transaction Code Does Not Exist'.
    ENDIF.
    
    AT LINE-SELECTION.
      GET CURSOR FIELD FIELD1.
      CHECK FIELD1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

    2012-10-10       08:30:52          黄健

  • 相关阅读:
    iOS开发~UI布局(二)storyboard中autolayout和size class的使用详解
    iOS开发~UI布局(一)初探Size Class
    OC登陆界面登陆按钮动画
    Git学习 --> 个人常用命令add,commit以及push
    Git使用之设置SSH Key
    【iOS开发】多屏尺的自动适配 AutoLayout (纯代码方式)
    iOS网络检测Reachability 使用 Demo,可检测2、3、4G
    iOS提醒用户进入设置界面进行重新授权通知定位等功能
    iOS中 @synthesize 和 @dynamic 区别
    iOS 开发笔记
  • 原文地址:https://www.cnblogs.com/huangjianisgood/p/2717717.html
Copyright © 2011-2022 走看看