on 01-16-2014 9:53 AM
the client whats the telephone fields and contact person mandatory in Business partner master data.When the user tries to add a new business partner
without an address the system should block them.
Please help
Hi,
Try below stored procedure to block Tel-1 and Contact person field is empty.
If (@object_type = '2') and @transaction_type IN ('U','A')
BEGIN
IF exists (select T1.cardcode FROM OCRD T1
where T1.CardCode =@list_of_cols_val_tab_del and
(Isnull(t1.CntctPrsn,'') = '' or Isnull(t1.Phone1,'') = ''))
Begin
SET @error = 30
SET @error_message =N'Tel-1 and Contact person should not be EMPTY.....'
end
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try This TNSP...
If (@object_type = '2') and (@transaction_type IN ('A','U'))
BEGIN
IF exists (select T1.cardcode FROM OCRD T1
where T1.CardCode =@list_of_cols_val_tab_del and isnull(T1.CntctPrsn,'') <>''
or (isnull(Phone1,'')='' or ISNULL( Phone2,'')='')
))
Begin
SET @error = 30
SET @error_message =N'You are not allowed to add without Cntper details'
end
END
Hope Helpful
Regards
Kennedy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.