SAP HR_PAYMENTMETHOD_SEARCH Function Module for
HR_PAYMENTMETHOD_SEARCH is a standard hr paymentmethod search 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 paymentmethod search FM, simply by entering the name HR_PAYMENTMETHOD_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBK
Program Name: SAPLHRBK
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_PAYMENTMETHOD_SEARCH 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_PAYMENTMETHOD_SEARCH'".
EXPORTING
* P_PROGRAM = SY-CPROG "
* P_DYNPRO = SY-DYNNR "
* P_DYNPFIELD_COUNTRY = "
P_DYNPFIELD_MKEY = "
P_DYNPFIELD_MTEXT = "
* P_COUNTRY_KEY = "
* P_SORTED_LIST = ' ' "
IMPORTING
P_METHODTEXT = "
EXCEPTIONS
FIELDNAME_NOT_VALID = 1 COUNTRY_NOT_FOUND = 2
IMPORTING Parameters details for HR_PAYMENTMETHOD_SEARCH
P_PROGRAM -
Data type: D020S-PROGDefault: SY-CPROG
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_DYNPRO -
Data type: D020S-DNUMDefault: SY-DYNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_DYNPFIELD_COUNTRY -
Data type: FELD-NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
P_DYNPFIELD_MKEY -
Data type: FELD-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
P_DYNPFIELD_MTEXT -
Data type: FELD-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
P_COUNTRY_KEY -
Data type: T005-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
P_SORTED_LIST -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_PAYMENTMETHOD_SEARCH
P_METHODTEXT -
Data type: T042Z_L_BFOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FIELDNAME_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COUNTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_PAYMENTMETHOD_SEARCH 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_p_program | TYPE D020S-PROG, " SY-CPROG | |||
lv_p_methodtext | TYPE T042Z_L_BF, " | |||
lv_fieldname_not_valid | TYPE T042Z_L_BF, " | |||
lv_p_dynpro | TYPE D020S-DNUM, " SY-DYNNR | |||
lv_country_not_found | TYPE D020S, " | |||
lv_p_dynpfield_country | TYPE FELD-NAME, " | |||
lv_p_dynpfield_mkey | TYPE FELD-NAME, " | |||
lv_p_dynpfield_mtext | TYPE FELD-NAME, " | |||
lv_p_country_key | TYPE T005-LAND1, " | |||
lv_p_sorted_list | TYPE BOOLE_D. " SPACE |
  CALL FUNCTION 'HR_PAYMENTMETHOD_SEARCH' " |
EXPORTING | ||
P_PROGRAM | = lv_p_program | |
P_DYNPRO | = lv_p_dynpro | |
P_DYNPFIELD_COUNTRY | = lv_p_dynpfield_country | |
P_DYNPFIELD_MKEY | = lv_p_dynpfield_mkey | |
P_DYNPFIELD_MTEXT | = lv_p_dynpfield_mtext | |
P_COUNTRY_KEY | = lv_p_country_key | |
P_SORTED_LIST | = lv_p_sorted_list | |
IMPORTING | ||
P_METHODTEXT | = lv_p_methodtext | |
EXCEPTIONS | ||
FIELDNAME_NOT_VALID = 1 | ||
COUNTRY_NOT_FOUND = 2 | ||
. " HR_PAYMENTMETHOD_SEARCH |
ABAP code using 7.40 inline data declarations to call FM HR_PAYMENTMETHOD_SEARCH
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 PROG FROM D020S INTO @DATA(ld_p_program). | ||||
DATA(ld_p_program) | = SY-CPROG. | |||
"SELECT single DNUM FROM D020S INTO @DATA(ld_p_dynpro). | ||||
DATA(ld_p_dynpro) | = SY-DYNNR. | |||
"SELECT single NAME FROM FELD INTO @DATA(ld_p_dynpfield_country). | ||||
"SELECT single NAME FROM FELD INTO @DATA(ld_p_dynpfield_mkey). | ||||
"SELECT single NAME FROM FELD INTO @DATA(ld_p_dynpfield_mtext). | ||||
"SELECT single LAND1 FROM T005 INTO @DATA(ld_p_country_key). | ||||
DATA(ld_p_sorted_list) | = ' '. | |||
Search for further information about these or an SAP related objects