Field based authorization in Query SQ01
Hi SAP Gurus
I have made a query via SQ01 . Now i have assigned two users to execute the query but both these users are from different companies and able to execute the query for another company also which is not correct .
What i want to do is to restrict company code in accordance to user id of the respective person .
We do not have an abapper currently ? Can anyone help me with this ?
Regards
Hitesh
Hi,
You can restrict the users from accessing the query from infoset with standard/custom authorization authorization for company code.
if company code selection field is defined inside the infoset,then authorization check can be implemented in at selection screen event inside the infoset.
if the company code selection field is defined in query level,then we can implement authorization check at start-of-selection event in infoset.
Regards
Shibino
Similar Messages
-
Combobox user field based on a query
Hi,
How to create a combobox user field based on a query?
ThanksI think that only way is through SDK programming. Create combo and fill it with values which returns query.
-
Table Maintenance - field based authorization.
Hi,
I have created a ztable and generated a table maintenance for the same.
There are a few fields that have to be input enabled or disabled, based on authorization objects; some users should be able to enter values and some, not.
Need some direction, kindly advise.
Thanks,
SheldonHi Sheldon,
You can achieve the above mentioned functionality by checking the AUTHORIZATION assigned to the user. You have to check the AUTH OBJECT in the PBO Module and then you have to make the Screen Fields Input enable or disabled.
But, in the generated screens, you have to do your own module pool programming and you have to do the same in your own set of INCLUDE Programs. The INCLUDE Programs generated by the TMG as READ ONLY and hence you cannot modify them. Also, make sure that you take a complete backup of your code as any change and modification will lead to regeneration of the screens and hence will delete all the user code.
Hope this helps.
Thanks,
Samantak. -
Field level Authorization configuration in SAP BO issue !!!
Hi gurus,
I want to create field level authorization at query level and use the same at BO web Intelligence. (Ex if i h ave company code as A,B,and C. and if i have created a rolehe users where only A and C is assigned so when i crreate a webi where users should only able to select comapny code as A and C only.)
Now i want to know the steps to configure the same in BO for roles import and SAP authentication setting.Please do tell the pre-requisites .I got lot of links but am still confused.
So please provide exact steps and setting to configure the same.
Thanks &Regards,
Montz
Edited by: montz2006 on Jun 27, 2011 9:05 PMAUTHORITY-CHECK OBJECT 'S_TABU_LIN'
ID 'ORG_CRIT' FIELD 'MOLGA'
ID 'ACTVT' FIELD '03'
ID 'ORG_FIELD1' FIELD '10'
ID 'ORG_FIELD2' FIELD '*'
ID 'ORG_FIELD3' FIELD '*'
ID 'ORG_FIELD4' FIELD '*'
ID 'ORG_FIELD5' FIELD '*'
ID 'ORG_FIELD6' FIELD '*'
ID 'ORG_FIELD7' FIELD '*'
ID 'ORG_FIELD8' FIELD '*'.
IF sy-subrc NE 0 .
MESSAGE e000 WITH 'No Authorization for area' v_text.
ENDIF.
Use S_TABU_LIN authority object for field level authorizations. -
Adding additional fields in Sql Query (SQ01)
Hi..
please tell me all the steps to use additional fields option in sap query (transaction code: SQ01)? can i use mandt field as additional field?
Thanks and Regards
Sri.Hi,
You can add it in infoset using extra button.
Here you can add the filed and the respective code for this field and add this in SQ01 in oytput list.
Thanks
Ajay -
Add calculated field (Query - SQ01)
Hi to all,
I would know how can i add a calculated field to a Query (SQ01) ?
Can you give me an example of abap code to insert in CODING section ?
thksHi,
My understanding about your question is you want to display the total for two standard fields in a table,
1) Personalize the table and make true for the property Total.
2) If you want to calculate both the column total,
Add a MessageStyledText via personalziation to the page, and extend the controller
and in the ProcessRequest
Get the handle of the AM and then ur attributes VO Attributes and traverse through the VO rows and get the total of both the columns
and set the value to the newly created MessageStyledText.
Let me you want any sample code for the second step.
Thanks.
With Regards,
Kali.
OSSi. -
How to Hide Empty Column In SAP Query (SQ01)
I was crated a report in sq01 based on business requirements , but there are some fields without any content , in sq01 if you select one of output fields in the right side of the screen in the left side you can see "List Fields" T in the list fields there is a check box , the name is "Only display field if <> 0 " , but when i check it, it doesn't work , guys is there any one to help me to eliminate column without content , in the result of sap query (sq01) ??
Please give reference (or hyperlink) to 10 Useful Tips on Infoset Queries (original document)
Regards,
Raymond -
Bold a single row in a Report based on SQL Query
Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?
One way to do this is to add a hidden column to your report which contains the formatting value, for example:
select empno
, ename
, sal
, decode(empno,1,'font-weight:bold','font-weight:normal') style
from emp
Hide the STYLE column.
Then you can use this column for each column in Column Formatting > HTML expression in this way:
<span style="#STYLE#">#SAL#</span>
Unfortunately you have to do this for each colum you want to appear bold.
good luck,
Dirk Dral -
Adding New Fields to a BEx Query does not show up in the CR field explorer
This could be a silly question.
I have a CR report based on a BEx query. I had to add a couple of new fields to the BEx query, and when i want to add those fields to the CR report, I don't see them even after I do a refresh in the field explorer.
How do i see this new fields in the CR report?
Help Please
ThanksHi,
you can open the report and go to the menu Database > Verify Database.
that should add the new fields to the list of fields in CR
Ingo -
Content presenter: content source based on a query resulting in error
Hi all,
I am using a content presenter taskflow showing content based on a query. After some changes were made to the Webcenter Content instance (extra metadata field, extra profiles) the query is resulting in an error. In my WC_Spaces log I see the following message:
Caused By: oracle.webcenter.content.integration.RepositoryException: Jun 13, 2012 11:15:11 AM oracle.webcenter.content.integration.spi.ucm.search.SearchService search
SEVERE: An error occurred when searching repository WebCenterSpaces-UCM. When calling service GET_SEARCH_RESULTS, as user weblogic, at timestamp 6/13/12 11:15 AM, received status code -32. The search was Search[repositoryId=WebCenterSpaces-UCM, max to return=100, useFullTextSearch=true, useCache=true, sort="toProperty('dDocTitle') ASC", fullText="
Metadata criteria((cm_contentType equals IDC:Profile:qblIntranetArtikel)AND(xqblGroep [any] equals Quobell)AND(xqblIntranetSubGroep [any] equals Opleidingen))
isOr=false"] and the parameter map was {ResultCount=51, FolderPathInSearchResults=1, SortField=dDocTitle, IdcService=GET_SEARCH_RESULTS, SortOrder=ASC, vcrAppendObjectClassInfo=1, StartRow=1, QueryText=(xqblGroep <matches> `Quobell`) <AND> (xqblIntranetSubGroep <matches> `Opleidingen`), vcrContentType=IDC:Profile:qblIntranetArtikel}.
The profile qblIntranetArtikel I am using already existed before the change were made and the query worked fine then.
In WCC I see the following error:
(internal)/6 06.13 11:15:10.272 IdcServer-551 -1 exception backtrace:java.lang.ArrayIndexOutOfBoundsException: -1(internal)/6 06.13 11:15:10.272 IdcServer-551 at java.util.Vector.get(Vector.java:696)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.data.DataResultSet.getStringValue(DataResultSet.java:2183)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at collections.CollectionFilters.doFilter(CollectionFilters.java:95)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:115)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.Service.executeFilter(Service.java:4095)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.SearchService.doResponse(SearchService.java:2081)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.Service.doRequest(Service.java:1956)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
(internal)/6 06.13 11:15:10.272 IdcServer-551 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
services/3 06.13 11:15:10.274 IdcServer-551 !csUserEventMessage,weblogic,CIS!csSystemCodeExecutionError java.lang.ArrayIndexOutOfBoundsException: -1services/3 06.13 11:15:10.274 IdcServer-551 at java.util.Vector.get(Vector.java:696)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.data.DataResultSet.getStringValue(DataResultSet.java:2183)
services/3 06.13 11:15:10.274 IdcServer-551 at collections.CollectionFilters.doFilter(CollectionFilters.java:95)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:115)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.Service.executeFilter(Service.java:4095)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.SearchService.doResponse(SearchService.java:2081)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.Service.doRequest(Service.java:1956)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
services/3 06.13 11:15:10.274 IdcServer-551 at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
services/3 06.13 11:15:10.274 IdcServer-551 at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
When I select a single item to be shown in the content presenter taskflow, I works fine. It also works fine when showing all documents in a folder.
Does any body have an idea what might be the problem I am facing and how to fix it?
thanks in advance,
HaroldHi all,
I found what caused the error. Someone had set the CollectionID metadata field in WCC to non-searchable. This resulted in an error in the CollectionsFilter.
Setting the field back to searchable in WCC solved the problem.
regards,
Harold -
Adding additional fields to an Infoset Query
Hi Experts,
I have added a couple of additional fields to an infoset query using SQ02.
I have also written code for filling in the fields.
I have also added them to some Field Groups.
Despite this, when I run the query, they are not being displayed in the output list.
What could be the reason for this?
Kindly help with your inputs.
Thanks in advance.
Regards,
Keerthigoto sq01,
give the query name...
goto change.. just below output, you have a drop down for field group and field catalog. select field catalog.
select the fields you want to show in output -
Hi guys,
I want to make a ABAP Query via SQ01on SAP ECC.
First i had created an infoset, that only based on one table.
My requirement is to fetch alle data from this table grouped by customer number.
Using an sql statement is this very easy to do, but in i had trouble making this in SAP (SQ01):
SELECT CUST_ID, COUNT(ORDERID)
FROM
TABLE
WHRE CONDITIONS
GROUP by CUST_ID
HAVING COUNT(ORDERID) > 1
My question is where to put my requirement in order to get result using standard ABAP query SQ01.
I will really appreciate your help.
nabilHi,
Welcome to SDN.
This is not possible exactly with ABAP Query but can be easily done by ADHOC query. Using Set operation A-B.
Check the links for ADHOC Query -
<a href="http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc">http://www.sap.cmich.edu/fihr/hr/adhoc-query.doc</a>
Regards,
Amit
Reward all helpful replies. -
Adding Selection Options Fields in Report(Using Query)
Hi,
how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which we can add all the selection option given by user.
Anybody can help me..?
Regards
lijo JosephDo you have anything defined in the 'Calcs' section?
If so, any fields returned by the query that are not included in the calculation will be automatically added to the Group fields (using the same logic as required with calculations/group by in any SQL query). The fields won't be able to be removed from the Group list unless the Calc is also removed. -
ABAP Query (SQ01) Challenge
I asked this question last time as well but with no positive/helpful answer. I need to develop a query ( SQ01) in which the user just wants to see when was the most recent posting done in the given G/L account. If i pull posting date it will give me all the dates in chronical order or so which i dont really want.
Lets get your gray/sap matter working
THankssameer
if you know how to create query.
code is
Select requred data from BSIS into internal table (I_BSIS).
Sort I_BSIS by key field date desending.
when you sort this you will get the latest record in first by date.
take that date in one temp field.
LOOP AT I_BSIS.
AT END OF key field
SUM amount .
move both date and sum amount to final internal table.
ENDLOOP.
At last take final internal table and use in below FM
WS_EXCEL.
you will get output.
Pls. reward if helpful -
Change the description of a field in a SAP QUERY
Can i change the description of a field in a SAP QUERY report in the output of the report.or only the standard descriptions can be displayed.
Edited by: mysap query on May 12, 2009 7:23 AMHI,
in query maintenance (sq01) you can change the text of the field at the selection screen (change the selection text in the screen where you choose the selection fields) and the header text in the output list (basiclist maintennace , go to "basic list header", double-click each header field to maintain the text). This change is only for the particular query. No ABAP-er required to do so.
BR Christian
Maybe you are looking for
-
How to find out what is the lock key for the computer
How to find out what is the lock key for the computer?
-
Agent disappeared automatically and it appeared in pending management after 6 months.
We had a server (Windows server 2003 64 bit) which was installed and was working fine. Suddenly it disappeared automatically and it appeared in pending management after 6 months. We noticed it only when it came to pending management that the server d
-
Mising GL account only in 4.7 this error not coming in 4.6 upgradation
Hi We are doing upgradation project 4.6 to 4.7.. Here in staging server while saving sales order we are getting incompletion log Due to missing Gl account .. Environment Analysi Account determination kfoi00 missing Gl account for Condition t
-
ITunes Movie Library - pros, cons, suggestions
Mainly I am writing this post due to the fact that I could not find anything on title suggestions. Alot of the titles that I have been searching for have failed to produce, and I just had a couple of questions. I am new to the iTunes Store however I
-
FI-SL: create an user exit to get the "name of the group account"
Hi, I'm creating a special ledger and have to add 2 informations: - name of the general account - name of the group account The table I se is ACCIT_GLX. In this table, I can't get the name of the general and group accounts directly. I guess I have to