Skip to Content
0
Former Member
Feb 07, 2011 at 09:14 AM

File attachment archiving while Error

77 Views

Hello Experts,

I have a complicated scenario to present to you. I hope you can help and guide me with it.

There are 3 folder locations on a FTP server : 'Work' , 'Archive' and 'Attachments'.

Files will be deposited to 'Work' folder. Let us consider <file_idoc> and <file_attachment>. Immediately, two processes have to be performed by PI.

Process 1 : Both files will have to be moved to 'Archive' folder with the same file names.

Process 2 : <file_idoc> has to be mapped to a IDOC structure and the data should be passed onto the SAP-ERP system. However, if SXMB_MONI shows a success flag, the respective attachment WITH A TIMESTAMP has to be moved to the 'Attachments' folder.

Summary : In the end, I would expect to see

1) IF the IDOC is successful in SXMBMONI,_

a) The 'Attachments' folder will hold the <file_attachment> with a TIMESTAMP.

b) SAP-ERP would receive the IDOC data

c) Both the files, <file_idoc> and <file_attachment> will be in 'Archive' folder.

2) IF the IDOC is NOT successful in SXMBMONI,_

a) Both the files, <file_idoc> and <file_attachment> will be in 'Archive' folder.

So far, I have created one config. scenario to process the IDOC part (working fine). I also have another config. scenario which is a file pick-and-deposit scenario. It picks the <file_attachment> and deposits it in 'Attachments' folder with a TIMESTAMP attached. However, I am not able to link all the scenarios together.

I think BPM implementation in PI is the way to go forward. It would be great if you could guide me on how to develop this solution in PI-BPM. An overall high level design would be helpful. Any web-blogs and resources will be appreciated.

Thanks in advance for all the guidance.

Regards,

Freddy.