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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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 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

  • 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 for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Implementing BADI MD_ADD_COL_EZPS for MD04 custom column

    Hi there,
    I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
    For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
    My Question is:
    Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
    (At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
    I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
    to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
    Any help appreciated.
    Thanks,
    David.

    Hi Shubhendu,
    in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
    Same applies to EZ2_MODE for second column, EZ3_MODE for third.
    look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
    here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
    The code is hit for each record displayed in MD04
    Hopefully this helps you.
    Regards,
    David

  • Help Needed Badly | BlackBerry INC000025111306 | BlackBerry PlayBook - Tablet button does not work, almost stuck, copper under screen, seventh repair

    I was really Humilitated my RIM on this Ticket whcih i rasied.
    1) I bought a new tablet in last november in 2 months i had a Charger issue 
    2) They said this charger issue we cannot replace with new tablet and gave me a refurbished Tablet to me .
    3) Which also had same charging issue and they exchanged 2 more tablets and the last tablet which was given to me by RIM have a safety concern
     - 1 Small mesh of wire is poping out from the Tablet 
     - Power Button is very hard and its not that easy to press,
    So i raised the above ticket and was esclated internally with RMA as well and i got an update from the esclation agents that we will reply back in 2 Days i waited almost 3 weeks and called 2 times in this 3 weeks for an Update asking for a new tablet so that atleast once in all i can jeep a good 1 Tablet.
    But they never bothered to call me and today i called them again and RIM gave me a call back mentioning we cannot give a new tablet we can again check this tablet repair it and give it back , If we cannot repir then give a replacement new/Old tablet,
    I was wondering how can a tablet from RIM can go out without such safety concern ? How a mesh of wire can comeout of tablet so what safety norms RIM is follwoing for customer.
    AM i not humilitated? since after taking all these struggle tto get a good tablet i have been considered as bad.
    What RIM have to say for this, I am planing to take this to Legal department to follow how i can get a justice for this.

    I would have deleted this but can't find a delete?
    At any rate. got the Blackberry going again but it reset it and lost all the info, pictures and so forth.. oh well. at least it is still working.
    Thanks.

Maybe you are looking for

  • How do I transfer jpg images transfered to an SD card, into an iPad?

    How do I transfer jpg images transfered to an SD card, into an iPad? Have tried lots - nothing works. I would like to buy an iPad if this could be solved. I am on a PC I have iTunes on my desptop, not my laptop. When traveling I shoot RAW 22mg photos

  • "Failed To open page" Error

    whenever I open safari, it can never immediately open the website I am attempting to open- ANY WEBSITES. the page shows that the site is loading for about 2-3 mins before giving up and posting the message "Safari can't open the page. Safari could not

  • Slow Folder View When Mounting to Windows Share

    I'm an intern at an educational institute and we have a graphics lab that has access to a large windows share. They use the share for storing large picture files primarily. Only individuals in certain classes have access to the drive and each student

  • Import Schema into new (production) environment in APEX 4.2

    Hello, I am having troubles with deploying developed application into new environment. I exported application, schema and workspace and I want to import it all to a new machine. Except schema, I have imported and installed it all successfully. But af

  • IPhone 3GS screen shakes while scrolling

    Hi everyone! I have an iPhone 3GS. Everytime I try to search for songs or browse the net, I have to scroll down and up and zoom in and out like everyone else does. Now the problem is when I do this, the screen starts to shake. Can anyone find a solut