cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in Account Creation

Former Member
0 Kudos

Hello Colleagues,

My customer need a validation in Account creation: If the Role is sold-to-party, the tax number is mandatory.

I copied the function the class CL_BUPA_IL_TAX_NUMBER (with the corresponding customizing in clúster view) but I can´t see if exists tax number or see the bp number in the EXECUTE_CHECK_BEFORE_SAVE method .

The only ones parameters in this method are:

IV_MSG_SERVICE_ACCESS type ref IF_GENIL_MSG_SERVICE_ACCESS

CS_OBJECT type CRMT_GENIL_OBJ_INST_LINE

Can somebody help me?

Thanks.

Roberto

Edited by: Roberto Cabezas on Jan 21, 2011 9:42 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member206299
Contributor
0 Kudos

Hi Roberto,

You may try the following way to solve the issue.

Redefine the EH_ONSAVE Method .

Read the Tax Number and the Role using the GET_PROPERTY Method.

Allow to save only if the condition satisfies else raise Error Message.

Thanks,

Sijo

Former Member
0 Kudos

Thanks,

Your recomendationes works fine.

Best Regards.

Answers (0)