RH_ORG_OBJ_ADDRESS_TO_ZAV is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RH_ORG_OBJ_ADDRESS_TO_ZAV into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RHADDRESS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RH_ORG_OBJ_ADDRESS_TO_ZAV' "
EXPORTING
* plvar = " plvar Plan Version
otype = " otype Object Type
objid = " Object ID
* begda = SY-DATUM " begdatum Start Date
* endda = '99991231' " enddatum End Date
* istat = '1' " istat_d Planning Status
* langu = SY-LANGU " sy-langu Language
* i1028_subty = " subtyp Subtype
i1028 = " hri1028 Infotype 1028 Fields
* i1032 = " hri1032 Infotype 1032 Fields
* i1028_only = " flag
* buffer_mode = 'X' " flag General Flag
* addrnum = " ad_addrnum Address Number
IMPORTING
address = " addr1_data Address transfer structure
act_begda = " begdatum Start Date
act_endda = " enddatum End Date
new_addrnum = " ad_addrnum Address Number
* TABLES
* iadtel = " adtel Telephone number data transfer structure (centr.addr.admin)
* iadfax = " adfax Transfer structure for fax numbers (central address admin.)
* iadsmtp = " adsmtp SMTP addresses data transfer structure (centr. addr. admin.)
EXCEPTIONS
NO_ACTIVE_PLVAR = 1 " Plan version not active
OBJECT_NOT_FOUND = 2 " Object Not Found
ADDRESS_ERROR = 3 "
. " RH_ORG_OBJ_ADDRESS_TO_ZAV
The ABAP code below is a full code listing to execute function module RH_ORG_OBJ_ADDRESS_TO_ZAV including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_address | TYPE ADDR1_DATA , |
| ld_act_begda | TYPE BEGDATUM , |
| ld_act_endda | TYPE ENDDATUM , |
| ld_new_addrnum | TYPE AD_ADDRNUM , |
| it_iadtel | TYPE STANDARD TABLE OF ADTEL,"TABLES PARAM |
| wa_iadtel | LIKE LINE OF it_iadtel , |
| it_iadfax | TYPE STANDARD TABLE OF ADFAX,"TABLES PARAM |
| wa_iadfax | LIKE LINE OF it_iadfax , |
| it_iadsmtp | TYPE STANDARD TABLE OF ADSMTP,"TABLES PARAM |
| wa_iadsmtp | LIKE LINE OF it_iadsmtp . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_address | TYPE ADDR1_DATA , |
| ld_plvar | TYPE PLVAR , |
| it_iadtel | TYPE STANDARD TABLE OF ADTEL , |
| wa_iadtel | LIKE LINE OF it_iadtel, |
| ld_act_begda | TYPE BEGDATUM , |
| ld_otype | TYPE OTYPE , |
| it_iadfax | TYPE STANDARD TABLE OF ADFAX , |
| wa_iadfax | LIKE LINE OF it_iadfax, |
| ld_act_endda | TYPE ENDDATUM , |
| ld_objid | TYPE STRING , |
| it_iadsmtp | TYPE STANDARD TABLE OF ADSMTP , |
| wa_iadsmtp | LIKE LINE OF it_iadsmtp, |
| ld_new_addrnum | TYPE AD_ADDRNUM , |
| ld_begda | TYPE BEGDATUM , |
| ld_endda | TYPE ENDDATUM , |
| ld_istat | TYPE ISTAT_D , |
| ld_langu | TYPE SY-LANGU , |
| ld_i1028_subty | TYPE SUBTYP , |
| ld_i1028 | TYPE HRI1028 , |
| ld_i1032 | TYPE HRI1032 , |
| ld_i1028_only | TYPE FLAG , |
| ld_buffer_mode | TYPE FLAG , |
| ld_addrnum | TYPE AD_ADDRNUM . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RH_ORG_OBJ_ADDRESS_TO_ZAV or its description.