ADDRESS_MAINTAIN_NEW 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 ADDRESS_MAINTAIN_NEW into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SAD0
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ADDRESS_MAINTAIN_NEW' "
EXPORTING
* gui_status = SPACE " sy-pfkey GUI status of user interface
* gui_title = SPACE " title-text_line GUI header line
* key_adrnr = SPACE " sadr-adrnr Address number (key)
* key_natio = '*' " sadr-natio Version of address number (key)
* proc_adrty = 'C' " sy-input Type of address ('C'ompany, 'P'rivate, ' ' )
* proc_entry = 'ADRP' " sad0s-procentry Dialog entry point
* proc_status = 'D' " sad0s-procstatus Processing status ('A'dd, 'M'aint., 'D'isp.)
* sadrp_in = SPACE " sadrp Work area SADRP for field defaults
* sadr_in = SPACE " sadr
* sadr_in = SPACE " sadr Work area SADR for field defaults
* save_intern = SPACE " sad0s-saveintern Flag 'Save internally'
tab_field = " dd03l-fieldname Name of field the address uses
* tab_key = SPACE " sad0s-tabkey
* tab_key = SPACE " sad0s-tabkey Key of table the address uses
tab_name = " dd03l-tabname Name of table the address uses
IMPORTING
fcode = " d0100-fcode
fcode = " d0100-fcode Function code, returned to application
key_adrnr = " sadr-adrnr Address number (key)
key_natio = " sadr-natio Version of address number (key)
modify_flag = " sad0s-modifyflag Flag 'Data has been changed'
sadrp_out = " sadrp Work area SADRP, back to application
sadr_out = " sadr Work area SADR, back to application
EXCEPTIONS
ADDRESS_NOT_FOUND = 1 " Address not found
PARAMETER_ERROR = 2 "
. " ADDRESS_MAINTAIN_NEW
The ABAP code below is a full code listing to execute function module ADDRESS_MAINTAIN_NEW 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_fcode | TYPE D0100-FCODE , |
| ld_fcode | TYPE D0100-FCODE , |
| ld_key_adrnr | TYPE SADR-ADRNR , |
| ld_key_natio | TYPE SADR-NATIO , |
| ld_modify_flag | TYPE SAD0S-MODIFYFLAG , |
| ld_sadrp_out | TYPE SADRP , |
| ld_sadr_out | TYPE SADR . |
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_fcode | TYPE D0100-FCODE , |
| ld_fcode | TYPE D0100-FCODE , |
| ld_gui_status | TYPE SY-PFKEY , |
| ld_key_adrnr | TYPE SADR-ADRNR , |
| ld_gui_title | TYPE TITLE-TEXT_LINE , |
| ld_key_natio | TYPE SADR-NATIO , |
| ld_key_adrnr | TYPE SADR-ADRNR , |
| ld_modify_flag | TYPE SAD0S-MODIFYFLAG , |
| ld_key_natio | TYPE SADR-NATIO , |
| ld_proc_adrty | TYPE SY-INPUT , |
| ld_sadrp_out | TYPE SADRP , |
| ld_proc_entry | TYPE SAD0S-PROCENTRY , |
| ld_sadr_out | TYPE SADR , |
| ld_proc_status | TYPE SAD0S-PROCSTATUS , |
| ld_sadrp_in | TYPE SADRP , |
| ld_sadr_in | TYPE SADR , |
| ld_sadr_in | TYPE SADR , |
| ld_save_intern | TYPE SAD0S-SAVEINTERN , |
| ld_tab_field | TYPE DD03L-FIELDNAME , |
| ld_tab_key | TYPE SAD0S-TABKEY , |
| ld_tab_key | TYPE SAD0S-TABKEY , |
| ld_tab_name | TYPE DD03L-TABNAME . |
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 ADDRESS_MAINTAIN_NEW or its description.