cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic File Path not working

Former Member
0 Kudos

Hi Experts,

My requirement is through ABAP proxy PI will get File name and File path. Dynamically I have to place the file in that particular path.

I have used 2 UDF functions for dynamic file name and file path. Where as I can able to place the file in server but not in the path which I am getting from Proxy. It is creating the new directory in the Server by the name of " * " (because I have mentioned the * in File Parameters).

Here the receiver Adapter is SFTP including PGP encryption.

Please find below PI configuration settings and UDF code.

Mapping for Dynamic FileName:

UDF of Dynamic File Name:

Mapping of Dynamic File Path:

UDF of Dynamic File Path:

Please help be to resolve this. Need to Fix this issue ASAP.

Appreciated the quick Reply.

Hope I am clear with Requirement.

Thanks,

Gayathri.

Accepted Solutions (1)

Accepted Solutions (1)

vicky20691
Active Contributor
0 Kudos

Hi Gayathri,

It is very simple . Whenever you use ASMA with SFTP use namespace of File adapter that is -

In your UDF , change http://sap/com/xi/XI/System/SFTP to http://sap/com/xi/XI/System/File.

It will solve your problem. For reference on UDF code follow -

http://scn.sap.com/community/pi-and-soa-middleware/blog/2015/01/12/dynamic-and-yet-perfectly-static-...

regards,

Vikas

former_member186851
Active Contributor
0 Kudos

Hello Gayathri,

As Vikas Mentioned change the namespace from

http://sap/com/xi/XI/System/SFTP to http://sap/com/xi/XI/System/File.

If its not working still,let us know.

Former Member
0 Kudos

Hi Vikas,

Thanks for your inputs, I have done the change before I do testing but i have given old screenshot in blog.

Now I can able to process the file successfully.

Thanks,

Gayathri.

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi,

Try to use the same namespace in Directory UDF which is being used in FileName UDF i.e http:/"+"/sap.com....

Regards,

Manoj

Former Member
0 Kudos

Hi Manoj,

I have tried that option as well but no luck..

Thanks,

Gayathri.