on 12-18-2018 5:27 AM
Hello -
I'm trying to utilize the SQL function in a simple Information Steward rule:
BEGIN
SQL('IS_STAGE', 'SELECT matnr, mtart, mfrpn, mfrnr FROM dbo.MARA_EXT WHERE mtart = \'ZRSA\'');
END
But I keep getting the same syntax error despite using the same syntax as SAP's user guide:
"Mismatched expression <left parenthesis>, expecting <=>. (COR -10608)"
Any help would be appreciated. We'd like to use the SQL function to build rules in the future but if this is not possible, that'd be great to know as well.
Thanks
You must assign the result of the SQL function to a variable, e.g.
$MATNR = SQL('IS_STAGE', 'SELECT matnr FROM dbo.MARA_EXT WHERE mtart = \'ZRSA\'');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, the impact on performance will be high. There is a round-trip to the database for every record validated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply - I figured it was something relatively simple. As a follow up, does using the SQL function have a time impact on how long it takes the rule to be scored and view results? I was able to get the above statement to validate and am expecting about 1300 lines but it seems to take much longer than I would've thought.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.