cancel
Showing results for 
Search instead for 
Did you mean: 

Partial message processing

Former Member
0 Kudos

Hi,

If i have 100 records in a file , each record needs to generate idoc.

if one record data is wrong in file , in XI only that record will not generate idoc or complete message stops?

and no idoc will be generated?

bcz i have some scenarios in my project of following types.

1) correct records should be processed, error records should not be processed.

2) if one error record in the file entire file should not process.

can anyone suggests in both situations what are the best ways to do.

regards,

venu.

Accepted Solutions (0)

Answers (5)

Answers (5)

STALANKI
Active Contributor
0 Kudos

It all depends on the kind of validation that you are going to perform?

Can you please elobrate when do you a say file is correct?

Former Member
0 Kudos

Hi,

This might be one of the solutions: (using BPM)

1. Have an interface mapping between the source sender interface and the receiver abstract (BPM) interface.

This interface mapping does the required validations.

Ex: It might check if all the mandatory fields are present. And if the values of all the tags are correct.

If there is something wrong, you would set the status of a tag to 1.

2. Within the BPM, after receiving the validated message, check if the <status> tag is 1, if so, stop the processing, else, carry out the transformation step to map the record to the idoc.

3. After this, send the idoc to the target system, using the send step.

Regards,

Smitha.

Former Member
0 Kudos

Hi,

when u send a file wher for each record a idoc will be created,so when u send the records after mapping in r\3 u will see tat record with wrong data or if data is missing will be givrn a different status code where the sucessfully processed idoc will be given status code 53.

so u can easily find out the idoc's which were sucessful.

regards

jithesh

Former Member
0 Kudos

Hi,

You can carry out validations in the mapping. Depending on the validations level you are looking for select the mapping. You need to generate two target messages 1. Correct set of records 2. Incorrect set of records. Depending on the complexity of validations you need to take a call of using single mapping program or multiple mapping programs and if required use of BPM and adapter module.

Regards,

Kavita Laddha

Former Member
0 Kudos

Hi,

In bothe cases we have handled the situation in either adapter module or message mapping depending on the condition.

We did the validation in the module, if any record is wrong then we use to set the error flag and reject the file in the receiver determination.

In other case generate the two messages for success and failure, set some flags for bothe the message and depending on the flags divert the message to different receivers.

Thanks,

Prateek