Chinaunix首页 | 论坛 | 博客
  • 博客访问: 688398
  • 博文数量: 194
  • 博客积分: 7067
  • 博客等级: 少将
  • 技术积分: 2008
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-09 14:48
个人简介

我很好

文章分类

全部博文(194)

文章存档

2019年(1)

2018年(1)

2017年(3)

2015年(2)

2012年(2)

2011年(1)

2010年(27)

2009年(15)

2008年(142)

分类: WINDOWS

2008-04-09 14:53:24

在程序开发过程中,有一个好的模板能够让程序看起来更清晰。

*----------------------------------------------------------------------*

* Program ID   : XXXXXXXXXX                                            *

* Program Name : XXXXXXXXXX                                            *

*----------------------------------------------------------------------*

* Date Created : XXXX/XX/XX                                            *

* Created By   : $$$$$$$$$$$$$$$$$$$                                   *

* Description  : 1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX    *

*                2.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX            *

*----------------------------------------------------------------------*

* Modification :                                                       *

*  Date Modified  Modified By  Transport Request  Description          *

*  <9999/99/99>   <>     <移送依頼番号>    <更新理由/内容>            *

*----------------------------------------------------------------------*

REPORT  XXXXXXXXXX           NO STANDARD PAGE HEADING

                             LINE-SIZE XXX  .

************************************************************************

*                      Data Declaration                                *

*-->At here declare include,system tables or add-on tables             *

************************************************************************

INCLUDE:

TABLES:

************************************************************************

*                      Data Defination                                 *

*-->At here define data,include internal table,structure,variants etc. *

************************************************************************

*------------------>Macro definition<----------------------------------*

*-->This macro for XXXXXXXXXXXXXXXXXX

*---->&1:XXXXXXXXXXXXXXXXXX

*------------------>End of macro definition<---------------------------*

*------------------>Structure definition<------------------------------*

*-->This structurd for XXXXXXXXXXXXXX

DATA: BEGIN OF XXXX ,

      END OF XXX .

*------------------>End of structure definition<-----------------------*

*------------------>Internal table definition<-------------------------*

*-->This internal table for XXXXXXXXXXXXXXX

*------------------>End of internal table definition<------------------*

*------------------>Global variants definition<------------------------*

TYPES:  XXXX TYPE XXXXX ,

        XXXX LIKE XXXXX .

DATA:   XXXX TYPE XXXXX ,

        XXXX LIKE XXXXX .

*------------------>End of Global variants definition<-----------------*

*------------------>Constants definition<------------------------------*

*-->To avoid "magic numbers",define symbolic constants

*------------------>End of Constants definition<-----------------------*

************************************************************************

*                      Screen parameter Defination                     *

************************************************************************

SELECTION-SCREEN BEGIN OF BLOCK XXX

                          WITH FRAME

                          TITLE XXXX .

SELECTION-SCREEN END OF BLOCK XXX .

SELECT-OPTIONS:  XXX FOR XXXX .

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN END OF LINE .

SELECTION-SCREEN COMMENT X(Y) TEXT-XXX .

PARAMETERS: XXXX LIKE/TYPE XXXX .

PARAMETERS: XXXX RADIOBUTTON GROUP XXX .

************************************************************************

*                      Initialization                                  *

************************************************************************

************************************************************************

*                      At selection screen output                      *

************************************************************************

************************************************************************

*                      At selection screen                             *

************************************************************************

************************************************************************

*                      At selection-screen on value-request            *

************************************************************************

************************************************************************

*                      Top of page                                     *

************************************************************************

************************************************************************

*                      Start of selection                              *

************************************************************************

************************************************************************

*                      At user command                                 *

*-->User command for program                                           *

************************************************************************

************************************************************************

*                      Subroutines                                     *

*-->Below are subrutines used in program                               *

************************************************************************

 

AT USER-COMMAND. 

START-OF-SELECTION. 

TOP-OF-PAGE. 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR XXXXXX. 

AT SELECTION-SCREEN . 

AT SELECTION-SCREEN OUTPUT . 

INITIALIZATION . 

 

 

CONSTANTS: XXXX TYPE XXXX VALUE 'XXXX' .

 

 

阅读(2042) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:cl_gui_list_tree实例

给主人留下些什么吧!~~