SAP RH_GET_ADDR_PREB Function Module for









RH_GET_ADDR_PREB is a standard rh get addr preb 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 rh get addr preb FM, simply by entering the name RH_GET_ADDR_PREB into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHVS
Program Name: SAPLRHVS
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_GET_ADDR_PREB 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 'RH_GET_ADDR_PREB'"
EXPORTING
PLVAR = "
* A1001 = "
* VOBEG = '19000101' "
* VOEND = '99991231' "
* VOLNG = ' ' "
* NORMA = 'X' "
* OBLIG = 'X' "
* WAITL = 'X' "
* MODE = ' ' "
EVTYP = "
* EVENT = "
* EVBEG = '19000101' "
* EVEND = '99991231' "
* ATTYP = "
* ATTEN = "
* ATANZ = "
ADTYP = "

IMPORTING
VERINST = "
SUBRC = "

TABLES
ADDRESSE = "
BOOKDATA = "
.



IMPORTING Parameters details for RH_GET_ADDR_PREB

PLVAR -

Data type: PKMIT-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

A1001 -

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

VOBEG -

Data type: PKMIT-VOBEG
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VOEND -

Data type: PKMIT-VOEND
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VOLNG -

Data type: PKMIT-VOLNG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NORMA -

Data type: PKMIT-NORMA
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBLIG -

Data type: PKMIT-OBLIG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAITL -

Data type: PKMIT-WAITL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE -

Data type: PP0V-DIALOG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVTYP -

Data type: PKMIT-TYP_ID
Optional: No
Call by Reference: No ( called with pass by value option)

EVENT -

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

EVBEG -

Data type: PKMIT-KRS1_BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVEND -

Data type: PKMIT-KRS1_ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ATTYP -

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

ATTEN -

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

ATANZ -

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

ADTYP -

Data type: PKMIT-ADTYP
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_GET_ADDR_PREB

VERINST -

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

SUBRC -

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RH_GET_ADDR_PREB

ADDRESSE -

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

BOOKDATA -

Data type: P1001
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RH_GET_ADDR_PREB 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_plvar  TYPE PKMIT-PLVAR, "   
lv_verinst  TYPE CHAR1, "   
lt_addresse  TYPE STANDARD TABLE OF ADDRESSEE, "   
lv_a1001  TYPE P1001, "   
lv_vobeg  TYPE PKMIT-VOBEG, "   '19000101'
lv_voend  TYPE PKMIT-VOEND, "   '99991231'
lv_volng  TYPE PKMIT-VOLNG, "   ' '
lv_norma  TYPE PKMIT-NORMA, "   'X'
lv_oblig  TYPE PKMIT-OBLIG, "   'X'
lv_waitl  TYPE PKMIT-WAITL, "   'X'
lv_mode  TYPE PP0V-DIALOG, "   ' '
lv_evtyp  TYPE PKMIT-TYP_ID, "   
lv_subrc  TYPE SY-SUBRC, "   
lt_bookdata  TYPE STANDARD TABLE OF P1001, "   
lv_event  TYPE PKMIT-KRS1_ID, "   
lv_evbeg  TYPE PKMIT-KRS1_BEGDA, "   '19000101'
lv_evend  TYPE PKMIT-KRS1_ENDDA, "   '99991231'
lv_attyp  TYPE PKMIT-TEILNTYP, "   
lv_atten  TYPE PKMIT-TEILN_ID, "   
lv_atanz  TYPE PKMIT-MANZL, "   
lv_adtyp  TYPE PKMIT-ADTYP. "   

  CALL FUNCTION 'RH_GET_ADDR_PREB'  "
    EXPORTING
         PLVAR = lv_plvar
         A1001 = lv_a1001
         VOBEG = lv_vobeg
         VOEND = lv_voend
         VOLNG = lv_volng
         NORMA = lv_norma
         OBLIG = lv_oblig
         WAITL = lv_waitl
         MODE = lv_mode
         EVTYP = lv_evtyp
         EVENT = lv_event
         EVBEG = lv_evbeg
         EVEND = lv_evend
         ATTYP = lv_attyp
         ATTEN = lv_atten
         ATANZ = lv_atanz
         ADTYP = lv_adtyp
    IMPORTING
         VERINST = lv_verinst
         SUBRC = lv_subrc
    TABLES
         ADDRESSE = lt_addresse
         BOOKDATA = lt_bookdata
. " RH_GET_ADDR_PREB




ABAP code using 7.40 inline data declarations to call FM RH_GET_ADDR_PREB

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 PLVAR FROM PKMIT INTO @DATA(ld_plvar).
 
 
 
 
"SELECT single VOBEG FROM PKMIT INTO @DATA(ld_vobeg).
DATA(ld_vobeg) = '19000101'.
 
"SELECT single VOEND FROM PKMIT INTO @DATA(ld_voend).
DATA(ld_voend) = '99991231'.
 
"SELECT single VOLNG FROM PKMIT INTO @DATA(ld_volng).
DATA(ld_volng) = ' '.
 
"SELECT single NORMA FROM PKMIT INTO @DATA(ld_norma).
DATA(ld_norma) = 'X'.
 
"SELECT single OBLIG FROM PKMIT INTO @DATA(ld_oblig).
DATA(ld_oblig) = 'X'.
 
"SELECT single WAITL FROM PKMIT INTO @DATA(ld_waitl).
DATA(ld_waitl) = 'X'.
 
"SELECT single DIALOG FROM PP0V INTO @DATA(ld_mode).
DATA(ld_mode) = ' '.
 
"SELECT single TYP_ID FROM PKMIT INTO @DATA(ld_evtyp).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
 
"SELECT single KRS1_ID FROM PKMIT INTO @DATA(ld_event).
 
"SELECT single KRS1_BEGDA FROM PKMIT INTO @DATA(ld_evbeg).
DATA(ld_evbeg) = '19000101'.
 
"SELECT single KRS1_ENDDA FROM PKMIT INTO @DATA(ld_evend).
DATA(ld_evend) = '99991231'.
 
"SELECT single TEILNTYP FROM PKMIT INTO @DATA(ld_attyp).
 
"SELECT single TEILN_ID FROM PKMIT INTO @DATA(ld_atten).
 
"SELECT single MANZL FROM PKMIT INTO @DATA(ld_atanz).
 
"SELECT single ADTYP FROM PKMIT INTO @DATA(ld_adtyp).
 


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!