‎2007 Aug 14 6:48 AM
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
‎2007 Aug 14 7:35 AM
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
‎2007 Aug 14 7:45 AM
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
‎2011 Sep 01 2:00 AM
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,