Skip to Content
0
Former Member
Jun 13, 2016 at 07:40 AM

Filename is missing

91 Views

Hi Experts,

I am passing a file reference number in RFC lookup to get the number and upate it in ECC system this is

a bank file and it is needed to retirieve for another response interface based on the filenumber.

I am using getFielname- > RFCLookup-> Filereference

constant -->

For getfilename am using UDF as

try {

String filename = "";

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

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

filename = conf.get(key);

return filename;

}

catch(Exception e)

{

String exception = e.toString();

return exception;

}

For header level am using variable to get the filename in the respecitve filename format as

Ex: WPS.0111.CY.USD.20160602-085646-868.0208064578791

But when ever am calling this with RFClookup to update in ECC am missing the filename

and getting like this WPS.0111.CY.USD..0208064578791

Please help as this is urgent. Is my UDF code is missing the value or how can i get the full name of the file.

Any help would be appreciated.

Regards,

Mohammad