Professional Documents
Culture Documents
FSD s4 RTR R RTR XXXX Franchisee Customer Soa v1.1
FSD s4 RTR R RTR XXXX Franchisee Customer Soa v1.1
FSD-S4-RTR-R-RTR-xxx
Report: Franchisee Customer SOA
Version 1.0
Document Control
Page 1 of 13
Functional Specification
Document Acceptance
Page 2 of 13
Functional Specification
Version Management
Page 3 of 13
Functional Specification
Table of Contents
Page 4 of 13
Functional Specification
Document Control 2
Document Acceptance 3
Version Management 4
Summary 6
1.1. Requirement Overview 6
1.2. Development Type 6
1.3. Development tool 6
1.4. Impacted Systems 6
1.5. Processing Options 7
Enhancement Information/Custom Screens 8
2.1. Summary 8
2.2. Rationale on Customization 8
2.3. Workaround (s) Explored and Recommendation 8
2.4. Steering Committee Decision and Approval 8
2.5. SAP Object(s) or Process (es) to be enhanced: 9
2.6. Enhancement Description: 9
3.1. Selection Screen 9
3.2. Custom table 10
3.3. Data Selection/Validation 10
3.4. Output/Screen Layout 12
3.5. Standard Text 12
3.6. Exception Handling Rules 12
3.7. Security Requirements 12
3.8. Additional Information 12
Unit Testing 13
3.9. Test Scenario 13
3.10. Additional Information / Appendix 13
Page 5 of 13
Functional Specification
Summary
This is a report to display franchisee customer statement of account within a date range.
It will sperate 2 different layout with withholding tax and without withholding tax.
Development Tool: ( X ) ABAP ( ) Report painter ( ) Smart forms ( ) User exit ( ) .Net ( ) Workflow
Page 6 of 13
Functional Specification
Page 7 of 13
Functional Specification
2.1. Summary
To run customer line items report, show customers detail transactions. According to detail transactions to manually arrange customer statement by date.
Page 8 of 13
Functional Specification
Provide a written description of the functionality that needs to be developed. Identify/describe the SAP application transaction that uses or is used to invoke the enhancement. Describe
tables, transactions, reports, forms, screens and other objects that need to be created or modified. Complete the report/form or interface/conversion sections as appropriate to provide
additional details. For portal development, list I-views and pages (new, existing or enhanced) to be used and include navigation information (e.g. side and top menus, etc.).
Selection fields:
Field name Field type Comments
Company code Single BSID -BUKRS, no default, mandatory
Customer No. Selection BSID- KUNNR
Fiscal year Single BSID- GJAHR, default current year
as of Date Single BSID- BUDAT
Page 9 of 13
Functional Specification
Processing Logic
Step 1: Based on the selection screen, company code, fiscal year, customer number, selection date from to BSID which BSID-BUDAT
less equal than (<=) as of date get all document numbers.
Step 2: put all documents number to BKPF to filter out reversal documents pairs if have. Exclude reversal pair Field BKPF- STBLG
Reversed With document number.
Step 3: From individual document number, get document number, posting date (BSID-BUDAT), invoice number (BSID-XBLNR), invoice
date (BSID-BLDAT). [ invoice number, invoice date, SAP document number, posting date part ]
Step4: call function module “NET_DUE_DATE_GET” base on baseline date BSID-ZFBDT + payment term BSID-ZTERM + BSID-ZBD1T +
BSID-ZBD2T + BSID-ZBD3T + BSID- SHKZG = S (Debit side). BSID-ZFBDT and ZBD1T was mandatory, others are optional. To get Net
due date. [ invoice due date]
Step5: Go ACDOCA table base on document number, company code, fiscal year and ledger = “0L” to select all line items, check customer
line which is ACDOCA-KUNNR not blank and ACDOCA-KOART= ‘D’ it’s Offsetting Account. If ACDOCA-GKONT belong to set
ZBAKERY_WHT_MAS/BAS, then then display Franchisee Customer with WHT SOA layout MASTER / BASE part,
ZBAKERY_WHT_LICENSE, then then display Franchisee Customer with WHT SOA layout STORE LICENSE part
ZBAKERY_WHT_ROYALTY, then then display Franchisee Customer with WHT SOA layout ROYALTY part
ZBAKERY_WHT_CONSULTANCY, then then display Franchisee Customer with WHT SOA layout CONSULTANCY part
ZBAKERY_WHT_ADVSY/TRAN, then then display Franchisee Customer with WHT SOA layout ADVSY/TRAN part,
Page 10 of 13
Functional Specification
ZBAKERY_WHT_MANAGMT, then then display Franchisee Customer with WHT SOA layout MANAGEMENT FEE part
ZBAKERY_WHT_OTHERS, then then display Franchisee Customer with WHT SOA layout OTHERS part.
If ACDOCA-GKONT belong to set ZBAKERY_NWHT then display Franchisee Customer without WHT SOA layout.
Amount currency all use document currency BSID-WAERS field.
And Remark BSID-SGTXT
Display the invoice amount (BSID- WRBTR) if BSID-SHKZG=S, show positive amount, if BSID-SHKZG=H, show negative amount.
[invoice amount, Remark]
Step 6: Base on document number, company code, fiscal year go to table BSIS- HKONT get provision account = 3001300003,
sum all lines have same debit/credit indicator, if BSIS-SHKZG=H show positive WHT amount, if BSIS-SHZG = S show negative WHT
amount. [ WHT amount]
Step 7: MASTER / BASE, STORE LICENSE, ROYALTY, CONSULTANCY, ADVSY/TRAN, MANAGEMENT FEE, OTHERS
Amounts use formula = Invoiced amount – WHT. [ Royalty/Store License/etc….]
Step 8: ???Need clarify, if customer got multiple type of invoice amount with partial payment of WHT, how to recognize?
[WHT Outstanding]
Step 9: Base on company code, fiscal year, customer number from selection screen go to table BSID found customer credit side,
get this line document number go to ACDOCA table check it’s Offsetting Account. If ACDOCA-GKONT belong to bank accounts,
consider this as MASTER / BASE, STORE LICENSE, ROYALTY, CONSULTANCY, ADVSY/TRAN, MANAGEMENT FEE, OTHERS
payment amount, Outstanding use formula = Royalty/Store License/Others – BSID- WRBTR
[Royalty/Store License/Others etc. Outstanding]
Step 10:
Total Outstanding formula = [Royalty/Store License/Others etc. Outstanding] + [WHT Outstanding]
Page 11 of 13
Functional Specification
Authorization check is performed that user who can got display access in selected company code and customers.
Page 12 of 13
Functional Specification
Unit Testing
This section provides information relevant to test the development.
Page 13 of 13