Skip to Content
0

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

Jun 14, 2017 at 07:57 AM

108

avatar image

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.

error.jpg (178.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Dirk Venken
Jun 14, 2017 at 09:59 AM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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.

error.jpg (185.3 kB)
error2.jpg (44.7 kB)
0

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

0

or

//192.168.0.9/sap/Demo/theDistrict

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

Thank you Dirk Venken & Dirk Venken,

Finally I got solution.

sol.png (62.1 kB)
1