SAP Function Modules

BAPI_INSPLOT_STATINTERFACE SAP Function module - QM-STI Interface







BAPI_INSPLOT_STATINTERFACE 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 BAPI_INSPLOT_STATINTERFACE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: QIST
Released Date: 22.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_INSPLOT_STATINTERFACE - BAPI INSPLOT STATINTERFACE





CALL FUNCTION 'BAPI_INSPLOT_STATINTERFACE' "QM-STI Interface
  IMPORTING
    return =                    " bapireturn1   Standard BAPI Return Parameter
    mime_type =                 " bapiqci-cont_type  HTML content type
*   mime_length =               " bapiqci-cont_len  HTML content length
* TABLES
*   report_header =             " bapiqmsti1    Evaluation Header Data
*   material_data =             " bapiqmsti2    Material
*   vendor_data =               " bapiqmsti3    Vendor
*   characteristic_header =     " bapiqmsti4    Characteristic Header Data
*   characteristic_quantitative =   " bapiqmsti5  Quantitative Characteristics
*   characteristic_qualitative =   " bapiqmsti6  Qualitative Characteristics
*   sample_header =             " bapiqmsti7    Samples
*   results_quantitative =      " bapiqmsti9    Quantitative Inspection Results
*   results_qualitative =       " bapiqmsti0    Qualitative Inspection Results
*   results_additional_data =   " bapiqmsti8    Additional Data: Inspection Results
*   method_data =               " bapiqmstia    Evaluation Steps
*   sample_quantitative =       " bapiqmsti71   Summarized Quantitative Results for Characteristic
*   sample_qualitative =        " bapiqmsti72   Summarized Qualitative Results
*   mime =                      " bapiqgmime    File Content
*   xml =                       " bapiqgmime    Data in XML Format
    .  "  BAPI_INSPLOT_STATINTERFACE

ABAP code example for Function Module BAPI_INSPLOT_STATINTERFACE





The ABAP code below is a full code listing to execute function module BAPI_INSPLOT_STATINTERFACE 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).

DATA:
ld_return  TYPE BAPIRETURN1 ,
ld_mime_type  TYPE BAPIQCI-CONT_TYPE ,
ld_mime_length  TYPE BAPIQCI-CONT_LEN ,
it_report_header  TYPE STANDARD TABLE OF BAPIQMSTI1,"TABLES PARAM
wa_report_header  LIKE LINE OF it_report_header ,
it_material_data  TYPE STANDARD TABLE OF BAPIQMSTI2,"TABLES PARAM
wa_material_data  LIKE LINE OF it_material_data ,
it_vendor_data  TYPE STANDARD TABLE OF BAPIQMSTI3,"TABLES PARAM
wa_vendor_data  LIKE LINE OF it_vendor_data ,
it_characteristic_header  TYPE STANDARD TABLE OF BAPIQMSTI4,"TABLES PARAM
wa_characteristic_header  LIKE LINE OF it_characteristic_header ,
it_characteristic_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI5,"TABLES PARAM
wa_characteristic_quantitative  LIKE LINE OF it_characteristic_quantitative ,
it_characteristic_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI6,"TABLES PARAM
wa_characteristic_qualitative  LIKE LINE OF it_characteristic_qualitative ,
it_sample_header  TYPE STANDARD TABLE OF BAPIQMSTI7,"TABLES PARAM
wa_sample_header  LIKE LINE OF it_sample_header ,
it_results_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI9,"TABLES PARAM
wa_results_quantitative  LIKE LINE OF it_results_quantitative ,
it_results_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI0,"TABLES PARAM
wa_results_qualitative  LIKE LINE OF it_results_qualitative ,
it_results_additional_data  TYPE STANDARD TABLE OF BAPIQMSTI8,"TABLES PARAM
wa_results_additional_data  LIKE LINE OF it_results_additional_data ,
it_method_data  TYPE STANDARD TABLE OF BAPIQMSTIA,"TABLES PARAM
wa_method_data  LIKE LINE OF it_method_data ,
it_sample_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI71,"TABLES PARAM
wa_sample_quantitative  LIKE LINE OF it_sample_quantitative ,
it_sample_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI72,"TABLES PARAM
wa_sample_qualitative  LIKE LINE OF it_sample_qualitative ,
it_mime  TYPE STANDARD TABLE OF BAPIQGMIME,"TABLES PARAM
wa_mime  LIKE LINE OF it_mime ,
it_xml  TYPE STANDARD TABLE OF BAPIQGMIME,"TABLES PARAM
wa_xml  LIKE LINE OF it_xml .


"populate fields of struture and append to itab
append wa_report_header to it_report_header.

"populate fields of struture and append to itab
append wa_material_data to it_material_data.

"populate fields of struture and append to itab
append wa_vendor_data to it_vendor_data.

"populate fields of struture and append to itab
append wa_characteristic_header to it_characteristic_header.

"populate fields of struture and append to itab
append wa_characteristic_quantitative to it_characteristic_quantitative.

"populate fields of struture and append to itab
append wa_characteristic_qualitative to it_characteristic_qualitative.

"populate fields of struture and append to itab
append wa_sample_header to it_sample_header.

"populate fields of struture and append to itab
append wa_results_quantitative to it_results_quantitative.

"populate fields of struture and append to itab
append wa_results_qualitative to it_results_qualitative.

"populate fields of struture and append to itab
append wa_results_additional_data to it_results_additional_data.

"populate fields of struture and append to itab
append wa_method_data to it_method_data.

"populate fields of struture and append to itab
append wa_sample_quantitative to it_sample_quantitative.

"populate fields of struture and append to itab
append wa_sample_qualitative to it_sample_qualitative.

"populate fields of struture and append to itab
append wa_mime to it_mime.

"populate fields of struture and append to itab
append wa_xml to it_xml. . CALL FUNCTION 'BAPI_INSPLOT_STATINTERFACE' IMPORTING return = ld_return mime_type = ld_mime_type * mime_length = ld_mime_length * TABLES * report_header = it_report_header * material_data = it_material_data * vendor_data = it_vendor_data * characteristic_header = it_characteristic_header * characteristic_quantitative = it_characteristic_quantitative * characteristic_qualitative = it_characteristic_qualitative * sample_header = it_sample_header * results_quantitative = it_results_quantitative * results_qualitative = it_results_qualitative * results_additional_data = it_results_additional_data * method_data = it_method_data * sample_quantitative = it_sample_quantitative * sample_qualitative = it_sample_qualitative * mime = it_mime * xml = it_xml . " BAPI_INSPLOT_STATINTERFACE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_return  TYPE BAPIRETURN1 ,
it_report_header  TYPE STANDARD TABLE OF BAPIQMSTI1 ,
wa_report_header  LIKE LINE OF it_report_header,
ld_mime_type  TYPE BAPIQCI-CONT_TYPE ,
it_material_data  TYPE STANDARD TABLE OF BAPIQMSTI2 ,
wa_material_data  LIKE LINE OF it_material_data,
ld_mime_length  TYPE BAPIQCI-CONT_LEN ,
it_vendor_data  TYPE STANDARD TABLE OF BAPIQMSTI3 ,
wa_vendor_data  LIKE LINE OF it_vendor_data,
it_characteristic_header  TYPE STANDARD TABLE OF BAPIQMSTI4 ,
wa_characteristic_header  LIKE LINE OF it_characteristic_header,
it_characteristic_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI5 ,
wa_characteristic_quantitative  LIKE LINE OF it_characteristic_quantitative,
it_characteristic_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI6 ,
wa_characteristic_qualitative  LIKE LINE OF it_characteristic_qualitative,
it_sample_header  TYPE STANDARD TABLE OF BAPIQMSTI7 ,
wa_sample_header  LIKE LINE OF it_sample_header,
it_results_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI9 ,
wa_results_quantitative  LIKE LINE OF it_results_quantitative,
it_results_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI0 ,
wa_results_qualitative  LIKE LINE OF it_results_qualitative,
it_results_additional_data  TYPE STANDARD TABLE OF BAPIQMSTI8 ,
wa_results_additional_data  LIKE LINE OF it_results_additional_data,
it_method_data  TYPE STANDARD TABLE OF BAPIQMSTIA ,
wa_method_data  LIKE LINE OF it_method_data,
it_sample_quantitative  TYPE STANDARD TABLE OF BAPIQMSTI71 ,
wa_sample_quantitative  LIKE LINE OF it_sample_quantitative,
it_sample_qualitative  TYPE STANDARD TABLE OF BAPIQMSTI72 ,
wa_sample_qualitative  LIKE LINE OF it_sample_qualitative,
it_mime  TYPE STANDARD TABLE OF BAPIQGMIME ,
wa_mime  LIKE LINE OF it_mime,
it_xml  TYPE STANDARD TABLE OF BAPIQGMIME ,
wa_xml  LIKE LINE OF it_xml.


"populate fields of struture and append to itab
append wa_report_header to it_report_header.

"populate fields of struture and append to itab
append wa_material_data to it_material_data.

"populate fields of struture and append to itab
append wa_vendor_data to it_vendor_data.

"populate fields of struture and append to itab
append wa_characteristic_header to it_characteristic_header.

"populate fields of struture and append to itab
append wa_characteristic_quantitative to it_characteristic_quantitative.

"populate fields of struture and append to itab
append wa_characteristic_qualitative to it_characteristic_qualitative.

"populate fields of struture and append to itab
append wa_sample_header to it_sample_header.

"populate fields of struture and append to itab
append wa_results_quantitative to it_results_quantitative.

"populate fields of struture and append to itab
append wa_results_qualitative to it_results_qualitative.

"populate fields of struture and append to itab
append wa_results_additional_data to it_results_additional_data.

"populate fields of struture and append to itab
append wa_method_data to it_method_data.

"populate fields of struture and append to itab
append wa_sample_quantitative to it_sample_quantitative.

"populate fields of struture and append to itab
append wa_sample_qualitative to it_sample_qualitative.

"populate fields of struture and append to itab
append wa_mime to it_mime.

"populate fields of struture and append to itab
append wa_xml to it_xml.

SAP Documentation for FM BAPI_INSPLOT_STATINTERFACE


The QM-STI interface provides the QM application component with an open interface for the integration of inspection result evaluations, using ...See here for full SAP fm documentation

Contribute (Add Comments)

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 BAPI_INSPLOT_STATINTERFACE or its description.