Cochin, India
Notice
This is a controlled document. Unauthorised access, copying, replication or usage for a purpose other than for which it is intended, are prohibited. All trademarks that appear in the document have been used for identification purposes only and belong to their respective companies.
CALM Invoices
Document details
Name Version no. Description
e-Port_FS_FI_CALM Invoices
Version 1.0
Revision details
Action taken (add/del/change) Previous page no. New page no. Revision description
Change Register serial numbers covered: The documents or revised pages are subject to document control. Please keep them up-to-date using the release notices from the distributor of the document. These are confidential documents. Unauthorised access or copying is prohibited. Approved by: Authorised by:
Date:
Date:
CALM Invoices
ii
CALM Invoices
iii
CALM Invoices
iv
Contents
1OBJECTIVE...........................................................................................................................................................................1 2SCOPE.....................................................................................................................................................................................2 2.1ASSUMPTIONS................................................................................................................................................2 2.2EXCLUSIONS..................................................................................................................................................2 3DEVELOPMENT DETAILS...............................................................................................................................................3 3.1PROGRAM HEADER.........................................................................................................................................3 4REPORTS...............................................................................................................................................................................4 4.1INPUT ..........................................................................................................................................................4 4.1.1Selection Parameters.......................................................................................................................4 4.2PROCESSING LOGIC OVERVIEW.........................................................................................................................4 4.3OUTPUT.......................................................................................................................................................4 4.3.1Report Output Fields........................................................................................................................4 4.3.2Report Layout..................................................................................................................................4 4.4CONSTRAINTS................................................................................................................................................4 5FORMS...................................................................................................................................................................................5 5.1INPUT ..........................................................................................................................................................5 5.1.1Selection Parameters.......................................................................................................................5 5.2PROCESSING LOGIC OVERVIEW.........................................................................................................................5 5.3FORM LAYOUT...............................................................................................................................................5 6CONVERSIONS....................................................................................................................................................................7 6.1DATA SYSTEM/DATA FLOW DIAGRAM.................................................................................................................7 6.2TYPE OF DATA TO BE CONVERTED.....................................................................................................................7 6.3LOGICAL DATA ELEMENT MAPPING.....................................................................................................................7 6.4HISTORICAL DATA...........................................................................................................................................7 7INTERFACES........................................................................................................................................................................8 7.1INPUT ..........................................................................................................................................................8 7.1.1Interface Parameters.......................................................................................................................9 7.2PROCESS/DATA FLOW DIAGRAM......................................................................................................................12 7.3LOGICAL DATA ELEMENT MAPPING/PROCESS LOGIC ...........................................................................................12 7.4BUSINESS PROCESS SPECIFICATIONS................................................................................................................16 8WORKFLOW......................................................................................................................................................................18 8.1PROCESS/DATA FLOW DIAGRAM......................................................................................................................18 8.2ROLES AND RESPONSIBILITIES.........................................................................................................................18 9ENHANCEMENTS.............................................................................................................................................................19 9.1PROCESS FLOW DIAGRAM..............................................................................................................................19 9.2ENHANCEMENT SPECIFICATIONS.......................................................................................................................19 10ADDITIONAL INFORMATION....................................................................................................................................20 10.1VOLUME AND FREQUENCY............................................................................................................................20 10.2AUTHORIZATIONS........................................................................................................................................20
CALM Invoices TCS CoPT Confidential v
10.3ERROR HANDLING SPECIFICATIONS.................................................................................................................20 10.4ADDITIONAL SECURITY CONSIDERATIONS..........................................................................................................20 11UNIT TEST CASE SCENARIOS ...................................................................................................................................21
CALM Invoices
vi
List of Tables
TABLE 1 : ABBREVIATIONS AND ACRONYMS.....................................................................................................VIII TABLE 2: PROGRAM HEADER.........................................................................................................................................3 TABLE 3: SELECTION PARAMETERS FOR REPORTS..............................................................................................4 TABLE 4: REPORT OUTPUT FIELDS..............................................................................................................................4 TABLE 5: REPORT LAYOUT.............................................................................................................................................4 TABLE 6: SELECTION PARAMETERS FOR FORMS..................................................................................................5 TABLE 7: FORM DETAILS..................................................................................................................................................5 TABLE 8: INTERFACE PARAMETERS ..........................................................................................................................9 TABLE 9: ROLES & RESPONSIBILITIES.....................................................................................................................18
List of Figures
CALM Invoices
vii
List of Abbreviations
Table 1 : Abbreviations and Acronyms Abbreviation/ Acronym LEO ADO PI Let Export Order Agents Delivery Order Process Integration Description
CALM Invoices
viii
1 Objective
Interface: This Interface is for Parking, Posting, Deletion & Credit Check of CALM invoices and posting of CALM Credit Notes in SAP.
CALM Invoices
2 Scope
Based on payment received or on availability of sufficient balance in Customer account, estimate bill raised in CALM is parked in SAP. Parked invoice is deleted once the final invoice for the same assessment id is raised in CALM and is posted in SAP. Final invoice and interim invoice raised in CALM are posted in SAP. Also, Credit Note raised in CALM for the excess charges collected is also posted in SAP Separate document types are maintained to distinguish between a Parked Invoice, Interim Invoice, Final Invoice, Deleted Invoice and Credit Note. Following are the Document Types used: 1. DD For CALM Customer Invoice Parking. 2. DE For CALM Customer Final Invoice Posting. 3. DD For Deletion of CALM Customer Parked Invoice. 4. DX For CALM Customer Interim Invoice Posting for period end and overstay. 5. DY For CALM Customer Interim Invoice Posting for balance amount after Sail Out request. 6. DI For CALM Customer Credit Note. 7. DM For CALM Proforma Bill Parking. 8. DB For CALM Invoice for Ground Rent.
2.1 Assumptions
N/A
2.2 Exclusions
N/A
CALM Invoices
3 Development Details
3.1 Program Header
Table 2: Program Header FS Description Object Owner Complexity SAP Module SAP Std modified New Program Sap Existing Name Type of Program NA Foreground Interface for parking, posting, deletion & Credit Check of parked invoices. Anand/Martin High FI Date raised Expected date Dev. object scope Oss note Copy from existing program T. code Existing Background Transaction code 13/10/2008 // Interface RFC NA NA
(The section below will be completed by the T.C.) New Name ZIFI_CALMINVOICES
CALM Invoices
4 Reports
4.1 Input
N/A
4.3 Output
N/A
4.4 Constraints
N/A
CALM Invoices
5 Forms
5.1 Input
N/A
N/A
CALM Invoices
CALM Invoices
6 Conversions
6.1 Data System/Data Flow Diagram
N/A
CALM Invoices
7 Interfaces
7.1 Input
N/A
CALM Invoices
CALM Invoices
Field Text
Default Values
Manda tory
Comments
Invoice type will give whether it is marine, cargo, stuffing, Destuffing, ground rent or miscellaneous invoice. INVOICETYPE is of CHAR 4 Invoice indicator will indicate whether invoice is Estimate, Interim Bill for Period End and Overstay, Interim Bill for Balance, Proforma Invoice, Final Invoice or Credit Note. INVINDICATOR is of Char 1.
INVOICETYPE
CHAR 4
INVINDICATOR
CHAR 1
Import
COMP_CODE DOCDATE POSTDATE REFERENCE DOCNO DOCTYPE CURR EXCHRATE DOCTXT FIS_PERIOD TRANSDATE
BKPF-BUKRS BKPF-BLDAT BKPF-BUDAT BKPF-XBLNR BKPF-BELNR BKPF- BLART BKPF-WAERS BKPF- KURSF BKPF- BKTXT BKPF- MONAT BKPF- WWERT
Import Import Import Import Import Import Import Import Import Import Import
CUSTOMER AMOUNT
STRUCTURE1-KUNNR
Table
Y Y
STRUCTURE1-WRBTR
Table
AMTLC
STRUCTURE1-DMBTR
Table
TAXAMT
STRUCTURE1-FWSTE
Table
TAXAMTLC
STRUCTURE1-MWSTS
Table
TAX_CODE
STRUCTURE1-MWSKZ
Table
DISAMOUNT
STRUCTURE1-WSKTO
Table
DISBASE
STRUCTURE1-SKFBT
Table
ASSGNMENT
STRUCTURE1-ZUONR
Table
CALM Invoices
10
Field Text
ITMTXT
Default Values
Manda tory
Y
Comments
AMOUNT
STRUCTURE2-WRBTR
Table
PROFIT_CTR
STRUCTURE2-PRCTR
Table
AMTLC
STRUCTURE2-DMBTR
Table
VALUEDATE
STRUCTURE2-VALUT
Table
ASSGNMENT
STRUCTURE2-ZUONR
Table
ITMTXT
STRUCTURE2-SGTXT
Table Export
status
Char
Table
Y Y
For the DATFRM use BLDAT For the DATTO use BLDAT
Y Y Y Create a Custom Data Element and Respective Domain for VCN with length 14 and Data Type char. VCN stands for Voyage Call No
VCN
STRUCTURE3-VCN
Table
BillNumber
STRUCTURE3-BELNR
Table
BillDate
STRUCTURE3-BLDAT
Table
TotalBillAmt
STRUCTURE3-BILLAMT
Table
AmountShortFall
STRUCTURE3SHRTAMT
Table
Remarks
STRUCTURE3REMARKS
Table
CALM Invoices
11
CALM Invoices
Document Header Text Posting Key. Posting key is 01 Account. Amount Assignment Text Posting Key. Posting key is 50 Account. Amount. Assignment Text
For the above fields, take the values from the importing parameters. After successful parking set the status field to P .Set the status field to R if credit check fails And else if parking the document is not successful set the status to F. I-Interim Bill for Period End and Overstay: If the Invoice Indicator is I, Post the document using the document type DX and the amount of the Parked Invoice with the same assessment ID has to be reduced by the invoice amount. Use T Code FBV2 to reduce the amount of the Parked Invoice with the same assessment ID. For posting the interim invoice, use T Code F-22, and give the following required data: 1. Document Date 2. Document Type. 3. Company Code. 4. Posting Date 5. Period 6. Reference. 7. Document Header Text 8. Posting Key. Posting key is 01 9. Account. 10. Amount 11. Assignment 12. Text 13. Posting Key. Posting key is 50 14. Account. 15. Amount. 16. Assignment 17. Text For the above fields, take the values from the importing parameters. If the Document is posted successfully set the status field to O else set the status with value F. K-Interim Bill for Balance: If the Invoice Indicator is K, Post the document using the document type DY and the amount of the Parked Invoice with the same assessment ID has to be reduced by the invoice amount. Use T Code FBV2 to reduce the amount of the Parked Invoice with the same assessment ID. Subsequently, a credit check is performed in Customer Account to identify whether sufficient balance is available or not i.e., whether customer balance (Credit Balance) is more than zero. If credit check succeeds set status field with value O, otherwise populate the pdabal structure and set the status with value R. For posting the interim invoice, use T Code F-22, and give the following required data:
CALM Invoices TCS CoPT Confidential 13
Document Date Document Type. Company Code. Posting Date Period Reference. Document Header Text Posting Key. Posting key is 01 Account. Amount Assignment Text Posting Key. Posting key is 50 Account. Amount. Assignment Text
For the above fields, take the values from the importing parameters. F-Final: If the invoice indicator is F, Post the document using the document type DE. On posting the document, Parked invoices for the same assessment ID should be deleted. For posting the invoice, use T Code F-22, and give the following data: 1. Document Date 2. Document Type. 3. Company Code. 4. Posting Date 5. Period 6. Reference. 7. Document Header Text 8. Posting Key. Posting key is 01 9. Account. 10. Amount 11. Assignment 12. Text 13. Posting Key. Posting key is 50 14. Account. 15. Amount. 16. Assignment 17. Text For the above fields, take the values from the importing parameters. Estimate invoice which is parked in SAP has to be deleted once the final invoice with the same assessment ID is posted in SAP. Document Type DD has to be used. Use T Code FBV0 to delete the parked invoice. If Posting the Invoice and Deleting the Parked Document is successful return the status field with value O, else with F. There is no deletion of parked invoices, if the invoice indicator F is along with the combination of anyone of the following Invoice Type CRGD, MISC and the document has to be posted to SAP using document type DE and through T Code F-22
CALM Invoices TCS CoPT Confidential 14
Invoice Indicators I and K can NEVER come for following Invoice types: 1) 2) 3) 4) 5) 6) CRGW -- Cargo Wharfage CRGD -- Cargo Demurrage STUF -- Stuffing Invoice DSTU -- Destuffing Invoice STRG -- Ground Rent Invoice for Containers MISC -- Miscellaneous Invoices
F-Ground Rent Invoice for Containers: If the invoice indicator is F and invoice type is STRG, Post the document using the document type DB. Subsequently, a credit check is performed in Customer Account to identify whether sufficient balance is available or not i.e., whether customer balance (Credit Balance) is more than the zero. If credit check succeeds set status field with value O, otherwise populate the pdabal structure and set the status with value R. For posting the interim invoice, use T Code F-22, and give the following required data: 1. Document Date 2. Document Type. 3. Company Code. 4. Posting Date 5. Period 6. Reference. 7. Document Header Text 8. Posting Key. Posting key is 01 9. Account. 10. Amount 11. Assignment 12. Text 13. Posting Key. Posting key is 50 14. Account. 15. Amount. 16. Assignment 17. Text For the above fields, take the values from the importing parameters. Credit Note: If the invoice indicator is C, Post the document using the T Code F-22 with document type DI and give the following data: 1. Document Date 2. Document Type. 3. Company Code. 4. Posting Date 5. Period 6. Reference. 7. Document Header Text 8. Posting Key. Posting key is 01 9. Account. 10. Amount 11. Assignment 12. Text 13. Posting Key. Posting key is 50 14. Account. 15. Amount. 16. Assignment 17. Text
CALM Invoices TCS CoPT Confidential 15
If Posting the document is successful, return the status field with value O, else with F.
Invoice parking is done for estimate invoice. Estimate invoice is raised based on: 1. Assessment request given by the Customer through PCS. On the basis of this, an estimate invoice is raised in CALM and is parked in SAP once the Customer makes payment. 2. Assessment request NOT given by the Customer. An estimate invoice is raised in CALM manually and is parked in SAP based on the availability of sufficient balance in Customers Account, in the following stages in CALM: (a) Before Berth Allotment in case of Vessel related charges. (b) Before allotment of Pilots in case of Import of Liquid Cargo. (c) On receipt of De-Stuffing request and on Passing in case of import of containerized cargo (d) After container entry, after receipt of LEO (Let Export Order) and on receipt of stuffing request, in case of export of containerized cargo. (e) On receipt of ADO (Agents Delivery Order) or on manual entry of ADO details in case of import of normal cargo. (f) On receipt of LEO/Coastal Invoice and after berthing in case of export of normal cargo.
Invoice posting is done based on the following trigger points from CALM: 1. Interim Bill for period closing and additional request for services in case of Vessel related charges. 2. Interim Bill for balance of Vessel related charges on submission of sail out request by the agent. 3. Interim Bill for cargo related charges on manual entry of ADO details in case of import of normal cargo. 4. Final invoice for vessel related charges on marine closure. 5. Final invoice for cargo related charges on Ullage certificate entry for import of Liquid cargo. 6. Final invoice for cargo related charges on Draft Survey/Tank Out turn report for export of Liquid Cargo. 7. Final invoice for Ground rent on completion of Destuffing/Tally recording operation in case of import of containerized cargo. 8. Final invoice for Cargo management charges on Passing in case of import of containerized cargo. 9. Final invoice for Destuffing charges on receipt of Destuffing request in case of import of containerized cargo.
CALM Invoices TCS CoPT Confidential 16
10. Final invoice for Ground rent on completion of Stuffing/Tally recording operation in case of export of containerized cargo. 11. Final invoice for Cargo management charges after container entry and receipt of LEO in case of export of containerized cargo. 12. Final invoice for Stuffing charges on receipt of Stuffing request in case of export of containerized cargo. 13. Final invoice for Cargo related charges on receipt of ADO and Passing in case of import of normal cargo. 14. Final invoice for Cargo related charges on receipt of LEO/Coastal invoice and after berthing in case of export of normal cargo. 15. Manual raising of credit note for excess charges collected. 16. Manual invoices raised in CALM are to be posted in SAP. 17. Miscellaneous invoices raised in CALM are to be posted in SAP.
Following are the business requirements: Invoices/Credit Notes generated in CALM are to be interfaced with SAP using SAP-PI. Functional Module Z_CALMINVOICES will Park, Post and Delete the transactional invoice data created in CALM. It also Post the Credit Notes generated in CALM to SAP.
CALM Invoices
17
8 Workflow
N/A
CALM Invoices
18
9 Enhancements
9.1 Process Flow Diagram
N/A
CALM Invoices
19
10 Additional Information
10.1 Volume and Frequency
N/A
10.2 Authorizations
N/A
CALM Invoices
20
CALM Invoices
21
A Appendix
N/A
CALM Invoices
22
B Naming Conventions
Document Naming Convention: e-Port_DT_<Module Name>_<Description>.doc Module Name Functional Work stream. Example, For FICO Functional specification, <Module Name> should be FI. FI = Finance MM = Procurement PP = Manufacturing RE = Real Estate management HR = Human Resource PM = Maintenance PS = Project System IS = IS Utilities DM = Document Management System
CALM Invoices
23