SAP HRCM_BT_OBJID_REQUEST Function Module for
HRCM_BT_OBJID_REQUEST is a standard hrcm bt objid request 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 hrcm bt objid request FM, simply by entering the name HRCM_BT_OBJID_REQUEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHBS
Program Name: SAPLRHBS
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HRCM_BT_OBJID_REQUEST 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 'HRCM_BT_OBJID_REQUEST'".
EXPORTING
* MODE = 'X' "
* NO_SEARK_POPUP = ' ' "
* WITHOUT_RSIGN = "
* WITHOUT_RELAT = "
* WITHOUT_SCLAS = "
* DYNPRO_REPID = ' ' "
* DYNPRO_DYNNR = ' ' "
* DYNPRO_PLVARFIELD = ' ' "
* DYNPRO_OTYPEFIELD = ' ' "
* DYNPRO_SEARKFIELD = ' ' "
* WIN_TITLE = ' ' "
* PLVAR = "
BUTGR = "
* BUTYP = ' ' "
* BSTAT = ' ' "
* SET_MODE = ' ' "
* SELECT_MESSAGE = 'X' "
* NO_DIALOG = ' ' "
* FILL_SEL_HROBJECT_TAB = ' ' "
* FILL_SEL_HRSOBID_TAB = ' ' "
* OTYPE = ' ' "
* SEARK = '*' "
* SEARK_BEGDA = '18000101' "
* SEARK_ENDDA = '99991231' "
* EXACT_BEGDA = '18000101' "
* EXACT_ENDDA = '99991231' "
* EXACT_DATE_FLG = ' ' "
IMPORTING
SEL_PLVAR = "
SEL_OTYPE = "
SEL_OBJECT = "
USED_FCODE = "
TABLES
* SEL_OBJECTS = "
* MARKED_OBJECTS = "
* SEL_HROBJECT_TAB = "
* SEL_HRSOBID_TAB = "
EXCEPTIONS
CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 ILLEGAL_MODE = 4 INTERNAL_ERROR = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLRHBS_001 Compensation Budget: User Exit for Budget Initialization
IMPORTING Parameters details for HRCM_BT_OBJID_REQUEST
MODE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_SEARK_POPUP -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITHOUT_RSIGN -
Data type: P1001-RSIGNOptional: Yes
Call by Reference: No ( called with pass by value option)
WITHOUT_RELAT -
Data type: P1001-RELATOptional: Yes
Call by Reference: No ( called with pass by value option)
WITHOUT_SCLAS -
Data type: P1001-SCLASOptional: Yes
Call by Reference: No ( called with pass by value option)
DYNPRO_REPID -
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPRO_DYNNR -
Data type: SY-DYNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPRO_PLVARFIELD -
Data type: DYNPREAD-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPRO_OTYPEFIELD -
Data type: DYNPREAD-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPRO_SEARKFIELD -
Data type: DYNPREAD-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WIN_TITLE -
Data type: SY-TITLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PLVAR -
Data type: PLOGI-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
BUTGR -
Data type: T7PM0-BUTGROptional: No
Call by Reference: No ( called with pass by value option)
BUTYP -
Data type: T7PM3-BUTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BSTAT -
Data type: T7PMQ-BSTATDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SET_MODE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECT_MESSAGE -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DIALOG -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FILL_SEL_HROBJECT_TAB -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FILL_SEL_HRSOBID_TAB -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE -
Data type: PLOGI-OTYPEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARK -
Data type: PPMAC-SEARKDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARK_BEGDA -
Data type: WPLOG-BEGDADefault: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARK_ENDDA -
Data type: WPLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXACT_BEGDA -
Data type: WPLOG-BEGDADefault: '18000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXACT_ENDDA -
Data type: WPLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXACT_DATE_FLG -
Data type: WPLOG-HISTODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRCM_BT_OBJID_REQUEST
SEL_PLVAR -
Data type: PLOGI-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
SEL_OTYPE -
Data type: PLOGI-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
SEL_OBJECT -
Data type: OBJECOptional: No
Call by Reference: No ( called with pass by value option)
USED_FCODE -
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRCM_BT_OBJID_REQUEST
SEL_OBJECTS -
Data type: OBJECOptional: Yes
Call by Reference: No ( called with pass by value option)
MARKED_OBJECTS -
Data type: HRSOBIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SEL_HROBJECT_TAB -
Data type: HROBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
SEL_HRSOBID_TAB -
Data type: HRSOBIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CONDITION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_MODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRCM_BT_OBJID_REQUEST 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_mode | TYPE C, " 'X' | |||
lv_cancelled | TYPE C, " | |||
lv_sel_plvar | TYPE PLOGI-PLVAR, " | |||
lt_sel_objects | TYPE STANDARD TABLE OF OBJEC, " | |||
lv_no_seark_popup | TYPE C, " SPACE | |||
lv_without_rsign | TYPE P1001-RSIGN, " | |||
lv_without_relat | TYPE P1001-RELAT, " | |||
lv_without_sclas | TYPE P1001-SCLAS, " | |||
lv_dynpro_repid | TYPE SY-REPID, " SPACE | |||
lv_dynpro_dynnr | TYPE SY-DYNNR, " SPACE | |||
lv_dynpro_plvarfield | TYPE DYNPREAD-FIELDNAME, " SPACE | |||
lv_dynpro_otypefield | TYPE DYNPREAD-FIELDNAME, " SPACE | |||
lv_dynpro_searkfield | TYPE DYNPREAD-FIELDNAME, " SPACE | |||
lv_win_title | TYPE SY-TITLE, " SPACE | |||
lv_plvar | TYPE PLOGI-PLVAR, " | |||
lv_sel_otype | TYPE PLOGI-OTYPE, " | |||
lt_marked_objects | TYPE STANDARD TABLE OF HRSOBID, " | |||
lv_wrong_condition | TYPE HRSOBID, " | |||
lv_butgr | TYPE T7PM0-BUTGR, " | |||
lv_butyp | TYPE T7PM3-BUTYP, " SPACE | |||
lv_bstat | TYPE T7PMQ-BSTAT, " SPACE | |||
lv_set_mode | TYPE C, " SPACE | |||
lv_select_message | TYPE C, " 'X' | |||
lv_no_dialog | TYPE C, " SPACE | |||
lv_fill_sel_hrobject_tab | TYPE C, " SPACE | |||
lv_fill_sel_hrsobid_tab | TYPE C, " SPACE | |||
lv_otype | TYPE PLOGI-OTYPE, " SPACE | |||
lv_sel_object | TYPE OBJEC, " | |||
lv_nothing_found | TYPE OBJEC, " | |||
lt_sel_hrobject_tab | TYPE STANDARD TABLE OF HROBJECT, " | |||
lv_seark | TYPE PPMAC-SEARK, " '*' | |||
lv_used_fcode | TYPE SY-UCOMM, " | |||
lv_illegal_mode | TYPE SY, " | |||
lt_sel_hrsobid_tab | TYPE STANDARD TABLE OF HRSOBID, " | |||
lv_seark_begda | TYPE WPLOG-BEGDA, " '18000101' | |||
lv_internal_error | TYPE WPLOG, " | |||
lv_seark_endda | TYPE WPLOG-ENDDA, " '99991231' | |||
lv_exact_begda | TYPE WPLOG-BEGDA, " '18000101' | |||
lv_exact_endda | TYPE WPLOG-ENDDA, " '99991231' | |||
lv_exact_date_flg | TYPE WPLOG-HISTO. " SPACE |
  CALL FUNCTION 'HRCM_BT_OBJID_REQUEST' " |
EXPORTING | ||
MODE | = lv_mode | |
NO_SEARK_POPUP | = lv_no_seark_popup | |
WITHOUT_RSIGN | = lv_without_rsign | |
WITHOUT_RELAT | = lv_without_relat | |
WITHOUT_SCLAS | = lv_without_sclas | |
DYNPRO_REPID | = lv_dynpro_repid | |
DYNPRO_DYNNR | = lv_dynpro_dynnr | |
DYNPRO_PLVARFIELD | = lv_dynpro_plvarfield | |
DYNPRO_OTYPEFIELD | = lv_dynpro_otypefield | |
DYNPRO_SEARKFIELD | = lv_dynpro_searkfield | |
WIN_TITLE | = lv_win_title | |
PLVAR | = lv_plvar | |
BUTGR | = lv_butgr | |
BUTYP | = lv_butyp | |
BSTAT | = lv_bstat | |
SET_MODE | = lv_set_mode | |
SELECT_MESSAGE | = lv_select_message | |
NO_DIALOG | = lv_no_dialog | |
FILL_SEL_HROBJECT_TAB | = lv_fill_sel_hrobject_tab | |
FILL_SEL_HRSOBID_TAB | = lv_fill_sel_hrsobid_tab | |
OTYPE | = lv_otype | |
SEARK | = lv_seark | |
SEARK_BEGDA | = lv_seark_begda | |
SEARK_ENDDA | = lv_seark_endda | |
EXACT_BEGDA | = lv_exact_begda | |
EXACT_ENDDA | = lv_exact_endda | |
EXACT_DATE_FLG | = lv_exact_date_flg | |
IMPORTING | ||
SEL_PLVAR | = lv_sel_plvar | |
SEL_OTYPE | = lv_sel_otype | |
SEL_OBJECT | = lv_sel_object | |
USED_FCODE | = lv_used_fcode | |
TABLES | ||
SEL_OBJECTS | = lt_sel_objects | |
MARKED_OBJECTS | = lt_marked_objects | |
SEL_HROBJECT_TAB | = lt_sel_hrobject_tab | |
SEL_HRSOBID_TAB | = lt_sel_hrsobid_tab | |
EXCEPTIONS | ||
CANCELLED = 1 | ||
WRONG_CONDITION = 2 | ||
NOTHING_FOUND = 3 | ||
ILLEGAL_MODE = 4 | ||
INTERNAL_ERROR = 5 | ||
. " HRCM_BT_OBJID_REQUEST |
ABAP code using 7.40 inline data declarations to call FM HRCM_BT_OBJID_REQUEST
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.DATA(ld_mode) | = 'X'. | |||
"SELECT single PLVAR FROM PLOGI INTO @DATA(ld_sel_plvar). | ||||
DATA(ld_no_seark_popup) | = ' '. | |||
"SELECT single RSIGN FROM P1001 INTO @DATA(ld_without_rsign). | ||||
"SELECT single RELAT FROM P1001 INTO @DATA(ld_without_relat). | ||||
"SELECT single SCLAS FROM P1001 INTO @DATA(ld_without_sclas). | ||||
"SELECT single REPID FROM SY INTO @DATA(ld_dynpro_repid). | ||||
DATA(ld_dynpro_repid) | = ' '. | |||
"SELECT single DYNNR FROM SY INTO @DATA(ld_dynpro_dynnr). | ||||
DATA(ld_dynpro_dynnr) | = ' '. | |||
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_plvarfield). | ||||
DATA(ld_dynpro_plvarfield) | = ' '. | |||
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_otypefield). | ||||
DATA(ld_dynpro_otypefield) | = ' '. | |||
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_searkfield). | ||||
DATA(ld_dynpro_searkfield) | = ' '. | |||
"SELECT single TITLE FROM SY INTO @DATA(ld_win_title). | ||||
DATA(ld_win_title) | = ' '. | |||
"SELECT single PLVAR FROM PLOGI INTO @DATA(ld_plvar). | ||||
"SELECT single OTYPE FROM PLOGI INTO @DATA(ld_sel_otype). | ||||
"SELECT single BUTGR FROM T7PM0 INTO @DATA(ld_butgr). | ||||
"SELECT single BUTYP FROM T7PM3 INTO @DATA(ld_butyp). | ||||
DATA(ld_butyp) | = ' '. | |||
"SELECT single BSTAT FROM T7PMQ INTO @DATA(ld_bstat). | ||||
DATA(ld_bstat) | = ' '. | |||
DATA(ld_set_mode) | = ' '. | |||
DATA(ld_select_message) | = 'X'. | |||
DATA(ld_no_dialog) | = ' '. | |||
DATA(ld_fill_sel_hrobject_tab) | = ' '. | |||
DATA(ld_fill_sel_hrsobid_tab) | = ' '. | |||
"SELECT single OTYPE FROM PLOGI INTO @DATA(ld_otype). | ||||
DATA(ld_otype) | = ' '. | |||
"SELECT single SEARK FROM PPMAC INTO @DATA(ld_seark). | ||||
DATA(ld_seark) | = '*'. | |||
"SELECT single UCOMM FROM SY INTO @DATA(ld_used_fcode). | ||||
"SELECT single BEGDA FROM WPLOG INTO @DATA(ld_seark_begda). | ||||
DATA(ld_seark_begda) | = '18000101'. | |||
"SELECT single ENDDA FROM WPLOG INTO @DATA(ld_seark_endda). | ||||
DATA(ld_seark_endda) | = '99991231'. | |||
"SELECT single BEGDA FROM WPLOG INTO @DATA(ld_exact_begda). | ||||
DATA(ld_exact_begda) | = '18000101'. | |||
"SELECT single ENDDA FROM WPLOG INTO @DATA(ld_exact_endda). | ||||
DATA(ld_exact_endda) | = '99991231'. | |||
"SELECT single HISTO FROM WPLOG INTO @DATA(ld_exact_date_flg). | ||||
DATA(ld_exact_date_flg) | = ' '. | |||
Search for further information about these or an SAP related objects