cancel
Showing results for 
Search instead for 
Did you mean: 

How to notify file transfer completion

former_member216353
Participant
0 Kudos

Hi all,

I've a requirement where n Idocs are being sent from SAP ECC system.
These n Idocs have to be converted to .CSV files and have to be delivered to the target application.
After the n files are completely transferred, SAP PI should send a empty file to notify that the file transfer process is complete.
"n"- n is dependent on the no.of records in the SAP DB table.

How can we achieve this requirement in SAP PI.
Kindly provide your inputs and pointers to propose the best solution.

regards,
Younus

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182412
Active Contributor
0 Kudos

Hi Younus,

Do a multi mapping with two target messages first one is to send the CSV files and second one is for sending an empty file and use maintain order at runtime parameter in interface determination then always after all the CSV files processed the empty file will be sent to the target.

Regards,

Praveen.

gagandeep_batra
Active Contributor
0 Kudos

HI Younus,

you can do one more thing that if you are using NFS ,

just create a dummy file in some folder after placing a file in your destination folder, use Run OS command to create some dummy file.

then create one more scenario which execute just after placing the CSV file , which work as your ack.

you can use ATP(Availability time planing) for schedule the CC.

Regards

Gagan

Former Member
0 Kudos

Hello Younus,

You can do it as many way.

1/ BPM : Make a BPM, which have a "timeout" for exit condition.

Pro : Timeout ensure you that empty file never created before la iDoc are processed

Cons : it's little sad to use BPM for creating an empty file

2/ Asked to SAP ECC to send to PI an empty or specifiq value iDoc, handle it in interface / receiver determination and send it to another interface, mapping and make you empty file

Pro : light and fast to implement

Cons : If you using a big iDoc, you may have your empty file create before last iDoc has finished to being processed

Regards,

Guislain