SAP IST_INV_SAMPLE_EXTERN_BILLDOCS Function Module for
IST_INV_SAMPLE_EXTERN_BILLDOCS is a standard ist inv sample extern billdocs 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 ist inv sample extern billdocs FM, simply by entering the name IST_INV_SAMPLE_EXTERN_BILLDOCS into the relevant SAP transaction such as SE37 or SE38.
Function Group: ISTINV_SAMPLE
Program Name: SAPLISTINV_SAMPLE
Main Program: SAPLISTINV_SAMPLE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IST_INV_SAMPLE_EXTERN_BILLDOCS 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 'IST_INV_SAMPLE_EXTERN_BILLDOCS'".
EXPORTING
X_FKKVKP_TAB = "
X_NUM_INFO_ITEMS = "
X_ITEM_SIMULATED = "
X_ADD_ITEMS = "
X_TESTRUN = "
* X_MAX_RANDOM_AMOUNT = "
* X_MAX_RANDOM_AMOUNT_CURR = "
X_LOG_SYSTEM = "
X_BUKRS = "
X_TAX_DET_TYPE = "
X_TAX_DATE_TYPE = "
X_SIMULATED = "
X_DATE_FROM = "
X_DATE_TO = "
X_NUM_POSTREL_ITEMS = "
IMPORTING
Y_HEADER_TAB = "
Y_ITEM_TAB = "
Y_TAXITEM_TAB = "
Y_ADDITEM_TAB = "
EXCEPTIONS
GENERAL_FAULT = 1
IMPORTING Parameters details for IST_INV_SAMPLE_EXTERN_BILLDOCS
X_FKKVKP_TAB -
Data type: FKKVKP_TOptional: No
Call by Reference: Yes
X_NUM_INFO_ITEMS -
Data type: IOptional: No
Call by Reference: Yes
X_ITEM_SIMULATED -
Data type: FKKINVBILL_I-ITEM_SIMULATEDOptional: No
Call by Reference: Yes
X_ADD_ITEMS -
Data type: XFELDOptional: No
Call by Reference: Yes
X_TESTRUN -
Data type: TESTRUNOptional: No
Call by Reference: Yes
X_MAX_RANDOM_AMOUNT -
Data type: FKKINVBILL_I-BILL_AMOUNTOptional: Yes
Call by Reference: Yes
X_MAX_RANDOM_AMOUNT_CURR -
Data type: FKKINVBILL_I-BILL_CURROptional: Yes
Call by Reference: Yes
X_LOG_SYSTEM -
Data type: FKKINVBILL_H-LOG_SYSTEMOptional: No
Call by Reference: Yes
X_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: Yes
X_TAX_DET_TYPE -
Data type: FKKINVBILL_H-TAX_DET_TYPEOptional: No
Call by Reference: Yes
X_TAX_DATE_TYPE -
Data type: FKKINVBILL_H-TAX_DATE_TYPEOptional: No
Call by Reference: Yes
X_SIMULATED -
Data type: FKKINVBILL_H-SIMULATEDOptional: No
Call by Reference: Yes
X_DATE_FROM -
Data type: FKKINVBILL_H-DATE_FROMOptional: No
Call by Reference: Yes
X_DATE_TO -
Data type: FKKINVBILL_H-DATE_TOOptional: No
Call by Reference: Yes
X_NUM_POSTREL_ITEMS -
Data type: IOptional: No
Call by Reference: Yes
EXPORTING Parameters details for IST_INV_SAMPLE_EXTERN_BILLDOCS
Y_HEADER_TAB -
Data type: BAPI_IST_EXTDOC_H_TABOptional: No
Call by Reference: Yes
Y_ITEM_TAB -
Data type: BAPI_IST_EXTDOC_I_TABOptional: No
Call by Reference: Yes
Y_TAXITEM_TAB -
Data type: BAPI_IST_EXTDOC_T_TABOptional: No
Call by Reference: Yes
Y_ADDITEM_TAB -
Data type: BAPI_IST_EXTDOC_A_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
GENERAL_FAULT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IST_INV_SAMPLE_EXTERN_BILLDOCS 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: | ||||
| lv_x_fkkvkp_tab | TYPE FKKVKP_T, " | |||
| lv_y_header_tab | TYPE BAPI_IST_EXTDOC_H_TAB, " | |||
| lv_general_fault | TYPE BAPI_IST_EXTDOC_H_TAB, " | |||
| lv_x_num_info_items | TYPE I, " | |||
| lv_x_item_simulated | TYPE FKKINVBILL_I-ITEM_SIMULATED, " | |||
| lv_x_add_items | TYPE XFELD, " | |||
| lv_x_testrun | TYPE TESTRUN, " | |||
| lv_x_max_random_amount | TYPE FKKINVBILL_I-BILL_AMOUNT, " | |||
| lv_x_max_random_amount_curr | TYPE FKKINVBILL_I-BILL_CURR, " | |||
| lv_y_item_tab | TYPE BAPI_IST_EXTDOC_I_TAB, " | |||
| lv_x_log_system | TYPE FKKINVBILL_H-LOG_SYSTEM, " | |||
| lv_x_bukrs | TYPE T001-BUKRS, " | |||
| lv_y_taxitem_tab | TYPE BAPI_IST_EXTDOC_T_TAB, " | |||
| lv_y_additem_tab | TYPE BAPI_IST_EXTDOC_A_TAB, " | |||
| lv_x_tax_det_type | TYPE FKKINVBILL_H-TAX_DET_TYPE, " | |||
| lv_x_tax_date_type | TYPE FKKINVBILL_H-TAX_DATE_TYPE, " | |||
| lv_x_simulated | TYPE FKKINVBILL_H-SIMULATED, " | |||
| lv_x_date_from | TYPE FKKINVBILL_H-DATE_FROM, " | |||
| lv_x_date_to | TYPE FKKINVBILL_H-DATE_TO, " | |||
| lv_x_num_postrel_items | TYPE I. " |
|   CALL FUNCTION 'IST_INV_SAMPLE_EXTERN_BILLDOCS' " |
| EXPORTING | ||
| X_FKKVKP_TAB | = lv_x_fkkvkp_tab | |
| X_NUM_INFO_ITEMS | = lv_x_num_info_items | |
| X_ITEM_SIMULATED | = lv_x_item_simulated | |
| X_ADD_ITEMS | = lv_x_add_items | |
| X_TESTRUN | = lv_x_testrun | |
| X_MAX_RANDOM_AMOUNT | = lv_x_max_random_amount | |
| X_MAX_RANDOM_AMOUNT_CURR | = lv_x_max_random_amount_curr | |
| X_LOG_SYSTEM | = lv_x_log_system | |
| X_BUKRS | = lv_x_bukrs | |
| X_TAX_DET_TYPE | = lv_x_tax_det_type | |
| X_TAX_DATE_TYPE | = lv_x_tax_date_type | |
| X_SIMULATED | = lv_x_simulated | |
| X_DATE_FROM | = lv_x_date_from | |
| X_DATE_TO | = lv_x_date_to | |
| X_NUM_POSTREL_ITEMS | = lv_x_num_postrel_items | |
| IMPORTING | ||
| Y_HEADER_TAB | = lv_y_header_tab | |
| Y_ITEM_TAB | = lv_y_item_tab | |
| Y_TAXITEM_TAB | = lv_y_taxitem_tab | |
| Y_ADDITEM_TAB | = lv_y_additem_tab | |
| EXCEPTIONS | ||
| GENERAL_FAULT = 1 | ||
| . " IST_INV_SAMPLE_EXTERN_BILLDOCS | ||
ABAP code using 7.40 inline data declarations to call FM IST_INV_SAMPLE_EXTERN_BILLDOCS
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.| "SELECT single ITEM_SIMULATED FROM FKKINVBILL_I INTO @DATA(ld_x_item_simulated). | ||||
| "SELECT single BILL_AMOUNT FROM FKKINVBILL_I INTO @DATA(ld_x_max_random_amount). | ||||
| "SELECT single BILL_CURR FROM FKKINVBILL_I INTO @DATA(ld_x_max_random_amount_curr). | ||||
| "SELECT single LOG_SYSTEM FROM FKKINVBILL_H INTO @DATA(ld_x_log_system). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_x_bukrs). | ||||
| "SELECT single TAX_DET_TYPE FROM FKKINVBILL_H INTO @DATA(ld_x_tax_det_type). | ||||
| "SELECT single TAX_DATE_TYPE FROM FKKINVBILL_H INTO @DATA(ld_x_tax_date_type). | ||||
| "SELECT single SIMULATED FROM FKKINVBILL_H INTO @DATA(ld_x_simulated). | ||||
| "SELECT single DATE_FROM FROM FKKINVBILL_H INTO @DATA(ld_x_date_from). | ||||
| "SELECT single DATE_TO FROM FKKINVBILL_H INTO @DATA(ld_x_date_to). | ||||
Search for further information about these or an SAP related objects