on 05-20-2015 2:34 PM
Hi Experts,
I need query for approval procedure to block sale order if a UDF field in BP master is null.
Thanks and regards,
Bharathiraja
Hi,
Try this:
SELECT distinct 'TRUE'
FROM OCRD T0
INNER JOIN ORDR T1 ON T0.CardCode = T1.CardCode
WHERE T0.CardCode=$[$4.0.0] and T0.[U_UDF] is null
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://help.sap.com/saphelp_sbo882/helpdata/en/45/06d9e4d8696c30e10000000a114a6b/content.htm
I believe you didnt enable approval yet.
TN will be better.
IF @object_type = '17' AND @transaction_type = 'A'
BEGIN
IF (SELECT T1.U_TEST FROM ORDR T0 INNER JOIN OCRD T1 ON T0.CARDCODE = T1.CARDCODE AND T0.DOCENTRY = @list_of_cols_val_tab_del) IS NULL
BEGIN
SET @error = -5001;
SET @error_message = N'U_TEST ON BP MUST NOT BE NULL';
END
END
Frank
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.