SAP HR_UA_CONVERT_STRING Function Module for Convert string for DBF
HR_UA_CONVERT_STRING is a standard hr ua convert string SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert string for DBF processing and below is the pattern details for this FM, 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 ua convert string FM, simply by entering the name HR_UA_CONVERT_STRING into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPADUADBF
Program Name: SAPLHRPADUADBF
Main Program: SAPLHRPADUADBF
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_UA_CONVERT_STRING 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_UA_CONVERT_STRING'"Convert string for DBF.
EXPORTING
P_INPUT = "Input string
* P_CODEPAGE_FR = '1504' "SAP Character Set Identification From
* P_CODEPAGE_TO = '1503' "SAP Character Set Identification To
IMPORTING
P_OUTPUT = "Output string
IMPORTING Parameters details for HR_UA_CONVERT_STRING
P_INPUT - Input string
Data type: ANYOptional: No
Call by Reference: Yes
P_CODEPAGE_FR - SAP Character Set Identification From
Data type: CPCODEPAGEDefault: '1504'
Optional: Yes
Call by Reference: Yes
P_CODEPAGE_TO - SAP Character Set Identification To
Data type: CPCODEPAGEDefault: '1503'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_UA_CONVERT_STRING
P_OUTPUT - Output string
Data type: ANYOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_UA_CONVERT_STRING 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_input | TYPE ANY, " | |||
| lv_p_output | TYPE ANY, " | |||
| lv_p_codepage_fr | TYPE CPCODEPAGE, " '1504' | |||
| lv_p_codepage_to | TYPE CPCODEPAGE. " '1503' |
|   CALL FUNCTION 'HR_UA_CONVERT_STRING' "Convert string for DBF |
| EXPORTING | ||
| P_INPUT | = lv_p_input | |
| P_CODEPAGE_FR | = lv_p_codepage_fr | |
| P_CODEPAGE_TO | = lv_p_codepage_to | |
| IMPORTING | ||
| P_OUTPUT | = lv_p_output | |
| . " HR_UA_CONVERT_STRING | ||
ABAP code using 7.40 inline data declarations to call FM HR_UA_CONVERT_STRING
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_p_codepage_fr) | = '1504'. | |||
| DATA(ld_p_codepage_to) | = '1503'. | |||
Search for further information about these or an SAP related objects