cancel
Showing results for 
Search instead for 
Did you mean: 

Name of the file to be sent to the field in RFC

Former Member
0 Kudos

Hello Experts,

I am doing a File - RFC scenario.

I need the scenario in such a way that the name of the sender file should be placed in one field of RFC

What should I map with the field of RFC to hold filename in MM?

how do I achieve this?

Regards,

Nikhil.

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi nikil,

>>What should I map with the field of RFC to hold filename in MM?

1. Select the option Adapter-Specific Message Attributes and File Name in the sender file CC.

2. Use the following UDF to retreive the filename from the Dynamic configuration payload & return the filename.

public String getFileName(Container container)

{

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String ourSourceFileName = conf.get(key);

return ourSourceFileName;

}

>>how do I achieve this?

Map the UDF to the target filed.

getFileName ---> one field of RFC.

Regards

San

Former Member
0 Kudos

Thanks santhosh,

I am trying it now

santhosh_kumarv
Active Contributor
0 Kudos

Hi nikhil,

Try out and let us to know outcome.

Regards

San

Former Member
0 Kudos

Santhosh, thanks again

its working great

Answers (0)