Projects query

Hi
Can someone help me in reducing the cost the of the below query.
SELECT gcc.segment3 cost_centre
, pe.expenditure_ending_date-6 date_from
, pe.expenditure_ending_date date_to
, ppx.employee_number employee_number
, ppx.full_name employee_name
, asgf.ass_attribute8 employee_type
, ppx.person_id person_id
, ppa.segment1 project_number
, ppa.project_id project_id
, ppa.description project_description
, pt.task_number task_number
, pt.task_id task_id
, pt.description task_description
, ppa.project_type project_type
, man.full_name project_manager
, null approval_status
, SUM (pei.quantity) hours_entered
, null site_code
, null site
, asgf.ass_attribute11 costing_job
, pei.expenditure_type charge_type
, sup.full_name supervisor
, null service_number
, null timecard_day
, null daily_comment
FROM pa_expenditure_items_all pei
, pa_expenditures_all pe
, pa_cost_distribution_lines_all pcdl
, pa_projects_all ppa
, pa_project_classes ppc
, pa_tasks pt
, per_people_x ppx
, per_people_x sup
, per_people_x man
, per_assignments_f asgf
, gl_code_combinations gcc
, pa_project_players ppp
WHERE pe.expenditure_id = pei.expenditure_id
AND pei.project_id = ppa.project_id
AND ppc.project_id = ppa.project_id
AND pei.task_id = pt.task_id
AND pei.project_id = pt.project_id
AND ppx.person_id = pe.incurred_by_person_id
AND sup.person_id(+) = asgf.supervisor_id
AND asgf.person_id = ppx.person_id
AND pei.expenditure_item_id = pcdl.expenditure_item_id
AND gcc.code_combination_id = pcdl.cr_code_combination_id
AND ppp.project_id = ppa.project_id
AND ppp.person_id = man.person_id
AND pei.expenditure_item_date between asgf.effective_start_date and nvl(asgf.effective_end_date,sysdate+1)
AND SYSDATE BETWEEN ppp.start_date_active AND NVL (ppp.end_date_active, SYSDATE + 1)
AND pe.incurred_by_person_id = NVL (:p_employee_id, pe.incurred_by_person_id)
AND pei.expenditure_item_date BETWEEN NVL (:cp_date_from, pei.expenditure_item_date)
AND NVL (:cp_date_to, pei.expenditure_item_date)
AND gcc.segment3 BETWEEN NVL (:p_emp_cost_centre_from, gcc.segment3)
AND NVL(:p_emp_cost_centre_to, gcc.segment3)
AND gcc.segment2 = NVL(:p_emp_business_stream, gcc.segment2)
AND ( ( ( :p_project_id IS NULL ) AND ( ppa.project_id IN (SELECT ppa.project_id --, ppc.class_code
FROM pa_project_classes ppc, pa_projects_all ppa, per_people_x man, pa_project_players ppp
WHERE ppc.project_id = ppa.project_id
AND ppp.person_id = man.person_id
AND man.person_id = NVL(:p_project_manager, man.person_id)
AND ppc.class_code = NVL(:p_pa_business_area, ppc.class_code)
AND ppp.project_role_type = 'PROJECT MANAGER'
AND ppc.class_category = 'Business Area' ) )
OR ( (:p_project_id IS NOT NULL ) AND ( ppa.project_id = :p_project_id ) ))
AND pei.quantity > 0
AND ppc.class_category = 'Business Area'
AND asgf.primary_flag = 'Y'
AND asgf.assignment_type IN ('C', 'E')
AND pcdl.line_type = 'R'
AND ppp.project_role_type = 'PROJECT MANAGER'
AND pei.cost_distributed_flag = 'Y'
AND pei.transaction_source = 'LABOUR COST ADJUSTMENT'
GROUP BY gcc.segment3
, pe.expenditure_ending_date-6
, pe.expenditure_ending_date
, ppx.employee_number
, ppx.full_name
, asgf.ass_attribute8
, ppx.person_id
, ppa.segment1
, ppa.description
, pt.task_number
, pt.task_id
, pt.description
, ppa.project_type
, man.full_name
, asgf.ass_attribute11
, pei.expenditure_type
, sup.full_name
, ppa.project_id
~
Thanks
Sekhar

What database are you running? Oracle or SQLServer?
If it's oracle:
make sure you've done the following
http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_212879_1629988_0_0_18/maintaining_oracle_optimizer_statistics.htm
http://portal.plumtree.com/portal/server.pt/gateway/PTARGS_0_19327_1055453_0_0_18/improving_oracle_5_0_portal_query_performance_through_ptvgroupmembership_materialization.htm

Similar Messages

  • VS 2012 report project query designer greyed out

    The graphical editor stopped working while editting a report project dataset. Now it shows all the button greyed out. It now only works in "Edit as Text" mode. I can't seem to find a fix.

    I opened an issue with Microsoft here.
    http://connect.microsoft.com/VisualStudio/feedback/details/816149/vs-2012-report-query-designer-toolbar-greyed-out
    Here is the text if the link doesn't work.
    Hello
    Thank you for submitting this feedback. After carefully evaluating all of the bugs in our pipeline, we are closing bugs that we will not fix in the current or future versions of Visual Studio. The reasons for closing these bugs are following:
    1.     The fix is risky to implement in the current version of the product
    2.     Scenarios reported in the bug are not common enough
    3.     A viable workaround is available.
    If the issue is a critical business interruption, please call CSS (Customer Support Services).
    Thanks again for reporting the product issue and continued support in improving our product.
    Mariusz Cichomski
    Program Manager
    Microsoft

  • Export project - reimport same project query

    I had a project on my iMac which I had worked on and then relocated the master images to DVD. I needed to export the project to my MBP's Aperture to work on the images at the clients home so I consolidated the images and exported the project, no problem so far. After working on the project on the MBP I again exported the project and imported it back into Aperture on the iMac. I now have the original project with the referenced images marker and the re-imported project (1) with the attached master images. The (1) project has all the adjustments on which the client wanted. What do I do with the original project and do I now have to burn the "new" master images onto another DVD or can I point Aperture to the original DVD where the original masters are?

    You can either burn another DVD of the masters from the new project or you can use relocate masters and then managed referenced files/reconnect to point the new project at the old dvd volume but I would not recommend it if you are not familiar with these tools.
    My preference is to do away with DVD's altogether and just go with HD storage that way you can simplify your workflow to just relocate masters/consolidate masters and get rid of the old projects when you need to deal with multiple computers.
    RB

  • Creating & Combining Multiple Projects Query

    My IT team has asked me to determine whether I can create and
    merge multiple projects to reduce likelihood of "issues" resulting
    from use and loading of very large files. Currently, my project is
    at 93 MB. I anticipate that it will roughly triple in size within
    the next year to year and a half.
    I've never had to do this before and I just need a bit of
    reassurance that this can be done, easily, without creating a huge
    strudel.
    I can across two tech notes indicating different approaches
    to this challenge: ID: rb_11942 and rb_1940 (
    http://www.adobe.com/go/rb_1940).
    There will undoubtedly be a large number of cross project
    links and a substantial index (when all projects are combined).
    I would appreciate any input you might have to offer before I
    launch this effort.

    Hmmm - how do I put this diplomatically? Let's try this -
    would the IT guys accept your guidance on how to configure their
    server farm? Nope. So why do they (off the diplomatic path for just
    a wee bit) stick their noses into how you do your job? (ok, back
    on).
    I can only offer my experience here. I have a knowledge base
    compiled in WebHelp, for which the project environment is almost a
    GB. My compiled Help for our application is produced from an
    environment that contains about 133MB.
    Given that I have a fairly fiesty laptop, with 2GB RAM and
    oodles of disk space, where both projects reside, I have few issues
    with working in "large" projects. Both deliverables compile and /
    or publish in about 5 minutes or less.
    I guess my point is, if it ain't broke, don't make it more
    difficult to work with just because an IT guy says so. Skip the
    strudel.
    (I love my IT guys, by the way - they don't mess around with
    what I do, and listen patiently when I tell them what equipment
    they should buy - LOL)

  • Packaging Multi-SCO Captivate Projects - query

    Hi
    We are considering upgrading to the eLearning Suite so that we can use the Multi-SCO Packager.  For the timebeing I am tried using a free software called Relead Editor.  With this, when a learner clicks out of the course early, the next file automatically opens.  I don't know if I'm doing something wrong or if the software just isn't seeing the multi-SCOs as one course.
    If anyone has used this eLearning Suite Extension, then I would really like to hear from you.  Any advice to resolve this issue would be greatly appreciated.
    Thanks

    Captivate 6 now uses Rustici SCORM drivers and the output is much superior to all previous versions of Cp with regard to LMS integration.  Are you manually editing the files in order to create multi-SCORM packages?  If so, am I correct in assuming that you bought Cp as a standalone app and do not have the Adobe E-learning Suite with the Multi-SCORM Packager tool?

  • Is there a better way to do this projection/aggregate query?

    Hi,
    Summary:
    Can anyone offer advice on how best to use JDO to perform
    projection/aggregate queries? Is there a better way of doing what is
    described below?
    Details:
    The web application I'm developing includes a GUI for ad-hoc reports on
    JDO's. Unlike 3rd party tools that go straight to the database we can
    implement business rules that restrict access to objects (by adding extra
    predicates) and provide extra calculated fields (by adding extra get methods
    to our JDO's - no expression language yet). We're pleased with the results
    so far.
    Now I want to make it produce reports with aggregates and projections
    without instantiating JDO instances. Here is an example of the sort of thing
    I want it to be capable of doing:
    Each asset has one associated t.description and zero or one associated
    d.description.
    For every distinct combination of t.description and d.description (skip
    those for which there are no assets)
    calculate some aggregates over all the assets with these values.
    and here it is in SQL:
    select t.description type, d.description description, count(*) count,
    sum(a.purch_price) sumPurchPrice
    from assets a
    left outer join asset_descriptions d
    on a.adesc_no = d.adesc_no,
    asset_types t
    where a.atype_no = t.atype_no
    group by t.description, d.description
    order by t.description, d.description
    it takes <100ms to produce 5300 rows from 83000 assets.
    The nearest I have managed with JDO is (pseodo code):
    perform projection query to get t.description, d.description for every asset
    loop on results
    if this is first time we've had this combination of t.description,
    d.description
    perform aggregate query to get aggregates for this combination
    The java code is below. It takes about 16000ms (with debug/trace logging
    off, c.f. 100ms for SQL).
    If the inner query is commented out it takes about 1600ms (so the inner
    query is responsible for 9/10ths of the elapsed time).
    Timings exclude startup overheads like PersistenceManagerFactory creation
    and checking the meta data against the database (by looping 5 times and
    averaging only the last 4) but include PersistenceManager creation (which
    happens inside the loop).
    It would be too big a job for us to directly generate SQL from our generic
    ad-hoc report GUI, so that is not really an option.
    KodoQuery q1 = (KodoQuery) pm.newQuery(Asset.class);
    q1.setResult(
    "assetType.description, assetDescription.description");
    q1.setOrdering(
    "assetType.description ascending,
    assetDescription.description ascending");
    KodoQuery q2 = (KodoQuery) pm.newQuery(Asset.class);
    q2.setResult("count(purchPrice), sum(purchPrice)");
    q2.declareParameters(
    "String myAssetType, String myAssetDescription");
    q2.setFilter(
    "assetType.description == myAssetType &&
    assetDescription.description == myAssetDescription");
    q2.compile();
    Collection results = (Collection) q1.execute();
    Set distinct = new HashSet();
    for (Iterator i = results.iterator(); i.hasNext();) {
    Object[] cols = (Object[]) i.next();
    String assetType = (String) cols[0];
    String assetDescription = (String) cols[1];
    String type_description =
    assetDescription != null
    ? assetType + "~" + assetDescription
    : assetType;
    if (distinct.add(type_description)) {
    Object[] cols2 =
    (Object[]) q2.execute(assetType,
    assetDescription);
    // System.out.println(
    // "type "
    // + assetType
    // + ", description "
    // + assetDescription
    // + ", count "
    // + cols2[0]
    // + ", sum "
    // + cols2[1]);
    q2.closeAll();
    q1.closeAll();

    Neil,
    It sounds like the problem that you're running into is that Kodo doesn't
    yet support the JDO2 grouping constructs, so you're doing your own
    grouping in the Java code. Is that accurate?
    We do plan on adding direct grouping support to our aggregate/projection
    capabilities in the near future, but as you've noticed, those
    capabilities are not there yet.
    -Patrick
    Neil Bacon wrote:
    Hi,
    Summary:
    Can anyone offer advice on how best to use JDO to perform
    projection/aggregate queries? Is there a better way of doing what is
    described below?
    Details:
    The web application I'm developing includes a GUI for ad-hoc reports on
    JDO's. Unlike 3rd party tools that go straight to the database we can
    implement business rules that restrict access to objects (by adding extra
    predicates) and provide extra calculated fields (by adding extra get methods
    to our JDO's - no expression language yet). We're pleased with the results
    so far.
    Now I want to make it produce reports with aggregates and projections
    without instantiating JDO instances. Here is an example of the sort of thing
    I want it to be capable of doing:
    Each asset has one associated t.description and zero or one associated
    d.description.
    For every distinct combination of t.description and d.description (skip
    those for which there are no assets)
    calculate some aggregates over all the assets with these values.
    and here it is in SQL:
    select t.description type, d.description description, count(*) count,
    sum(a.purch_price) sumPurchPrice
    from assets a
    left outer join asset_descriptions d
    on a.adesc_no = d.adesc_no,
    asset_types t
    where a.atype_no = t.atype_no
    group by t.description, d.description
    order by t.description, d.description
    it takes <100ms to produce 5300 rows from 83000 assets.
    The nearest I have managed with JDO is (pseodo code):
    perform projection query to get t.description, d.description for every asset
    loop on results
    if this is first time we've had this combination of t.description,
    d.description
    perform aggregate query to get aggregates for this combination
    The java code is below. It takes about 16000ms (with debug/trace logging
    off, c.f. 100ms for SQL).
    If the inner query is commented out it takes about 1600ms (so the inner
    query is responsible for 9/10ths of the elapsed time).
    Timings exclude startup overheads like PersistenceManagerFactory creation
    and checking the meta data against the database (by looping 5 times and
    averaging only the last 4) but include PersistenceManager creation (which
    happens inside the loop).
    It would be too big a job for us to directly generate SQL from our generic
    ad-hoc report GUI, so that is not really an option.
    KodoQuery q1 = (KodoQuery) pm.newQuery(Asset.class);
    q1.setResult(
    "assetType.description, assetDescription.description");
    q1.setOrdering(
    "assetType.description ascending,
    assetDescription.description ascending");
    KodoQuery q2 = (KodoQuery) pm.newQuery(Asset.class);
    q2.setResult("count(purchPrice), sum(purchPrice)");
    q2.declareParameters(
    "String myAssetType, String myAssetDescription");
    q2.setFilter(
    "assetType.description == myAssetType &&
    assetDescription.description == myAssetDescription");
    q2.compile();
    Collection results = (Collection) q1.execute();
    Set distinct = new HashSet();
    for (Iterator i = results.iterator(); i.hasNext();) {
    Object[] cols = (Object[]) i.next();
    String assetType = (String) cols[0];
    String assetDescription = (String) cols[1];
    String type_description =
    assetDescription != null
    ? assetType + "~" + assetDescription
    : assetType;
    if (distinct.add(type_description)) {
    Object[] cols2 =
    (Object[]) q2.execute(assetType,
    assetDescription);
    // System.out.println(
    // "type "
    // + assetType
    // + ", description "
    // + assetDescription
    // + ", count "
    // + cols2[0]
    // + ", sum "
    // + cols2[1]);
    q2.closeAll();
    q1.closeAll();

  • Migration project: FI/CO/SD/MM/PS/RE (4.6c R/3 - ERP6 with unicode)

    Hi,
    Before getting to my question I have for you let me explain you some background:
    As project manager, I am involved in a pre-study of a project for migrating an existing non-hrm solution (FI/CO/SD/MM/PS/RE/Workflow) from a local 4.6c R/3 landscape towards a global ERP6 (UC) instance. The existing non-hrm solution is integrated with HR mainly for Payroll postings. The 4.6c feeds a BW3.1, the ERP6 feeds a BI7.0.
    The project consists of 5 major deliverables:
    1) technical migration of applicative/reporting layer (Programs, DDIC, BW reports ...)
    2) adaptation interfacing (integration points HR-Non-HRM will be handled through standard ALE
    3) process integration (non-hrm will get integrated with existing global processes such as Global Organizational management, Global Personal administration)
    4) reporting integration (non-hrm reportings will get integrated with existing global reportings)
    5) data migration (all non-hrm data pass from 4.6c to ERP6)
    As you can read this project is about a carve-out of existing processes and the migration/integration of them into a global platform. Main driver for this project is the globalization of non-hrm processes.
    Now my question is a rather technical one, concerning point 5 "Data migration": the project approach would be to use a standard ALE initial/LSMW load for migrating the FI/CO/MM/SD/PS data from 4.6c to ERP6. Now, after discussion with SAP Basis team, it was issued that such a direct data migration is impossible due to the fact that there is a difference
    - in SAP version (4.6c vs ERP6)
    - in database character set (NUC in 4.6c vs UC in ERP6)
    (I personally doubt that this is an issue since ALE is able to cope with different SAP versions)
    So the SAP Basis team propose to do such a project in 3 steps (in stead of one):
    1) split non-hrm and bring in to a new 4.6c instance
    2) upgrade that new 4.6c with non-hrm to ERP6 (local instance)
    3) migrate non-hrm from ERP6 (local instance) to the other ERP6 (global instance)
    Can someone share some experience and/or confirm the best data migration approach for such a project?
    Thanks
    Bert Caryn
    Edited by: Bert Caryn on Jan 18, 2008 3:00 PM
    Edited by: Bert Caryn on Jan 18, 2008 3:01 PM

    This is a really BIG project
    > Query
    >
    > 1)     What is the possibility of merging this two system
    > of SAP to one single system of SAP as 4.7 or Ecc6.0?
    > 2)     If merging is possible
    > a) What are all the points we should take care since
    > both are in different platform?
    I suggest the following:
    Read Note 481938 - System Landscape Optimization Services
    and
    http://service.sap.com/slo
    There is a group @ SAP named "System Landscape Optimization", who does those kind of things:
              o Delete, merge, split or rename company codes, controlling areas etc.
              o Harmonize customizing and master data like chart of accounts or vendors
              o Reorganize System Landscape (merge systems, move business areas)
    Since you environment is pretty complex, I suggest opening an OSS call on XX-SER-CS, describe just what you wrote here and you will get contacted.
    I would NOT do such a merge on my own without involvement of SAP and the corresponding people who know the underlying data model.
    Markus

  • An extra column of a query in an ADF Faces Table?

    Hi to all OTN Community...
    I use ADF Faces, Toplink and EJB 3.0 in JDevelooper 10.1.3.1.0, and i have a question...
    I need to show in an adf faces table, the result of a query like this
    SELECT COLUMN1, COLUMN2, COUNT(*)
    FROM TABLEX
    GROUP BY COLUMN1, COLUMN2
    I do this query in the TableX named queryes...and then i have acces to this named query in the dataControl, but, when i drag and drop the dataControl to a jsf page, this only shows the columns of the tableX. Then, i want to know, ¿How can i show the count(*) column in the page in a dataControl?
    PD: i want to show in the adf faces table the same result if i execute that query in an sql client.
    Thanx in advance...
    Darklorddany

    Darklorddany,
    The solution to this is to add an additional method on your EJB 3.0 session-bean that exposes an dynamic TopLink report (projection) query.
    The TopLink code within the method would leverage your existing TopLink mappings to do the query like:
            ReportQuery rq = new ReportQuery(Employee.class, new ExpressionBuilder());
            rq.addAttribute("firstName");
            rq.addAttribute("lastName");
            rq.addCount();
            rq.addGrouping("firstName");
            rq.addGrouping("lastName");
            List<ReportQueryResult> results = (List<ReportQueryResult>)session.executeQuery(rq);The ReportQueryResult objects are very generic map/row type containers that will not work well in your ADF binding layer. With JPA you can specify and ad-hoc Java class to contain such projection results that make them a little easier to use in clients. This functionality will be available in the next release of TopLink. Until then you will need to write some code to convert to your own result class for this query.
    In my case I'll create a simple POJO like:
        public class EmployeeNameCount {
            private String firstName;
            private String lastName;
            private int count;
            public EmployeeNameCount(String firstName, String lastName, int count) {
                this.firstName = firstName;
                this.lastName = lastName;
                this.count = count;
            public String getFirstName() {
                return this.firstName;
            public String getLastName() {
                return this.lastName;
            public int getCount() {
                return this.count;
        }Now I combine the previous report query code into an EJB 3.0 session bean method:
        @TransactionAttribute(TransactionAttributeType.SUPPORTS)
        public List<EmployeeNameCount> findEmployeeNamesWithCount() {
            Session session = getSessionFactory().acquireSession();
            ReportQuery rq = new ReportQuery(Employee.class, new ExpressionBuilder());
            rq.addAttribute("firstName");
            rq.addAttribute("lastName");
            rq.addCount();
            rq.addGrouping("firstName");
            rq.addGrouping("lastName");
            List<ReportQueryResult> results = (List<ReportQueryResult>)session.executeQuery(rq);
            session.release();
            List<EmployeeNameCount> empNameCounts = new ArrayList<EmployeeNameCount>(results.size());
            for (ReportQueryResult rqr: results) {
                String fname = (String)rqr.getByIndex(0);
                String lname = (String)rqr.getByIndex(1);
                int count = ((Number) rqr.getByIndex(2)).intValue();
                empNameCounts.add(new EmployeeNameCount(fname, lname, count));   
            return empNameCounts;
        }You will also need to make sure the method exists on your EJB 3.0 session bean's interface as well. Then regenerate the data control for your session bean and you should have access to drag and drop this query with its results into your JSF pages.
    As mentioned this use case will be much simpler and declarative in the next release.
    Doug

  • Variable binding for a projection

    The 11.14. Projection Variables example shows how to bind a collection
    element variable in the query filter for enabling its projection :
    Query query = pm.newQuery (Magazine.class, "price < 5 "
    + "&& coverArticle.subtitles.contains (ttl)");
    query.setResult ("ttl.substring (0, 3)");
    It seems to me that :
    such a variable binding has nothing to do in the filter, as it is not usedin any predicate
    it would be better to extend the variable declarations, enabling to specifysuch a variable binding, with the two following syntax proposals (preference
    descending) :
    1) String variables = "coverArticle.subtitles(ttl)"
    2) String variables = "String ttl elementof coverArticle.subtitles"
    What do you think ?
    Regards.

    Patrice-
    Could you expand on this a bit? I'm afraid I don't really understand
    what you are trying to convey.
    In article <ckj5i5$ulg$[email protected]>, Patrice wrote:
    The 11.14. Projection Variables example shows how to bind a collection
    element variable in the query filter for enabling its projection :
    Query query = pm.newQuery (Magazine.class, "price < 5 "
    + "&& coverArticle.subtitles.contains (ttl)");
    query.setResult ("ttl.substring (0, 3)");
    It seems to me that :
    such a variable binding has nothing to do in the filter, as it is not usedin any predicate
    it would be better to extend the variable declarations, enabling to specifysuch a variable binding, with the two following syntax proposals (preference
    descending) :
    1) String variables = "coverArticle.subtitles(ttl)"
    2) String variables = "String ttl elementof coverArticle.subtitles"
    What do you think ?
    Regards.
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Summary Published to Search for Projects?

    Is it possible to have the "Summary Published to Search" checkbox for Project documents?  I know this exists in Master Agreements.  I am wondering if this field can be configured on a Project and behave in the same manner as it does with MAs.  I know how I can get the field and checkbox itself on the Project Header, but what I am not sure on, or if it is even possible, is to get it to behave in the same manner.  The ultimate goal being able to have a Project that cannot be seen when searching via All Projects query.  Any guidance would be much appreciated!  Thank you!

    Hello Nicholas,
    Please find below query,
    SELECT <%RESULTS%> FROM <%SCHEMA%>.FCI_PRO_PROJECTS T1 LEFT OUTER JOIN <%SCHEMA%>.FCI_MAS_VALUE_LIST_VALUE T2 ON (T1.STATUS_OBJECT_ID = T2.OBJECTID)
    LEFT OUTER JOIN  <%SCHEMA%>.FCI_MAS_INTERNAL_CAT T3 ON T1.INTERNAL_CAT_OBJECT_ID = T3.OBJECTID LEFT OUTER JOIN  <%EXT_TABLE(projects.projects)%> T10
    ON T10.PARENT_OBJECT_ID = T1.OBJECTID <%DYN_JOIN%>
    WHERE T1.IS_TEMPLATE=0 AND T1.CONTEXTID=<%CONTEXT(projects.projects)%>  AND T10.BUYER_SEARCHABLE_PROJECT=0
    <%AND_OP("T1.INACTIVE",<%?(T1.INACTIVE)%>)%>
    <%DYN_FILTER%>
    <%AND_OP("UPPER(T1.UNIQUE_DOC_NAME)",<%?(T1.UNIQUE_DOC_NAME)%>)%>
    <%AND_OP("UPPER(T1.DISPLAY_NAME)",<%?(T1.DISPLAY_NAME)%>)%>
    <%AND_OP("UPPER(T1.DOC_OWNER_USER_OBJECT_NAME)",<%?(T1.DOC_OWNER_USER_OBJECT_NAME)%>)%>
    <%AND_OP("T1.STATUS_OBJECT_ID",<%?(T1.STATUS_OBJECT_ID)%>)%>
    <%ORDERBY%>
    In the above query, I have placed a condition T10.BUYER_SEARCHABLE_PROJECT=0 which will retrict all the projects in which the created checkbox field is checked.
    Regards,
    Vignesh

  • Passing query string parameters to Visual Web Parts?

    Does anyone know how to get the parameters from a query string to a Visual Web Part?
    Dan Marth

    Hi,
    you can read the query string parameter from the code behind using:
    Request.QueryString["YourParam"];
    You can also use Javascript or jQuery:
    http://archive.plugins.jquery.com/project/query-object
    http://javascript.about.com/library/blqs1.htm
    HTH!
    Regards, Sjoukje
    Web: http://sjoukjezaal.com | LinkedIn:
    http://www.linkedin.com/in/sjoukjezaal | Twitter:
    @SjoukjeZaal
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

  • JDBC Adapter Configuration

    Hello,
    In JDBC Adapter, is there any other way to fetch the data other than select query?
    Our Scenario is like Transferring Project Information (PS Module) from Primavera to SAP. We fetch data from Primavera Through JDBC adapter with writing a select query. And we also give poll interval so after every pollinterval JDBC adapter again run the query and send it to integration Engine.
    But our requirement is once the project query executed next time only updated record transfer to SAP. IS XI gives this kind of feature?
    Regards,
    Gaurav Jain

    Hi Giridhar,
    Check out this
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    also check this interesting blog by Bhavesh
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    Thanks,
    Prakash
    Message was edited by: Prakash Arunachalam

  • Cfselect (format="flash") doesn't render with addition of "onChange" attribute

    The following code renders fine without the "onChange"
    attribute, but when I add the "onChange" attribute it no longer
    appears on the screen. I'm new to <cfform>, so any help would
    be appreciated!
    <cfselect name="select_project"
    label="Select Project"
    query="qMenuWrProject"
    value="work_rqst_nbr"
    display="display_desc"
    required="yes"
    multiple="no"
    width="500"
    onChange="this.form.submit();"
    />

    Let me put it another way.
    open the page in FF
    right-click within the document and choose View Page Source
    in the pop-up window, click ../SpryAssets/SpryAccordion.js
    You will see
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /SpryAssets/SpryAccordion.js was not found on this server.<P>
    <HR>
    <ADDRESS>Apache/1.3.37 Server at www.tc.umn.edu Port 80</ADDRESS>
    </BODY></HTML>
    This means that the document cannot be found.
    I could also put it another way by translating ../SpryAssets/SpryAccordion.js as http://www.tc.umn.edu/SpryAssets/SpryAccordion.js
    click on the latter and see what happens
    now click on http://www.tc.umn.edu/~aias/SpryAssets/SpryAccordion.js
    Gramps

  • Possibility to auto-storno consequent FI-document coming from MM (4.6C)?

    Hi,
    it seems my question is not to be posted right here, but it is concerned to some abap-ing, so perhaps this is the place where to ask.
    Scenario is:
    We have Invoice Receipt (from MM) with consequent FI-document. For some reason we have to storno the IR. The system marks the pair of IR documents as storned each other (fields RBKP-STBLG/RBKP-STJAH). But nothing is done with their successors - now there are 2 FI documents in the system which have to be cleared (as it is suggested by the system).
    Question:
    I would like to mark the consequent FI-document pair as storned also in a similar way the IR-pair is marked - fields STBLG/STJAH.
    Does someone have an idea about how to achieve this? I think I have to search for proper user-exits/BTE-s, so decided to ask first.
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    This is a really BIG project
    > Query
    >
    > 1)     What is the possibility of merging this two system
    > of SAP to one single system of SAP as 4.7 or Ecc6.0?
    > 2)     If merging is possible
    > a) What are all the points we should take care since
    > both are in different platform?
    I suggest the following:
    Read Note 481938 - System Landscape Optimization Services
    and
    http://service.sap.com/slo
    There is a group @ SAP named "System Landscape Optimization", who does those kind of things:
              o Delete, merge, split or rename company codes, controlling areas etc.
              o Harmonize customizing and master data like chart of accounts or vendors
              o Reorganize System Landscape (merge systems, move business areas)
    Since you environment is pretty complex, I suggest opening an OSS call on XX-SER-CS, describe just what you wrote here and you will get contacted.
    I would NOT do such a merge on my own without involvement of SAP and the corresponding people who know the underlying data model.
    Markus

  • Timecard details in approval notification

    Hi All,
    My query is related to entering timecard in OTL for projects.
    I am entering time against 2 projects in a timecard and timecard is being sent for approval to 2 different approvers having details of time entered against their respective projects.
    e.g. approver one is getting data in its approval notification for project 1 only while approver 2 is getting project2 only in its notification.
    I wish to know from which table, we can see what project and time data is being sent to approver 1 and what project and time data is being sent to approver 2.
    Edited by: gsaxena on Oct 11, 2009 11:08 PM

    When you submit time for multiple projects, mutiple application periods will be created, this application period is key for approvals.
    So if you submit time for 3 projects, 3 application periods will be created and these 3 will be linked to main Timecard id.
    This link will be stored in HXC_TC_AP_LINKS table.
    Once you know the application period ids, query in HXC_APP_PERIOD_SUMMARY with the application period ids. in this table there is column called Time category id, this actually represents which project the application period is for. get the time category name (from HXC_TIME_CATEGORIES table), the name actually contains the project_id.
    So once you identify the correct application period for a particular project, query in HXC_AP_DETAIL_LINKS table with the application period_id, this table contains the actual Detail building blocks belonging to a particular project.
    Hope my explanation is clear!!
    Though it looks little complicated, just browse thru the above tables, you can understand easily.
    - Ramu

Maybe you are looking for

  • Any way to compress or simplify imported PDF file made with autocad ?

    Hello guys I'm working on some layouts for property developer, and the architect who prepare all the floor plans, elevations etc... gave me bunch of PDF files, which I find really hard to use. These are vector files, fairly small, from 500kb to 1mb,

  • Need help in user privilage and triggers

    hi, i need to create general users who can insert a row into a table but should not be able to delete any data, so which minimuim privilages i should assign. grant connect session and grant resource or anything else? and one more prob in triggers, i

  • Editing Vendor Master in MASS

    Dear Gurus, Good Day. In Vendor Master in field ADDRESS, i need to change the TITLE as completely blank. Is there any Option or Procedure to change it MASS. With Regards, Siddharth

  • Screen saver, photo file

    Sadly, my photo files are saved, but not well organized. For my screen saver I run random photos from my own iphoto files. Sometimes I see a photo that I'd forgotten and would love to print, I'd like to locate the number of the original file. Is ther

  • Error is coming in report feild

    Dear all, We had a report developed in DSO,we had created a query on the top of this DSO but while executing the report we are getting error in some of the fields as subject,these fields are currency fields link local currency,extrcost etc.. request