cancel
Showing results for 
Search instead for 
Did you mean: 

How to Rise an expection ?

Former Member
0 Kudos

Hi experts,

i have a small problem in my senario,plz help me.

this is the source structure.

FILES -


0....UN

HEADER GROUP -


1..1

RECORD_TYPE

CREATION DATE

CURRENT TIME

GLN_CODE

DETAIL GROUP----


0....UN

RECORD_TYPE

MATERIAL NO

BATCH_CODE

QUALITY

QUANTITY

BATCH_STATUS

FOOTERGROUP----


1....1

RECORD_TYPE

RECORD_COUNT

in this structure u can find RECORD_TYPE 3 times .Same target structure but no RECORD_TYPE in that structure.

Now i have to keep a condition that if Record_type satisfy condition,then only data have to post into Idoc.Can i keep this condition in Receiver determination.If YES? then How to rise an exception when condition is False.

Regards,

Phani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use ResultList.SUPPRESS to suppress the message.

Kindly reward points.

Former Member
0 Kudos

HI,

Please use the Filter condition at top most root level. and if the right side message level occurrence should be 0..more . like 1

Write a UDF if the said condition is true then send the data to post the IDoc, else You can use ResultList.SUPPRESS to suppress the message.

Also you can raise / throw Runtime exception from UDF if the condition is false..

and in Determination you would have to use the terminate precess or required option.

Regards

Chilla