cancel
Showing results for 
Search instead for 
Did you mean: 

in comm channel target directory is %variable%.txt

Former Member
0 Kudos

hi,

warm wishes...

if in communication channel target directory is %variable% then what does it mean..

thanks in advance,

jp.

Accepted Solutions (0)

Answers (3)

Answers (3)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

If you are new to SDN, please read /thread/117188 [original link is broken]

Please do not open multiple threads at the same time and follow up on the answers on your existing threads. Awar points for helpful answers, close your threads and make SDN a better place.

Answering your question, the %variable% is used set the directory name dynamically using the concept of Variable Name Substiution.

Refer to the last part of this link to understand this better,

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Regards

Bhavesh

Former Member
0 Kudos

JP,

It means your target directory is creating depending upon your payload. You are using variable substitution in your receiver file adapter.

Check this variable for which field you are creating the dynamic target directory.

---Satish

Former Member
0 Kudos

This is called variable substitution.

The file name can be filled from values in the payload.

The %variable% will be filled with some values specifed in the cc at runtime.

Regards,

Jai Shankar

Former Member
0 Kudos

hi,

thanks for replying.. can u send me one example of it ...

thnks in advance.

jp

Former Member
0 Kudos

Hi jp,

suppose you have below file:

<ABC>

<A1>1</A1>

<A2>

<A21>2</A21>

<A21>3</A21>

</A2>

</ABC>

Suppose you want your filename to have the data of node A21 which is having 3, then in ID, you will have in variable substitution table :

Variable Name: variable

Payload: ABC,1,A2,1,A21,2

Then on activating everything and rerunning your scenario, you will get your target file with filename as 3.txt in your this scenario.

Thanks,

Rajeev Gupta

Message was edited by:

RAJEEV GUPTA