Example: Importing CSV Files
In this example, we import a CSV file from a file server to SAP Profitability and Performance Management.
Input Data
| ZE_CUST (Customer) | ZE_PROD (Product) | ZX_QTY (Quantity) | ZE_AMT (Amount) |
|---|---|---|---|
| CN002 | PROD01 | 40 | 23 |
| CN001 | PROD01 | 20 | 20 |
| CN004 | PROD03 | 30 | 33 |
| CN003 | PROD03 | 30 | 25 |
| CN001 | PROD02 | 33 | 40 |
| CN004 | PROD01 | 25 | 28 |
| CN002 | PROD02 | 25 | 30 |
Procedure
Uploading a CSV to the file server
Convert the input data above into a CSV file format and upload it to the server /usr/sap/trans70/hana (the whitelist path).
You can configure the whitelist path under .
Server File Tab
-
In the function details, while in edit mode, choose Upload.
-
Choose the input data that you want to upload. Select the file name of the CSV file.
Use the CSV file in the function
-
Once you have uploaded the file to the server, choose the Refresh Directory List button.
-
Select .csv file, then choose the Select File button.
-
The system displays the file name in the header section as “ <File name>.csv”.
Mapping of Fields
-
You can map the file columnsto existing fields in the environment. In edit mode, choose the Field Mapping Proposal button. This button helps to match columns to field names.
-
In the File column, there should be a field named ZX_QTY (Quantity).
-
Map ZX_QTY to ZE_QTY by assigning ZE_QTY in the Field column.
Expected Result
The result provided by the function can be used either as input for other functions or for calculation. In this example, the result must be structured as shown in the table below.
| ZE_CUST (Customer) | ZE_PROD (Product) | ZE_QTY (Quantity) | ZE_AMT (Amount) |
|---|---|---|---|
| CN002 | PROD01 | 40 | 23 |
| CN001 | PROD01 | 20 | 20 |
| CN004 | PROD03 | 30 | 33 |
| CN003 | PROD03 | 30 | 25 |
| CN001 | PROD02 | 33 | 40 |
| CN004 | PROD01 | 25 | 28 |
| CN002 | PROD02 | 25 | 30 |

