Difference between revisions of "SAP HCM ESS"
From SapWiki
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
*Los métodos hay que copiarlos de la clase CL_HRESS_PAYSLIP_BADI_STANDARD | *Los métodos hay que copiarlos de la clase CL_HRESS_PAYSLIP_BADI_STANDARD | ||
| + | #Ejemplo: | ||
| + | |||
| + | <nowiki> | ||
| + | method IF_HRESS_PAYSLIP_BADI~PROVIDE_TITLES. | ||
| + | DATA lv_title_part TYPE char40. | ||
| + | DATA lv_ui5_active TYPE abap_bool. | ||
| + | DATA lo_otr TYPE REF TO cl_sotr. | ||
| + | IF cl_hress_ui5_switch_check_01=>hress_sfws_ui5_ui_01( ) EQ abap_true AND is_rgdir IS INITIAL. | ||
| + | CREATE OBJECT lo_otr | ||
| + | EXPORTING | ||
| + | i_langu = sy-langu. | ||
| + | lo_otr->get_text_by_alias( | ||
| + | EXPORTING | ||
| + | i_alias = 'PAOC_ESS_UI5/SALARY_STATEMENT' " Unique Alias Name for OTR Concept | ||
| + | IMPORTING | ||
| + | e_text = ev_appl_title " Text Table in the OTR | ||
| + | ). | ||
| + | |||
| + | ev_appl_title = 'Liquidación de Sueldo'. | ||
| + | ELSE. | ||
| + | IF me->is_offcycle( iv_molga ) EQ abap_true. | ||
| + | WRITE is_rgdir-paydt TO lv_title_part LEFT-JUSTIFIED. | ||
| + | ELSE. | ||
| + | lv_title_part = is_rgdir-inper+4(2) && '/' && is_rgdir-inper(4). | ||
| + | ENDIF. | ||
| + | data lv_titulo type string value 'Liquidación de Sueldo'. | ||
| + | * ev_appl_title = iv_default_title && `: ` && lv_title_part . | ||
| + | * ev_popup_title = ev_appl_title. | ||
| + | |||
| + | ev_appl_title = lv_titulo && `: ` && lv_title_part . | ||
| + | ev_popup_title = ev_appl_title. | ||
| + | ENDIF. | ||
| + | endmethod.</nowiki> | ||
Latest revision as of 18:20, 20 June 2026
Enhancement Spot HRESS_PAYSLIP - HRESS_PAYSLIP_BADI_IMPL
- Ejemplo, método provide_filtered_rgdir : limitar registros de RGDIR a visualizar en PAYSLIP
DELETE ct_filtered_rgdir WHERE ocrsn = 'ZZZZ'.
- Los métodos hay que copiarlos de la clase CL_HRESS_PAYSLIP_BADI_STANDARD
- Ejemplo:
method IF_HRESS_PAYSLIP_BADI~PROVIDE_TITLES.
DATA lv_title_part TYPE char40.
DATA lv_ui5_active TYPE abap_bool.
DATA lo_otr TYPE REF TO cl_sotr.
IF cl_hress_ui5_switch_check_01=>hress_sfws_ui5_ui_01( ) EQ abap_true AND is_rgdir IS INITIAL.
CREATE OBJECT lo_otr
EXPORTING
i_langu = sy-langu.
lo_otr->get_text_by_alias(
EXPORTING
i_alias = 'PAOC_ESS_UI5/SALARY_STATEMENT' " Unique Alias Name for OTR Concept
IMPORTING
e_text = ev_appl_title " Text Table in the OTR
).
ev_appl_title = 'Liquidación de Sueldo'.
ELSE.
IF me->is_offcycle( iv_molga ) EQ abap_true.
WRITE is_rgdir-paydt TO lv_title_part LEFT-JUSTIFIED.
ELSE.
lv_title_part = is_rgdir-inper+4(2) && '/' && is_rgdir-inper(4).
ENDIF.
data lv_titulo type string value 'Liquidación de Sueldo'.
* ev_appl_title = iv_default_title && `: ` && lv_title_part .
* ev_popup_title = ev_appl_title.
ev_appl_title = lv_titulo && `: ` && lv_title_part .
ev_popup_title = ev_appl_title.
ENDIF.
endmethod.