cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SRM Contract creation error in NWBC

Former Member
0 Likes
317

Hi,

I have created a custom field ZREGION in SRM front-end and for its validation I have implemented a BADI "BBP_DOC_CHECK_BADI"

what my requirement is when ZREGION is invalid it should display error message and  contract should not be created

but when I am testing it from front end it is throwing error but at the same time contract is also being created.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

When populating error message into export table of the BADI implementation, are you mentioning the message type as 'E' (Error). If the message type is error, it should not create a contract.

Please check it. if you have given it as E only, then provide a screenshot of the error message that you are getting in the frontend.

Regards,

Karthik Babu

venkatakrishna
Active Participant
0 Likes

Hi ,

just check mode Document Mode ( IV_MODE  Eg:- IV_MODE = 'C' ) , if any errors exits in ET_MESSAGES dont save the document.

Regards,

Venkat

Answers (1)

Answers (1)

Former Member
0 Likes

Hi

you are due to assure not being filtering the validations by type of update. as for example U or T. tries clearing that filter in the code.

thanks.

BR.

Emanuel.