ISH_N2_DOCUMENT_MAINT_OLD 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 ISH_N2_DOCUMENT_MAINT_OLD into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
N2DOC_MAINTENANCE
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ISH_N2_DOCUMENT_MAINT_OLD' "
* EXPORTING
* im_apicontrol = " rn2doc_apicontrol IS-H*MED: Control Options for MedDoc-APIs
* im_document_key = " rn2doc_key IS-H*MED: Key for a Document
* im_document_key_source = " rn2doc_key
* im_with_gos = 'X' " ish_on_off
* im_docadmin_create = " rn2docadmin_create Doc Management Data for Creating a Document
* im_admindata_dialog = 'X' " n2_popdok Dialog Box Indic. for Querying Addit. Admin.Data
* im_docadmin_create_docpart = " rn2docadmin_create_docpart Doc Management Data for Creating a Document Part
* im_docadmin_create_version = " rn2docadmin_create_version Doc. Mgmt Data for Creating Document Version
IMPORTING
ex_worst_msgty = " ish_bapiretmaxty IS-H: Most Severe Message Type Generated
ex_return_code = " syucomm Internal Control Parameter
ex_saved = " sy-tcode
* TABLES
* ext_return = " bapiret2 Return Parameter(s)
* imt_commands = " n2cmd IS-H*MED: Command list for param. documents
. " ISH_N2_DOCUMENT_MAINT_OLD
The ABAP code below is a full code listing to execute function module ISH_N2_DOCUMENT_MAINT_OLD 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_ex_worst_msgty | TYPE ISH_BAPIRETMAXTY , |
| ld_ex_return_code | TYPE SYUCOMM , |
| ld_ex_saved | TYPE SY-TCODE , |
| it_ext_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_ext_return | LIKE LINE OF it_ext_return , |
| it_imt_commands | TYPE STANDARD TABLE OF N2CMD,"TABLES PARAM |
| wa_imt_commands | LIKE LINE OF it_imt_commands . |
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_ex_worst_msgty | TYPE ISH_BAPIRETMAXTY , |
| ld_im_apicontrol | TYPE RN2DOC_APICONTROL , |
| it_ext_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_ext_return | LIKE LINE OF it_ext_return, |
| ld_ex_return_code | TYPE SYUCOMM , |
| ld_im_document_key | TYPE RN2DOC_KEY , |
| it_imt_commands | TYPE STANDARD TABLE OF N2CMD , |
| wa_imt_commands | LIKE LINE OF it_imt_commands, |
| ld_ex_saved | TYPE SY-TCODE , |
| ld_im_document_key_source | TYPE RN2DOC_KEY , |
| ld_im_with_gos | TYPE ISH_ON_OFF , |
| ld_im_docadmin_create | TYPE RN2DOCADMIN_CREATE , |
| ld_im_admindata_dialog | TYPE N2_POPDOK , |
| ld_im_docadmin_create_docpart | TYPE RN2DOCADMIN_CREATE_DOCPART , |
| ld_im_docadmin_create_version | TYPE RN2DOCADMIN_CREATE_VERSION . |
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 ISH_N2_DOCUMENT_MAINT_OLD or its description.