cancel
Showing results for 
Search instead for 
Did you mean: 

Portfolio item and Project integration

Former Member
0 Kudos

Hi All

I have a project created from portfolio item. A link is existing in table RPM_OBJ_LINK with object type 0INMCPROJECT.

One portfolio item side, a project definition link is assigned under Related Objects tab while project number is blank.

http://scn.sap.com/servlet/JiveServlet/showImage/2-16826646-991424/Related+Object+Blank.jpg

One project side, there is no link assigned, no data available under Portfolio Data tab.

http://scn.sap.com/servlet/JiveServlet/showImage/2-16823272-990371/No+data.jpg

Attributes can be transferred from portfolio item to project definition while it can not be done the other way around.

Can anyone help with this issue?

Best Regards

Jimmy

Accepted Solutions (0)

Answers (1)

Answers (1)

judith_gabriel
Contributor
0 Kudos

Dear Jimmy,

please check first, if the entry in rpm_obj_link is filled correct.

Table  RPM_OBJ_LINK

GUID: 6EAE8B78CED71ED69183D716CBE5086E

PROJECT_GUID:  Contains the GUID of ITEM   

OBJECT_TYPE  0INMCPROJECT

OBJECT_KEY: Contains the GUID of the PROJECT  

INTERNAL_ID:  Contains the GUID of the PROJECT 

Then you can set breakpoints at the following parts to analyze the issue:

Open the project in Project Management

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Selection in Detail:

~~~~~~~~~~~~~~

CL_INM_DFM_REPOSITORY

GET_LINKED_OBJECT_SOURCES

SELECT guid

         project_guid

         task_guid

         object_type

         internal_id AS object_key

    FROM rpm_obj_link

    INTO CORRESPONDING FIELDS OF TABLE lt_sources_to_linked_object

    FOR ALL ENTRIES IN lt_dfm_object_types

    WHERE internal_id EQ iv_object_key AND

          object_type = lt_dfm_object_types-object_link_type.

IV_OBJECT_KEY is filled with the project-guid

Table LT_SOURCES_TO_LINKED_OBJECT should be filled here.                                         

CL_INM_DFM_REPOSITORY

GET_LINKS_AND_CONTEXT

* Merge both types of object references to one internal table

    CALL METHOD merge_object_links

      EXPORTING

        it_linked_objects        = lt_linked_objects

        it_linked_object_sources = lt_linked_object_sources

      IMPORTING

        et_linked_objects        = lt_linked_object_merge.

*  ENDIF.                                                              " Note 1996796

et_object_links[] = lt_linked_object_merge[].

  LOOP AT et_object_links INTO ls_object_link WHERE object_type_src = space. " Note-v-2058696

    ls_object_link-object_type_src = cs_object_context-object_link_type.

    MODIFY et_object_links FROM ls_object_link TRANSPORTING object_type_src.

  ENDLOOP.                                                                   " Note-^-2058696

  APPEND LINES OF et_object_links TO mt_object_links.                  " Note 1996796

*  ENDIF.                                                         

At this coding part above the following tables should be filled:

LT_LINKED_OBJECT_MERGE                            [1x14(448)]Standard Table

ET_OBJECT_LINKS                                           [1x14(448)]Standard Table

MT_OBJECT_LINKS                                           [1x14(448)]Standard Table

Navigate to tab "Portfolio Data"

~~~~~~~~~~~~~~~~~~~~~~~

cl_rpm_obj_link_persist

FETCH_FROM_DB

SELECT *

    FROM rpm_obj_link

    INTO CORRESPONDING FIELDS OF TABLE et_attributes

    FOR ALL ENTRIES IN it_guid

    WHERE project_guid = it_guid-guid.

Here table ET_ATTRIBUTES is filled.

Do you receive the entries in the tables?

Best regards,

Judith

Former Member
0 Kudos

Hi Judith

Thanks for your detailed reply.

In table  RPM_OBJ_LINK there is a link for project and portfolio item of my testing case.

But none of above operation goes to breakpoint. When opening a project it won't go to breakpoint set in CL_INM_DFM_REPOSITORY - GET_LINKED_OBJECT_SOURCES; When navigating to tab "Portfolio Data" it won't go to breakpoint set in CL_RPM_OBJ_LINK_PERSIST - FETCH_FROM_DB.

Best Regards

Jimmy

Former Member
0 Kudos

Hi Judith

As conclusion to my test. Attributes and status can be transferred from portfolio item to project but it doesn't happen the other way around.

I'm new to Portfolio Management and it's integration with Project Management. I guess that there might be two links between portfolio item and project. The one from project to portfolio item is broken or not created in the system. So everything should be transferred to portfolio item are not identified.

Regards

Jimmy