cancel
Showing results for 
Search instead for 
Did you mean: 

Dont't Have access to Created Directory

Former Member
0 Kudos

Hi Experts,

I am dynamically creating the Directory and File with the following UDF

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

"http://sap.com/xi/XI/System/File",

"FileName");

DynamicConfigurationKey key1 = DynamicConfigurationKey.create(

"http://sap.com/xi/XI/System/File",

"Directory");

String source = conf.get(key);

String tar_fname =source.substring(19,21);

String tar_dirname =source.substring(14,18);

conf.put(key, tar_fname);

conf.put(key1, tar_dirname);

return " ";

I go to the respective directory, I am not able to open the Directory itself so i am not able to check that my files are exist in that directory or not. So For these kind of directory , Do i need to specify the access or permission in the UDF code. If so what i need to do to access the my created Directory.

Warm Regards,

Vijay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Still My problem is there. What ever you have suggested can be applied in windows not the folder created by XI.

henrique_pinto
Active Contributor
0 Kudos

But the problem is OS related, not application related.

You have to give read/write permissions to the user group (or the specific user) on that folder.

Regards,

Henrique.

Former Member
0 Kudos

Hi

Make that folder shareable.

Thanks

vikas_agarwal
Contributor
0 Kudos

Hi,

Make the folder shareable and give the permission to write.

This can be done by going to the properties of folder and select shareand security.

Under security tab give the perssion to write..

Regards

Vikas

justin_santhanam
Active Contributor
0 Kudos

Vijay,

U can't give access permissions thru code. Ask the owner of the particular folder to give write access permission to the specific folder.

Best regards,

raj.