I.
Document History
NOTE: All Versions must be specified.
Document
Date Author Description
Version
1.0 06/13/2016 Juan De La Cruz Initial document
TR# (if you can supply)
II. Object List
NOTE: All Objects related to FS must be specified (Check in SE80).
Type Object Name Purpose
Transaction Code ZJ107
Program Name ZJ10701R Main program which transaction code
ZMMR003 calls.
Function Module WS_FILENAME_GET SAP-standard function module to get file
Function Module SAPGUI_PROGRESS_INDICATOR SAP-standard function module to display
progress indicator in current window
Function Module Z_READ_INTERFACE_DEF Customized function Module to retrieve
interface definition
Function Module Z_FORMAT_FILENAME Customized function module to format
interface filename
Function Module GUI_UPLOAD SAP-standard function module to upload
data
Function Module LAST_DAY_OF_MONTHS SAP-standard function module to get last
day of the month
Function Module BAPI_ACC_DOCUMENT_POST SAP-standard function module to create
accounting documents
Function Module BAPI_TRANSACTION_ROLLBACK SAP-standard function module to
execute external Rollback when using
BAPIs
Function Module BAPI_TRANSACTION_COMMIT SAP-standard function module to
execute external Commit when using
BAPIs
Function Module SO_NEW_DOCUMENT_ATT_SEND_AP SAP-standard function module to send
I1 email
Table ZSKYMAP Table for ICMS field mapping to SAP
fields
Table ZPRGDEFVAL Table for Program Selection Values
Table ZUTL_MSGHDR Utility Table for BDC results – Header
Table ZUTL_MSGDTL Utility Table for BDC results – Item
Table ZRECIPIENT Email recipient table
Table SKA1 G/L Account Master (Chart of Accounts)
Table SKB1 G/L account master (company code)
Table TBSL Posting Key Table
III. Dependencies
NOTE: All object dependencies must be specified.
Type Object Name Purpose
Class (SE24) ZCL_REPORT A wrapper class for quick ALV creation
Class (SE24) ZCL_LOG A wrapper class Storing and Displaying
Messages
Class (SE24) ZUTIL_AVL_UTILITIES Contains static methods for various utility
functions
IV. Program Flow
NOTE: A simple program flow of the program will do.
Transaction Code - ZJ107
Program - ZJ10701R
o Event – AT SELECTION SCREEN
Subroutine - CHECK_INPUT
o Event – START-OF-SELECTION
Subroutine - UPLOAD_DATA
Subroutine - PROCESS_DATA
Subroutine - POST_DOCUMENT
o Event – END-OF-SELECTION
Screen - EMAIL_RESULT