Skip to Content
author's profile photo Former Member
Former Member

Updating the value into DPR_TASK

Hi Experts,

I am enhancing the webdynpro component DPR_DET_DATA_TASK_O with two checxboxes. I added two fields in CI_DPR_TASK for that and binded these to the atrribute in webdynpro component with checkboxes.

I need to save the value of these checkboxes (If checked then 'X') into the table DPR_TASK. But the value is not getting updated into the table DPR_TASK.

I am setting the value of check box like :

lo_el_viewdata

-> set_attribute (
name = `YY_TRAVEL`
value = ls_travel_ncc - travel

).

Please suggect me the solution to update the table with the value of checboxes.



Thanks ,

Akhilesh Bhagat

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 08, 2012 at 06:24 PM

    Hi Akhilesh

    I have not done this for quite some time. I recall that you have to do some additional enhancements in the component controller. See note 1471647.

    The symptom in the note does not match exactly your description. But I recall that it might also your problem (and if not, it will be necessary anyway to get the functionality properly working.

    Best regards

    Thorsten

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 09, 2012 at 03:29 PM

    Hi Akhilesh,

    • You have to populate your vales in the componentcontroller, not in the view.
    • Update Mapping in both controllers
    • PPM Webdynpros are a little tricky. You have to come behind the data model and SAPs peristence classes.
    • There is a BUG with default values in this Environment. If you populate values to the Webdynpro and the componentcontroller, they are nor reckognized by the change handler in the save event. You have to inform the change handler about your new fields by yourself

    best reagrds

    Christoph

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Akhilesh,

      for the first problem (checkbox unchecked): I don't have any immediate suggestion. If you have updated the mapping etc, it should work.

      for the second problem: Do I understand it correctly that you want to set the flag for all subtasks of a given task automatically (and also revoke it)?

      For that requirement you could create a BAdi implementation for DPR_EVENTS and react on the event that a task has been changed. In the event handler for the event you can determine all subtasks (and the subtasks for those again) and set the flag. Disadvantage is that you do not have the information what was changed. So you might have a bit of "overhead". That should not be a problem for small projects. But you should nevertheless keep it in mind (especially if the projects are not small, but big). I guess you will find some way to avoid the "overhead", but not straight forward. The other idea would be to "inherit" the flag only during save in an implementation of a subsystem (see CL_DPR_DEMO_SUBSYSTEM). But then the user would not immediately see the change on the UI.

      Best regards

      Thorsten

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.