cancel
Showing results for 
Search instead for 
Did you mean: 

Sending files, which are depending of eachother, through SAP XI

Former Member
0 Kudos

Scenario: File -> File, without mapping.

I have to send only files which are depending of eachother.

Par Example:

File1: ABC_00000133_20061208_101634.zip

File2: ABC_00000133_CHECK_20061208_101634.xml

I'm only allowed to send File1, if File2 is also available in the same directory.

The use of BPM will be necesarry ....

Is there someone who can give me some advice.

Regards,

Theo Pijlman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think you can use a simple BPM with the following steps.

Receive - receive - send.

First receive to receive File2. Once this is received BPM is triggered.

Second receive to receive File1.

Then send it to the target thro send step.

Regrads,

P.Venkat

Answers (2)

Answers (2)

former_member189558
Contributor
0 Kudos

Hello Theo,

One of the ways is in the Sender File Adapter you can call an operating system command that is a shell script.

1) Let the Adapter Poll for the Zip File.

2) Call a shell script before processing which will check for the relation , and if the relation is successfull then it will just archive the .xml file.(That case the adapter will archive the .zip file after picking up)

If the script does not find a matching file then it will rename the zip file to .bak file so that the adapter will not find any file.

3) After processing call another shell scrip which will seach for the .bak file and if any exists then will rename to .zip again .. so that it is available for next polling.

Cheers,

Himadri

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

As you have dependcies, you would need BPM with a Fork Step,

Fork -- With 2 branches,

Each branch has a receive step and then a Send Step to send the file to the target.

Please take a look at this link,

http://help.sap.com/saphelp_nw04/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm

Regards,

Bhavesh