cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration to rename target filename for RFC Sender Adapter

former_member200339
Participant
0 Kudos

Hi Experts,

I am making an RFC to FILE scenario.

The target file name depends upon one of the field in the incoming message i.e. IF_VALUE.

The target structure should not have this field - IF_VALUE. So I cannot use variable substitution in Receiver File Adapter.

For Sender RFC Adapter, can I get the Dynamic Configuration where I can set the file-name?

If not, is there any other way out. Please suggest.

Thanks and Regards,

Rana Brata De

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Rana

Do you have a message mapping in this scenario?

If yes, you can set the target filename in Dynamic Configuration irrespective of what sender adapter you use. Just use a UDF to set the filename in the following attribute and set ASMA on the file receiver channel.

Attribute: FileName

Namespace: http://sap.com/xi/XI/System/File

There are plenty of sample of UDF to set the filename on SCN. Just need to find one and tweak accordingly. One example is in the blog below, instead of doing a get filename, the value of your source field should be used instead.

Rgds

Eng Swee

Message was edited by: Eng Swee Yeoh

former_member200339
Participant
0 Kudos

Thanks Eng, Your guidance is very helpful to us.

Regards,

Rana Brata De

Answers (0)