0% found this document useful (0 votes)
370 views9 pages

Upload of Factory Calendars PDF

This SAP note describes an upload functionality that allows calendar information provided in text files, CSV files or excel sheets to be uploaded into public holiday calendars and factory calendars, rather than requiring manual entry. It provides instructions for implementing changes to enable this functionality, including creating 12 new data elements in the FTR_UTILS_CORE package to support uploading calendar data from files in a specified format.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
370 views9 pages

Upload of Factory Calendars PDF

This SAP note describes an upload functionality that allows calendar information provided in text files, CSV files or excel sheets to be uploaded into public holiday calendars and factory calendars, rather than requiring manual entry. It provides instructions for implementing changes to enable this functionality, including creating 12 new data elements in the FTR_UTILS_CORE package to support uploading calendar data from files in a specified format.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

SAP Note

1516263 - Upload of Factory Calendars


Version 4 Validity: 25.07.2011 - active

Language English (Master)

Header Data
Released On 25.07.2011 16:59:10
Release Status Released for Customer
Component
FIN-FSCM-TRM Treasury and Risk Management
Priority
Correction with low priority
Category
Advance development

Symptom
Public holiday calendar as well as factory calendar can be maintained only using online transaction
SCAL.
But calendar information are provided by various data provider in text files, CSV files or excel
sheets.
With this new functionality calendar information provided in a special format in a file are uploaded
into public holiday calendar and factory calendar.

Other Terms
TRCUT_CALUPL Calendar Upload SCAL

Reason and Prerequisites


This upload functionality helps to avoid the manual tasks required for maintaining calendar
information in the system.

Solution
Due to the amount of new objects (especially to be created manually) we strongly recommend to
implement the changes by applying the relevant support package.
When you nevertheless want to implement changes manually please follow correction instruction.

-----------------------------------------------------------------------|Manual Pre-Implement. |
-----------------------------------------------------------------------|VALID FOR |
|Software Component SAP_APPLSAP Application |
| Release 604Until SAPKH60408|
| Release 605Until SAPKH60503|
-----------------------------------------------------------------------Changes in the Data Dictionary
1. Create the package FTR_UTILS_CORE.
Call transaction SE80.
Select "Package".
Enter "APPL" in the relevant field.
Double-click the package APPL to open the package settings.
Choose "Change".
Choose the "Subpackages" tab page.
Choose "Create".
In the dialog box, enter or select the following values:
Package FTR_UTILS_CORE
Short Description Utilities: Treasury and Risk Management
Applic. Component TR
Software Component SAP_APPL
Transport Layer SCAP
Package Type "Not a Main Package"
Choose "Apply Values (Enter)".

If the system asks for the transport request, select your transport request and then
choose "Save".
2. Create the data element TRCUT_CENT_ID.
Call transaction SE11.
Select "Data type" and enter TRCUT_CENT_ID in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Financial Center ID".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 3.
Choose the "Field Label" tab page and enter the following values:
Short 10 CentID
Medium 15 FinCentID
Long 20 Financial Center ID
Heading 19 Financial Center ID
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
3. Create the data element TRCUT_CNTRY_CODE.
Call transaction SE11.
Select "Data type" and enter TRCUT_CNTRY_CODE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Country Code".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 2.
Choose the "Field Label" tab page and enter the following values:
Short 10 CntryCode
Medium 15 CntryCode
Long 20 Country Code
Heading 12 Country Code
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
4. Create the data element TRCUT_CURR_CODE.
Call transaction SE11.
Select "Data type" and enter TRCUT_CURR_CODE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Currency Code".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 5.
Choose the "Field Label" tab page and enter the following values:
Short 10 CurrCd
Medium 15 CurrCode
Long 20 Currency Code
Heading 13 Currency Code
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
5. Create the data element TRCUT_DATE.
Call transaction SE11.
Select "Data type" and enter TRCUT_DATE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Holiday Date".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 10.

Choose the "Field Label" tab page and enter the following values:
Short 10 Date
Medium 15 Date
Long 20 Holiday Date
Heading 10 Date
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
6. Create the data element TRCUT_DAY.
Call transaction SE11.
Select "Data type" and enter TRCUT_DAY in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Holiday Day".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 10.
Choose the "Field Label" tab page and enter the following values:
Short 10 Day
Medium 15 Day
Long 20 Holiday Day
Heading 10 Day
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
7. Create the data element TRCUT_FACT_CALID.
Call transaction SE11.
Select "Data type" and enter TRCUT_FACT_CALID in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Factory Calendar ID".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 2.
Choose the "Field Label" tab page and enter the following values:
Short 10 FactCalID
Medium 15 FactCalID
Long 20 Factory Calendar ID
Heading 19 Factory Calendar ID
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
8. Create the data element TRCUT_FILE_TYPE.
Call transaction SE11.
Select "Data type" and enter TRCUT_FILE_TYPE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "File Type".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 2.
Choose the "Field Label" tab page and enter the following values:
Short 10 FileTyp
Medium 15 File Type
Long 20 File Type
Heading 9 File Type
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
9. Create the data element TRCUT_FIN_CENT.
Call transaction SE11.
Select "Data type" and enter TRCUT_FIN_CENT in the relevant field.

Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Financial Center".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 20.
Choose the "Field Label" tab page and enter the following values:
Short 10 FinCent
Medium 15 FinCent
Long 20 Financial Center
Heading 19 Financial Center
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
10. Create the data element TRCUT_HOLIDAY_TEXT.
Call transaction SE11.
Select "Data type" and enter TRCUT_HOLIDAY_TEXT in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Holiday Text".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 128.
Choose the "Field Label" tab page and enter the following values:
Short 10 Holiday
Medium 15 Holiday
Long 20 Holiday Text
Heading 55 Holiday Text
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
11. Create the data element TRCUT_LOC_CODE.
Call transaction SE11.
Select "Data type" and enter TRCUT_LOC_CODE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Location Code".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 5.
Choose the "Field Label" tab page and enter the following values:
Short 10 LocCd
Medium 15 LocCode
Long 20 Location Code
Heading 13 Location Code
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
12. Create the data element TRCUT_MAX_TASK.
Call transaction SE11.
Select "Data type" and enter TRCUT_MAX_TASK in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Number of Parallel Tasks Per Server Cluster".
Choose the "Data Type" tab page and enter as predefined type INT2 with length 5.
Choose the "Field Label" tab page and enter the following values:
Short 10 No. Tasks
Medium 18 No. of Tasks
Long 32 Number of Parallel Tasks
Heading 32 Number of Parallel Tasks
Choose "Save".

In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
13. Create the data element TRCUT_PUB_CALID.
Call transaction SE11.
Select "Data type" and enter TRCUT_PUB_CALID in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Public Calendar ID".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 2.
Choose the "Field Label" tab page and enter the following values:
Short 10 PubCalID
Medium 15 PubCalID
Long 20 Public Calendar ID
Heading 18 Public Calendar ID
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
14. Create the data element TRCUT_WP_SIZE.
Call transaction SE11.
Select "Data type" and enter TRCUT_WP_SIZE in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Work Package Size".
Choose the "Data Type" tab page and enter as predefined type INT2 with length 5.
Choose the "Field Label" tab page and enter the following values:
Short 10 Pack. Size
Medium 15 Package Size
Long 20 Work Package Size
Heading 17 Work Package Size
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
15. Create the data element TRCUT_YEAR.
Call transaction SE11.
Select "Data type" and enter TRCUT_YEAR in the relevant field.
Choose "Create".
In the dialog box, choose "Data element" and confirm the entry.
As the short description, enter "Holiday Year".
Choose the "Data Type" tab page and enter as predefined type CHAR with length 5.
Choose the "Field Label" tab page and enter the following values:
Short 10 Year
Medium 15 Year
Long 20 Holiday Year
Heading 5 Year
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
16. Create the structure TRCUT_CAL_DATA.
Call transaction SE11.
Select "Data type" and enter TRCUT_CAL_DATA in the relevant field.
Choose "Create".
In the dialog box, choose "Structure" and confirm the entry.
As the short description, enter "Calendar Data from file".
Choose the "Components" tab page and enter the following values:

CENTRE_ID Type TRCUT_CENT_ID


CURR_CODE Type TRCUT_CURR_CODE
CNTRY_CODE Type TRCUT_CNTRY_CODE
FIN_CENTRE Type TRCUT_FIN_CENT
LOC_CODE Type TRCUT_LOC_CODE
HOLIDAY_YEAR Type TRCUT_YEAR
HOLIDAY_DATE Type TRCUT_DATE
HOLIDAY_DAY Type TRCUT_DAY
HOLIDAY_TEXT Type TRCUT_HOLIDAY_TEXT
FILE_TYPE Type TRCUT_FILE_TYPE
Choose "Save".
In the dialog box, enter the package FTR_UTILITIES and choose "Save".
17. Create the table type TRCUTY_CAL_DATA.
Call transaction SE11.
Select "Data type" and enter TRCUTY_CAL_DATA in the relevant field.
Choose "Create".
In the dialog box, choose "Table type" and confirm the entry.
As the short description, enter "Table Type for Calendar Upload file data".
Choose the "Line Type" tab page and enter TRCUT_CAL_DATA as the line type.
Choose "Save".
In the dialog box, enter the package FTR_UTILITIES and choose "Save".
18. Create the transaction TRCUT_CALUPL.
Use transaction SE80 to open the package FTR_UTILITIES.
In the context menu (right mouse button), choose "Create -> Other (1) -> Transaction".
In the dialog box, enter TRCUT_CALUPL in the "Transaction code" field, enter "Calendar
Upload" as the short text and select "Program and screen (dialog transaction)". Then, confirm your
entry.
Enter the following data:
Transaction text "Calendar Upload"
Program FTR_TRCUT_CAL_UPLOAD
Screen number 1000
Maintenance of standard transaction variant allowed yes
Transaction classification Professional User Transaction
SAPGUI for HTML yes
SAPGUI for Java yes
SAPGUI for Windows yes
Choose "Save".
19. Create the message class TRCUT.
Use transaction SE80 to open the package FTR_UTILITIES.
In the context menu (right mouse button), choose "Create -> Other (1) -> Message
Class".
In the dialog box, enter TRCUT and the "Message class" and confirm the entry.
Choose the "Attributes" tab page and enter the following short text: Messages for
Calendar Upload.
Choose the "Messages" tab page and enter the following messages:
a) 001 Calendar Data Uploaded successfully
b) 002 Invalid File Type
c) 003 Input file does not contain any records
d) 004 Invalid Date
e) 005 Invalid Year
f) 006 Test run executed successfully
g) 007 Calendar Data not available for this Financial Center
h) 008 Factory Calendar not available for this Financial Center
i) 009 Invalid File. Please select a file containing data for Working Weekends.
j) 010 Invalid File. Please select a file containing data for Public Holidays.

k) 011 Maximum number of Holiday entries exceeded!


l) 012 Incomplete data
m) 013 File too large! Please select less than 10000 entries for upload!
n) 014 Error during parallel processing. Upload failed!
o) 015 Error during file selection.
Mark all messages as Self-explanatory.
Choose "Save".
20. Create the database table TRCUT_CAL_ID_DEF.
Call transaction SE11.
Select "Database table" and enter TRCUT_CAL_ID_DEF in the relevant field.
Choose "Create".
As the short description, enter "Calendar Definitions for Financial Centers".
As delivery class choose "S" (System table).
Set field "Data Browser/Table View Maint. " to "Display/Maintenance Allowed with
restrictions".
Choose the "Fields" tab page and enter following fields:
a) Field FIN_CENT_ID
Key indicator set
Initial Values indicator set
Data element TRCUT_CENT_ID
b) Field CNTRY_CODE
Key indicator set
Initial Values indicator set
Data element TRCUT_CNTRY_CODE
c) Field PUB_CAL_ID
Key indicator set
Initial Values indicator set
Data element TRCUT_PUB_CALID
d) Field FACT_CAL_ID
Key indicator set
Initial Values indicator set
Data element TRCUT_FACT_CALID
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
Choose "Activate".
21. Create the database table TRCUT_FILE_DATA.
Call transaction SE11.
Select "Database table" and enter TRCUT_FILE_DATA in the relevant field.
Choose "Create".
As the short description, enter "Table with data from calendar upload file".
As delivery class choose "S" (System table).
Set field "Data Browser/Table View Maint. " to "Display/Maintenance Allowed with
restrictions".
Choose the "Fields" tab page and enter following fields:
a) Field CENTRE_ID
Key indicator set
Initial Values indicator set
Data element TRCUT_CENT_ID
b) Field CURR_CODE
Key indicator set
Initial Values indicator set
Data element TRCUT_CURR_CODE
c) Field CNTRY_CODE
Key indicator set
Initial Values indicator set
Data element TRCUT_CNTRY_CODE

d) Field FIN_CENTRE
Key indicator set
Initial Values indicator set
Data element TRCUT_FIN_CENT
e) Field LOC_CODE
Key indicator set
Initial Values indicator set
Data element TRCUT_LOC_CODE
f) Field HOLIDAY_YEAR
Key indicator set
Initial Values indicator set
Data element TRCUT_YEAR
g) Field HOLIDAY_DATE
Key indicator set
Initial Values indicator set
Data element TRCUT_DATE
h) Field HOLIDAY_DAY
Key indicator set
Initial Values indicator set
Data element TRCUT_DAY
i) Field HOLIDAY_TEXT
Key indicator set
Initial Values indicator set
Data element TRCUT_HOLIDAY_TEXT
j) Field FILE_TYPE
Key indicator set
Initial Values indicator set
Data element TRCUT_FILE_TYPE
Choose "Save".
In the dialog box, enter the package FTR_UTILS_CORE and choose "Save".
Choose "Activate".
22. Create the function group FTR_TRCUT_UTILS.
Call transaction SE80.
Select object type Packege
Enter package name FTR_UTILS_CORE, hit enter
Mark Function Groups, right click and choose Create
In the popup window enter the function group name FTR_TRCUT_UTILS and the Short Text:
Treasury Utilities functions
Save and Activate the changes

-----------------------------------------------------------------------|Manual Post-Implement.|
-----------------------------------------------------------------------|VALID FOR |
|Software Component SAP_APPLSAP Application |
| Release 604Until SAPKH60408|
| Release 605Until SAPKH60503|
-----------------------------------------------------------------------Postprocessing tasks in the programs
1. Create the text for the program FTR_TRCUT_CAL_UPLOAD.
Call transaction SE80.
Select "Program".
Enter FTR_TRCUT_CAL_UPLOAD in the relevant field.
Double-click the program FTR_TRCUT_CAL_UPLOAD to open it.
Choose "Goto -> Text Elements -> Text Symbols" to navigate to the text symbols.
Choose "Change".
Enter the following texts:
001 Input File
002 Upload Mode
003 Parallel Processing
Choose the "Selection Texts" tab page.

Enter the following texts:


P_FILE File Name
P_GRPN Server Group
P_MAXT Number of Parallel Tasks
P_PARA With Parallel Processing
P_TEST Test Run
P_UPLOAD New Calendar Data
P_WPS Work Package Size
P_WRKDAY Working Weekends
Choose "Save".
Choose "Activate".

Validity
Software Component From Rel. To Rel. And Subsequent
SAP_APPL
604
604

605
605

Correction Instructions
Correction Instructions

Software Component Valid from Valid to Number


SAP_APPL
604
604
1365301
SAP_APPL
605
605
1277956

Support Packages & Patches


Support Packages

Software Component Release Support Package


SAP_APPL
604
SAPKH60409
605
SAPKH60504

References
This document refers to:
SAP Notes
1624779 Factory calendar upload: CSV file format

This document is referenced by:


SAP Notes (1)
1624779 Factory calendar upload: CSV file format

You might also like