on ‎2015 Apr 10 9:34 AM
Hi Gurus,
I'm new in SAP Sourcing 10.0,
How do you add fields to existing queries statements?
Your assistance will be much appreciated.
Regards,
Request clarification before answering.
You need to duplicate a standard query to add your fields and map this new query in place of the old one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Yeshwanth, Just did that now. But I am getting an error please have a look at the screen shots and see if you can assist with the error I'm getting. I duplicated the query on the first image and added the line on the second image and the third picture has the error I'm battling with.
Your assistance will be highly appreciated.
Regards,
Image 3
.
Image 1
Hello,
The problem is that optional tokens (<%AND%> or <%AND_OP%>) cannot work with the '?' parameter marker. They can only work with Named Parameters.
Please check Documentation for Query Definition:Filter Prompts.
I'm also unsure why you need it as an optional parameter. It will also work if you use the AND clause as in the original query:
AND (<%SCHEMA%>.<%CHECK_COLLAB_MGR(T1.OBJECTID, 9999101, ?)%> = 1)
PS: you also have an extra dot (.):
Bogdan
SELECT <%RESULTS%> FROM <%SCHEMA%>.FCI_UDEF_BIZDOC1 T1
LEFT OUTER JOIN <%SCHEMA%>.FCI_MAS_INTERNAL_CAT T4
ON T1.INT_CAT_OBJECT_ID = T4.OBJECTID
<%DYN_JOIN%>
WHERE T1.CONTEXTID=<%CONTEXT(userdefined.bizdoc1)%>
<%AND_OP(<%SCHEMA%>.<%CHECK_COLLAB_MGR(T1.OBJECTID, 9999101, <%?(Check)%>)%> = 1)
<%AND_OP("UPPER(T1.DISPLAY_NAME)",<%?(T1.DISPLAY_NAME)%>)%>
<%AND_OP("UPPER(T1.DOCUMENT_DESCRIPTION)",<%?(T1.DOCUMENT_DESCRIPTION)%>)%>
<%AND_OP("UPPER(T1.IS_TEMPLATE)",<%?(T1.IS_TEMPLATE)%>)%>
<%AND_OP("T1.INT_CAT_OBJECT_ID",<%?(T1.INT_CAT_OBJECT_ID)%>)%>
<%AND_OP("T1.INACTIVE",<%?(T1.INACTIVE)%>)%>
<%DYN_FILTER%>
<%ORDERBY%>
Check this query. Also add a new filter
Use this query. Don't change the query. I could see that you used AND_OP.
SELECT <%RESULTS%> FROM <%SCHEMA%>.FCI_UDEF_BIZDOC1 T1
LEFT OUTER JOIN <%SCHEMA%>.FCI_MAS_INTERNAL_CAT T4
ON T1.INT_CAT_OBJECT_ID = T4.OBJECTID
<%DYN_JOIN%>
WHERE T1.CONTEXTID=<%CONTEXT(userdefined.bizdoc1)%>
AND (<%SCHEMA%>.<%CHECK_COLLAB_MGR(T1.OBJECTID, 9999101, <%?(Check)%>)%> = 1)
<%AND_OP("UPPER(T1.DISPLAY_NAME)",<%?(T1.DISPLAY_NAME)%>)%>
<%AND_OP("UPPER(T1.DOCUMENT_DESCRIPTION)",<%?(T1.DOCUMENT_DESCRIPTION)%>)%>
<%AND_OP("UPPER(T1.IS_TEMPLATE)",<%?(T1.IS_TEMPLATE)%>)%>
<%AND_OP("T1.INT_CAT_OBJECT_ID",<%?(T1.INT_CAT_OBJECT_ID)%>)%>
<%AND_OP("T1.INACTIVE",<%?(T1.INACTIVE)%>)%>
<%DYN_FILTER%>
<%ORDERBY%>
New Filter
Filter Tab
If you still face issues then please attach the screenshots from your system like the ones which i did.
Hi Sabelo,
You can view all the queries in the system under the Query definiton and search *
You can go to any Master Agreement/Subagreement (for an example) and click on Reference guide at the top right corner to view the class details. If you click on schema view you can get the column names and the table name corresponding.
Regards,
Yeshwanth K.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.