SAP ISH_N2_DOCUMENTS_DELETE_FROMDB Function Module for
ISH_N2_DOCUMENTS_DELETE_FROMDB is a standard ish n2 documents delete fromdb 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 ish n2 documents delete fromdb FM, simply by entering the name ISH_N2_DOCUMENTS_DELETE_FROMDB into the relevant SAP transaction such as SE37 or SE38.
Function Group: N2DOC_DMS
Program Name: SAPLN2DOC_DMS
Main Program: SAPLN2DOC_DMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_N2_DOCUMENTS_DELETE_FROMDB 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 'ISH_N2_DOCUMENTS_DELETE_FROMDB'".
EXPORTING
* IM_APICONTROL = "
* IM_WITH_CONTENT = ' ' "
* IM_WITHOUT_DEL_INDICATOR = ' ' "
IMPORTING
EX_WORST_MSGTY = "
EX_NUMBER_SEL_DOCS = "
EX_NUMBER_DEL_DOCS = "
TABLES
* EXT_RETURN = "
* FILTER_EINRI = "
* FILTER_DTID = "
* FILTER_UPDAT = "
* FILTER_DOKAR = "
* FILTER_DOKNR = "
* FILTER_DOKTL = "
* FILTER_DOKVR = "
* EXT_DOC_DELETE = "
IMPORTING Parameters details for ISH_N2_DOCUMENTS_DELETE_FROMDB
IM_APICONTROL -
Data type: RN2DOC_APICONTROLOptional: Yes
Call by Reference: Yes
IM_WITH_CONTENT -
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: Yes
IM_WITHOUT_DEL_INDICATOR -
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISH_N2_DOCUMENTS_DELETE_FROMDB
EX_WORST_MSGTY -
Data type: ISH_BAPIRETMAXTYOptional: No
Call by Reference: Yes
EX_NUMBER_SEL_DOCS -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
EX_NUMBER_DEL_DOCS -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
TABLES Parameters details for ISH_N2_DOCUMENTS_DELETE_FROMDB
EXT_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
FILTER_EINRI -
Data type: RN2RANGE_EINRIOptional: Yes
Call by Reference: Yes
FILTER_DTID -
Data type: RN2RANGE_DTIDOptional: Yes
Call by Reference: Yes
FILTER_UPDAT -
Data type: RNRDATEOptional: Yes
Call by Reference: Yes
FILTER_DOKAR -
Data type: CV100_RANGESDOKAROptional: Yes
Call by Reference: Yes
FILTER_DOKNR -
Data type: CV100_RANGESDOKNROptional: Yes
Call by Reference: Yes
FILTER_DOKTL -
Data type: CV100_RANGESDOKTLOptional: Yes
Call by Reference: Yes
FILTER_DOKVR -
Data type: CV100_RANGESDOKVROptional: Yes
Call by Reference: Yes
EXT_DOC_DELETE -
Data type: RN2DOC_DELETEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ISH_N2_DOCUMENTS_DELETE_FROMDB 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: | ||||
| lt_ext_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_im_apicontrol | TYPE RN2DOC_APICONTROL, " | |||
| lv_ex_worst_msgty | TYPE ISH_BAPIRETMAXTY, " | |||
| lt_filter_einri | TYPE STANDARD TABLE OF RN2RANGE_EINRI, " | |||
| lv_im_with_content | TYPE ISH_ON_OFF, " SPACE | |||
| lv_ex_number_sel_docs | TYPE SY-TFILL, " | |||
| lt_filter_dtid | TYPE STANDARD TABLE OF RN2RANGE_DTID, " | |||
| lv_ex_number_del_docs | TYPE SY-TFILL, " | |||
| lv_im_without_del_indicator | TYPE ISH_ON_OFF, " SPACE | |||
| lt_filter_updat | TYPE STANDARD TABLE OF RNRDATE, " | |||
| lt_filter_dokar | TYPE STANDARD TABLE OF CV100_RANGESDOKAR, " | |||
| lt_filter_doknr | TYPE STANDARD TABLE OF CV100_RANGESDOKNR, " | |||
| lt_filter_doktl | TYPE STANDARD TABLE OF CV100_RANGESDOKTL, " | |||
| lt_filter_dokvr | TYPE STANDARD TABLE OF CV100_RANGESDOKVR, " | |||
| lt_ext_doc_delete | TYPE STANDARD TABLE OF RN2DOC_DELETE. " |
|   CALL FUNCTION 'ISH_N2_DOCUMENTS_DELETE_FROMDB' " |
| EXPORTING | ||
| IM_APICONTROL | = lv_im_apicontrol | |
| IM_WITH_CONTENT | = lv_im_with_content | |
| IM_WITHOUT_DEL_INDICATOR | = lv_im_without_del_indicator | |
| IMPORTING | ||
| EX_WORST_MSGTY | = lv_ex_worst_msgty | |
| EX_NUMBER_SEL_DOCS | = lv_ex_number_sel_docs | |
| EX_NUMBER_DEL_DOCS | = lv_ex_number_del_docs | |
| TABLES | ||
| EXT_RETURN | = lt_ext_return | |
| FILTER_EINRI | = lt_filter_einri | |
| FILTER_DTID | = lt_filter_dtid | |
| FILTER_UPDAT | = lt_filter_updat | |
| FILTER_DOKAR | = lt_filter_dokar | |
| FILTER_DOKNR | = lt_filter_doknr | |
| FILTER_DOKTL | = lt_filter_doktl | |
| FILTER_DOKVR | = lt_filter_dokvr | |
| EXT_DOC_DELETE | = lt_ext_doc_delete | |
| . " ISH_N2_DOCUMENTS_DELETE_FROMDB | ||
ABAP code using 7.40 inline data declarations to call FM ISH_N2_DOCUMENTS_DELETE_FROMDB
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.| DATA(ld_im_with_content) | = ' '. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_ex_number_sel_docs). | ||||
| "SELECT single TFILL FROM SY INTO @DATA(ld_ex_number_del_docs). | ||||
| DATA(ld_im_without_del_indicator) | = ' '. | |||
Search for further information about these or an SAP related objects