Updating Activities

In the Status Tab for an Activity still in progress, I
don�(tm)t understand the relationships between Remaining
Duration, Duration at Complete; Finished Date, % Duration
Complete and Actual and Remaining Resource Units.<br
/>
Under the General Tab, I have set options
to �(tm)Task Dependent�(tm); �(tm)Fixed Duration and
Units�(tm); and �(tm)% Complete = Duration�(tm).<br
/>
If an activity that has Started has a
duration of 10 days and the Resource has worked 24 hours
(3 days); I manually update the Remaining Duration to show
7 days, but this results in the Finished Date being
automatically recalculated to an earlier date which does
not relate to the information I�(tm)ve input. I then
update Duration % complete as 30% and the number of Actual
units as 24 hours.
I then
Reschedule the Project and end up with a new
Duration-at-Complete which is several days larger than the
Original Duration and is not (that I can see) related to
the days worked and days remaining. The Finish date is
also recalculated and is well into the future compared to
the Remaining 7 days to complete the Activity.<br
/>
Can someone please help me understand the
interconnection between these parameters?<br
/>
Thanks
Mike<br
/>

After re-reading the Primavera User manual and
developing a matrix with the various parameters and
running through the different options in Primavera, I
now understand the relationships. The main issue was
correctly entering the Data Date and recognizing that
Actuals are only applied up to the work day prior to
the Data Date.

Similar Messages

  • Add on updating activities

    Hello experts,
    I have a customer that is using the SDK to update the activities table OCLG
    for example:
    OCLG.ClgCode 100 <--- last row added in system
    OCLG.ClgCode 101 - 111   <---- all added outside the system
    next activity added from inside the system should be 112, but instead it is saying that the next activity number is 101.
    is the data stored in column ClgCode stored in any tables other than the OCLG table?
    is there some kind of history of activities table that needs to be taken into account when creating the new activities from outside the system?
    Kind regards,
    Lucas

    Hi Lucas,
    How is the customer adding activities? The only permitted method is to use the Contacts object in the DI API. This should automatically generate the correct number for a new activity and will update all the tables relating to activities. It sounds like they are using direct SQL inserts. This is not permitted by SAP and would corrupt the database. I strongly recommend that if they are using SQL inserts that they change to using the DI API Contacts object instead or they risk losing all support for their site.
    For reference, the next activity number is stored in the ONNM table (ObjectCode = 33).
    If they are using the Contacts object and they still have the problem then it's likely to be a bug in the DI API (which you'd need to log with SAP support).
    Kind Regards,
    Owen

  • Activities are not updated at PM notification

    Hi,
    I don't succeed to update activities at pm notification.
    I am using the function 'BAPI_ALM_NOTIF_DATA_MODIF' and succeeded to
    update other fields.
    My function source code:
    DATA: NOTIFACTV type standard table of BAPI2080_NOTACTVI with header line,
    NOTIFACTV_X type standard table of BAPI2080_NOTACTVI_X with header line.
    NOTIFACTV-act_key = '0001'.
    NOTIFACTV-acttext = 'text'.
    APPEND NOTIFACTV.
    NOTIFACTV_X-act_key = '0001'.
    NOTIFACTV_X-acttext = 'X'.
    APPEND NOTIFACTV_X.
    CALL function 'BAPI_ALM_NOTIF_DATA_MODIFY'
       exporting
          number = NOTIF_NO
          NOTIFHEADER = NOTIFHEADER
          NOTIFHEADER_X = NOTIFHEADER_X
       tables
          NOTIFACTV = NOTIFACTV
          NOTIFACTV_X = NOTIFACTV_X.
    CALL function 'BAPI_ALM_NOTIF_SAVE'
    exporting
         number = NOTIF_NO.
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
        wait = ''.
    ENDFUNCTION.
    Thanks,
    Ofir
    Edited by: Ofir Nimitz on May 25, 2009 9:53 AM

    I added to the function the line NOTIFACTV-REFOBJECTKEY = NOTIFY_NO.
    In addition, I added the return parameter and the error code is: Number 282, "Error in processing notification , activity".
    I tried to execute a code that worked successfully at other ECC System and I see the same error.
    Maybe the failure related to customization ?
    Edited by: Ofir Nimitz on May 27, 2009 11:48 AM

  • Named parameter substitution failure in set clause of update statement.

    Hi ,
         Following is a method in my session bean. Its trying to update 'Activities' entity through JPQL. I am using a named parameter 'var2' to set the value of 'actPst1Cd' field.
              String stmt = "update Activities A set A.actPstlCd = :var2 where A.actRmatId = :var1";
              Query query = em.createQuery(stmt);
              query  = query.setParameter("var1", new BigDecimal(1));
              query  = query.setParameter("var2", getVar2Value());
              return query.executeUpdate();
         On execution I am getting the following error.
         java.lang.IllegalArgumentException: There is no parameter with name ':var2' in this JPQL-query. at com.sap.engine.services.orpersistence.query.QueryImpl.assertValidTypedValue(QueryImpl.java:303) at com.sap.engine.services.orpersistence.query.QueryImpl.setParameter(QueryImpl.java:369) at session.Test2Bean.testUpdate(Test2Bean.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
         The named parameters in where clause are getting substituted successfully. Can anyone  please tell me why its failing in set clause?
                I am using SAP NetWeaver Application Server, Java(TM) EE 5 Edition for deployment.
    Thanks,
    Prasoon.

    Hi Robin ,
       Thanks for replying..
       Issue I have Posted here is coming in <b>Java EE 5 Edition</b>.
       Regarding another post, I wanted to try CE 7.1 version when I found that my current entities ( which works in  Java EE 5 Edition )  are giving error in CE7.1 because of Bigdecimal check in Entity Validation, hence posted another post.
    Thanks,
    Prasoon

  • Field Update workflow action - Updating today's date into a field

    Hello there.
    I was hoping someone might be able to help with an error currently being experienced with regards to this workflow action.
    The requirement is for a workflow rule to action the printing of today's date into a custom field on an Activity record. The workflow rule condition is (PRE('<Status>') <> 'Completed') AND ([<Status>] = 'Completed'). This appears to be working and triggering the action correctly.
    The custom field to be updated is of type 'Date'. The value being updated into this field is 'Today()'. Overwrite existing values is checked.
    The default value for the field is also 'Today()'. Thus the workflow action involves overwriting the default value (i.e. the date the record was created) to the current date when the Status is switched to completed.
    When the workflow is triggered the following error message occurs:
    "Unable to evaluate workflow rule for the following reason:
    Update [Custom field name] : The value '01/18/2008' cannot be converted to a date time value. (SBL-DAT-00359) (SBL-ODS-00500)"
    One odd observation is that this error only occurs when trying to update activities that were created on previous days - (it will not overwrite the default value of 15/01/2008 with 18/01/2008). The workflow does not return an error message when asked to overwrite a value which is equal to itself (i.e. if the default value was 18/01/2008, the workflow runs without error, although the value stays the same as you would expect.)
    Can anyone shed any light on this? One potential thought is that our CRM is set up so that all dates appear in a different format - i.e. dates appear as dd/mm/yyy, rather than mm/dd/yyyy. Could this be contributing to this issue?
    Any help very much appreciated indeed.
    Thanks,
    Kieran
    ps. The reason for doing all this is that 'Completed date' for an activity does not appear in reporting. This has been raised with Oracle and apparently an 'enhancement request' has been registered.

    Guys,
    using the following statement, it does display the current system time
    Mid(Timestamp(),4,2)+'-'+Mid(Timestamp(),1,2)+'-'+Mid(Timestamp(),7,4)+' '+Mid(Timestamp(),12,8)
    Now When i do this , it displays me a time which is 3 hours ahead
    Mid(Timestamp(),4,2)+'-'+Mid(Timestamp(),1,2)+'-'+Mid(Timestamp(),7,4)+' '+Mid(Timestamp() + (3.0/24.0),12,8)
    My problem is to now display the difference of the current time stamp and the the time which shows 3 hours ahead in one field
    Thats is substracting the first timestamp syntax fro mthe second timestamp syntax
    and ofcourse if I copy paste both the syntaxes and put a minus sign in between, it doesnt work
    Timestamdiff is not allowed in workflows or field validations :(
    Anyone has any ideas?
    Nick

  • Windows automatic update disabled

    I removed a Lenovo program thinking it was extraneous and now my automatic update for windows no longer functions. I can't remember the name of the program I discarded but it's absence is sorely felt, any ideas?

    I am using Windows xp. I get a message telling me that Window Automatic update is disabled. When I go to System, Automatic updates the setting is checked for automatic but it is "greyed over". If I go to the Windows Update site I get the following messsage
    Automatic Updates (allows the site to find, download and install high-priority updates for your computer)
    Background Intelligent Transfer Service (BITS) (helps updates download more quickly and without problems if the download process is interrupted)
    Event Log (keeps a record of updating activities to help with troubleshooting, if needed)
    To make sure these services are running:
    1. Click Start, and then click Run.
    2. Type services.msc and then click OK.
    3. In the list of services, double-click on Automatic Updates and then click Properties.
    4. In the Startup type list, select Automatic and click Apply.
    5. Verify that the Service status is started, if the Service Status is Stopped click on the Start Button.
    6. In the list of services, double-click on Background Intelligent Transfer Service (BITS) and then click Properties.
    7. In the Startup type list, select Manual and click Apply.
    8. Verify that the Service status is started, If the Service Status is Stopped click on the Start Button.
    9. In the list of services, double-click on Event Log and then click Properties.
    10. In the Startup type list, select Automatic and click Apply.
    11. Verify that the Service status is started, If the Service Status is Stopped click on the Start Button.
    When I try to enable the Automatic Backup I get "Error #1058"

  • Any T code to track changes done?

    HI,
    I want to know if there is way to find out what changes has been done in all customer and Vendor , GL master data over a given period.
    Any T code to track the changes?
    regd
    Vijay

    Hi Vijay,
    Any update activities done on SAP data is tracked by the user ID that made the change. No activation of logs is required for SAP to track these changes. 
    Additional to the normal tracking done is SAP Audit Logs. These
    SAP Audit Logs can be activated to track certain activities. You can always go and click on the changes log and find the user ID of the person who has done the changes.
    Hope this answers your query.
    Regards
    Bharat

  • Adding and removing partner's w/ BAPI_ACTIVITYCRM_CHANGEMULTI

    I have a requirement to programatically update activities, leads and opportunities with with new partners of various partner functions based on an input file I will recieve. I am trying to use function module BAPI_ACTIVITYCRM_CHANGEMULTI in a custom ABAP program to accomplish this task. I am passing to it the tables partner, partnerx and input_fields. I am putting the delete records before the insert records in the internal tables. I have debuged transaction CRMD_BUS2000126 -Maintain activities and looked at how the data is passed into CRM_ORDER_MAINTAIN as my point of reference. I am finding that the deletes of the existing partners is not working but, the insert of the new partners is. For the deletes I am populating the internal tables as shown below. Whereever you see field symbol usage I've either obtained the data via the input file or database table reads which I have rechecked many times. Am I missing entries or making incorrect entries? Is there another way to delete the entries from the business transactions programatically? Thoroughly confused here. Thanks in advance. Tony Dagnillo
    partner-REF_GUID = <fs_delete_partners>-ref_guid.
    partner-ref_handle = 0.
    partner-ref_kind = 'A'.
    partner-ref_partner_handle = 0.
    partner-partner_no = <fs_delete_partners>-partner_number.
    partner-display_type = 'BP'.
    partner-no_type = 'BP'.
    partner-ref_partner_fct = <fs_delete_partners>-partner_fct.
    partner-ref_partner_no = <fs_delete_partners>-partner_number.
    partner-ref_display_type = 'BP'.
    partner-ref_no_type = 'BP'.
    partner-businesspartnerguid = <fs_delete_partners>-partner_guid.
    partner-mainpartner = <fs_delete_partners>-mainpartner.
    partner-relation_partner = <fs_delete_partners>-relation_partner.
    partnerx-REF_GUID = 'X'.
    partnerx-ref_handle = 'X'.
    partnerx-ref_kind = 'X'.
    partnerx-ref_partner_handle = 'X'.
    partnerx-partner_no = 'X'.
    partnerx-display_type = 'X'.
    partnerx-no_type = 'X'.
    partnerx-ref_partner_fct = 'X'.
    partnerx-ref_partner_no = 'X'.
    partnerx-ref_display_type = 'X'.
    partnerx-ref_no_type = 'X'.
    partnerx-businesspartnerguid = 'X'.
    partnerx-mainpartner = 'X'.
    partnerx-relation_partner = 'X'.
    input_fields-ref_handle = <fs_partner>-ref_partner_handle.
    input_fields-ref_guid = <fs_partner>-ref_guid.
    input_fields-ref_kind = 'A'.
    input_fields-objectname = 'PARTNER'.
    input_fields-logical_key(8) = <fs_partner>-ref_partner_fct.
    input_fields-logical_key+8(16) = <fs_partner>-ref_partner_no.
    input_fields-logical_key+24(2) = <fs_partner>-display_type.
    input_fields-logical_key+26(2) = <fs_partner>-no_type.
    input_fields-fieldname = 'PARTNER_FCT'.

    Take a look at  Issue while changing activity partner in BAPI BAPI_ACTIVITYCRM_CHANGEMULTI
    Similar sort of problem.
    Note the reference to header mode in this message.

  • Partitioning suggestion?

    I am working on Oracle 11gR2 2 node RAC(OLAP database) in Linux.
    I have a huge table (estimated to be around 300G) which I need to partition. Still on the designing phase so the table doesn't exist.
    The reporting queries will be looking at data for a specific day or month, but the problem here is since the database is global we will have users querying from different places(different timezones) and the data reported should take the timezone for the specific user into consideration. We are looking at around 50 different timings.
    We will be storing data for 24 months in this table.
    This would be an OLAP database and we are considering real time reporting, so I was thinking of having two separate tables, one table(say TABLE1) to store data for a week(as this will include heavy insertion and updation activities) and the other table(say TABLE2) which will hold data for 24 months. At the end of week, can use partition exchange to merge the tables.
    I was thinking of paritioning by week, but the problem is due to timezone differences, I need to query multiple partitions even to get 1 day's worth of data and a few queries which need recent week's data wouldn't be satisfied by TABLE1 and I need to query TABLE2 also.
    To give an estimate of the table size it would be growing at 300M per day.
    Any suggestions on what would be the best partitoning strategy here?

    Firstly, I would like to thank you guys for your interest on this question.
    When I say real time, I need to report on data that was generated 2 minutes ago, so the ETL processes have to run every 2 minutes and need to complete within a minute or so.
    We would be using streams to get the data from OLTP database on which the ETL queries would be running.
    Reports are of different types, the most common ones are daily(reports on every days data upto 5PM for that timezone), interim(any data from 5PM cut off till current time less 2mins) and monthly(monthly data from beginning upto end of the month).
    Now you can say that the real time data can be kept separate and other ETL can run every hour or so, but even for daily reports if user queries at 5.02PM for his timezone I need to report the earlier days data upto 5PM which means it also real time, also holds the same for monthly reports which need to be real time when the new months starts. So the ETL has to run every 2 mins.
    This is the reason I was thinking of having 2 separate tables, one which would hold 1 week data and the other table would hold rest of data for 24 months. The reason for having first week data separate is this would have heavy inserts and updates happening during first week which means this wouldn't be heavily indexed whereas the other data would see DML activities happening rarely, so they would be heavily indexes for optimum read performance.
    These reports are scheduled, but a user can run them in an ad hoc manner too whenever he likes but we won't be looking at many concurrent users, probably 4 to 5 reports running concurrently which might not be the case too mostly but to look at worst case scenarios there might be around 10 people running reports concurrently though the actual user count would be around 5000.
    There will be almost 10000 reports running daily of which around 5000 would be scheduled daily reports. Scheduled daily reports will be cached for a week. Scheduled monthly reports will be cached for 6 months. If there are any changes to the data, cached reports will be invalid and the reports need to be run again.
    Reports would be pre-written with parameters. Ad hoc reporting is very rare, once in a couple of months.
    Daily reports dont aggregate data much, would be selecting data for that specific day which the user has access to(he has access only to local data), so yes it is quite selective without much aggregates. The amount of data generated by a daily report would be around 2-3M and would involve 7500 rows.
    Interim reports pull the same data as that of daily reports but they would report data from the cut off time(5Pm everyday) till current time.
    Monthly reports involve more aggregated data. The number of rows would be in few hundreds and the size would be few hundred KB.
    Regarding the indexes, I was looking at local paritioned indexes for easy maintenance.
    Can you please eleborate a bit on this -
    Have you worked out how you can write a query which accepts an input from one timezone and does partition elimination against a table partitioned on one of the timestamp datatypes (or even partitioned on a simple date data type).
    The table would be having a date column, so I was thinking of converting the time the query was received to the timezone of that specific user and comparing the time with the date column. Will this be ok or am I missing something here?

  • Former Budgeting Vs BCS

    Hi Guys,
    We have to configure the "Funds Management" Module for our client. What would you guys suggest we should opt for
    1. Former Budgeting
    2. Budget Control Systems
    Appreciate and value your suggestion and if some one has the latest documentaion available for BCS, can you please forward or atleast tell us where to look for it.
    Regards
    Saqib

    Hi Saqib,
    Please find below mentiones some important point wise comaprison of both BCS Vs budgeting.
    BCS:The functions in this component support budget planning, budget execution and allow you to monitor the availability of funds.The budget control system (BCS) in Funds Management is an alternative to former budgeting. BCS is designed to allow flexible customer-specific adjustments to all important functions. BCS is SAP’s strategic budgeting tool.
    Implementation Considerations:If you use the Grants Management component integrated with Funds Management, only BCS fulfills the prerequisites necessary for this. This also applies if you want to work with funded programs for the account assignment. The required FM account assignment elements Grant and Funded Program are only supported in BCS.
    SAP does not intend BCS and Former Budgeting to be used at the same time. Therefore, menu transactions, functions and the necessary Customizing are separate.
    If you want to use the budget control system as an operative budgeting tool in Funds Management, you must activate this in the Customizing of Funds Management, under Basic Settings->Activate Global Functions for Budget Control System ( BCS).
    Integration:All other FM master data is also supported in BCS, as well grant and funded program master data.
    BCS includes an integrated planning tool with basis functions for budget planning. If you want to use comprehensive budget planning, you can exchange data with SAP’s Strategic Enterprise Management.
    You can use BCS together with Position Budgeting and Control (PA-PM-PB).
    The Business Information Warehouse System (BW) is intended as a comprehensive reporting tool for the budget control system, starting from Release 3.0B. You can upload your BCS planning data from BW. BCS only works with Funds Management and Grants Management, not with other components that can also budget.
    Features: You can select the relevant FM account assignments as budget addresses and posting addresses from the entirety of the master data combinations, by using the functions of the Budget Structure.
    ·        Budget distribution and the assignment of posting addresses, budget addresses and availability control objects in BCS depends on the master data hierarchy, which you can define as you wish by using derivation strategies defined in Customizing.
    ·        Customer-definable budget types, entry document types and consistency checks in BCS Budgeting allow you to map the requests of your organization in the system.
    ·        Budget entry and budget update activities are based on documents and are logged in budget entry documents. You display and maintain these in the Budgeting Workbench.
    ·        Status Management allows you to subdivide the budget execution process in individual budgeting phases and define specific user roles through different authorization assignments.
    ·        The BCS Availability Control is a flexible tool that you can customize to monitor and compare budget values and commitment/actual values. This control allows you to use independent availability control checks simultaneously.
    Restrictions:The budget control system delivered with the Enterprise-Release (EA-PS 1.10) is new and will be enhanced with additional functions in following releases.Functions such as revenues increasing the budget and releases are supported with release EA-PS 2.00. SAP also provides support for migration from Former Budgeting to BCS.
    Note that BCS reporting functions are not designed for comprehensive management reporting. You must use the Business Information Warehouse system as of Release 3.0B. BCS is not intended for use by German Government customers.Because of the reasons given above, SAP recommends that you analyze your organization’s existing functions and requirements.
    Hope I had been able to help you. Please assign points.
    Rgds
    Manish

  • B1 Calendar improvement

    I'm using the SAP Business ONE standard calendar to control my mobile engineers.
    Does any one know how to increase the number of technicians a user can see in the calendar view at any one time
    We have over 50 engineers and at the moment we can only see a maximum of 7 in the group view. If we wish to see more we have to use form settings/user tab to deselect and reselect more technicians
    I'm sure there will either be an add-on or some settings adjustment
    In addition can the list of technicians be in the vertical axis onstead of the horizontal one (this would leave more room for more engineers!
    I've been told Business OBJECTS may be able to help - hence this post

    Hi martin,
    You can open SAP B1 & then open Calender
    Use the calendar to view meetings, phone calls, and other Activities. You can also add and update activities by selecting them in the calendar.
    Note and Task activities are not displayed in the calendar.
    To access this window, press --> Alt + W ---> choose Calender ---> for more details about calender --> Click F1
    Regards,
    Abhishek

  • Report with checkbox problem

    I have a process that approves activities by clicking on the checkbox of my report. This is my first column called htmldb_application.g_f01. When I try to approve activities and I try to return the value of htmldb_application.g_f11(i), it always stays on the first value. Here is my code :
    Declare
    --Niveau_Approb number;
    Retard number;
    Date_Prevue_Active date;
    Approbation1 number;
    Delegue2 number;
    Approbateur2 number;
    Approb2 number;
    l_count number;
    Usager_Approb2 number;
    Niveau number;
    Begin
    for i in 1..htmldb_application.g_f01.count
    loop
    select count(*)
    into Usager_Approb2
    from Approbateur, tache, activite
    where activite.code_activite        = htmldb_application.g_f01(i)
    And   activite.code_tache           = tache.code_tache
    And   tache.code_tache              = approbateur.code_tache
    and   approbateur.niveau_approbation = 2
    and   approbateur.pein               = :USAGER_ACTIF
    and   code_activite not in
             select code_activite
             from Delegation, tache, activite
             where activite.code_activite        = htmldb_application.g_f01(i)
             And   activite.code_tache           = tache.code_tache
             And   tache.code_tache              = delegation.code_tache
             and   to_date(activite.date_prevue, 'YYYY-MM-DD')
             between to_date(delegation.date_debut, 'YYY-MM-DD') and to_date(delegation.date_fin, 'YYYY-MM-DD')
             and   delegation.niveau_approbation = 2
             and   delegation.pein = :USAGER_ACTIF);
    select count(*)
    into Approbation1
    from approbation
    where code_activite      = htmldb_application.g_f01(i)
    and   niveau_approbation = 1;
    into Delegue2
    from Delegation, tache, activite
    where activite.code_activite        = htmldb_application.g_f01(i)
    And   activite.code_tache           = tache.code_tache
    And   tache.code_tache              = delegation.code_tache
    and   delegation.niveau_approbation = 2;
    select count(*)
    into Approbateur2
    from Approbateur, tache, activite
    where activite.code_activite         = htmldb_application.g_f01(i)
    And   activite.code_tache            = tache.code_tache
    And   tache.code_tache               = approbateur.code_tache
    and   approbateur.niveau_approbation = 2;
    Niveau :=htmldb_application.g_f11(i);
        RAISE_application_error(-20000,Niveau,TRUE);
    IF (htmldb_application.g_f11(i)=2) And (Approbation1 <= 0)
    THEN
        RAISE_application_error(-20000,'  An approbation from level 1 needs to be done before you approve level 2./ Une approbation de niveau 1 doit avoir été effectuée pour que vous puissiez approuver avec un niveau 2.',TRUE);
    elsif (htmldb_application.g_f11(i)=1) and (usager_approb2 >= 1)
    then
         RAISE_application_error(-20000,'You already have to approve level 2 so you can not approve level 1/ Vous devez déjà approuver un niveau 2 alors vous ne pouvez approuver un niveau 1.',TRUE);
    ELSE
       Insert into Approbation (PEIN, CODE_ACTIVITE, DATE_APPROBATION, DATE_CREATION, PEIN_CREATION,
       NIVEAU_APPROBATION, PEIN_REVISION, DATE_REVISION)
       Values (:USAGER_ACTIF, htmldb_application.g_f01(i),sysdate, sysdate,
       :USAGER_ACTIF,htmldb_application.g_f11(i), :USAGER_ACTIF, sysdate);
       commit;
       Select NBJRS_RETARD into Retard from tache, activite where activite.code_activite =   
       htmldb_application.g_f01(i) and activite.code_tache = tache.code_tache;
       Select date_prevue into Date_Prevue_Active from activite where activite.code_activite =  
       htmldb_application.g_f01(i);
       if (trunc(sysdate) > trunc(Date_Prevue_Active)+Retard)
       then
          if (htmldb_application.g_f11(i)= 1 ) And (Delegue2 <=0) And (
              Approbateur2 <= 0)
          then
             Update activite set succes = 'T', STATUT_QUALITE = 'En Retard',DATE_REVISION = sysdate,
             pein_revision = :USAGER_ACTIF
             where code_activite = htmldb_application.g_f01(i);
          elsif (htmldb_application.g_f11(i) = 1) And ((Delegue2 > 0) OR (
                 Approbateur2 > 0))
          then
              Update activite set succes = 'C', STATUT_QUALITE = '2',
              DATE_REVISION = sysdate,
              pein_revision = :USAGER_ACTIF
              where code_activite = htmldb_application.g_f01(i);
           elsif (htmldb_application.g_f11(i) = 2) and (Approbation1 > 0)
           then
                Update activite set succes = 'T', STATUT_QUALITE = 'En Retard',
                DATE_REVISION = sysdate,
                pein_revision = :USAGER_ACTIF
                where code_activite = htmldb_application.g_f01(i);
           end if;
       else
         if (htmldb_application.g_f11(i)= 1 ) And (Delegue2 <=0) And ( Approbateur2 <= 0)
         then
                 Update activite set succes = 'T', STATUT_QUALITE = 'À Temps',
                 DATE_REVISION = sysdate,
                 pein_revision = :USAGER_ACTIF
                 where code_activite = htmldb_application.g_f01(i);
         elsif (htmldb_application.g_f11(i) = 1) And ((Delegue2 > 0) OR ( Approbateur2 > 0))
         then
                 Update activite set succes = 'C', STATUT_QUALITE = '2',DATE_REVISION = sysdate,
                 pein_revision = :USAGER_ACTIF
                 where code_activite = htmldb_application.g_f01(i);
         elsif (htmldb_application.g_f11(i)= 2) and (Approbation1 > 0)
         then
                 Update activite set succes = 'T', STATUT_QUALITE = 'À Temps',
                 DATE_REVISION = sysdate,
                 pein_revision = :USAGER_ACTIF
                 where code_activite = htmldb_application.g_f01(i) ;
         end if;
      end if;
    Anyone can help me ??
    Thanks
    Chantale
       commit;
    end if;
      --  RAISE_application_error(-20000,Niveau,TRUE);
    end loop;
    end;

    Hi all,
    I have the same problem with another report, here is part of my code :
    DECLARE
    q VARCHAR2 (30000);
    tbl VARCHAR2 (30000);
    w varchar2(500);
    n varchar2(3);
    BEGIN
    q := ' select APEX_ITEM.CHECKBOX(14,rownum) id,x.Nom,' ||
    'APEX_ITEM.SELECT_LIST_FROM_LOV(11,x.IdHoraire,''' ||
    'LISTE DES HORAIRES DE TRAVAIL' || ''',null,''' || 'NO' || ''') as Horaire,' ||
    'APEX_ITEM.CHECKBOX(12,x.TechAccredite,' ||
    'decode(x.TechAccredite,null,null,' || '''CHECKED''' || ')) Accredite, ' ||
    'APEX_ITEM.TEXT(13,x.Numero,10,10,' ||
    '''onblur="javascript:if(!valider_telephone(1,this.value)){alert(''' ||
    '''Numero non valide''' || '''); this.focus();};"''' || ') Tel, ' ||
    'APEX_ITEM.HIDDEN(10,x.IdCT) as ICT';
    q := q || ' from (';
    tbl := ' a valide select statement';
    q := q || tbl || ' ) x ';
    w := ' where ';
    w := w || ' x.IdDepot = decode(:P97_IDDEPOT,-1,x.IdDepot,:P97_IDDEPOT) ';
    w := w || ' or x.IdDepot is null ';
    w:= w || ' order by 2';
    q := q || w;
    RETURN q;
    END;
    and I created a process :
    declare
    res varchar2(100);
    id number;
    Begin
    res := 'res';
    for i in 1..APEX_APPLICATION.G_F14.count loop
    id := to_number(APEX_APPLICATION.G_F14(i));
    res := res || ' i=' || i || ' rownum ' || id || ' th ' ||
    APEX_APPLICATION.G_F11(APEX_APPLICATION.G_F14(i));
    end loop;
    :P97_POUB := res;
    End;
    My process just print the 'res' in an item named P97_POUB, so I can see if evry thing works.
    But I still have a no data found error.
    Benn

  • New os was installed and all my data wiped

    i tried to upgrade my bb z10 to the new os after which the data on the phone wiped completely, I cant access my contacts, call log or blackberry messenger. what do i do?

    Hi and Welcome to the Community!
    Not knowing which, of the several, method you used to perform the upgrade, it is impossible to be certain. But, some of the methods include an automatic backup/restore of your data. Other methods do not. But, even if they do, I do not recommend depending on it...things can go wrong, quite simply. Rather, I always recommend a manual full backup prior to any update activities. If you did not do so, then you have no source of data from which to now restore, which means you have lost everything. If you used perhaps a PC-based method to upgrade, there may be a backup file on your PC that was taken at the time the update was done...which you can use as the source now of restore.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help with Delete Contact WS

    Hi All
    I'm trying to delete Contacts using "ContactWS_ContactDelete_Input" web service. Even though a valid contactId is passed, getting an error "<siebelf:errormsg>No rows retrieved corresponding to the business component &apos;Contact&apos;(SBL-EAI-04378)</siebelf:errormsg>
    Appreciate any help.
    Thanks
    user566811

    By any chance is the Private Flag set for this particular contact?
    This is the same issue I found trying to update activities. If the private flag was set, I could not update it via the Web Service or see it in the UI .. however, I could see it in a report !!

  • Deploying a Task Sequence is stuck at Downloading, 0%

    Hi,
    I want to deploy  a custom task sequence that performs the following Tasks:
    Run Program  to disable the write filter.
    Perform software distribution and software update activities
    Run Program  to enable the write filter
    I did everthing like ist explained here:
    System Center Configuration Manager Team Blog
    How to Manage Windows Embedded Write Filters Using System Center 2012 Configuration Manager
    On the client, in Software Center, the Task Sequence is stuck at "Downloading, 0% complete".
    I tried the same with a simple vbs Script which opens a MsgBox, the result is exactly the same...
    Which logs can i use to search for errors? What is causing this error?

    cscript.exe is running in the taskmgr, but it's  no terminated after the the deployment.
    smsts.log: (I've deleted  D:\_SMSTaskSequence manually...)
    ==========[ TsProgressUI started in process 624 ]========== TsProgressUI 5/27/2014 2:01:30 PM 2288 (0x08F0)
    Registering COM classes TsProgressUI 5/27/2014 2:01:30 PM 2288 (0x08F0)
    sbModulePath = C:\Windows\CCM\TsProgressUI.exe TsProgressUI 5/27/2014 2:01:30 PM 2288 (0x08F0)
    Shutdown complete. TsProgressUI 5/27/2014 2:01:30 PM 2288 (0x08F0)
    Successfully intialized Logging for TS Manager. TSManager 5/27/2014 2:01:32 PM 3532 (0x0DCC)
    Commandline: C:\Windows\CCM\TSManager.exe /service TSManager 5/27/2014 2:01:32 PM 3532 (0x0DCC)
    Successfully registered Task Sequencing COM Interface. TSManager 5/27/2014 2:01:32 PM 3532 (0x0DCC)
    Executing as a service TSManager 5/27/2014 2:01:32 PM 3532 (0x0DCC)
    Started ServiceMain TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Task Sequence Manager executing as service main thread TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Deleting volume ID file D:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Waiting for CcmExec service to be fully operational TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    CcmExec service is up and fully operational TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Remediating TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    NAP is not enabled. Skipping quarantine check. (Code: 80040154) TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Remediation returned 00000000 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    System is not in quarantine. Continuing with task sequence. TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Parsing task sequence . . . TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Task sequence schema version is 3.00 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Current supported schema version is 3.10 and 3.00 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Starting Task Sequence Engine . . .  TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    **************************************************************************** TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSNextInstructionPointer=0 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSInstructionTableSize=1 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable SMSTSRebootRequested= TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable SMSTSRebootDelay= TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable SMSTSRebootMessage= TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable SMSTSRebootReason= TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set a global environment variable SMSTSRetryRequested= TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    The task execution engine started execution TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Set authenticator in transport TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Default CSP Type is 24 TSManager 5/27/2014 2:01:32 PM 3900 (0x0F3C)
    Start executing an instruction. Instruction name: Run Command Line. Instruction pointer: 0 TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSCurrentActionName=Run Command Line TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSNextInstructionPointer=0 TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a local default variable SMSTSDisableWow64Redirection TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a local default variable _SMSTSRunCommandLineAsUser TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSLogPath=C:\Windows\CCM\Logs\SMSTSLog TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Expand a string: smsswd.exe /run: cmd.exe /c start "" cscript.exe  D:\Test.vbs TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Expand a string:  TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Start executing the command line: smsswd.exe /run: cmd.exe /c start "" cscript.exe  D:\Test.vbs TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    !--------------------------------------------------------------------------------------------! TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Expand a string: WinPEandFullOS TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Executing command line: smsswd.exe /run: cmd.exe /c start "" cscript.exe  D:\Test.vbs TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    [ smsswd.exe ] InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    PackageID = '' InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    BaseVar = '', ContinueOnError='' InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    ProgramName = 'cmd.exe /c start "" cscript.exe D:\Test.vbs' InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    SwdAction = '0001' InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    Working dir 'not set' InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    Executing command line: Run command line InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    Process completed with exit code 0 InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    Command line returned 0 InstallSoftware 5/27/2014 2:01:34 PM 3968 (0x0F80)
    Process completed with exit code 0 TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    !--------------------------------------------------------------------------------------------! TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Successfully completed the action (Run Command Line) with the exit win32 code 0 TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set authenticator in transport TSManager 5/27/2014 2:01:34 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSLastActionRetCode=0 TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSLastActionSucceeded=true TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Clear local default environment TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Updated security on object D:\_SMSTaskSequence. TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSNextInstructionPointer=1 TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set a TS execution environment variable _SMSTSNextInstructionPointer=1 TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set a global environment variable _SMSTSInstructionStackString= TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set a TS execution environment variable _SMSTSInstructionStackString= TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Save the current environment block TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    The task exeuction engine successfully completed the execution TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    Set authenticator in transport TSManager 5/27/2014 2:01:35 PM 3900 (0x0F3C)
    **************************************************************************** TSManager 5/27/2014 2:01:36 PM 3900 (0x0F3C)
    Execution engine result code: Success (0) TSManager 5/27/2014 2:01:36 PM 3900 (0x0F3C)
    Cleaning Up. TSManager 5/27/2014 2:01:36 PM 3900 (0x0F3C)
    Removing Authenticator TSManager 5/27/2014 2:01:36 PM 3900 (0x0F3C)
    Cleaning up task sequence folder TSManager 5/27/2014 2:01:36 PM 3900 (0x0F3C)
    Unable to delete file D:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Failed to delete directory 'D:\_SMSTaskSequence' TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    SetNamedSecurityInfo() failed. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    SetObjectOwner() failed. 0x80070005. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    RemoveFile() failed for D:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    RemoveDirectoryW failed (0x80070091) for D:\_SMSTaskSequence TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Deleting volume ID file D:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Successfully unregistered Task Sequencing Environment COM Interface. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Executing command line: "C:\Windows\CCM\TsProgressUI.exe" /Unregister TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    ==========[ TsProgressUI started in process 2284 ]========== TsProgressUI 5/27/2014 2:01:37 PM 3952 (0x0F70)
    Unregistering COM classes TsProgressUI 5/27/2014 2:01:37 PM 3952 (0x0F70)
    Shutdown complete. TsProgressUI 5/27/2014 2:01:37 PM 3952 (0x0F70)
    Process completed with exit code 0 TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Successfully unregistered TS Progress UI. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Start to cleanup TS policy TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    End TS policy cleanup TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Task Sequence Manager ServiceMain finished execution. TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Task Sequence Manager service will be reconfigured TSManager 5/27/2014 2:01:37 PM 3900 (0x0F3C)
    Task Sequence Manager service reconfigured successfully TSManager 5/27/2014 2:01:39 PM 3900 (0x0F3C)
    Sending success status message TSManager 5/27/2014 2:01:39 PM 3900 (0x0F3C)
    Set authenticator in transport TSManager 5/27/2014 2:01:39 PM 3900 (0x0F3C)
    RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 5/27/2014 2:01:40 PM 3900 (0x0F3C)
    GetTsRegValue() is unsuccessful. 0x80070002. TSManager 5/27/2014 2:01:40 PM 3900 (0x0F3C)
    End program:  TSManager 5/27/2014 2:01:40 PM 3900 (0x0F3C)
    Successfully finalized logs to SMS client log directory from C:\Windows\CCM\Logs TSManager 5/27/2014 2:01:40 PM 3900 (0x0F3C)

Maybe you are looking for