Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function group enhancement

Former Member
0 Likes
617

Hello Friends,

In order to add new columns to the output of a standard report i copied the related function group (HRHAP_UI_DOCUMENT_REPORT namely) to a local function group. The main program is a function pool so i can't call it directly. how can i find the mechanism that calls this program? the standard report is called through transaction PHAP_SEARCH_PA (a PA appraisals report) and the called program is something else. I can't find how the function module is triggered.

Thx in advance,

Ali

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
471

Hi,

Transaction PHAP_SEARCH_PA calls the report program RHHAP_APP_DOCUMENT_SEARCH_PA which internally calls the Function modules

HRHAP_PA_ADD_ON_APPLICATION

HRHAP_SHOW_DOCUMENT_SEARCH.

Copy this report and replace these function module calls with the Function module calls of your New Z Function modules which you have modified as per your need.

Regards,

Sesh

Read only

0 Likes
471

Hi,

Thx for the answer. I already copied these functions. Especially HRHAP_SHOW_DOCUMENT_SEARCH goes very deep by calling other function modules. I don't know where exactly the fill-in of output list is done. There is a BADI cobject call somewhere, i think i have to find that.

Regards,

Ali

Read only

0 Likes
471

Use enhancement object HRHAP_UI_DOCUMENT_REPORT.

The enhancement ends up in Include LHRHAP_UI_DOCUMENT_REPORTF06 in perform LHRHAP_UI_DOCUMENT_REPORTF06.

I find that when PHAP_SEARCH_PA is ran with no layout variant it will execute a field merge and get proper column headings while entering a layout variant uses the structure HAP_S_DOCUMENTS and contructs the field catalog. This is less than perfect as the column headings are dependent on how fields of the structure were defined. Even some of the standard structure fields will have columns headings that are either meaningless or redundant.

There is not another place to enhance where you can have a layout variant and get a field catalog built well,