SAP Query restriction by Company

Dear SAP Experts,
I would like to ask an opinion of how to create a general solution for creating SAP queries regarding this requirement:
1) Create a query via SAP Query (transaction SQ01)
2) Use a pre-created infoset (VBRK-VBRP header-detail connection)
3) Restrict users to see only the data (e.g invoices) where he is allowed to see (based on VBRK-VKORG)
A question would be, how could I assign a SAP ECC user to a certain Sales Organization/Company so that you can have some sort of a master data of which company he belongs to for reporting/query purposes (in the end, which invoices he is allowed see)?
Is there a customizable way of linking a user to sales organization/s so that in the end I can use this filter in the SAP Query? Also, is there a way that this is generally done so that for all other queries which require Sales Organization/Company filtering (e.g. VBAK, other Finance reports), this is done "on the fly"/customized?
Your inputs are appreciated, thanks in advance.

Hai
If u r Experience Candidate for 2+ years .Company will  Sponcer the Certification wilth low Cost
Around Rs 35000.(INR).
https://websmp204.sap-ag.de/~sapidp/011000358700003517532005E
http://www.sap.com/services/education/certification/global-certification-policy.epx
http://www.sapcertification.info/viewpage.php?page_id=40
http://sapcertification.info/news.php
Assign Points if it is Useful
Thank u
Naveen

Similar Messages

  • SAP Query- Reporting on SOD

    Hello everyone,
    I need some help in creating a report in SAP Query based on user's processing Vendor Invoices and also Vendor Payments?
    I would like to have the following columns to report on:
    USNAM u2013 User Name (from BKPF)
    BLDAT u2013 Document Date (from BKPF)
    BELNR u2013 Document Number (from BKPF)
    BUKRS u2013 Company Code (from BKPF)
    BLART u2013 Document Type (from BKPF)
    LIFNR u2013 Vendor Number (from BSEG)
    NAME1 u2013 Vendor Name (from LFA1)
    WRBTR u2013 Amount (from BSEG)
    Vendor Invoice- I would like to restrict to only document type fields that are KA,KR,RC,RE,RN and ZE
    Vendor Payment- I would like to restrict to only document type fields that are ZV,ZS,ZP,ZH and KZ
    I have a few questions:
    First is i am using a logical database (BRM as BSEG cannot be joined) to select my columns however i do not know how to pull the 'Vendor Name' from LFA1. I understand that this table is not in BRM but is there a way to add any extra tables to work along side the logical database?
    Secondly, i have managed to report on all columns except the vendor name (from LFA1) and although i can restrict my output data based on document type fields, i need the report to only show the user's that have process vendor invoices & vendor payments only?
    At the moment i have a list of restricted document type but cannot seem to jsut show only those users who have processed both in both processes. For example User A has processed a vendor invoice (which is shown) and the same user may have processed vendor payment (after searching through the long output list!)
    I want all users who have doen one of the other process and only interested in those that have done both?
    Any feedback is much appreciated and pelase let me know if i have not explained this problem properly (as i am a newbie in this area)
    Many thanks
    Amar

    Hi Pascal,
    Since the IT2501 is a "Simulated Time Infotype" you cannot look at the data in it, but you can confirm the data from the ZL cluster and the data from the employee.  Since it is only this employee or a few employees, it is probably not the configuration of the time buckets for the IT2501, but you may want to make sure all time times are captured as you want.  Then look at the time entries for this individual or individuals.  Did they enter a time type that was not expected or configured?  Is all their time approved and passed through Time Evaluation?  Finally check the Master Data for the employee - is the Planned Working Time (IT0007) infotype correct or has it been recently changed?  Is he in a special Cost Center (IT0027) or Project that is captured differently for time purposes? 
    Since it just one or a few individuals, I would suspect the Master Data and some inconsistant entry that affects the time cummulation for the IT2501.
    Paul

  • Default value for SAP Query - SQ01

    Hi Expert,
    I made a query for GL master data, and I have a selection criteria on chart of account, but since the chart of account for all company codes are same; therefore I would like to default the chart of account selection criteria to my COA.
    I read through question/answer in the following thread: SQ01 - restriction on Infoset but solution given by Lalitha Manda ... I cannot get the given selection path.
    Kindly advise, and I am using ECC6.0.
    Thanks,
    sbmel

    Hi,
    You need to go to the infoset of the query (transaction SQ02), or in SQ01, after input of the SAP Query, click on 'Infoset Query'.
    In the right frame You will get a list of fields for selection. There You can default the value of selection field GL Account in the column 'Value'.
    Regards,
    Birendra

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • SAP QUERY -logical data base ADA

    I have created a SAP Query with logical data base ADA,I have selected four tables in it.Do i need to link these tables if yes..where and how?The report is for fields in asset master data.
    .But i get below error when i try to genaret the output :
    Fields from parallel tables within a line
    Line: 01
    Field: Asset description
    (ANLT-TXT50, table ANLT)
    Field: License plate no. of vehichle
    (ANLZ-KFZKZ, table ANLZ)
    i get such similar five messages but they are warning..when i execute with warning however i get the fields with description but not with Value.Ex:i get asset description and not Asset number as required.

    You don't have to link them, they ar linked that is the power of a logical data base
    To get the text in your report you need the key fields
    Like
    (Lanque Key)
    company code
    asset number
    Asset sub number
    Go to info sets and look to the standard ones like /SAPQUERY/AM01

  • Help needed on creating a SAP query

    Hi All,
    Can somebody give me the step by step procedures of creating a SAP query and Infoset.
    My requirement is to display asset master details with Asset number or Asset class as input.
    Any pointers or links to create an infoset and query will br highly helpful.
    Thanks,
    Arun

    Here are couple of fields you might be needed :
    AGKO     Cleared Accounts
    ANAR     Asset Types
    ANAT     Asset type text
    ANEK     Document Header Asset Posting
    ANEP     Asset Line Items
    ANEV     Asset downpymt settlement
    ANKT     Asset classes- Description
    ANLA     Asset Master Record Segment
    ANLB     Depreciation terms
    ANLC     Asset Value Fields
    ANLH     Main asset number
    AT02T     Transaction Activity Category- Description
    AT02A     Transaction Code for Menu TIMN
    AT10     Transaction type
    AT10T     Name of Transaction Type
    BKDF     Document Header Supplement for Recurring Entry
    BKORM     Accounting Correspondence Requests
    BKPF     Accounting Document Header
    BLPK     Document log header
    BLPP     Document log item
    BLPR     Document Log Index and Planned Order (Backflush)
    BNKA     Bank master record
    BP000     Business Partner Master (General Data)
    BPBK     Doc.Header Controlling Obj.
    BPEG     Line Item Total Values Controlling Obj.
    BPEJ     Line Item Annual Values Controlling Obj.
    BPEP     Line Item Period Values Controlling Obj.
    BPGE     Totals Record for Total Value Controlling obj.
    BPJA     Totals Record for Annual Total Controlling Obj.
    BSAD     Accounting- Secondary Index for Customers (Cleared Items)
    BSAK     Accounting- Secondary Index for Vendors (Cleared Items)
    BSAS     Accounting- Secondary Index for G/L Accounts (Cleared Items)
    BSEC     One-Time Account Data Document Segment
    BSEG     Accounting Document Segment
    BSID     Accounting- Secondary Index for Customers
    BSIK     Accounting- Secondary Index for Vendors
    BSIM     Secondary Index, Documents for Material
    BSIS     Accounting- Secondary Index for G/L Accounts
    CEPC     Profit Center Master Data Table
    CEPCT     Texts for Profit Center Master Data
    COBRA     Settlement Rule for Order Settlement
    COBRB     Distribution Rules Settlement Rule Order Settlement
    COKA     CO Object- Control Data for Cost Elements
    COSP     CO Object- Cost Totals for External Postings
    COSS     CO Object- Cost Totals for Internal Postings
    CRCO     Assignment of Work Center to Cost Center
    CSKA     Cost Elements (Data Dependent on Chart of Accounts)
    CSKB     Cost Elements (Data Dependent on Controlling Area)
    CSLA     Activity master
    FEBEP     Electronic Bank Statement Line Items
    FPLA     Billing Plan
    FPLT     Billing Plan- Dates
    GLPCT     EC-PCA- Totals Table
    KNA1     General Data in Customer Master
    KOMK     Pricing Communication Header
    MAHNV     Management Records for the Dunning Program
    REGUT     TemSe - Administration Data
    SKA1     G/L Account Master (Chart of Accounts)
    SKAT     G/L Account Master Record (Chart of Accounts- Description)
    SKB1     G/L account master (company code)
    T003T     Document Type Texts
    T007S     Tax Code Names
    T087J     Text
    TAPRFT     Text tab. for investment profile
    TKA01     Controlling Areas
    TKA09     Basic Settings for Versions
    TKVS     CO Versions
    TZB0T     Flow types text table
    TZPAT     Financial Assets Management product type texts
    VBSEGS     Document Segment for G/L Accounts Document Parking
    VTBFHA     Transaction
    VTBFHAPO     Transaction Flow
    VTBFHAZU     Transaction Activity
    VTBFINKO     Transaction Condition
    VTIDERI     Master Data Listed Options and Futures
    VTIFHA     Underlying transaction
    VTIFHAPO     Underlying transaction flows
    VTIFHAZU     Underlying transaction status table
    VTIOF     Options Additional Data
    VWPANLA     Asset master for securities

  • MSS custom query restrictions (table/view/join)

    Dear all,
    We are currently trying to integrate a sap query which also gathers data from event management. This query is based on an infoset and a table view and not on a logical database.
    When executing the query within the portal (generictableview iview) we get the error message "No data records found". While debugging the function module HR_INFO_GET_USING_QUERY which is called here we found out that the error message is generated because no logical database is retrieved.
    Therefore my question is: are mss queries in portal restricted to queries which are based on logical databases only or can we create and use queries in portal which are based on table/views/joins?
    Any help on this issue is greatly appreciated!
    Thanks already very much in advance,
    Helga

    Hello MIG,
    I am still searching and I have not found a solution yet.
    Interestingly enough the query can be executed without any problems in R/3 but not from the portal iView. Therefore I am wondering if it is only a restriction on the MSS side.
    @forum users: did anyone of you face this problem and has a solution to it?
    Thanks very much for any input on this!
    Kind regards,
    Helga

  • Error in the SAP query for Assets?

    Hi,
    I am trying to make 2 queries related to the assets but it is not selecting the data may I know why and where I am doing wrong.
    I have joined the tables ANLA, ANLC, ANLP and ANLB.
    Fields that have been selected are as follows:
    Asset Subnumber ANLA-ANLN2
    Asset Class ANLA-ANLKL
    Asset description ANLA-TXT50
    Company Code ANLA-BUKRS
    Serial number ANLA-SERNR
    Main Asset Number ANLA-ANLN1
    Asset Subnumber ANLA-ANLN2
    Asset Class ANLA-ANLKL
    Asset description ANLA-TXT50
    Company Code ANLA-BUKRS
    Serial number ANLA-SERNR
    Main Asset Number ANLA-ANLN1
    Fiscal Year ANLC-GJAHR
    Ordinary depreciation posted in the current year ANLC-NAFAG
    Planned ordinary depreciation for the year ANLC-NAFAP
    Accumulated ordinary depreciation ANLC-KNAFA
    Cumulative acquisition and production costs ANLC-KANSW
    Asset Subnumber ANLA-ANLN2
    Asset Class ANLA-ANLKL
    Asset description ANLA-TXT50
    Company Code ANLA-BUKRS
    Serial number ANLA-SERNR
    Main Asset Number ANLA-ANLN1
    Fiscal Year ANLC-GJAHR
    Ordinary depreciation posted in the current year ANLC-NAFAG
    Planned ordinary depreciation for the year ANLC-NAFAP
    Accumulated ordinary depreciation ANLC-KNAFA
    Cumulative acquisition and production costs ANLC-KANSW
    Transactions for the year affecting asset values ANLP-ANSWL
    Planned ordinary depreciation for the year ANLP-NAFAP
    Ordinary depreciation posted in the current year ANLP-NAFAG
    Ordinary depreciation to be posted ANLP-NAFAZ
    Asset acquisition year (currently not used) ANLP-ZUJHR
    Depreciation calculation period ANLP-PERAF
    Original useful life in years ANLB-NDURJ
    Depreciation key ANLB-AFASL
    Please tell me where SAP query is no working and what shall I do to make it work.
    Thanks and regards
    Nitin

    Thanks !!!!

  • Problem in transporting generated program of SAP Query

    <h5> Hi all,
    I created a SAP query in development server and generated the program for the same, I transported the infoset and the user group etc. to the next server but couldnot transfer the program, since the program is not a Z Program, so coudlnot save it and capture it in request so that the same can be transported.
    What could be the possible solution for the same????
    Regards, </h5>

    Yep, this gets a bit tricky. Remember that SAP Query is designed as an end-user tool. To this end, the creation of queries could be done in a productive environment. The maintenance of infosets could be restricted to Development systems only. I know that some sites do not allow this.
    Through the use of authorisations, you could appoint an administrator to generate the queries in PRD for the users.
    The name of the ABAP is a combination of the query name, infoset and the client number (I think - going from memory). You could possibly change the package name of the generated program and then attach it to a transport, but it becomes very messy and I wouldn't recommend it.

  • SAP Query: Caseless search for case-senstive dictionary field

    Hi
    I have a question regarding the select options in a sap query. here is the scenario:
    I have a SAP query + infoset. in the selection sreen I have a field from the type MAKTX. this field is a character field that allows upper and lower case. I have the problem that my users provide an input only in lower case e.g. "bottle" and only find the results where bottle is only in lower case. Results with the word "Bottle" they cannot find.
    I am pretty familiar with abap and programing the code to achiev this is not the problem. I just don't know how I can bring my coding and the sap query together. I had 2 ideas:
    a) I make a z-search help and attach it to my select-option in the selection screen. but I don't know if this is possible and where I do that
    b) I put my code into the code-enhancement section in the infoset. but again I am not sure where I have to put it and if there are any restrictions that I have to know....
    c) any other solution will be good as well... maybe somebody has an idea.
    I hope I could make my problem clear. please let me know if you have any idea how I can do that. I don't want to modify the data dictionary object!!.
    thanks in advance - <offer removed by moderator>.
    thanks a lot
    Alex
    Edited by: Thomas Zloch on Oct 6, 2011 8:57 PM

    Use MAKTG instead, in the selection screen. It's has the same value as MAKTX but it's not case sensitive.

  • How many ways we can create authorization for user groups in sap query reports

    Hi Gurus, I am getting a problem when I am assigning users to user group in sap query report .The users other than created in user groups are also able to add &change  the users .So please suggest me how to restrict users outside of the user group.
    Please send me if u have any suggestions and useful threads.
    Thank You,
    Suneel Kumar.

    I don't think it can be done. According to the link below 'Users who have authorization for the authorization object S_QUERY with both the values Change and Maintain, can access all queries of all user groups without being explicitly entered in each user group.'
    http://help.sap.com/saphelp_46c/helpdata/en/d2/cb3f89455611d189710000e8322d00/content.htm
    Although I think you can add code to your infoset and maybe restrict according to authority group, i.e.:
    Use AUTHORITY-CHECK to restrict access to the database based on user.
    Press F1 on AUTHORITY-CHECK to find out how to use it in the code

  • SAP Query not running

    Hi,
    I am doing SAP query, If I select Company Code, i need to get the resule of
    GL a/c, Buss Area, Cost Center, Profit Center
    For this in table joints i taken KNA1, KNB1, SKB1, CSKS
    then also i could not run the report.
    Rgds
    sunfico

    Hello
    When you have chosen a query and a user group on the initial screen, you can execute the query online or in the background.
    Executing Queries Online
    Executing Queries in the Background
    Improving Response Times
    Interactive Functions for ABAP Lists
    Direct Interaction
    Check this link for further notes executing queries
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    regards

  • SAP Query - Searching

    Our company is new to SAP and I am having to create reports using SAP Query. I am learning about Query Areas, User Group and InfoSet .
    I have a query name set up by someone else (I know the transaction code) but do not now where it has been saved.
    How do I search across all areas, groups and InfoSet  to find where this Query has been saved.
    Thanks for helping a very new and inexperienced user.

    when u got o SQ02
    check the >enironment button from the menu  u will drop down list containing the below
    and change the query Areas
    from global to standrad area
    u will get list of the infosets along with the person who created the infoset along with the infoset
    check that one and let me know if u have any issues
    Edited by: Sikindar on Jul 10, 2009 3:05 PM

  • SAP query reports

    why  reports naming contains ==== in sap query reports????

    Dear Changhal,
    Welcome to SDN!
    Do you mean to ask why "====" is in report queries?
    You can create queries by confirming to naming conventions followed by your company.
    Visit [SAP Query|http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb4145455611d189710000e8322d00/frameset.htm]
    Post your queries in relevant Forum.
    Regards,
    Naveen.

Maybe you are looking for

  • View multiple tables (same schema) in Work space in Jdev 11

    IN Jdev 10g, you could open ,ultiple tables at once within a single DB connection. Recently downloaded 11g and whenever I click to view a new table (data, layout, etc) it replaces the current table I was working with with the newly slected table. Is

  • SharePoint Designer 2013 Workflow Fails to open.

    I've been trying for a day or so to get this 2013 workflow to open up in sharepoint designer.  Everytime I get the following error "Field to load this workflow. To correct this problem, restart SharePoint Designer." Then when I refresh the screen I g

  • Url-pattern

    Hi, below is the code for filter url mapping. "<url-pattern>/gbsUploadSummary.jsp</url-pattern>" .I have a problem with this line...its nt executing....can i know the mistake... <filter> <filter-name>DumpFilter</filter-name> <filter-class>com.pwc.web

  • Macbook won't shut down or restart. it freezes at the blue screen.

    first time this happened i didn't notice. But then everytime I shutdown my macbook it freezes at the blue screen until all the battery is dranged, so I have to shut it down by pressing the button. Then I tried to restart it and the same thing happene

  • Rentals not showing up on AppleTV

    Hi - I downloaded 2 movies as rentals on 11th June - both were going to take more than 3hrs (each) which was not normal (I'm on broadband) - couldn't get it to change so I reset the AppleTV (2nd gen) both movies still came up as rentals - I downloade