SMAP_OBJECT_MAINTAIN 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 SMAP_OBJECT_MAINTAIN into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SMAP01
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'SMAP_OBJECT_MAINTAIN' "Maintain Object Attributes
EXPORTING
i_object_type = " smapobject-type Object Type
* i_object_id = " smapobject-id Object key
* i_devclass = " smapobject-devclass Development Class
* i_language = SY-LANGU " sy-langu Language
* i_mode = 'SHOW' " rpygsgf-mode
* i_initial_screen = SPACE " ufflag
* i_screen = SPACE " ufflag
* i_popup = SPACE " ufflag
* i_starting_at_x = 2 " i
* i_starting_at_y = 2 " i
* i_active_tab = " cxtab_tabstrip-activetab
* i_msg_send = '0' " c
* i_cico_dialog = 'X' " ufflag
* i_cico_reqno = " rpygsgf-cico_reqno Transfer Order Number
* _deletion_check = 'X' " ufflag (internal)
* _maintain_structure = 'X' " ufflag
IMPORTING
e_object_data = " smapobject Solution Map: Object - General Attributes
e_cico_reqno = " rpygsgf-cico_reqno
e_exit = " ufflag
e_cancelled = " ufflag
* TABLES
* t_fieldcat = "
* t_fcode_excl = "
* CHANGING
* r_object = " Structure overview
EXCEPTIONS
ERROR_OCCURRED = 1 " Errors occurred
. " SMAP_OBJECT_MAINTAIN
The ABAP code below is a full code listing to execute function module SMAP_OBJECT_MAINTAIN 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_e_object_data | TYPE SMAPOBJECT , |
| ld_e_cico_reqno | TYPE RPYGSGF-CICO_REQNO , |
| ld_e_exit | TYPE UFFLAG , |
| ld_e_cancelled | TYPE UFFLAG , |
| it_t_fieldcat | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_t_fieldcat | LIKE LINE OF it_t_fieldcat , |
| it_t_fcode_excl | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_t_fcode_excl | LIKE LINE OF it_t_fcode_excl . |
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_r_object | TYPE STRING , |
| ld_e_object_data | TYPE SMAPOBJECT , |
| ld_i_object_type | TYPE SMAPOBJECT-TYPE , |
| it_t_fieldcat | TYPE STANDARD TABLE OF STRING , |
| wa_t_fieldcat | LIKE LINE OF it_t_fieldcat, |
| ld_e_cico_reqno | TYPE RPYGSGF-CICO_REQNO , |
| ld_i_object_id | TYPE SMAPOBJECT-ID , |
| it_t_fcode_excl | TYPE STANDARD TABLE OF STRING , |
| wa_t_fcode_excl | LIKE LINE OF it_t_fcode_excl, |
| ld_e_exit | TYPE UFFLAG , |
| ld_i_devclass | TYPE SMAPOBJECT-DEVCLASS , |
| ld_e_cancelled | TYPE UFFLAG , |
| ld_i_language | TYPE SY-LANGU , |
| ld_i_mode | TYPE RPYGSGF-MODE , |
| ld_i_initial_screen | TYPE UFFLAG , |
| ld_i_screen | TYPE UFFLAG , |
| ld_i_popup | TYPE UFFLAG , |
| ld_i_starting_at_x | TYPE I , |
| ld_i_starting_at_y | TYPE I , |
| ld_i_active_tab | TYPE CXTAB_TABSTRIP-ACTIVETAB , |
| ld_i_msg_send | TYPE C , |
| ld_i_cico_dialog | TYPE UFFLAG , |
| ld_i_cico_reqno | TYPE RPYGSGF-CICO_REQNO , |
| ld__deletion_check | TYPE UFFLAG , |
| ld__maintain_structure | TYPE UFFLAG . |
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 SMAP_OBJECT_MAINTAIN or its description.