on 09-18-2009 5:08 AM
Hi All Experts,
I am trying to make some UDF mandatory in A/R Invoice as object_type '13' and transaction_type 'A' and 'U'.The problem is it not at all working and this invoice is sent for financial approval ,i am trying this which is wrong query as
IF @transaction_type = 'A' AND @object_type = '13'
BEGIN
if exists (Select T0.cardcode from oinv T0 where T0.U_Region is null and T0.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Enter Region'
end
END
Can any one guide me with right query in repect to the approval process.
Regards,
Inder
Hi,
seen already fro those i had cleared all other notificaton and tried it alone its still enter into Draft.
Regards,
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When an approval procedure is activated, the transaction is stored as a draft in the ODRF table. And the object type passed to the procedure is 112 !
So you should write different code to manage the draft documents. For example for an invoice you should start your code with something like this:
IF @transaction_type = 'A' AND @object_type = '112'
And (Select ObjType From ODRF
Where DocEntry = @list_of_cols_val_tab_del)='13' --.
Hi,
Ok
Thanks and Regards,
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the code
IF @transaction_type = 'A' AND @object_type = '112'
BEGIN
if exists (Select T0.docentry from ODRF T0 where (T0.U_Region is null or T0.U_Region = '') and T0.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Enter Region'
end
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi István K#rös,
you are right ...it solved my problem...thanks..
Thanks & Regards
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
OK,its the cause what should be the query under this condition.
Regards
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is any other detail required to solve this one??
help???
Regards,
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Its nvarchar(MAX) in DB
Regards,
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your original code is working with a numeri/alphanumeric type field without default value. (With @transaction_type In ('A','U') modification for update transactions).
What is your field type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now. what to do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanga Raj K,
Yes, i am doing it SBO_SP_TransactionNotification procedure..
There are different validations too.but those are working.. but this one is a only one not working .
i am trying all this in test DB.
Regards,
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanga Raj K,
Same no response from the invoice i am confused it is not displaying any thing from this query's. and yes, It do have and approval window attached to it .Do i need to check draft also..?
Regards,
Inder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Try this
IF @transaction_type = 'A' AND @object_type = '13'
BEGIN
if exists (Select T0.docentry from oinv T0 where (T0.U_Region is null or T0.U_Region = '') and T0.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 10
SET @error_message = N'Enter Region'
end
END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
any one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.