cancel
Showing results for 
Search instead for 
Did you mean: 

Files are getting overwritten at the target FTP

Former Member
0 Kudos

Hi Experts

  • Currently we are facing a peculiar issue with file name generation in IDoc to file interface. IDoc is processing to PI and generating a file name with time stamp(processing mode is time stamp) and processing to the FTP server.
  • Recently we have come across a peculiar issue with the file name. That is one of the file has been overwritten in the FTP server.
  • After the analysis we found that, one more message id also generated the same file name(same time stamp) due to which the first file got over written.
  • Now we understood that in PI if we have more than one cluster node, there is a possibility to generate the same time stamps for different executions.
  • As time stamp is mandatory in target server point of view we can not change the processing mode from time stamp to message id.
  • To achieve the same we have suggested the customer with dynamic file generation with a non repeatable counter(using global container).

We have gone through few existing posts and implemented the code(copied from below post). But counter is not repeating the value for the next execution based on the cache value.

Currently we are in PI 7.0 ehp2. We have some questions to get clarify....

  1. Will PI 7.0 supports global container concept? If yes why the code is not executing as expected?
  2. Our question is do we have any other ways to achieve this requirement by keeping time stamp as mandatory?

Note: Also we have suggested customer on concatenation of time stamp and message id. But customer is not agreeing such a big file name at all.

Url which contains the code(taken from correct answer): http://scn.sap.com/thread/1996355

Regards,

Anusha Penneru

Accepted Solutions (0)

Answers (3)

Answers (3)

gagandeep_batra
Active Contributor
0 Kudos

Hi Anusha,

Did you try with "Use Temporary File." option also if not then check that will help , i think....

for more information check below:

http://help.sap.com/saphelp_nwpi711/helpdata/en/44/69d7cfa4b633eae10000000a1553f6/content.htm

Regards

Gagan

ambrish_mishra
Active Contributor
0 Kudos

Hi Anusha,

Global container concept does work in PI 7.0.

But I am curious that will gloal container work beyond the execution of the mapping.

However, instead of message id, why don't you suggest appending IDoc number to the file name. It will also help in traceability of the IDoc.

Ambrish

Bhargavakrishna
Active Contributor
0 Kudos

Hi Anusha,

you are facing this issue for all the files or only for few?

Will PI 7.0 supports global container concept? If yes why the code is not executing as expected?

yes, can you re-check the code.

Our question is do we have any other ways to achieve this requirement by keeping time stamp as mandatory?


Did you tried this?

http://saptechnical.com/Tips/XI/ASMA/Index.htm

Regards

Bhargava krishna