cancel
Showing results for 
Search instead for 
Did you mean: 

Filename is missing

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Snavi
Active Participant
0 Kudos

Hi Mohammad,

Please check if you have checked Filename in adapter specific message attributes in the sender channel

Former Member
0 Kudos

Hi Navdeep ,

I am working on file to file scenario. I have checked the option in sender communication channel but still getting the same update in ECC system.

Please can you help.

Regards,

Mohammad

Snavi
Active Participant
0 Kudos

Hi Mohammad,

Can you give example of your filename when sender file channel picks the file, and what it shows in the mapping.

are you passing the full filename to rfc lookup or are you doing some transformation to the filename before passing it to lookup input

Former Member
0 Kudos

Hi Navdeep,

I am getting a file name Ex: DT100912 and for this file am using variable to get the file name  as

WPS.0111.CY.USD.20160602-085646-868.0208064578791 for this I have written the UDF and am getting it correct for the filename whenever I generate.

And in the details tab I have a file reference number filed which I need to map in the file and pass the value to ECC system for this am using Zfiletable the value which is getting from ECC system.

Now I want to update the filename (wps...)to ECC system, for this am using RFCLookup. But here am not getting the full filename in the ECC system.

Please see the above fields.

Regards,

Mohammad

manoj_khavatkopp
Active Contributor
0 Kudos

Open the Soap envelope of this message in IE/AE , in that soap envelope u have something like dynamic configuration and see if you can see the filename .If possible put the screenshot here.

Former Member
0 Kudos

HI Manoj,

I opened the soap envelope there also the same number is coming but in the target side it is coming with timestamp with milliseconds all the details.

Any modifications I need to do..

Please help

Regards,

Mohammad

former_member186851
Active Contributor
0 Kudos

Hello Mohammad,

I guess in the receiver File channel you have enable the option of add timestamp that is why timestamp is added in the Target file.

Uncheck it the timestamp will be removed.

Snavi
Active Participant
0 Kudos

Hi Mohammad,

  • can you screenshot sender file channel audit logs from rwb -> communication channel monitoring
  • are you using any other udf in the mapping of setFileName variable
  • what is the mapping at header node.

Answers (0)