cancel
Showing results for 
Search instead for 
Did you mean: 

To Get the File Name

arunneerolil
Contributor
0 Kudos

Hi,

I am doing a File-to-Idoc scenario.

The names of files will be "Order+TimeStamp.xml".

In the File Comm. Channel Sender I gave the file name

as "Order*" so that it will read all the files starting

with "Order".

I want to store the names of processed files to a ZTable.

Any way to get the name of Currently Processing file.

Can anyone help.

Thanks in Advance

Chemmanz

Accepted Solutions (0)

Answers (2)

Answers (2)

arunneerolil
Contributor
0 Kudos

Hi,

I think in SP15 there is no such options.

I coudn't find any "Adapter Specific settings" in the file adapter(CC).

So any other solution to get the file name.

Regards

Chemmanz

Shabarish_Nair
Active Contributor
0 Kudos

>>> Open your SAP BASIS component in IR and in the http://sap.com/xi/XI/System namespace under Adapter Metadata double click on the FILE. In the tree (that is shown on the reight side) search for Adapter-Specific Message Properties. Is it there? If no then try reimporting the SAP BASIS component.

This is a comment by Suraj in thread do chk tht out too ...

former_member187339
Active Contributor
0 Kudos

Hi

Try this weblog

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

Regards

Suraj

former_member187339
Active Contributor
0 Kudos

Hi Chemmanz,

You can take it from the payload using userdefined function.

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards

Suraj

arunneerolil
Contributor
0 Kudos

Hi Suraj,

Thanks, but

as per this blog we have to set "Adapter Specific Message Properties" .

How can I access the window to set these properties.

I am using XI SP15.

Rgds

Chemmanz

former_member187339
Active Contributor
Shabarish_Nair
Active Contributor
0 Kudos

Chemmanz,

The feature is active from SP14 onwards.

>>> as per this blog we have to set "Adapter Specific Message Properties" .

How can I access the window to set these properties.

You can find these properties in you adapter configuration (FILE/FTP adapter).

For More details...

1. http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm - Sender

2. http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm - Receiver

MichalKrawczyk
Active Contributor
0 Kudos

hi Chemmanz,

1. have a look at my weblog on how to set adapter properties foe sender file adapter:

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

2. then with the code below you can get the filename:

(insert this code in a simple user defined function)

try

{

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

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

ourSourceFileName = conf.get(key);

}

catch (Exception e)

{

//return e.toString();

}

return ourSourceFileName;

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>