SAP ZCTI Sample Program

************************************************************************
* Program Name      : ZCC0O_I022_NCTI                              *
* Author            : Derek Xu                               *
* Create Date       : 11/24/2011                                       *
* RICEF ID          : FRS_ZCTI_CUST                            *

* Functional Spec ID:                            *
* Description       : This interface generates Customer Summary for    *
*                     telephone switch                           *
************************************************************************
*                      M O D I F I C A T I O N S                       *
************************************************************************
*  REQ#         DATE         WHO            CHANGE_ID        DESCR     *
*———————————————————————–
*  1         11/24/2011      DEREKXU TR526372         New       *
************************************************************************
REPORT  zcc0o_i022_cti NO STANDARD PAGE HEADING
LINE-SIZE 100 MESSAGE-ID  zcc0o01.
*Include for Data declarations
INCLUDE   zcc0o_i022_alconcti_top.
*Include for selection screen
INCLUDE   zcc0o_i022_alconcti_s01.
*Include for Form Routines
INCLUDE   zcc0o_i022_alconcti_f01.

INITIALIZATION.
*Clear work areas and internal tables.
PERFORM clear_data.
************************************************************************
*                   Selection Events                                   *
************************************************************************
AT SELECTION-SCREEN OUTPUT .
PERFORM screen_output.
*Validation on Sales Organization
AT SELECTION-SCREEN ON s_vkorg.
PERFORM check_vkorg.
*validation on distribution channel
AT SELECTION-SCREEN ON s_vtweg.
PERFORM check_vtweg.
*validation on division
AT SELECTION-SCREEN ON s_spart.
PERFORM check_spart.
*Validation on Customer Account Group
AT SELECTION-SCREEN ON s_ktokd.
PERFORM check_ktokd.
************************************************************************
*                   Data Processing                                    *
************************************************************************
START-OF-SELECTION.
*Get Customer Data
PERFORM fetch_data.
*Process the data
PERFORM process_data.
************************************************************************
*                   File and Log creation                              *
************************************************************************
END-OF-SELECTION.
*Write file into application server
PERFORM write_file.
*Log report
PERFORM write_log.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s