Select current user tables

Hi,
I'm needing to obtain the list of the TABLES which the current user has some privilege. I'm using the following query for doing that:
SELECT DISTINCT o.object_name
FROM all_objects o, all_tab_privs tp
WHERE o.object_name = tp.table_name
AND o.object_type = 'TABLE'
AND tp.grantee = USER
ORDER BY o.object_name
My problem with this query is the poor performance, and this aspect is critical in my system.
Somebody has any sugestion ?

Your quey will only return tables current user has direct object grants to. It will not return tables user gas grants to via roles or via system privileges. And by using
AND tp.grantee = USERyou are skipping tables current user has access to via public grants.
SY.

Similar Messages

  • Select Current user

    good evening all
    The following query returns results when executed in B1:
    SELECT U_NAME FROM OUSR WHERE INTERNAL_K = $[USER]
    Basically it allows me to select based on the CURRENT user.
    Is there an equivalent command/feature in Net Point?
    thanks
    John

    ok, I've tried to strip my code down to the bare minimum to get the current userID. Here it is...
    <%@ Import Namespace="netpoint.api" %>
    <%@ Import Namespace="netpoint.classes" %>
    <%@ Page Language="C#" AutoEventWireup="true" Inherits="netpoint.classes.NPBasePage" %>
    <script runat="server">
        private void Page_Load(object sender, System.EventArgs e) {
            string userID = ((NPBasePage)Page).UserID;
            if (userID != "") {
                Response.Write(userID);
            } else {
                Response.Write("not logged in!");
    </script>
    This is the error
          5.9.6.43135
    Message      Object reference not set to an instance of an object.
    Source      netpoint
    Stack      at netpoint.common.controls.header.Page_Init(Object sender, EventArgs e)
    at System.Web.UI.Control.OnInit(EventArgs e)
    at System.Web.UI.UserControl.OnInit(EventArgs e)
    at netpoint.common.controls.header.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Control.AddedControl(Control control, Int32 index)
    at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child)
    at netpoint.classes.NPBasePage.OnInit(EventArgs e)
    at System.Web.UI.Control.InitRecursive(Control namingContainer)
    at System.Web.UI.Page.ProcessRequestMain(Boolea

  • Why Wizard does not start when selecting Current User?

    Program does not RUN. Wizard does not open after selecting Option for Current User

    Did you try downloading and running the Firefox FULL installer, '''Firefox Setup 29.0.exe''' ? That will help with problems running the stub installer, which needs to download additional files after you run it.
    You can get Firefox FULL installer here: (choose the Windows download for your language, e.g., English US)
    * https://www.mozilla.org/en-US/firefox/all/
    Once you install Firefox, you may have to run it once with an Administrator account, if the installation was from a limited account. Ref: http://kb.mozillazine.org/Installing_Firefox
    If you install Firefox on a multi-user system where access privileges are restricted, you must run Firefox as a user with access to that location upon installation so that all initial startup files are generated.
    -----

  • Current User & Key Date in Web Reports

    Hi,
    I want to default the current user name & current date (could be different from the varaible key date) in the header or footer of the web report. I tried text elements in the web template where we can default only the variable values entered by the user, or general text which include above two texts along with many other details which are not required by me. I have also tried text variable in the query properties in vein. Could someone give some tips, please.
    I have a formula variable "Current Calender Day". How I can create a text variable from this ?
    Thanks & regards,
    Sheeja.
    PS: I'm a functional guy, so kindly explain in detail if any EXit coding is involved.

    Hi Sheeja,
    If ur looking this option for a web template then please follow below steps for current user name & current date :
    1. Create a Text web item present under the Miscelaneous Tab of web items.
    2. In its properties tab Tick 'Display Text only'.
    3. Select General Text elements For text binding option (Present in Data binding)
    In general text Elements option:
    Make a binding with a data provider.
    For user name select - Current user
    For Current date - Select Last Refresh options.
    Try this, hope this will  help to u.
    Thanks !

  • Query to get objects list for which the current user has 'SELECT' privilege

    Hi,
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
    USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
    ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
    If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
    If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
    From these findings, I have composed below query
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
    Have I got user's all prvilege details? should I look some other system views?
    How to exclude system table privileges details?
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
    What about Public role in Oracle? Should I consider public role here?
    Oracel Version :11g
    I want make this query to work on Oracle 8i or above version
    Thanks

    >
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
    >
    You will need a hierarchical query to do that.
    Try this script for Listing privileges recursively for Oracle users
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html

  • How to list all  tables that belongs to the current user?

    hi all
    "select tblowner,tblname from tables where tblowner in (select user from dual);"
    I want a list of all tables that belongs to the current user. I use the SQL above, but given "no rows selectd",but if
    I replace the subquery with literal,like
    "select tblowner,tblname from tables where tblowner = 'JFMDB');".
    I got the list. why?
    Thnk u very much!

    This looks like a bug that was fixed in 7.0.5.13 and onwards. I can reproduce what you are seeing in 7.0.5.10.0 (Linux x86-64 / Access control enabled instance from root install) but not 7.0.5.13.0 (Linux x86-64 / Access control enabled instance from root install).
    Unfortunately I don't have a bug number to pass on. I can't see anything relevant listed in the Release Notes and I haven't found a likely candidate in our internal listings. This may well have been one that was fixed "in passing" when RnD were working on something similar.

  • How to get number of records in all user tables in one select

    Please advise how to retrieve the number of records in all user tables in one select. I would likt to extract the data to excel file.
    Many thanks,
    Andrew

    You could always analyze the tables:
    declare
    begin
      for X in (select owner, table_name from all_tables
                 minus
                select owner, table_name from all_external_tables) LOOP
          dbms_stats.Gather_Table_Stats(X.Owner, X.Table_Name) ;
      end loop;
    end;
    /Then: Select Owner, Table_Name, Num_Rows from All_Tables ;

  • How to write select query for all the user tables in database

    Can any one tell me how to select the columns from all the user tables in a database
    Here I had 3columns as input...
    1.phone no
    2.memberid
    3.sub no.
    I have to select call time,record,agn from all the tables in a database...all database tables have the same column names but some may have additional columns..
    Eg: select call time, record,agn from ah_t_table where phone no= 6186759765,memberid=j34563298
    Query has to execute not only for this table but for all user tables in the database..all tables will start with ah_t
    I am trying for this query since 30days...
    Help me please....any kind of help is appreciated.....

    Hi,
    user13113704 wrote:
    ... i need to include the symbol (') for the numbers(values) to get selected..
    eg: phone no= '6284056879'To include a single-quote in a string literal, use 2 or them in a row, as shown below.
    Starting in Oracle 10, you can also use Q-notation:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements003.htm#i42617
    ...and also can you tell me how to execute the output of this script. What front end are you using? If it's SQL*Plus, then you can SPOOL the query to a file, and then execute that file, like this:
    -- Suppress SQL*Plus features that interfere with raw output
    SET     FEEDBACK     OFF
    SET     PAGESIZE     0
    -- Run preliminary query to generate main query
    SPOOL     c:\my_sql_dir\all_ah_t.sql
    SELECT       'select call time, record, agn from '
    ||       owner
    ||       '.'
    ||       table_name
    ||       ' where phone_no = ''6186759765'' and memberid = j34563298'
    ||       CASE
               WHEN ROW_NUMBER () OVER ( ORDER BY  owner          DESC
                              ,        table_name      DESC
                              ) = 1
               THEN  ';'
               ELSE  ' UNION ALL'
           END     AS txt
    FROM       all_tables
    WHERE       SUBSTR (table_name, 1, 4)     = 'AH_T'
    ORDER BY  owner
    ,       table_name
    SPOOL     OFF
    -- Restore SQL*Plus features that interfere with raw output (if desired)
    SET     FEEDBACK     ON
    SET     PAGESIZE     50
    -- Run main query:
    @c:\my_sql_dir\all_ah_t.sql
    so that i form a temporary view for this script as a table(or store the result in a temp table) and my problem will be solved..Sorry, I don't understand. What is a "temporary view"?

  • Current selected element of table ( using tree  )

    Hi experts ,
                         I am using a tree by table UI in which master. I want to know text of current selected element of table (which is one of the column of table ) . as table is dynamically expanding or collapsing upon expanding or closing master column.
    so i used follwing code in do modify view to get it
    IWDTable tab =  (IWDTable) view.getElement("Table1");
                        tab.mappingOfOnLeadSelect().addSourceMapping("row", "element");     
    public void onActionOnrowSelect
    (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, int element )
        //@@begin onActionOnrowSelect(ServerEvent)
        //@@end
    but above code also give me current row (an integer value) .
    but its not solving my problem . as current row elemt is always not going to be same row in which table (data source for table).
    can any body have solution ?
    Regards
    abhay

    Hi Abay,
    IWDTable tab = (IWDTable) view.getElement("Table1");
    tab.mappingOfOnLeadSelect().addSourceMapping(IWDTreeNodeType.IWDOnLoadChildren.NODE_ELEMENT,"element");
    datatype of the <b>element</b> should be <b>IWDNodeElement</b>
    Or
    You can use
    IWDNodeElement IWDNode.getTreeSelection()
    Ex: wdContext.nodeA().getTreeSelection()
    Regards
    Ayyapparaj

  • How to find the current User Name and stored in which table

    In which table the current user name (Login) is stored?

    Hi Mohanapriya
    The query provided by Gordon can not run on query generator as the $USER is a runtime variable.
    You need to save it to a query then use it in a FMS(Formatted Search.)
    Just open a form(ex:sales order ), click the field in which you want to show the user name,
    then press ****+F2 or Tools->Search Function->Define,
    Search by Saved query,then assign the save query to the field.
    After that ,you can run the FMS(shift+F2) to get the current user info.
    Regards,
    Syn Qin
    SAP Business One Forums Team

  • No value is select  from  user define  table

    Hi ALL,
                 i am using  B1if , i am sending  data  B1 to  isr , i am using user define table  but problem  no value is select  from  user define  table  .
    my table ID  is @SSRPOD 
    <payload operation="">
         <ns0:MT_POD_B1_System xmlns:ns0="http://xxxx.com/SC/B1/Dlvr/CustDlvr/ExtPrfOfDlvr">
              <POD>
                   <Header>
                        <SalesOrderNumber>
                             <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_SalOrdNo" />
                        </SalesOrderNumber>
                        <ArrivalDate>
                             <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_TaxDate" />
                        </ArrivalDate>
                        <Detail>
                             <DOLineQuantity>
                                  <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Quantity" />
                             </DOLineQuantity>
                             <UOM>
                                  <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Unitmsr" />
                             </UOM>
                        </Detail>
                   </Header>
              </POD>
         </ns0:MT_POD_B1_System>
    </payload>
    I have set following things. 
    Inbound Channel
        scenirio step identifier :z.xxxx
        Inbound Channel(IPO):INB_B1_EVNT_ASYN_EVT
        InboundType:Asynchronous
        Process Trigger:B1Event
        Identification Method: B1Event
        Identification Parameter:n.a
        Identifier:?????                                  
        Identifier Namespace:??????
      can anyone help me?
    Edited by: Sinha_Sinha on Feb 3, 2012 7:47 AM

    Found an authorization object was missing, that enabled the case types to show but hitting the GO button brought a page that can not be viewed in IE.  on to the next hurdle..........

  • Query to select current login user name/id for Oracle 9i

    How do write the sql statement for retrieving the login name/id that i used to login to the database?

    SQL> select uid, user from dual;
           UID USER
             0 SYS
    Bye, Aron

  • Controlling report output based on current user

    Hi all,
    I am building a small app with APEX for a sales team.
    We have the site and app hosted by another company.
    I have built a report showing sales summary for the company. The problem is that the report is showing all sales for all sales people.
    What I want is for the report to show data based on the user that is logged in, so that the user only sees his items.
    In fact, this would be a useful thing to learn for me, because I could use this functionality on several other pager, so this will be a good example for other situations.
    So far I have:
    I have a database table that keeps track of the sales reps.
    Each sales rep in that table is assigned a unique EMP_id, which is an autonumber column of that table, and is also the primary key.
    The table also contains a column named: "User login Name" which is their login ID (the one they use to log into the application.
    Possible solution (I think):
    when user logs into APEX, retrieve their EMP_id from the EMP table based on their login name,
    Hold the EMP_id in a variable for the duration of the session,
    pass the variable to the SQL query for the report in the where clause.
    Is this a good solution? or is there a better way to do this?
    Can anyone advise on how to get this done please,
    Thank you.

    Hi,
    Sorry - I guess I should have said where to create the function!
    You can keep those steps or keep with your own method as both should return the value you need. I usually store the result of that value in G_USER - similar to Tyson's method - when the user logs in and then use :G_USER wherever I want to use it in filters etc. However, if I need to create SQL Views, I have to use the GETCURRENTUSERID() function instead.
    Andy
    ps - I used MIN() in the function to ensure that I only get one value returned. The method SELECT .... INTO .... only allows us to set a variable to one value and, sometimes, more than one value is returned by the SELECT statement and this would generate an error. Of course, there should be just the one value that matches the current user, but I always assume the worst! The statementS:
    SELECT MIN(EMP_ID) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER'));
    user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;could also be written as:
    SELECT EMP_ID into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER')) AND ROWNUM = 1;
    user_id := CASE WHEN user_id IS NULL THEN 9999999999 ELSE user_id END;or
    SELECT NVL(MIN(EMP_ID), 9999999999) into user_id FROM S_USERS WHERE UPPER(LOGIN_ID) = UPPER(v('APP_USER'));

  • Select from a table from other schema

    Hi,
    I want to make a select from a table how is into other Schema and into other instance.
    form example, if I have _2 schemas (in diferent instances)_:
    SCHEMA1 =
    *(DESCRIPTION =*
    *(ADDRESS =*
    *(PROTOCOL = TCP)*
    *(HOST = XXX.XXX.XXX.XX1)*
    *(PORT = 1560)*
    *(CONNECT_DATA =*
    *(SERVER = DEDICATED)*
    *(SERVICE_NAME = SCHEMA1)*
    SCHEMA2 =
    *(DESCRIPTION =*
    *(ADDRESS =*
    *(PROTOCOL = TCP)*
    *(HOST = XXX.XXX.XXX.XX2)*
    *(PORT = 1560)*
    *(CONNECT_DATA =*
    *(SERVER = DEDICATED)*
    *(SERVICE_NAME = SCHEMA2)*
    and into SCHEMA2 there is a table TABLE_A.
    If I`m connected into SCHEMA1:
    how can I do to make a select from the TABLE_A?
    thanks very much.

    1) Referring to an entry in the tnsnames.ora file as a "schema" as you have here with schema1 and schema2 is likely to be confusing. You have multiple schemas in the same database-- in this case, you appear to be trying to query tables in a different database. If we try to answer using your TNS aliases "schema1" and "schema2", there is likely to be a great deal of confusion between schemas/ databases/ and TNS aliases. So I will assume that your tnsnames.ora file actually reads
    TNS_ALIAS1 =
      (DESCRIPTION =
        (ADDRESS =
          (PROTOCOL = TCP)
          (HOST = HOST1)
          (PORT = 1560)
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = DB1)
    TNS_ALIAS2 =
      (DESCRIPTION =
        (ADDRESS =
          (PROTOCOL = TCP)
          (HOST = HOST2)
          (PORT = 1560)
      (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = DB2)
    )2) Given the TNS aliases above, assuming that we are talking about the tnsnames.ora file on HOST1, you would need to create a database link from DB1 to DB2. You can either specify a fixed username and password for the database link or you can specify that the connection happens as the current user (which assumes that the passwords are synchronized between the databases).
    CREATE DATABASE LINK to_db2
      CONNECT TO username_on_db2
      IDENTIFIED BY password_on_db2
      USING 'TNS_ALIAS2'3) Assuming the database link is in place
    SELECT *
      FROM schema2.table_name@to_db2Justin

  • Add Page n of nn, date, current user name to aReport Footer on PDF Report

    Hello,
    I am very new to using Apex.
    I have a SQL Report which I can output to a PDF and works.
    I have a header and the contents of the report all appearing in the PDF OK.
    I would like to have a footer for each page which has the date & timestamp, current users full name and page n of nn.
    Any help would be much appreciated, thanks.

    Hello Luis
    Thanks for your help.
    I have the first part of the current user and the date and time displayed on the bottom of the report.
    The complicated bit for me it the page n of n.
    I have created the report layout and copied in your code but I get an error that tells me that
    the PDF cannot be opened because it is either not supported or damaged .....
    Here is the contents of the Page Template:
    <?xml version = '1.0' encoding = 'utf-8'?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:variable name="_XDOFOPOS" select="''"/>
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    <xsl:variable name="_XDOFOOSTOTAL" select="number(0)"/>
    <xsl:attribute-set name="padding">
    <xsl:attribute name="padding-bottom">0.25pt</xsl:attribute>
    <xsl:attribute name="padding-top">0.25pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text">
    <xsl:attribute name="text-align">start</xsl:attribute>
    <xsl:attribute name="orphans">2</xsl:attribute>
    <xsl:attribute name="start-indent">0.0pt</xsl:attribute>
    <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
    <xsl:attribute name="padding-top">0.0pt</xsl:attribute>
    <xsl:attribute name="end-indent">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
    <xsl:attribute name="height">0.0pt</xsl:attribute>
    <xsl:attribute name="widows">2</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-left">
    <xsl:attribute name="text-align">left</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-center">
    <xsl:attribute name="text-align">center</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-right">
    <xsl:attribute name="text-align">right</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="footer">
    <xsl:attribute name="text-align">right</xsl:attribute>
    <xsl:attribute name="start-indent">5.4pt</xsl:attribute>
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_2">
    <xsl:attribute name="start-indent">5.4pt</xsl:attribute>
    <xsl:attribute name="end-indent">23.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_20">
    <xsl:attribute name="height">13.872pt</xsl:attribute>
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_0">
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-header">
    <xsl:attribute name="color">#PAGE_HEADER_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="font-family">#PAGE_HEADER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#PAGE_HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#PAGE_HEADER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-footer">
    <xsl:attribute name="color">#PAGE_FOOTER_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="font-family">#PAGE_FOOTER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#PAGE_FOOTER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#PAGE_FOOTER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="body-font">
    <xsl:attribute name="height">12.0pt</xsl:attribute>
    <xsl:attribute name="font-family">#BODY_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#BODY_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#BODY_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-number">
    <xsl:attribute name="height">13.872pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="header-font">
    <xsl:attribute name="height">#HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-family">#HEADER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#HEADER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="border">
    <xsl:attribute name="border-top">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-bottom">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-start-width">#BORDER_WIDTH#pt</xsl:attribute>
    <xsl:attribute name="border-start-color">#BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-start-style">solid</xsl:attribute>
    <xsl:attribute name="border-end-width">#BORDER_WIDTH#pt</xsl:attribute>
    <xsl:attribute name="border-end-color">#BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-end-style">solid</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="cell">
    <xsl:attribute name="background-color">#BODY_BG_COLOR#</xsl:attribute>
    <xsl:attribute name="color">#BODY_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="padding-start">5.15pt</xsl:attribute>
    <xsl:attribute name="vertical-align">top</xsl:attribute>
    <xsl:attribute name="padding-top">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-end">5.15pt</xsl:attribute>
    <xsl:attribute name="number-columns-spanned">1</xsl:attribute>
    <xsl:attribute name="height">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="header-color">
    <xsl:attribute name="background-color">#HEADER_BG_COLOR#</xsl:attribute>
    <xsl:attribute name="color">#HEADER_FONT_COLOR#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master0" margin-left="66.6pt" margin-right="66.6pt" page-height="#PAGE_HEIGHT#pt" page-width="#PAGE_WIDTH#pt" margin-top="36.0pt" margin-bottom="36.0pt">
    <fo:region-before region-name="region-header" extent="54.0pt"/>
    <fo:region-body region-name="region-body" margin-top="54.0pt" margin-bottom="54.0pt"/>
    <fo:region-after region-name="region-footer" extent="54.0pt" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master0">
    <xsl:variable name="_PW" select="number(#PAGE_HEIGHT#)"/>
    <xsl:variable name="_PH" select="number(#PAGE_WIDTH#)"/>
    <xsl:variable name="_ML" select="number(72.0)"/>
    <xsl:variable name="_MR" select="number(72.0)"/>
    <xsl:variable name="_MT" select="number(90.0)"/>
    <xsl:variable name="_MB" select="number(90.0)"/>
    <xsl:variable name="_HY" select="number(36.0)"/>
    <xsl:variable name="_FY" select="number(36.0)"/>
    <xsl:variable name="_SECTION_NAME" select="string('master0')"/>
    <fo:static-content flow-name="region-header">
    <fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
    </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="region-footer">
    <fo:block xsl:use-attribute-sets="text footer">
    <fo:inline xsl:use-attribute-sets="body-font page-number">
    <fo:page-number/> of <fo:page-number-citation ref-id="last-page"/>
    </fo:inline>
    <fo:block id="last-page"/>
    </fo:flow>
    <fo:block xsl:use-attribute-sets="text text_2 #PAGE_FOOTER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-footer">#PAGE_FOOTER#</fo:inline>
    </fo:block>
    </fo:static-content>
    <fo:flow flow-name="region-body">
    <fo:block xsl:use-attribute-sets="padding">
    <fo:table start-indent="0.0pt">
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    #PRN_TABLE_CELLS#
    <fo:table-header>
    <fo:table-row>
    #PRN_TEMPLATE_HEADER_ROW#
    </fo:table-row>
    </fo:table-header>
    <fo:table-body>
    <xsl:for-each select=".//ROW">
    <fo:table-row>
    #PRN_TEMPLATE_BODY_ROW#
    </fo:table-row>
    </xsl:for-each>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block xsl:use-attribute-sets="text text_2 text_20">
    <fo:inline id="{concat('page-total-', $_SECTION_NAME, $_XDOFOPOS)}"/>
    <fo:inline id="{concat('page-total', $_XDOFOPOS)}"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

Maybe you are looking for

  • HT204365 Can't open PDF files with iBook directly

    Every time I download a PDF file then open it with iBook didn't open directly until I shut down the iBook or the iPad then open the PDF file again, it wasn't like this befor, how can I fix it please.

  • ALV hierarchy report

    Hi, I am trying to create ALV report using FM: REUSE_ALV_HIERSEQ_LIST_DISPLAY My Report format is as follows: Shipto1 <Level 1>      Shipping plant1  <Level 2>          VBELN POSNR  <Level 3>          VBELN POSNR  <Level 3>          VBELN POSNR  <Lev

  • Error restoring my iPhone 4.

    My iPhone has been having some problems lately so I decided I was going to restore it, however everytime I restore it I got an error that states: "The software for the iPhone "iPhone" was corrupted during download." I have tried restoring it several

  • Oracle.sql.DATE documentation also missing

    Thanks for the documentation of jbo.domain.Date, but it was not enough. I need to know how to use the toDate method, but it seen to be described in the superclass oracle.sql.DATE that was also missing in documentation. I have searched at OTN docs, bu

  • HT4718 Why can I not download lion? It appears as a purchase.

    Why can I not download lion? It appears as a purchase.