cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for getting File Name and updating in target as reference value

Former Member
0 Kudos

Dear All,

I am working on File-PI-RFC interface. In one of the columns of RFC, I need to pass the File Name as reference.

Kindly guide me on which UDF can be used for this requirement.

Regards,

NJ

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nishu,

Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.


Its an File to idoc scenario- GL Posting.


Please check attached UDF and it gives error. Kindly help. Thanks

Former Member
0 Kudos

thnx

Former Member
0 Kudos

Hi

search for the Dynamic Configuration for fetching the file name in the SDN..lot of threads are there and the uDF is also very simple

Check the below thread for example

HTH

Rajesh

former_member205403
Active Contributor
0 Kudos

Hi,

UDF Code is as below:

-


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

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

String NameOfFile = conf.get(key);

return NameOfFile;

-


Assign output of this UDF to target element in Mapping.

Former Member
0 Kudos

Hi All,

Basically my requirement to get filename in idoc segments.


File to idoc scenario. Please check attached UDF and it gives error.