EAD Technical Design Specification For:
ATP.10_FA.FSPEC.07
Version: 1.0
Last Revision Date:
Print Date:
Wednesday, 11192014
Wednesday, 11192014
Document Statistics
Document
Identification
The following is current information about the document: (Maintain all relevant
sections)
Object ID
Title
Version
Creation Date
Author
Developer
SAP Version
Development Type
Document Status
Complexity
Programming Standards
ATP.10_FA.FSPEC.07
Asset Reversal Upload
1.0
November 19, 2014
Hari Chungath
Gurushantha S Doddamani
SAP ECC 6.0 IS-Retail
Enhancement
Draft
Medium
EAD SAP ABAP Standard and Controls
Revision
History
Sections to
Fill
Version
Author of
revision
1.0
Gurushanta D
Doddamani
Mod
#
Creation
Date
Comments
19/11
Initial version
Below are the sections to fill for the common developments.
Sections like 6,9 and 11 should be filled whenever there is BDC, t-code and search
help respectively.
Type of
Development
Sections to Fill
Form
Interface - File
Enhancement
1,2,3 and 10
1,2 3 and 8
1,2,3
Module Pool
Report
Webdynpro ABAP
1,2,3 and 4
1,2,3 and 5
1,2,3 and 12
Section 1- Design Specifications Overview
Business Functionality Overview
Describe in brief the scope and business purpose of the function.
The business requires mass upload functionality to reverse fixed asset financial posting.
The standard functionality within SAP (Transaction Code: AB08) allows for the reversal of one document
number at a time. This is time-consuming when reversing a large number of asset postings. Also, when
this issue presents, it causes disruption to the monthly process.
The objective is to create a custom transaction code (ZAB08) to reverse the asset postings in large
numbers as required by the business. For this purpose, we recommend creating a custom input screen
for users to enter required data. Also, it is expected that the users should be able to run the ZAB08 in test
mode first before running the final execution.
Design Summary
Describe what type of technical development is planned for this requirement..
The asset mass reversal program functionality with regard to the following two scenarios:
Asset document reversal for documents posted from Project System settlement.
Asset document reversal for documents posted directly to the Fixed Assets module (Non-Project
Systems assets)
Section 2 - Program & Data Flow Overview
Pictorial View
Attach the VISIO flowchart here that depicts all programs and I/O that are affected by this design. Include data flow
diagrams where appropriate.
This needs to be split based on different programming components If there are
multiple programs, this section should be repeated.
The ZAB08 Transaction is used ti reversed the mass assets.
Data Mapping
Inputs:
The Input Selection screen as below
Selection Field Text
Field Name
Company Code
Asset Number
Asset Sub-No.
Document Number
Fiscal Year
Document Type
Posting Date
Reason for Reversal
Posting Date
Posting Period
Test Run
ANLA-BUKRS
ANLA-ANLN1
ANLA-ANLN2
BKPF-BELNR
ANEP-GJAHR
BKPF-BLART
ANEK-BUDAT
T041C-STGRD
ANEK-BUDAT
ANEK-MONAT
ALLGTEST
Select-Option (S) /
Parameter (P) /
Radio-Button /
Check Box
S
S
S
S
S
S
S
P
P
P
Check box
Single/Ra
nge
Range
Range
Range
Range
Range
Range
Range
Single
Single
Single
Single
Obligator
y
N
N
N
N
N
N
N
N
N
N
N
Default
Value
01
Output:
The output is displayed as ALV as below
Field Description
Company Code
Asset Number
Asset Sub-No.
Accounting Doc. No.
Asset Value Date
WBS Element
Trans. Type
Field Name
ANLA-BUKRS
ANLA-ANLN1
ANLA-ANLN2
BKPF-BELNR
ANEP-BZDAT
ANEK-ZUONR
TABW-BWASL
Format
CHAR
CHAR
CHAR
CHAR
DATS
CHAR
CHAR
5
Text
Amount Posted
Ord. Deprec.
Spec. Deprec.
Interest
Retmt. Rev.
Retmt. Cost
Reason for Reversal
Fiscal Year
Posting Date
Posting Period
ANEK-SGTXT
ANEP-ANBTR
ANEP-NAFAB
ANEP-SAFAB
ANEP-DZINSB
ANEA-ERLBT
ANEA-VERKO_D
T041C-STGRD
ANEP-GJAHR
ANEK-BUDAT
ANEK-MONAT
CHAR
CURR
CURR
CURR
CURR
CURR
CURR
CHAR
NUMC
DATS
NUMC
Comments
Section 3- DETAILED DESIGN SPECIFICATIONS
All new and modified programs for this design will be defined. Repeat this section for each program
included in this design.
( Program Name) : ZFI_ASSET_REVERSE_UPLOAD
Program Description : Asset Reversal Upload
Execution Method
Describe in detail, the method of program invocation
Go to the transaction ZAB08 then enter values in the selection screen and execute the program will
displays the output using ALV Layout.Select the Assets and execute the Mass reverse button then the
selected assets are reversed and the popup message is displayed.
Program Type
Online __X___
Batch _____
Transaction :ZAB08
Job Name __N/A_____________
Common Subroutines
A list of common, external routines.
N/A
Exceptions to Programming Standards
A list of exceptions to the programming standards and reasons why.
N/A
List of objects impacted
A list of objects impacted (e.g. Message Class, Function Module, Include etc).
N/A
Object Impacted
Type
Description
Transport Request
Inputs / Outputs
A list of required inputs and outputs.
The following fields need to be provided as selection criteria :
Selection Field Text
Field Name
Company Code
Asset Number
Asset Sub-No.
Document Number
Fiscal Year
Document Type
Posting Date
Reason for Reversal
Posting Date
Posting Period
Test Run
ANLA-BUKRS
ANLA-ANLN1
ANLA-ANLN2
BKPF-BELNR
ANEP-GJAHR
BKPF-BLART
ANEK-BUDAT
T041C-STGRD
ANEK-BUDAT
ANEK-MONAT
ALLGTEST
Select-Option (S) /
Parameter (P) /
Radio-Button /
Check Box
S
S
S
S
S
S
S
P
P
P
Check box
Single/Ra
nge
Range
Range
Range
Range
Range
Range
Range
Single
Single
Single
Single
Obligator
y
N
N
N
N
N
N
N
N
N
N
N
Default
Value
01
The following fields should be displayed in the output:
Field Description
Company Code
Asset Number
Asset Sub-No.
Accounting Doc. No.
Asset Value Date
WBS Element
Trans. Type
Text
Amount Posted
Ord. Deprec.
Spec. Deprec.
Interest
Retmt. Rev.
Retmt. Cost
Reason for Reversal
Fiscal Year
Posting Date
Posting Period
Field Name
ANLA-BUKRS
ANLA-ANLN1
ANLA-ANLN2
BKPF-BELNR
ANEP-BZDAT
ANEK-ZUONR
TABW-BWASL
ANEK-SGTXT
ANEP-ANBTR
ANEP-NAFAB
ANEP-SAFAB
ANEP-DZINSB
ANEA-ERLBT
ANEA-VERKO_D
T041C-STGRD
ANEP-GJAHR
ANEK-BUDAT
ANEK-MONAT
Format
CHAR
CHAR
CHAR
CHAR
DATS
CHAR
CHAR
CHAR
CURR
CURR
CURR
CURR
CURR
CURR
CHAR
NUMC
DATS
NUMC
Error Messages and Classes
A list of required error messages.
N/A
Message Class
Message Type
Message Id
Message Text
Long Text
Detailed Logic
Describe logic through the use of pseudo code, flow charts and supporting text. Include specific error handling.
Use Visio 4.0 for flow charts (double click on any of the flow chart shapes below to open Visio, click outside of the
Visio workspace to switch back to your Word document). Number all Ifs, Whens and condition checks to drive
test scenarios.
AT SELECTION-SCREEN.
Validation of selection screen:
Validate the company code(BUKRS) , Asset subnumber (ANLN2), Document Type (BLART), Reason of
Reversal (STGRD) and Document Number (BELNR) from the respective value table and the input values
in the screen validate subroutine.
Fetch the Data Subroutine:
Select the bukrs anln1 anln2 anlkl ernam erdat felei ktogr etc from the
Asset Master Record Segment (ANLA) table into lt_anla internal table.
Select the bukrs anln1 anln2 gjahr lnran bldat budat monat cpudt cputm usnam tcode sgtxt menge
meins etc from header details from the ANEK table, into gt_anek for all entries of lt_anla table.
Select the bukrs anln1 anln2 gjahr lnran afabe belnr buzei bzdat etc from the Document Header
Asset Posting (ANEP) table into lt_anep internal table of for all entries of gt_anek table.
Loop at Global internal table gt_anek and read lt_anep table into lwa_anep work area with key of
company code and asset number and take all the data into one more internal table lt_anek1.
Select the bukrs belnr gjahr awtyp awkey stgrd from the Accounting Document Header from BKPF
table into lt_bkpf internal table for all entries of lt_anek1.
Select the bukrs anln1 anln2 gjahr lnran afabe erlbt verkofrom the Asset Line Items for
Proportional Values from ANEA table into lt_anea internal table of for all rntries of lt_anep table.
In the Exact Subroutine from the above respective internal table make the proper data from the proper
conditions.
Populate_alv:
In this subroutine loop at lt_anek1 internal table and read the lt_anep, lt_bkpf and lt_anea internal table
into gt_alv internal table to display the ALV.
Display the ALV:
To Display the ALV call the SCREEN 9000.
The build_fieldcatlog subroutine is used to build the field catlog and maintained in the lt_fieldcat internal
table.
9
The layout subroutine is used to create the layout format for the ALV display.
In this screen create a container called ALVGRID and populate the ALV into the GRID by using the
set_table_for_first_display method of the calss alv_grid.
On this ALVGRID the hotspot click event is set using the SET_HANDLER Method , and the ALV table is
refreshed using the refresh_table_display method of alv_grid class.
The ALV table is displayed by the final internal table gt_alv by deleting the duplicate entries.
Select the Assets which we want to reverse it in the foreground and press the MASS_REVERSE button
the n selected assets are taken into the internal table and Baed on the Reference Transaction (anekawtyp)
If Reference Transaction value is AMBU then the BAPI BAPI_ASSET_REVERSAL_POST is called by
passing origindocumentkey and reversaldata in the export parameters and the result is taken in the return
parameter based on the message id of the return parameter the BAPI_TRANSACTION_COMMIT is
called.
If Reference Transaction value is AUAK then the FM K_SETTLEMENT_GROUP_PROCESS is called and
the auak, control, kabrt_object_tables are passed as export parameter and table lt_objnr, lt_wsum and
lt_gsum as table parameter is taken into the respective internal tables.
Based on the lt_gsum internal table the asset is reversed or not confirmed.
After reversing the assets the information is displayed to the user interms of pop up table display using the
FM POPUP_WITH_TABLE_DISPLAY_OK by passing the lt_status internal table as a table parameter.
The user is able to execute the program in the background mode also in that case the all the assets are
reversed and the output is saved in the spool.
10
Section 4 - DETAILED SCREEN DESIGN SPECIFICATIONS
All new and modified screens for this design will be defined. Repeat this section for each screen included
in this design.
(enter screen name here)
Screen Description
Screen Layout
Screen print and highlight the different sections of the screen.
Screen Field List
Define the fields used in the program.
Program
Variable
Variable
Type
Variable
Length
Screen Label
Data Source or Destination
Description
Screen Attributes
Screen Logic / Process before Output
Define the SAP processing before the screen is output.
Screen Logic / Process after Input
Define the SAP processing after the screen is input.
11
Section 5 - DETAILED REPORT DESIGN SPECIFICATIONS
All new and modified reports for this design will be defined. Repeat this section for each report included in
this design.
(Report Program name:
Report Description
Credit and Gift card settlement activity report
Report Type
ALV,Classic, etc
NA
Report Medium
Special forms, paper, electronic, etc.
NA
Report Layout
Pictorial view of report.
Report Layout Description
Report Field Name
Logical Data Base /
Table
Field Name
Computation / Edit Rule
12
Report Sort Information
Sort By Report Field Name
Sort By (ascending, descending)
Report Control Breaks
Breaks on Report Field Name
Sub Totals for Report Field Names
Report Page Breaks
Define when page breaks occur.
Breaks on Report Field Name
Conditions
Report Messages
Message Number
Severity
Description
13
Section 6 - DETAILED BDC DESIGN SPECIFICATIONS
Repeat this section for each BDC session included in this design.
(enter BDC session name here)
BDC Transaction
BDC Screens and Fields Used
BDC Number of Transactions Anticipated
BDC Table Names
Identify the table and associated element attributes.
Table Name
Table Element
Client Dependent? (Y/N)
Create
Reference
Update
Delete
14
Section 7 - DETAILED DATABASE DESIGN SPECIFICATIONS
All new and modified databases for this design will be defined. Repeat this section for each database
included in this design.
(Enter database name here)
Database Description
Database Table/ Structure Name
Table/ Structure Description
Change Type
New _____
Field Name
Modified _____
Field
Type
Field
Length
Key
Information
Field Description
Other Database Information
15
Section 8 - DETAILED FILE DESIGN SPECIFICATIONS
All new and modified files for this design will be defined. Repeat this section for each file included in this
design.
(enter filename here)
File Description
File Change Type
New _____
Field Name
Modified _____
Field
Type
Field
Length
Key
Information
Field Description
16
Section 9 - DETAILED TRANSACTION DESIGN SPECIFICATIONS
All new and modified transactions for this design will be defined. Repeat this section for each transaction
included in this design.
Transaction name : <T-Code>
Transaction Type
Program & selection screen (Report transaction)
Transaction Program
Transaction Program Name
Transaction Description
Transaction Screen Flow
17
Section 10 - DETAILED FORMS DESIGN SPECIFICATIONS
All new and modified Smartforms/PDF forms/Sap script for this design will be defined. Repeat this
section for each form included in this design.
(enter form name here)
Form Description
Form layout
Form Logic
18
Section 11- DETAILED SEARCH HELP / MATCHCODE DESIGN
SPECIFICATIONS
All new and modified search help / matchcode objects for this design will be defined. Repeat this section
for each search help / matchcode object included in this design.
(enter search help / matchcode object name here)
Search Help / Matchcode Description
Table Name
Table Description
Change Type
New _____
Field Name
Modified _____
Field
Type
Field
Length
Key
Information
Field Description
19
Section 12 - DETAILED WEBDYNPRO DESIGN SPECIFICATIONS
(List the Webdynpro ABAP components)
Model
View
Controller
Layout
20
Section 13 - DETAILED PORTAL CONTENT DESIGN
SPECIFICATIONS
Roles
Role Name
Role
ID
Works
ets/Fol
ders
Groups
Role Description
Works
et/Fold
er ID
Roles
iViews/Pages
Workset Description
Page
ID
Works
ets
iViews/Pages
Page Description
iView
ID
Pages
Worksets/Rol
es
iView Description
Worksets/Folders
Workset/Folder Name
Pages
Page Name
iViews
iView Name
21
Important iView/page/workset/role parameters
Object Name ID - Type
Parameter Name
Parameter Value
Purchase Order purchord_iv
- iview
Param1
Param2
Value 1
Value 2
System Name ID (Aliases)Type
Parameter Name
Parameter Value
System 1 - *_sys (alias1,
alias2) R/3
Param1
Param2
Value 1
Value 2
System Objects
22