cancel
Showing results for 
Search instead for 
Did you mean: 

File To File - Do nothing if content is different

Former Member
0 Kudos

Hi,

I have a problem with file to file. I get the file and want to check if the content contains what I search for. If yes I proceed normally with my mapping if not then do nothing. Don't send any file to the ftp. How can I do that?

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Hi Arman,

YOu can put a condition in your reciver determination.

If the condition is not matched, your mapping will not be executed.

http://help.sap.com/saphelp_nwpi71/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/frameset.htm

Regards,

Ravi Kanth talagana

Answers (4)

Answers (4)

Former Member
0 Kudos

Arman, based on assigned points I'd say you didn't try it

As I say, you MUST send out a message which enters the XI. Setting only condition in receiver determination will not help you if u use only one target interface. You production system will contain errored messages then.

believe me

Peter

former_member181962
Active Contributor
0 Kudos

Hi Arman,

Peter is right.

The message will not go to target if the condition is not met, but an error message will be there in SXMB_MONI.

If you do not want to get an error in sxmb_moni, when the condition is not met, you can chose the

option:

Continue message processing with the following receiver.

(Give a dummy receiver which will point to another file location using another communication channel).

Regards,

ravi

GabrielSagaya
Active Contributor
0 Kudos

Use Conditional Receiver Determination

In Receiver dtermination..open the Conditional editor where check if the fields are empty.

If the values are avaialble in field then the File to File scenario will be executed.

Empty file Handling with XI 3.0 SP 19 (and PI 7.0 SP 10):

http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm

Former Member
0 Kudos

Hi,

the easiest way would be a condition in the receiver determination.

http://help.sap.com/saphelp_nw04/helpdata/en/43/a513f2632c332ce10000000a11466f/frameset.htm

If it's not possible you could use BPM.

Regards

Patrick

Former Member
0 Kudos

Once the messages enters the IE, it must be sent out, otherwise it fails (creates error). Create 2 target interfaces, the 1st one "normal", the 2nd one dummy. In the interface determination set the condition you need. If the message contains required data, send it to the "normal" interface, otherwis send it to the dummy one.

Peter