SAP HR_SK_GET_ADR Function Module for Naèítanie adresy z tab.T536A
HR_SK_GET_ADR is a standard hr sk get adr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Naèítanie adresy z tab.T536A 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 sk get adr FM, simply by entering the name HR_SK_GET_ADR into the relevant SAP transaction such as SE37 or SE38.
Function Group: 3SK2
Program Name: SAPL3SK2
Main Program: SAPL3SK2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_SK_GET_ADR 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_SK_GET_ADR'"Naèítanie adresy z tab.T536A.
EXPORTING
ANART = "Druh adries
VARGU = "Predpis pre výstavbu pre druh adresy
IMPORTING
A_TEXT = "Text adresy (meno, ulica, miesto, tel.)
J_TEXT = "Text adresy (meno, ulica, miesto, tel.)
K_TEXT = "Text adresy (meno, ulica, miesto, tel.)
L_TEXT = "Text adresy (meno, ulica, miesto, tel.)
P_TEXT = "Text adresy (meno, ulica, miesto, tel.)
Q_TEXT = "Text adresy (meno, ulica, miesto, tel.)
R_TEXT = "
1_TEXT = "Text adresy (meno, ulica, miesto, tel.)
ADRESA = "Text då¾ky 132
C1_TEXT = "
C2_TEXT = "
B_TEXT = "Text adresy (meno, ulica, miesto, tel.)
C3_TEXT = "
PSC = "
MESTO = "
C_TEXT = "Text adresy (meno, ulica, miesto, tel.)
D_TEXT = "Text adresy (meno, ulica, miesto, tel.)
E_TEXT = "Text adresy (meno, ulica, miesto, tel.)
F_TEXT = "
G_TEXT = "
H_TEXT = "Text adresy (meno, ulica, miesto, tel.)
I_TEXT = "Text adresy (meno, ulica, miesto, tel.)
EXCEPTIONS
NO_DATA = 1
IMPORTING Parameters details for HR_SK_GET_ADR
ANART - Druh adries
Data type: ANARTOptional: No
Call by Reference: Yes
VARGU - Predpis pre výstavbu pre druh adresy
Data type: VARGAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_SK_GET_ADR
A_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
J_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
K_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
L_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
P_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
Q_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
R_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
1_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
ADRESA - Text då¾ky 132
Data type: TEXT132Optional: No
Call by Reference: Yes
C1_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
C2_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
B_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
C3_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
PSC -
Data type: ADRTXOptional: No
Call by Reference: Yes
MESTO -
Data type: ADRTXOptional: No
Call by Reference: Yes
C_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
D_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
E_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
F_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
G_TEXT -
Data type: ADRTXOptional: No
Call by Reference: Yes
H_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
I_TEXT - Text adresy (meno, ulica, miesto, tel.)
Data type: ADRTXOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_DATA -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_SK_GET_ADR 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_anart | TYPE ANART, " | |||
lv_a_text | TYPE ADRTX, " | |||
lv_no_data | TYPE ADRTX, " | |||
lv_j_text | TYPE ADRTX, " | |||
lv_k_text | TYPE ADRTX, " | |||
lv_l_text | TYPE ADRTX, " | |||
lv_p_text | TYPE ADRTX, " | |||
lv_q_text | TYPE ADRTX, " | |||
lv_r_text | TYPE ADRTX, " | |||
lv_1_text | TYPE ADRTX, " | |||
lv_adresa | TYPE TEXT132, " | |||
lv_c1_text | TYPE ADRTX, " | |||
lv_c2_text | TYPE ADRTX, " | |||
lv_vargu | TYPE VARGA, " | |||
lv_b_text | TYPE ADRTX, " | |||
lv_c3_text | TYPE ADRTX, " | |||
lv_psc | TYPE ADRTX, " | |||
lv_mesto | TYPE ADRTX, " | |||
lv_c_text | TYPE ADRTX, " | |||
lv_d_text | TYPE ADRTX, " | |||
lv_e_text | TYPE ADRTX, " | |||
lv_f_text | TYPE ADRTX, " | |||
lv_g_text | TYPE ADRTX, " | |||
lv_h_text | TYPE ADRTX, " | |||
lv_i_text | TYPE ADRTX. " |
  CALL FUNCTION 'HR_SK_GET_ADR' "Naèítanie adresy z tab.T536A |
EXPORTING | ||
ANART | = lv_anart | |
VARGU | = lv_vargu | |
IMPORTING | ||
A_TEXT | = lv_a_text | |
J_TEXT | = lv_j_text | |
K_TEXT | = lv_k_text | |
L_TEXT | = lv_l_text | |
P_TEXT | = lv_p_text | |
Q_TEXT | = lv_q_text | |
R_TEXT | = lv_r_text | |
1_TEXT | = lv_1_text | |
ADRESA | = lv_adresa | |
C1_TEXT | = lv_c1_text | |
C2_TEXT | = lv_c2_text | |
B_TEXT | = lv_b_text | |
C3_TEXT | = lv_c3_text | |
PSC | = lv_psc | |
MESTO | = lv_mesto | |
C_TEXT | = lv_c_text | |
D_TEXT | = lv_d_text | |
E_TEXT | = lv_e_text | |
F_TEXT | = lv_f_text | |
G_TEXT | = lv_g_text | |
H_TEXT | = lv_h_text | |
I_TEXT | = lv_i_text | |
EXCEPTIONS | ||
NO_DATA = 1 | ||
. " HR_SK_GET_ADR |
ABAP code using 7.40 inline data declarations to call FM HR_SK_GET_ADR
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.Search for further information about these or an SAP related objects