Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

Agentry Work Manager 6.0: BADI to enhance assignment type

$
0
0

Hi,

 

I have the requirement to more or less combine the work order assignment types 1 and 2. I have to fetch the operations based on its assigned personal number, but at the same time I have to fetch a work order and all the operations if the Agentry user is the work order header responsible.

 

Unfortunately this is a single value parameter so I set the assignment type to 2. Now I thought it would be really easy to fetch the work orders based on the assignment type 1 since there is a BADI available after each assignment call method:

 

WHEN '2'.                                           "Operation level
           me->get_assignment2(
             EXPORTING
                iref_rfc_oo_data = iref_rfc_oo_data
             IMPORTING
                et_return        = lt_return
                et_wo_object     = lt_wo_object ).

           IF NOT gref_badi_wo IS INITIAL.
             CALL BADI gref_badi_wo->get_assignment_type2
               EXPORTING
                 iref_mdo_data = me->oref_mdo_data
               CHANGING
                 ct_wo_object  = lt_wo_object.
           ENDIF.



So inside the BADI gref_badi_wo->get_assignment_type2, I wanted to call the me->get_assignment1 method, and then join the 2 internal tables values.


But the problem is once the BADI is called it is not possible to call this method since we only have the OREF_MDO_DATA object which has the original class as a inaccessible private attribute. I could try to copy and adapt the me->get_assignment1 code but there are some attributes that are not accessible inside the BADI. Do you see a simple and elegant solution to this requirement?


I would like to avoid creating a new Z handler class inheriting from the standard one...


Thank you.





 

Tags edited by: Michael Appleby


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>