Unable to commit the project status change

Dear Experts,
I am developing a utility program to change the status of multiple projects at once.
I am changing the status of Phase, task, check list,check list item and Project status from
Create to Release, release to Complete and to Work Effor Complete.With respective status change BAPIS.
when ever the projects is not able to change the status success fully due to validations
such as person respondsble not mainted or any other basic data is missing,
We are not committing the changes if every thing goes fine we are commiting with BAPI: BAPI_CPROJECTS_COMMIT_WORK
but when we commit with this it still retaining the previous project status in LUW and trying to commit previous project too.
and commit is getting failed.
I am not able to roll back or free the project with BAPI:BAPI_CPROJECTS_ROLLBACK_WORK and BAPI_BUS2172_FREE
BAPI_CPROJECTS_ROLLBACK_WORK: when iam trying to use this BAPI it is going to short dump
BAPI_BUS2172_FREE:  It is returing error saying unable to free the project.
Could you please tell how to roll back the changes to the project or how to commit only success full projects (Project with out any errors in status change.)
Kindly do the needful
Thanking you.
-ravi

Program flow
Loop at It_Project
*Status Change for Check List
CALL FUNCTION 'BAPI_BUS2176_SET_STATUS'
    EXPORTING
      checklist_guid                = p_guid
  IV_STATUS_PROFILE             =
     is_business_transaction       = lv_bus_trans
     TABLES
         return                    =  t_return.
*Status Change for task
  CALL FUNCTION 'BAPI_BUS2175_SET_STATUS'
    EXPORTING
      task_guid               = p_guid
      is_business_transaction = lv_bus_trans
    TABLES
      return                  = t_return.
*Status Change for project
CALL FUNCTION 'BAPI_BUS2172_SET_STATUS'
      EXPORTING
        project_definition_guid = p_guid
        is_business_transaction = lv_bus_trans
      TABLES
        return                  = t_return.
If there is a sucess in changing the status.
CALL FUNCTION 'BAPI_CPROJECTS_COMMIT_WORK'
    TABLES
      return = t_creturn.
Else.
    CALL FUNCTION 'BAPI_CPROJECTS_ROLLBACK_WORK'
      TABLES
        return = t_rreturn.
Endif.
Endloop.
In the above code when we are executing  BAPI_CPROJECTS_ROLLBACK_WORK is going for dump.
If we simply commit with  BAPI_CPROJECTS_COMMIT_WORK for all the projects then if any project
commits with error same error is re produced for all the following projectsid (unable to destroy the LUW).
and in CRM we can't use 'BAPI_TRANSACTION_ROLLBACK'.

Similar Messages

  • Project Status Change Date

    Hi!
    I wolud like to see the Project Status Changed dates. Which data base table I need to refer?
    Thanks in advance.
    Regards,

    It is not given in any standard report/ table, you need to develop some report and that also may not be straight forward to get it.  But the same you can get in  any PS structure maintenance T Code say Cj20n  >Open that WBS> Keep cursor on it> Click on bule I Icon which get displyed on right hand pan > click on first left menu here you will get all the change history.
    With regards
    Nitin P.

  • Unable to open the Project web app Instnace , giving STS error

    I am unable to open the Project server web app instance from CA- Proejctserver application service -- Manage , it is giving error and I am unable to open the instance as well http://intranet.cmpy.com/pwa also giving error . LOg is showing as below
    An operation failed because the following certificate has validation errors:  Subject Name: CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US Issuer Name: CN=SharePoint Root Authority, OU=SharePoint, O=Microsoft, C=US Thumbprint:
    I have tried all the ways to fix STS error , is there any option to reprovision with out loosing the data and projects and subsites
    Srini

    By Creating the root certificate solved my issue
    Srini

  • Unable to open the Projects from Project center with the Alias name PWA 2010

    Hi,
    I am unable to open the Projects from Project center with the Alias name with the server name i am able to open the projects, version is  project server 2010,
    My system is ABC.DC.IN  alias name i have given is DEF.AD.COM  
    With the system name i can able access PWA and all are working fine.
    As i have observed with alias name i can able to login to  pwa and all the server  setting approval center all are working fine but only in the project center i am not able to open the projects (http://DEF.AD.COM/pwa/ProjectDrillDown.aspx .xxxx) its
    is coming in the below of the ie. 
    But with Alias name these are the issues i am facing,
    1.when longing with alias name its asking two times for user name and password
    2.when i click on a project from project center its taking some time and asking for user name and password after i enter user name and password "PAGE cannot displayed" error i am getting.
    3. I have observed one more thing if click on Project details then only this issue  is coming project schedule and project information is also opening with Alias name.
    can any one Help me. 
    Vijay kommireddi

    Hi
    Hope the below link will help you.
    And also please check the browser which you are using as mostly IE 8.0 won't support, Please try it in IE 9.0 and Chrome.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c03300d2-2a27-4d5d-b3f6-a3660805e125/alternative-access-mapping-when-accessing-the-site-it-is-asking-for-username-and-password
    Thanks
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

  • I cannot access Content Library in iMovie - Content Library doesn't show on the iMovie screen and is greyed out when accessed through "windows" tab at the top. Also unable to update the projects/events (a suggested solution for a similar question).

    I cannot access Content Library in iMovie - Content Library doesn't show on the iMovie screen and is greyed out when accessed through "windows" tab at the top. Also unable to update the projects/events (a suggested solution for a similar question). I haven't had this issue before, I have always used the content library on the screen but haven't used this for about a month. How can I make the Content Library available?

    Thanks so much! I am backing up the entire computer now with an external hard drive - this should be fine right? And surely if I am backing up the whole computer these projects/videos will be backed up too? I wasn't sure how to do this any other way and I am clearly not great with tech issues. Once this is done and I am sure my projects/videos are safe I will do the delete and reinstall bit. Thanks for taking the time to help

  • "The project has changed - do you want to save changes?"

    This is more or less a meaningless warning in Adobe Captivate 5. if I OPEN a project and close it immediately I get this warning: the project has changed. But that is not correct, I didn't touch a single slide, I simply open the file and look at it, then click on the Close button.
    If I save the project, then chose Export Captions, I get this warning as well. How can exporting captions count as a change to the project?

    Hello,
    It is just my intuition: thinking that the cache is updated whenever you open the project, so perhaps this is the reason?
    Lilybiri

  • I have iMove 11 and photos turn very dark when I drag  them into the project. Changing colour white balance does not fix the problem.

    I have iMove 11 and photos turn very dark when I drag  them into the project. Changing colour white balance does not fix the problem.

    Thanks for your no help line.

  • Browser unable to update the service status bits

    I am having an issue with my computer becoming non-working. After a period of time of inactivity and then I go to use the computer, I can move the mouse cursor around but can do nothing else. I have noticed that when moving the cursor around that when I move it to the task-bar I get the hour glass waiting icon. I checked the event viewer and in the applications log I have numerous errors which say "The browser was unable to update the service status bits" Can you explain this and are there any fixes? Thank you

    Hi Avinash,
    Yes, CTS_BROWSER service is active. It was working before when I click to test. Unfortunately, it started throwing error. We are on SP13 in SOLMAN. I'm using solman as an ABAP stack.
    Thanks for your time.

  • SAP JIT Inbound - The external status change you requested is not planned

    Hi All,
    I am getting an error as "The external status change you requested is not planned" while creating JIT call in JIT inbound.
    I have configured actions and external status.
    What would be the problem??
    Help me
    Thanks,
    Anbazhagan

    Hi Lakshmipathi,
    Thanks for your reply.
    I missed out some configuration. Now the issue is solved.
    Thanks,
    Anbazhagan E

  • Unable to edit the Project details from PWA in Project server 2013

    I am Migrating the project from MS Project 2007 to MS Project 2013.In that i save the project as a file first in 2007 and then open that file in  MS Project 2013 And publish it.But in some Project when i am Trying to change the projects details from
    PWA in Project server 2013 and then trying to save then the projects are not saving and are generating the error as shown below
    •GeneralQueueException:◦GeneralQueueException (9131). Details: id='9131' name='GeneralQueueException' uid='f7bb5d93-20e9-e411-b302-005056ae159c' messageID='2' exception='System.TimeoutException: This request operation sent to net.pipe://localhost/pscalc_13c43af4a7d34a2c8145b776b325a865
    did not receive a reply within the configured timeout (00:05:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a
    reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client. Server stack trace: at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message
    message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type) at Microsoft.Office.Project.Server.Interfaces.ICalcService.OpenProjectRemappedProject(CalcServiceCallState callState, Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType sessionType,
    PSError& psError) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceChannel.OpenProjectRemappedProject(CalcServiceCallState callState, Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType sessionType,
    PSError& psError) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.<>c__DisplayClass2.<OpenProjectRemappedProject>b__1(ICalcServiceChannel calcServiceChannel, PSError& localPsError, EngineSessionState& localSessionState)
    at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.<>c__DisplayClass6e`1.<RunCalcServiceOperation>b__6c() at Microsoft.Office.Project.Server.Base.IdentityUtilities.<>c__DisplayClass1`1.<RunWithAccessToAppTierServices>b__0()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback
    secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.Office.Project.Server.Base.IdentityUtilities.RunWithAccessToAppTierServices[T](Func`1 action) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.RunCalcServiceOperation[T](CalcServiceOperation3`1
    func, EngineSessionState& sessionState, String scopeName) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.OpenProjectRemappedProject(Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType
    sessionType) at Microsoft.Office.Project.Server.BusinessLayer.ProjectEngineUpdate.OpenProject() at Microsoft.Office.Project.Server.BusinessLayer.ProjectEngineUpdate.HandleUpdate() at Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.HandleProject2(MessageContext
    mContext, ProjectMain project, ServerEventManager sem, ProjectDataSet dataset, Guid projectUid, Guid sessionUid) at Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.InternalDispatchMessage(IPlatformContext context, Message msg, Group messageGroup,
    JobTicket jobTicket, MessageContext mContext)'. 
    •Queue:◦GeneralQueueJobFailed (26000) - ProjectUpdate.ProjectUpdate2Message. Details: id='26000' name='GeneralQueueJobFailed' uid='f8bb5d93-20e9-e411-b302-005056ae159c' JobUID='a6fa36de-1fe9-e411-b302-005056ae159c' ComputerName='1af8030b-7714-4c8f-8738-903b73e87a82'
    GroupType='ProjectUpdate' MessageType='ProjectUpdate2Message' MessageId='2' Stage='' CorrelationUID='0a4aff9c-dd6b-7015-87a8-29d876e1540c'. For more details, check the ULS logs on machine 1af8030b-7714-4c8f-8738-903b73e87a82 for entries with JobUID a6fa36de-1fe9-e411-b302-005056ae159c. 
    What will i do .Please help.

    Hi Jeremy,
    Thanks for the reply .I try the steps that is given in link above but its not working.Please suggest something.What
    should i do.

  • Can the project status be influenced by billing plan in sales order?

    I am facing the following problem: 
    I linked the WBS Element to a sales order billing plan (in header: account assignment).
    Now, is there a possibility to prevent changing the status of the project to “close technically”, while there are still some invoices of the billing in the sales order not billed?
    I want to make sure that a project can only be closed once all the invoices related to the project were billed.
    Thanks in advance
    Maike

    Hello Maike,
    I have different view here:
    System status is set to FNBL automatically when all the items in the sales orders are billed. So user does not really need to set it.
    TECO is a status which should follow FNBL generally speaking. And it has to be put manually.
    Now, if the requirement is to throw an error when FNBL or TECO is put manually if not all the sales orders items are billed- it can be done by using validation.
    A validation can be activated which will check for any open billing item for that WBS when status is set to TECO. If there is any, it will throw an error while saving WBS with TECO.So it will not allow to set TECO. T code for validation is OPSI.
    Thanks,
    Sourabh

  • CJ20N Authorization Object for Project Status Changes

    Hi Gurus,
      Can any one knows the Authorization Object responsible to control the change of status for a project in the CJ20N?
      We want to control who can and who can't change the STATUS of a project independent from other changes.
    Regards
    Gustavo Balboa

    User authorization object B_USERSTAT. Before that u should define authorization key in Tcode:BS52 and assign it to User status in Tcode:OK02.
    In authorization object B_USERSTAT set ERSL=Authorization Key, so that the user can change the status of that perticular status only.
    Venkat

  • Tracking Project Status Changes

    Hi,
    I need to create a query to look back at the status changes a project goes through but I cannot see anywhere that the project record history or the status history is saved and date stamped.
    Are there tables that store the status history or something similar?
    Please reply to: [email protected]
    Thanks
    Andy

    This is for 11.5.10+...
    SELECT
    chg.last_update_date changed,
    chg.old_project_status_code || ' ==> ' || chg.new_project_status_codestatus_change,
    usr.description changed_by,
    chg.change_comment comments
    FROM
    apps.pa_projects_all          pa,
    apps.pa_obj_status_changes     chg,
    apps.fnd_user usr
    WHERE 1=1
    AND pa.segment1 = 'ATA5' --project number here!!
    AND pa.project_id = chg.object_id
    AND chg.status_type = 'PROJECT'
    AND usr.user_id = chg.last_update_login
    ORDER BY
    chg.obj_status_change_id
    ;

  • Unable to load the project. latter is probably damaged or contain outdated elements

    any one can help me with this probleme

    Hi,
    I am the one with the problem wich kaderdz exposed. Sorry for my English writing, my first language is French!
    I still have the same problem and some of my projects won't open (months of work...).
    The few projects that opens are kind of weird : only one chanel work in the audio, and the "title" window has also change. Here are some screen shots of what happens :
    message 1:
    message 2 - translation : impossible to charge the project. It is damage or contain obsolet elements :
    message 3 :
    title window :
    I would be so grateful if you can solve the problem. It's a lot of work!!

  • Question over the appraisal status change

    Dear All,
    Our appraisal has ( following the flexible template ) has planning, mid year review and final phases. With in each main status we have sub status configured. Example - In the planning stage ( say in the month of February ) , employee add objectives, change weights etc and send to manager for approval. If manager approves, the document status will be changed from planning  to mid year status and employee's form is changed to the display mode ( so he cannot update objectives / weight etc)
    Then again in the mid year  status ( say a few months later - June ist ), the employee needs to review the appraisal, add or update the objectives etc and submit for manager approval.
    My issue is -  After the employee's appraisal form is changed to display only from planning to review status - How the employee's appraisal  form can be changed from a read only to change mode in the same status ? As it is necessary for employee to add/ update in the form.
    I am seeking the best approaches for the below as I am considering two options ( as mentioned below )
    1)   For the  mid year status  , I will configure a sub status ( called start mid year ) and attach a push button. The employee select the push button during the mid year  period ( say June 1st ) and this push button triggers the status change from Mid year to Mid Year / Start Mid year. We also plan to apply a custom implementation for  BADI for column access and badi  (HRHAP00_COL_ACCESS) will decide the access control for columns etc.
    2) The other approach I am considering is we are considering a workflow (INFO_APPRAISEE_CHANGE_REVIEW ) to notify th employee 7 days before the mid year review starts. Can this workflow trigger the status change or read the column access from the BADI (HRHAP00_COL_ACCESS) ?
    Any other simpler approaches ?
    I saw in the Process config ( tabs and process ) that we can define the phase with dates and status / substatus etc. Can this be useful for the above scenario. For eg. On June 1st when the mid year review start, can the status be changed  like from Mid year  to Mid Year / Start Mid year ?
    Please let me know . Greatly Appreciated!
    Aneez Hameed

    Hi Aneez, both options are great,   HRHAP00_COL_ACCESS is configurable at each sub-status, so you have many options.  You can have the manager "approve" at beginning of year, but keep it in "in planning" by having a 3rd sub-status.
    You can have the employee or manager have access to the pushbutton so that mid-term can start. 
    you can also do a workflow option where it is changed automatically, your option 2.
    the final option is the HR adminstrator can change the status, by doing a mass select in phap_admin and then they change to the status to move it to "in review" with all of your mid-term substatuses. 
    they key to making this work is the additional config that goes along with HRHAP00_COL_ACCESS.  here you will want to do define a Z table with the following columns:
    object id - your template ID
    role - which are the same roles values defined at your template - apee for apraisee
    template status - integer - represents status ID
    template sub-status - ID
    column id - FAPP, OBJO, etc..
    availability indicator (char) - here you will configure H, X etc... which the badi uses to know how to handle it. 
    best regards - michael

Maybe you are looking for

  • Officejet Pro 8600 won't print PDF's

    Just bought a new OJP 8600 (3rd HP printer in a year, starting to get VERY frustrated). I've searched through all of the forums, all over the internet and cannot find a solution.  I'm on a Mac OSX 10.9.3. I can't print any PDF files either through Ac

  • I'm getting an error message when trying to down loan acrobat std

    How can I install Acrobat Standard XI on my Mac? I have paid and have the serial number but am getting an error message that it cannot be opened in Word because it is larger than 32 mb.  Why is it trying to open in Word? I don't get it.

  • How to connect bluetooth mouse

    Bought a bluetooth keyboard which is for mac and they say to use a use first but it dont work. Ipad does not connect to mouse which is bluetooth

  • T60P cannot download drivers / connect to proper wireless

    I got a new hard drive for my T60P, so I am trying to install Windows XP on it. I got the computer through govconnection, so it never came with a recovery disk; now I am trying to install a clean version and install all the drivers manually, and it i

  • B/S account #24114 is debited twice

    Hi , When an invoice is issued, there is also a coop accrual, the entry is the following : u2022     Debit P&L account #660200 u201CCoop advertisingu201D, cost center #126205 u2022     Credit B/S account #24114 Accrued Coop Once the customer deducted