on 01-29-2008 10:23 PM
Hello,
After login into XI I used tcode "al11" whcih displays "Name of Directory Parameters" and physical location. I would like to know how do I get same information via javacode?
I appreciate your help.
Thank you,
Balaji
Hi Balaji,
Could you please elaborate yr requirement .
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amit,
Thank you for the viewing my question. My requirement is that we have logical names (Directory names) defined with physical location mapping to different locations.
example:
Logical name: XI_TEMP Physical location: C:/temp
Logical name: XI_SAVE Physical Location: E:/User/local/save
When you use tcode al11 you can see above logical names and also where they mapped to (physical location)
Now my question is given the situation I know logical name, how would I get value of physical location. Please let me know if you need more information. I appreciate your help.
Thank you,
Balaji
Hi Balaji,
I just couldn't get your requirements completely. But still if you are trying only to retrive the file name, Directory, Size, type. you can use this UDF which will dynamically pick the details and it in a field level mapping:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//for getting filename
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
//for getting directory
DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
/similarly for getting filetype, filesize you need to specify in the above code instead of filename or directory/
String FileName = conf.get(key1);
String Directory = conf.get(key2);
String Cat = FileName+ " "+Directory;
//return FileName;
//return Directory;
return Cat;
Else if you are trying to post a file using al11 you need to search for different options.
Regards,
Nithiyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.