SAP HR_BR_SET_ADMIN_DATA Function Module for









HR_BR_SET_ADMIN_DATA is a standard hr br set admin data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for hr br set admin data FM, simply by entering the name HR_BR_SET_ADMIN_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAYBR99
Program Name: SAPLHRPAYBR99
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_BR_SET_ADMIN_DATA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HR_BR_SET_ADMIN_DATA'"
EXPORTING
CHKDT = "
* OCCAT = "
* SW_PROT = PBR99_OFF "
SW_AUFROLLUNG = "
* FC_SW_DEC = PBR99_OFF "
* CALC_CURRENCY = PBR99_WAERS "
* CALC_MOLGA = PBR99_MOLGA "
* ABKRS = 'BA' "
* LEGAL_ENTITY = 0 "

IMPORTING
ADMIN = "
.



IMPORTING Parameters details for HR_BR_SET_ADMIN_DATA

CHKDT -

Data type: D
Optional: No
Call by Reference: No ( called with pass by value option)

OCCAT -

Data type: T52OCC-OCCAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

SW_PROT -

Data type: PBR99_FLAG
Default: PBR99_OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)

SW_AUFROLLUNG -

Data type: PBR99_FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

FC_SW_DEC -

Data type: PBR99_FLAG
Default: PBR99_OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALC_CURRENCY -

Data type: T500C-WAERS
Default: PBR99_WAERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALC_MOLGA -

Data type: T500L-MOLGA
Default: PBR99_MOLGA
Optional: Yes
Call by Reference: No ( called with pass by value option)

ABKRS -

Data type: P0001-ABKRS
Default: 'BA'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LEGAL_ENTITY -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HR_BR_SET_ADMIN_DATA

ADMIN -

Data type: PBR99_ADMIN
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_BR_SET_ADMIN_DATA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_admin  TYPE PBR99_ADMIN, "   
lv_chkdt  TYPE D, "   
lv_occat  TYPE T52OCC-OCCAT, "   
lv_sw_prot  TYPE PBR99_FLAG, "   PBR99_OFF
lv_sw_aufrollung  TYPE PBR99_FLAG, "   
lv_fc_sw_dec  TYPE PBR99_FLAG, "   PBR99_OFF
lv_calc_currency  TYPE T500C-WAERS, "   PBR99_WAERS
lv_calc_molga  TYPE T500L-MOLGA, "   PBR99_MOLGA
lv_abkrs  TYPE P0001-ABKRS, "   'BA'
lv_legal_entity  TYPE I. "   0

  CALL FUNCTION 'HR_BR_SET_ADMIN_DATA'  "
    EXPORTING
         CHKDT = lv_chkdt
         OCCAT = lv_occat
         SW_PROT = lv_sw_prot
         SW_AUFROLLUNG = lv_sw_aufrollung
         FC_SW_DEC = lv_fc_sw_dec
         CALC_CURRENCY = lv_calc_currency
         CALC_MOLGA = lv_calc_molga
         ABKRS = lv_abkrs
         LEGAL_ENTITY = lv_legal_entity
    IMPORTING
         ADMIN = lv_admin
. " HR_BR_SET_ADMIN_DATA




ABAP code using 7.40 inline data declarations to call FM HR_BR_SET_ADMIN_DATA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single OCCAT FROM T52OCC INTO @DATA(ld_occat).
 
DATA(ld_sw_prot) = PBR99_OFF.
 
 
DATA(ld_fc_sw_dec) = PBR99_OFF.
 
"SELECT single WAERS FROM T500C INTO @DATA(ld_calc_currency).
DATA(ld_calc_currency) = PBR99_WAERS.
 
"SELECT single MOLGA FROM T500L INTO @DATA(ld_calc_molga).
DATA(ld_calc_molga) = PBR99_MOLGA.
 
"SELECT single ABKRS FROM P0001 INTO @DATA(ld_abkrs).
DATA(ld_abkrs) = 'BA'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!