Skip to Content
0
Former Member
Feb 24, 2012 at 12:27 PM

/NAKISA/RFC_CHART

47 Views

Hi all,

my question related to this thread , however, I decide to ask it separatedly.

I try to optimize somehow performance of FM '/NAKISA/RFC_CHART'. In 'Installation and Specifications Guide' for Nakisa ABAP Add-On there is the following description of the FM:

Function Module Execution

The function module performs the following tasks when executed:

1. Performs security checks.

2. Verifies if analytics are requested for each entry in the CHART_TAB input parameter.

3. If analytics are requested:

a. Generates the organizational structures and objects using the HRWPC_STRUC_GET_MULTIPLE_ROOTS function module.

b. Generates the unique key of structures and objects using the HRWPC_OADP_GENERATE_OBJECTKEYS function module.

c. Transforms data into an XML string.

d. Formats output data and error information, if any.

4. If analytics are not requested, generates the organizational structures and objects using the HR_SELECT_WITH_PATH function module.

But, in FM-code (Add-On version 301_701) I see the opposite:

.....
IF NOT CHART_TAB IS INITIAL.
    LOOP AT CHART_TAB[] ASSIGNING <CHART>.

      <CHART>-AUTHORITY_CHECK = 'X'.

      if ANALYTICS_FLAG is initial.
        CALL FUNCTION 'HRWPC_STRUC_GET_MULTIPLE_ROOTS'
.....
      else.
.....

        CALL FUNCTION 'HR_SELECT_WITH_PATH'

.....

I.e. if I use no analytics, 'HR_SELECT_WITH_PATH' should be requested, according the doc. But, in ABAP code 'HRWPC_STRUC_GET_MULTIPLE_ROOTS' is used.

BR,

Sergey Aksenov