on 10-18-2009 2:05 AM
Hi,
We have a requirement where the directory path for placing the files is different across our different environments. Ex: Development Environment has a different path than the Quality Enviornmnet. Also the full path is depending on fileds within the message.
I want to use Dynamic Configuration to create the Directory path. But in order to capture the full requirement I need to know wheich environment I am within the User Defined Function.
Can someone provide me the java class and function that I can use in my UDF to read the environment I am in.
( Essentially I want to read Sy-SYSID in ABAP...using Java. )
Regards,
Arunava
Not knowing your complete requirement, I may say it will be an overkill to determine the directory dynamically across different environments as against just maintaining it in the configuration. Can you elaborate why you want to do this? Even if you did determine it dynamically, you are probably going to hard code the directory structure in your code that determines the directory. Doing it using configuration is the easiest and cleanest way to accomplish this.
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arunva,
>>Essentially I want to read Sy-SYSID in ABAP...using Java.
It might not be possible to read system id in java, but you can read the sender or receiver service(SENDER_SERVICE or RECEIVER_SERVICE) and based on it can decide the diretory in DynamicConfiguration.
If you have a sender or receiver SAP sysem then better to read its name because this business systm ill haeunique name aross different environment. Check this thread too
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.