cancel
Showing results for 
Search instead for 
Did you mean: 

BPM steps for Mapping faliure :like if else

Former Member
0 Kudos

Hi

I had a requirment in XI for...

File --> XI --> Abap Proxy.

Condition : XI has to do some field validation in Mapping and post the data to abap proxy. and if validation in mapping failed

(Mapping failed), XI has to write the data in some database table.

Note :

Validation : Char,integer or length check.

what i am trying is that..

Send Step -> Transformation(it failed ,exception should called another interface) --> Abap proxy

i.e database table

M i going with correct flow..

Regards,

Ajay P

Accepted Solutions (1)

Accepted Solutions (1)

sunil_singh13
Active Contributor
0 Kudos

Hi Ajay,

Your Design Seems to be right .

In Exception Branch you are using another transformation and sender step that will be executed in case of error in Mapping Don't Forget to use Cancel Process after the things are writeen in data base.

Reward Points if Helpful

Thanks

Sunil Singh

Former Member
0 Kudos

Hi Sunil

In my Flow

Receive Step -->Transformation -


>Send Step (proxy)

...............................|__if fails___> SendStep (databasetable)

In transformation Step how to use another Abstract message interface...in Exception tab...??

Regards,

AjayP

Former Member
0 Kudos

Hi,

1) Use Block to catch exception.

2) In block u can put exception branch.

3) on main branch put your Transformation step and catch the exception in other branch.

4) you can put number of exception branches for a main branch.

Regards,

Rohit

Reward points if helpful

Answers (3)

Answers (3)

Former Member
0 Kudos

.

Former Member
0 Kudos

Hi,

are you done with your scenario?

samiullah_qureshi
Active Contributor
0 Kudos

Hi

Use your transformation step within block and also define a exception for block and insert a exception branch and assign exception to it.

In transformation step property window in "System Error" specify your exception.

In exception branch you can mention whatever you want to do after failure of mapping. In your case you have to write into some database, you can do it by using send step there and if you want to cancel further processing then as sunil mentioned put control step with cancel processing.

Regards

Sami

Former Member
0 Kudos

Hi

i created the BPM as per the answers...and activated

http://img390.imageshack.us/img390/9182/bpmshotsdd5.jpg

but when i am testing it..

1.Case :

mapping do'nt fail

in Sxmb_moni

first message is sucessfull but second message fail with error

of " NO RECEIVER DETERMINATION "

id ID i have created 3 receiver determinations 3 inteface determination..

MY ID part is quite similar to

ID of scenario of File to RFC with BPM.

Regards

AjayP

Former Member
0 Kudos

Hi

Thx a lot i got it finally...

below is the screenshots :

http://img2.freeimagehosting.net/uploads/827adeef3a.jpg

Regards

AjapP

Former Member
0 Kudos

Hi ajay,

I would throw an exception like described in:

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

and would insert an exception branch which catches the exception. In this branch I would place a send step to send back to DB.

Regards Mario