2023 Jun 22 8:59 AM
Hello All - I have requirement to add a custom field to the SAP Standard report (RPTABS20) output. Where it has obsolete FM HR_DISPLAY_BASIC_LIST P used for output display. Please advise the best way to achieve it.
this is the below code is available how can i replace to add new field in output.
CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' ##FM_OLDED
EXPORTING
* Display Changes due to GRID functionality not marked
basic_list_title = 'Attendance/attendance data overview'
file_name = 'RPTABSXX'
* HEAD_LINE1 = 'Attendance/attendance data overview'
head_line1 = datumstext
head_line3 = footnotetext1
head_line4 = footnotetext2
* FOOT_NOTE1 = FOOTNOTETEXT1
* FOOT_NOTE2 = FOOTNOTETEXT2
* FOOT_NOTE3 = ' '
* additional_options = start_row
additional_options = add_option
lay_out = my-layout
dyn_pushbutton_text1 = dyn_pushbutton_text1
dyn_pushbutton_text2 = dyn_pushbutton_text2
dyn_pushbutton_text3 = dyn_pushbutton_text3
dyn_pushbutton_text4 = dyn_pushbutton_text4
dyn_pushbutton_text5 = dyn_pushbutton_text5
dyn_pushbutton_text6 = dyn_pushbutton_text6
* DATA_STRUCTURE = ' '
current_report = my-repid
* list_level = list_sta
list_level = space
IMPORTING
return_code = retcd_hrph
TABLES
data_tab = <datatab>
fieldname_tab = fieldnametab
select_tab = <seletab>
error_tab = error_table
EXCEPTIONS
download_problem = 1
no_data_tab_entries = 2
OTHERS = 3.