APEX - how to restrict data

Hi,
I am a new bee and looking for a way to restrict data (in a report) based on user type...
as an example, I have a billing table with customer, product and sales rep details...
I want my sales reps to see only details where they were involved in the sales... where as, sales manager should be able to see the details associated to the sales reps who report to him/her...
Thanks in advance

Hi,
This might help you
Re: Authorization to particular group of users
Br,Jari

Similar Messages

  • How to restrict data in reports for different users...

    i created a monthly_sales report on XYZ_SALES_FACT table
    i have to give restriction on reports based on the users.
    i.e. user_1 will access only NORTH region sales info on monthly_sales report
    user_2 will access only SOUTH region sales info on monthly_sales report etc.
    Note: my client is not agreeing to create multiple reports based on the user/region.
    how i have to give user restriction on report based on the users?

    Hi,
    You can create a VPD policy and then create a login trigger and pass SSO client_indentifier or database session_user (use if/then/else to protect both)
    You can check here for the VPD/login trigger.
    Disco Config Guide
    http://download.oracle.com/docs/html/B13918_03/security2.htm#sthref1002
    OTN articles
    http://www.oracle.com/technology/obe/10gr2_db_vmware/security/vpd/vpd.htm
    http://www.oracle.com/technology/oramag/oracle/04-mar/o24tech_security.html
    You can also use secure views, mandatory conditions in the EUL, etc.
    Some other related forums entries:
    Re: Using VPD with Oracle Discoverer without SSO
    Re: Restrict Data for a user without VPD
    May want to search, likely many others on the subject.
    Should give you a good place to start.
    Regards,
    Steve.

  • How should restrict data for particular month?

    Hi Experts,
    How should retrieve data for particular month without where condition.

    Hi,
    You must be having Month Object right in your Webi?
    User will be given opportunity to Select his/her required [Month]
    Create variable as =Userresponse("Enter value for Month")same text as you are giving in the Prompt text....Name it as [UMonth]
    Go to analysis tab..Filter..Add filter...[Month]=[UMonth]
    always this report will run for the month user require

  • How to restrict data by using a variable in webi

    Hi Gurus,
    My users need to see only previous day data when they open the webi but should have ability to view older data later.
    How can I do that?
    I tried =MAX(Day([Creation Date]) In Report)
    But its not giving me right results.
    Any suggestions?
    Regards
    Aj

    Sorry..for late response.
    Answers to your questions:-
    Previous day to current date.
    I tried to follow steps given in the following link but failed as we have Teradata as data source and I dont know how to write a syntax for teradata similar to what is explained by Dave.
    http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
    Regards

  • How to restrict data for selection

    Hi, folk,
    I've faced with the following issue.
    I have set of items. There are, for example, income items and expense items.
    Items are distinguished by value of attribute.
    According to business process, planning for income and expense items is quite different. Due to this reason I've created two planning folders to process ones.
    Item was placed into header of planning format.
    Before planning I should select item. More over, for income planning I should select item from income subset.
    So, how to based on value of attribute I can restrict items for selection in the planning folder.

    Easier impossible,
    Rather than using a variable of type attribute I would use an variable of type exit.
    The exit returns the full list of item in income or expense. (This depends on another variable, that could be a simple digit base or based on some other infoobject).
    The variable should be assigned to your level and also available in the planning folder for selection.
    The user will see the full list values and select the one he nedes to plan.
    I hope it's clear.
    Cheers,
    Alberto

  • How to restrict data from tables in a view cluster

    Hi,
    I have 5 Z* tables, Company code is the common code in all of these.
    I have created a view cluster on these five tables.
    My requirement is to viewcluster should display the data of the user's company code.
    When i see the data in SE54 it is showing the proper data(i.e data which is related to users company code) for some of the tables.
    And displaying all company codes data for some of the tables.
    What can be the issue here ?
    Do we need to map the data from proper data displaying tables to these tables ? if so How to do that ?
    Please help on how i can solve this issue.
    Regards,
    Sunil Tata.

    Here is a small utility that can be used to copy and paste between a table and Excel.
    I have been obliged to slice the llb into small chuncks for internet technical issues. Sorry...
    CCMessage Edited by chilly charly on 04-02-2005 03:21 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Copy.zip ‏24 KB
    Paste.zip ‏22 KB
    CopyPaste example.zip ‏11 KB

  • How to restrict data that is displayed  in adf query

    Hi all,
    i have a VO with query criteria, which i have added to the jsf page as adf query panel with table. There may be particular queires that return large number of records. Suppose i want to restrict the number of records being displayed to 10,000. Is this possible with jdeveloper 11g? How can it be done? pls advice.
    Thnx,
    Nad

    Hi Nad
    You can do this, open the VO Editor go to sql statement option add this code inside the where clause:
    and rownum <= 10000 -- limit your query.
    Good Luck

  • How to restrict data for certain users (brokers) in CRM

    Hi Team,
    We need to restrict brokers on their ability to 'see' and create trade promotions for only a given set of customers.
    Example:
    Broker Joe Smith can only see through t-code BP 3 customers, even though their are 10 customers created in the CRM system.
    Same goes for the t-code CRM_MKTPL (trade promotions), how do we restrict Joe Smith from creating promotions for only those 3 customer and not the other 7 customers?
    Any help is appreciated.
    Has anyone restricted any transaction like this before?
    Does it need ABAP programming? or does it need additional security roles?
    Thanks,

    The access control engine in CRM, is probably your best bet for this option.  I have not used it, but we did evaluate the use of the product.  I know this product works in BP, but I have not looked to see whether it hooks in CRM_MKTPL.
    Do a search on ACE in this forums or in the CRM help documentation.  Try this link for some basic information
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/a9/04c42a9e207545b47a32d1d05f53c3/frameset.htm
    Good luck,
    Stephen

  • How to restrict date flow to sales order

    i want to keep the required delivery date field blank when a sales order is created with reference to quotation.
    how to do it?

    Hi Santhosh,
       Use the badi CRM_SALES_BADI method Merge to implement your code.
    Regards.
    Manuel

  • How to restrict date

    I have a select option to choose date range,
    s_dat-high should not be more than 2 days from s_dat-low.
    How to do this

    report  zrich_0001.
    select-options: s_datum for sy-datum.
    at selection-screen.
      read table s_datum index 1.
      data: days type i.
      days = s_datum-high  - s_datum-low .
      if days > 2.
        message e001(00) with 'Range can not be > 2 days'.
      endif.
    Regards,
    RIch Heilman

  • How to restrict Date field entered in a text field should be of MM/dd/yyyy

    Hi,
    I have an text field for Date entry,the Date format is MM/dd/yyyy,while entering the value i want to verify wether the values entered are valid or not,like month should n't be more than 12,date value depends on month should not exceed 30,31 or 28,year should not exceed 9999 like,if not possible at the time of entery i want to stop at least before submission.Right now i am traing to use my own model which extends PlainDocument calss,
    as in the fallowing way.But i t could not stop me to enter the wrong values ,Any help would be appreciated.
    mport javax.swing.text.PlainDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.Document;
    import javax.swing.text.BadLocationException;
    import java.awt.Toolkit;
    * Insert the type's description here.
    * Creation date: (11/26/2001 6:22:14 PM)
    * @author: Administrator
    class DateFormatDocument extends javax.swing.text.PlainDocument {
    * DateFormatDocument constructor comment.
    String sInputMask;     DateFormatDocument(){
    //     sInputMask="MM/dd/yyyy";
              sInputMask="09/30/2000";
    try{
    //     insertString(0,"MM/dd/yyyy",null);
         insertString(0,"09/30/2000",null);
         }catch(BadLocationException ex){System.err.println(ex);}
    public void insertString(int offs,String str,AttributeSet a) throws BadLocationException{
         String sText=super.getText(0,getLength());
         if(sText.length()==0)
              super.insertString(offs,str,a);
              return;
         int len=str.length();
         String sText1 = super.getText(0,2);String sText2 = super.getText(3,5);String sText3 = super.getText(6,10);
         int str1=Integer.parseInt(sText1);int str2=Integer.parseInt(sText2);int str3=Integer.parseInt(sText3);
    //     System.out.println("str1:"+str1);
         if(offs<2 && str1<=12){
         if(len<=2){
                   super.remove(offs,len);
                   super.insertString(offs,str,a);
         else if(offs==2){
              super.remove(offs,1);
              super.insertString(offs,"/",a);
         else if(offs<5 && str2<=30){
              if(len<=2){
                   super.remove(offs,len);
                   super.insertString(offs,str,a);
         else if(offs==5)
              super.remove(offs,1);
              super.insertString(offs,"/",a);
         else if(offs<10 && str3<=9999 ){
              if(len<=4){
                   super.remove(offs,len);
                   super.insertString(offs,str,a);
         else{
              System.err.println("Beep!");
              //Toolkit.beep();
    public void remove(int offs,int len) throws BadLocationException{
         System.err.println(offs + " " + len);
         if(offs<2){
              if(len==1){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
              else if(len==2){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
         else if(offs==2){
              //do nothing
         else if(offs<5){
              if(len==1){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
              else if(len==2){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
         else if(offs<10){
              if(len==1){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
              else if(len==2){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
              else if(len==3){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
              else if(len==4){
                   super.remove(offs,len);
                   super.insertString(offs," ",null);
    }

    <code>
    mport javax.swing.text.PlainDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.Document;
    import javax.swing.text.BadLocationException;
    import java.awt.Toolkit;
    * Insert the type's description here.
    * Creation date: (11/26/2001 6:22:14 PM)
    * @author: Administrator
    class DateFormatDocument extends javax.swing.text.PlainDocument {
    * DateFormatDocument constructor comment.
    String sInputMask; DateFormatDocument(){
    // sInputMask="MM/dd/yyyy";
    sInputMask="09/30/2000";
    try{
    // insertString(0,"MM/dd/yyyy",null);
    insertString(0,"09/30/2000",null);
    }catch(BadLocationException ex){System.err.println(ex);}
    public void insertString(int offs,String str,AttributeSet a) throws BadLocationException{
    String sText=super.getText(0,getLength());
    if(sText.length()==0)
    super.insertString(offs,str,a);
    return;
    int len=str.length();
    String sText1 = super.getText(0,2);String sText2 = super.getText(3,5);String sText3 = super.getText(6,10);
    int str1=Integer.parseInt(sText1);int str2=Integer.parseInt(sText2);int str3=Integer.parseInt(sText3);
    // System.out.println("str1:"+str1);
    if(offs<2 && str1<=12){
    if(len<=2){
    super.remove(offs,len);
    super.insertString(offs,str,a);
    else if(offs==2){
    super.remove(offs,1);
    super.insertString(offs,"/",a);
    else if(offs<5 && str2<=30){
    if(len<=2){
    super.remove(offs,len);
    super.insertString(offs,str,a);
    else if(offs==5)
    super.remove(offs,1);
    super.insertString(offs,"/",a);
    else if(offs<10 && str3<=9999 ){
    if(len<=4){
    super.remove(offs,len);
    super.insertString(offs,str,a);
    else{
    System.err.println("Beep!");
    //Toolkit.beep();
    public void remove(int offs,int len) throws BadLocationException{
    System.err.println(offs + " " + len);
    if(offs<2){
    if(len==1){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(len==2){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(offs==2){
    //do nothing
    else if(offs<5){
    if(len==1){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(len==2){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(offs<10){
    if(len==1){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(len==2){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(len==3){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    else if(len==4){
    super.remove(offs,len);
    super.insertString(offs," ",null);
    </code>

  • How to restrict data showing in the OWL?

    Hi experts:
                   Recently i have met some questions,here is the linkhttp://scn.sap.com/docs/DOC-50111.My manager pushed me too hard,can anybody help me?
    Best Regards
    chaowei

    Hi experts:
                   Recently i have met some questions,here is the linkhttp://scn.sap.com/docs/DOC-50111.My manager pushed me too hard,can anybody help me?
    Best Regards
    chaowei

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • How to restrict a table with its set of data based on a column value in it?

    Hi,
    I have a scenario in which I have to show a set of data of a pivot table by restricting data based on a column value. I am creating BIP report whose source is from BIA ie.RPD. Based on a column value I want to restrict the data being displayed in the table. Since I also want the hidden data in the first table to be displayed in another table in the same report I cannot restrict the data at the query level i.e at RPD or at BIA. For this reason I used
    <?xdofx:if saw3_ = 1?>
    the pivot table
    <?end if?>
    But it does not restrict any data.
    Also I tried using the if condition inside the table before the row level looping happens. But no good show even then.
    How can I forgo this problem?
    Regards,
    The MM

    Hi,
    See : http://download.oracle.com/docs/cd/E12096_01/books/PubUser/T421739T481157.htm#4535373 regarding column and row.
    Regards,
    Colectionaru

  • How to fetch data to APEX Report using stored procedure?

    hi all,
    i am making a report in APEX. user selects two dates and clicks GO button - i have a Stored Procedure linked to that result region so Stored Procedure gets called.
    my stored procedure does the following -
    using specified dates (IN) i do query and put data into a table (this table has been created only for this report) -
    i want to show all these data i entered into the table on my APEX report in the same procedure call. can i use ref cursor to return? how to do that?
    currently, i use another button in APEX which basically fetches all data from table. basically, user clicks one button to generate report and then another button to get report. which is not desirable at all :(
    i m using APEX      3.1.2.00.02 and Oracle 10 database.
    pls let me know if you need further clarification of the problem. thanks in advance.
    regards,
    probashi
    Edited by: porobashi on May 19, 2009 2:53 PM

    Thanks Tony.
    I am not sure what you meant by >> change the report to be based off of a query returning sql statement, no need to keep that table around.... >>
    Here's my stored procedure
    create or replace
    PROCEDURE ABC_PROC (
    START_DATE IN DATE,
    END_DATE IN DATE
    AS
    RULE_REC MTG_OFFICER_FORECAST%ROWTYPE;
    TYPE REF_CURSOR IS REF CURSOR;
    TCUR REF_CURSOR;
    BEGIN
    DELETE FROM ABC_REPORT;
    OPEN TCUR FOR
    SELECT ABC_FORECAST.*
    from MTG_OFFICER_FORECAST , MTG_USERS
    WHERE MTG_OFFICER_FORECAST.NBR_OFFICER = MTG_USERS.NBR_OFFICER AND
    MTG_OFFICER_FORECAST.NBR_INSTITUTION = MTG_USERS.NBR_INSTITUTION;
    LOOP
    FETCH TCUR INTO RULE_REC;
    EXIT WHEN TCUR%NOTFOUND;
    INSERT INTO ABC_REPORT( NBR_OFFICER, OFFICER_NAME, FORECAST_NBR_LOANS, FORECAST_LOAN_AMT, FORECAST_FEES,
    ACTUAL_NBR_LOANS, ACTUAL_LOAN_AMT, ACTUAL_FEES, RATIO_NBR_LOANS, RATIO_LOAN_AMT, RATIO_FEES, NBR_INSTITUTE )
    VALUES ( RULE_REC.NBR_OFFICER, RULE_REC.NAME_LOAN_OFFICER, RULE_REC.NBR_LOANS, RULE_REC.AMT_LOAN, RULE_REC.AMT_FEES,
    ACTUAL_NBR_LOANS, ACTUAL_LOAN_AMOUNT, ACTUAL_FEES, SUCCESS_RATIOS_NBR_LOANS_PERC, SUCCESS_RATIOS_LOAN_AMT_PERC, SUCCESS_RATIOS_FEES_PERC, RULE_REC.NBR_INSTITUTION );
    END LOOP;
    CLOSE TCUR;
    END ABC_PROC;
    Thanks,
    Probashi
    Edited by: porobashi on Jun 2, 2009 11:43 AM

Maybe you are looking for