cancel
Showing results for 
Search instead for 
Did you mean: 

smw3_validation_execute called twice during initial download

Former Member
0 Kudos

Hi All

When trying to download a request for CUSTOMER_MAIN am facing some troubles in custom FM written. I reprocessed the error BDoc and in debugging mode i was able to find this function module smw3_validation_execute is being called twice for BDoc. This FM smw3_validation_execute is directly called from middleware adapter, if am not wrong.

Is there any settings that i need to correct / check in adapter object CUSTOMER_MAIN or else some middleware settings needs to be validated?

Did any one come across such an issue before?

Thanks

Karthik

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

While re-processing a Bdoc in the message flow, if it needs to be rolled back due to a Abort status, the validation service is called for a second time.

That is why, you find the smw3_validation_execute FM being called twice!

Please check

 cl_smw_mflow=>__validate

calling

cl_smw_mflow=>__validate_

twice.

smw3_validation_execute

is called finally by

cl_smw_mflow=>__validate_

.

Please reward if helpful.

Thanks,

Sudipta.