Hello:
I am trying to get the values of ‘AW_*’ system variables that a custom transfer uses as a parameter, but am only getting a null value.
For example: In my script, I have
get_env(‘AW_FILE_NAME’)
Wanted to see if someone has tried the same and if this is something that BODI does not pull via get_env? a get_env(‘PATH’) works just fine.
Help,
Sowmya
sowsam (BOB member since 2008-06-03)
Remember that jobserver, jobs and dataflows a processes of its own. So it depends on how you set the environment variable and where. Different places, different visibility.
https://wiki.sdn.sap.com/wiki/display/BOBJ/custom_transfer+transport+method
Werner Daehn
(BOB member since 2004-12-17)
Thanks Werner for your response!
Here’s the structure of my Job
Level 1: Job
Level 2: DataFlow
Level 3: R/3 Dataflow
Level 2: Script with the get_env(‘AW_FILE_NAME’)
The R/3 Dataflow has a Custom Transfer Method and contains the use of AW_FILE_NAME. The Data Transport Object in the R/3 Dataflow has a “filename” entry and I believe AW_FILE_NAME gets the value of “filename”. I say that because, when I run the Job, the “filename” value gets printed in the trace logs when it hits the Custom Transfer program execution.
Are you saying that these DI System variables (AW_FILE_NAME, AW_ROOT_DIR) loose visibility once the execution comes out of R/3 Dataflow? Any workaround ideas on how I can get hold of the values?
sowsam (BOB member since 2008-06-03)