cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign variable to root directory in flat file- SAP BODS

0 Kudos

Hi Experts,

My requirement: We have data like Districts and Branches, Each district name need to create as a folder name in share folder and all branches data belongs to district need to store in district folder in .txt file format. Now my problem as how can I assign variable to root directory in flat file. Is it possible to assign variable to root directory in flat file?

Thanks,

Pavan Sharma Aurora.

Accepted Solutions (1)

Accepted Solutions (1)

former_member187605
Active Contributor
0 Kudos

You can use a global variable for the root directory, too (just like you've already done for the file name).

0 Kudos

Thank you Dirk Venken for your response . As per your suggestion I created District as global variable and assign variable in root directory.

But I got this error, If I mention manual district name instead variable it's working fine.

former_member187605
Active Contributor
0 Kudos

You cannot combine a fixed string with a global variable for these settings. So it's either

$Param_District_Name, with $Param_District_Name = //192.168.0.9/sap/Demo/theDistrict

former_member187605
Active Contributor

or

//192.168.0.9/sap/Demo/theDistrict

Obviously, you can concatenate the fixed and variable part in a script.

Thank you Dirk Venken & Dirk Venken,

Finally I got solution.

Answers (0)