CProjects 4.0: BAdI: DPR_EVENTS

Hi all,
I am using the BAdI DPR_EVENTS with the filter ON_IF_DPR_COMMON_CHANGED.
In the ON_EVENT method, I am checking the object type of the sender using METHOD ir_sender->get_object_type and if object type is TTO (task), I am using
METHOD ir_sender->get_guid to get the GUID of the task. Then I am making an entry in a z-database table.
Now the problem is that when the BAdI is activated, I cannot created Tasks and Sub-Tasks in cProjects where as when it is inactivated, Creating of tasks and sub-tasks works properly.
Any solution to this.
Regards,
Reema.

Hi Reema.
Without a look in the exact codes in the BaDi method, it is very difficult to find the  cause of problem. If you have ABAP experience, you can set break point of the codes and check the flow logic. It is more easy to find the cause in this way .
tips: put some if statement to deactive the actions, so that you can locate the exact codes, which cause the problem.
Kind regards,
Zhenbo

Similar Messages

  • Badi DPR_EVENTS

    hi,
    I am using the badi DPR_EVENTS (and implemented it in a class) to get the changes of the project definition (dpo) in cprojects.
    it workes fine for the on_change event but how can I find out which field of the project description has changed (e. g. Project description or project number)?
    my aim is to handle only the case when the project description has changed...

    Hi Thorsten,
    this can become a bit tricky. The description is language dependant and is therefore treated a bit different from the other attributes.
    But I found a method call with which you can get the description from the database. This you could to test against the current description as found on the UI:
      rv_description = cl_dpr_common_services=>get_description_by_cgpl(
                                ir_common  = me
                                iv_langu   = iv_langu ).
    Maybe this helps.
    Best regards,
    Thomas

  • Accounting Project - Badi DPR_EVENTS

    Hi Gurus,
    when the project is posted in 'RELEASE' status i have to associate to the project, in accounting dynpro, an internal order just created.
    I found Badi DPR_EVENTS use with filter ON_PPO_RELEASED but i don't understand how can be use.
    There's someone with code sample for help me?
    Thank's in advance.
    Best Regards.
    Daniele Monti

    Hi Thorsten,
    this can become a bit tricky. The description is language dependant and is therefore treated a bit different from the other attributes.
    But I found a method call with which you can get the description from the database. This you could to test against the current description as found on the UI:
      rv_description = cl_dpr_common_services=>get_description_by_cgpl(
                                ir_common  = me
                                iv_langu   = iv_langu ).
    Maybe this helps.
    Best regards,
    Thomas

  • BAdi DPR_EVENTS for user statuses

    Hi,
    Anyone having ideas on how to use the BAdi DPR_EVENTS when user defined statuses are triggered?
    Regards,
    Vivek?

    Hi Vivek,
    It's not possible to use this BADI for user defined statuses.
    We had a similar need a few months ago. We solved it by implementing an enhancement (pre/post exit) in dynpro DPR_STATUS_THRESHOLDS, view VI_STATUS, method ONACTIONCHANGE_STATUS. We can detect here which status (user or system) has been selected.
    Matthias

  • CProjects-PS Integration

    Hi,
    I have a requirement wherein when the user sets the cProject status to "Flag for Transfer", I want to throw up an error message depending on certain conditions. Do we have any event for this?
    Also while creating the WBS element, I plan to use the BADI Implementation CPRO_PROJECT_LABEL. I kept a breakpoint in GET_WBS_ELEMENT method to observer the parameters, but it didn't stop there though the WBS element is created succefully.
    Do we have any other ways of debugging this?
    I am sure its going into CPRO_PROJECT_LABEL because I enhanced GET_WBS_ELEMENT  and hardcoded the WBS description and the new WBS element has this hardcoded description.
    Thanks
    Regards,
    Ravikanth

    Hi Ravikanth,
    For the event handling, you can use the BADI  DPR_EVENTS  to implment your own logic to react of the status change.
    Regarding Breakpoint, if the implemented codes works and breakpoint not stopped, it can be the problem with different servers.
    Either make sure, that the UI (Internet explorer) uses the same  server where the break-point is set. Alternative start tcode SRDEBUG to active for all servers.  Additionally the user-id should be the same for the UI and the break-point.
    Kind regards,
    Zhenbo

  • Resource Levelling in cProjects

    Hello experts,
    can anybody help with some explanations on how cProjects behaves during the project execution, when it comes to roles and resources.
    For example, if a task gets extended or shortened and there are roles and resources assigned to it what happens?
    As well if there are task relationships and scheduling takes place - tasks gets pushed out - what happens to resources?
    I feel it is all out of control, as the system behaves so differently in each particular case.
    I hopw you can help.
    Thank you,
    L.

    Hello,
    Scheduling and resource assignments are totally independant. When you shorten or move a task, the role assignments are not updated. You have first to update the assignment as well (either manually, or thanks to BADI dpr_events or a custom enhancement), then update the role distribution again in accordance with the new scheduling, then ask/staff again the resources to update their own assignment distribution.
    Nothing is changed automatically by the standard. It's up to the Project Manager to updated his/her roles/resources assignments if necesary. As I said above you can decide to automatize some part of this process if needed thanks to custom developments.
    BR
    Matthias

  • BADI while changing the checklist item

    Hi,
    We have a requirement to update the 'Result' in the additional data tab of a checklist item based on the status of the checklist item.
    Which BADI can be used so that the result field can be updated while a user saves the project after making changes to the checklist status.
    I had a look at badi's like DPR_ATTRIBUTES, DPR_EVE_DASHBOARD.... I am not sure which one would serve this purpose.
    Regards,
    Simmi

    Hi Simmi,
    I think BAdI DPR_EVENTS is the one you are looking for. With this one you can react on status changes for a given object.
    Best regards,
    Thomas

  • BADI to set task and checklist status based on phase status

    Hi,
    We have a requirement to set the system status and user status of all the task and checklist to complete when the phase that they belong to is set to status complete.
    I have implemented the badi DPR_EVENTS which gets triggered when Phase is completed.
    My issue is this badi does not work when the phase is completed as system does not allows the change any data of  tasks or checklist items since the phase is complete. I get a message stating "you cannot change the status of this task".
    I tried reseting the complete status of teh phase and setting the tasks status and then setting the phase status back to complete. But this does not seem to be working.
    Is there any way to achieve this requirement?
    Thanks,
    Simmi

    Since we could not do it on Phase complete event we did it for some other event

  • Problem with cproject workflow

    hi all,
    i have created one workflow which will be treaged when i will release any task from the browser. when i will release this task my project should be released. (this is only for testing ) my workflow is working fine but it is releasing after 3-4 hrs. can anybody tell me that why it is taking so much time? it might be problem with some basis/system settings.so plz basis ppl also look at it and try to help me.
    its urgent so plz reply as soon as possible.
    Thank you very much in advance.
    Regards,
    Hetal

    wow!, thats sounds really strange.
    I propose you set up an example and open an OSS call.
    The cpro guys from SAP should have a lok at this and provide a fix.
    But if you release a task, the workflow is started as soon as you save or do you reenter the project directly?
    There exists a kind of event handler BADI_EVENT, where you can control field changes.
    In your case to release the task and need the release of the upper project. I don't like this process, but why not.
    One possibility is making a small modification. As soon as task is released, we release all subtasks too. So it can make sense to release the project too.
    I guess 3 lines of coding are required, but where
    Please try the BADI DPR_EVENT oder the DPR_ATTRIBUTES and in the SET DATA routine, try to set the project release information.
    regards
    Björn

  • CProjects & Project System

    Hello Friends,
    I want to use the projects that created in Projects Systems(PS) in cProjects and also the vice-versa.
    Could you tell me the procedure to do this?
    Thanks & Regards,
    Senthil.

    For creating project from PS to cproject use the following method
    What you can do is Create a cProjects Project usinga Badi in PS on save.
    where you can use FM BAPI_BUS2172_CREATE to create Project.
    Also when you make changes to PS project use Badi on save to transfer the changes to cProjects projects.
    You can use Function modules like:
    BAPI_BUS2172_CHANGE
    BAPI_BUS2173_CHANGE
    BAPI_BUS2174_CHANGE
    BAPI_BUS2175_CHANGE
    and so on
    vetrivelan.

  • PS Projects transfer to cProjects without having xRPM

    Hi All,
    Is that possible to transfer the PS Projects to cProjects, if i am using just cProjects Suite?
    (please note i am not using xRPM)
    If yes, is that possible, that any changes made in PS projects gets reflected into cProjects?
    Please Advice..
    Full Points on solution of the query.
    Regards,
    Nishit

    What you can do is Create a cProjects Project usinga  Badi in PS on save.
    where you can use FM BAPI_BUS2172_CREATE to create Project.
    Also when you make changes to PS project use Badi on save to transfer the changes to cProjects projects.
    You can use Function modules like:
    BAPI_BUS2172_CHANGE
    BAPI_BUS2173_CHANGE
    BAPI_BUS2174_CHANGE
    BAPI_BUS2175_CHANGE
    and so on
    Niranjan
    Points welcome for useful info

  • Automatic status "Completed" on tasks where phase has been completed

    Hi experts,
    I am wondering if there is any way (apart from developing a custom workflow) of setting all tasks below a phase as completed when the phase is completed.
    Thanks in advance.
    Kind regards,
    Neil

    Hi Neil,
    Implement the BAdI DPR_EVENTS and use Phase Completed as filter value.
    In this implementation, get all the tasks that belong to that phase and set the status of these tasks to completed.
    Commit the changes.
    Regards,
    Reema.

  • Release all phases and tasks if project definition is released

    Hello,
    I have several phases and tasks in a project and when I release the project only the first phase is also released. I am not working with approvals.
    Is the a possible to release all phases when the project is released?
    Thank you and have a nice weekend,
      Vanessa

    Hi Vanessa,
    You can create an implementation of BADI dpr_events, with filter dpr_tv_badi_method = ON_DPO_RELEASED.
    ir_sender instance will be the project in that case, so you can easily retrieve the phases object and release them at this moment.
    Matthias

  • Resource Assignment in WMS-TRM

    Can anyone please let me know how I can define the user profiles and equipment profiles in SAP WMS We have a decentralized WMS that we are implementiing . Can any one please let me know how I can define the user profiles and aalso the equipemtn profiles. Ability to skip tasks and task groups.
    Thanks

    Hi James,
    Let me explain what I understood:
    1/ In your operational project, you have role-task assignments.
    2/ You assign a resource to the role
    --> You would like the system to automatically assign the resource to the task (and not do it manually). Am I right?
    First, I would precise that it's not mandatory to assign the resource to the task in order to see the task in the worklist. The role assignment is enough.
    Then, if you still want to assign the resource automatically, you can use the BADI dpr_events, with a filter on "resource assigned". You can then simulate the entity link between the concrete role (assigned resource) and the task.
    Matthias

  • Implementing Badi for additional tab page & creating views in cProjects 3.1

    Hi,
    I am implementing DPR_ADD_SAP_TAB_I for adding new tab page in Cprojects 3.1.
    Please tell me whether we have to create any veiw?
    if it is please tell me the procedure & steps

    Hi...
    Implement the BAdI DPR_ADD_SAP_TAB_I
    and write following code in its method GET_ADD_TAB_DATA
    method IF_EX_DPR_ADD_SAP_TAB_I~GET_ADD_TAB_DATA .
      field-symbols: <tab_data> type DPR_TS_SAP_TAB_CTRL.
      data: lt_tab_data type DPR_TT_SAP_TAB_CTRL.
      constants: lc_pre_ctrl   type string value 'CTRL_TAB_',
                         lc_suff_ctrl  type string value '.DO'.
      lt_tab_data = ct_comp_ctrl.
      loop at lt_tab_data assigning <tab_data>.
        case <tab_data>-obj_type.
       project definition
          when CL_DPR_CO=>SC_OT_PROJECT.
            <tab_data>-tab_title = 'otr(zotr_cust_txt/proj_txt)'.
            concatenate lc_pre_ctrl CL_DPR_CO=>SC_OT_PROJECT lc_suff_ctrl
    into <tab_data>-controller.
        endcase.
      endloop.
      ct_comp_ctrl = lt_tab_data.
      EV_BSP_APPL = 'CST_ADD'.
    endmethod.
    Regards,
    Reema.

Maybe you are looking for

  • FICO: Asset Accounting : Retirement

    Dear Friends, Can someone share the asset disposal posting for the below scenarios. 1 . Asset disposal end of its life with customer with gain or loss 2 . Asset disposal mid of its life with customer with gain or loss 3 . Asset disposal end of its li

  • Device manager reporst issue

    i recently purchased officejet pro 8610. I followed all instructions . My OS is Windows 7 32 bit (all updates cuurent). My device manager shows OTHER DEVICES, HP Officejet 8610, drivers not installed (code 28), i made several attempts to UPDATE DRIVE

  • 2nd hard drive in Satellite Pro P200

    Hi everyone I have a Satellite Pro P200. Does anyone know where I can get a lead and a caddy to install a 2nd hard drive?

  • Problem with upgrade windows 7 to windows 10 preview [HP2540p]

    Hello Everyone, I have a problem with fresh installation windows 10 preview from usb on HP Elitebook 2540p machine.   After message "windows is loading files" laptop is shutdown for a few seconds... Installation is interrupt I tried installed with is

  • Facebook messenger for Firefox doesn't show the chat tab

    Hi. I have just installed Facebook messenger for Firefox, which was advertised in the Firefox start page. Here's the link for it: https://www.facebook.com/about/messenger-for-firefox?src=firefox_promo_2 I don't like the sidebar taking a chunk from my