SAP SIQM_RESULT_INSERT_RESULTS Function Module for Insert Results









SIQM_RESULT_INSERT_RESULTS is a standard siqm result insert results SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert Results processing and below is the pattern details for this FM, 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 siqm result insert results FM, simply by entering the name SIQM_RESULT_INSERT_RESULTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIQM_RESULT
Program Name: SAPLSIQM_RESULT
Main Program: SAPLSIQM_RESULT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SIQM_RESULT_INSERT_RESULTS 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 'SIQM_RESULT_INSERT_RESULTS'"Insert Results
EXPORTING
IV_INSPECTION_RUN = "Inspection (Information Quality)
IV_PACKAGEID = "Number of Data Package
IT_RESULT = "Results per Data Package
* IV_SIMULATION = ABAP_FALSE "

IMPORTING
EV_INSERTED_RESULTS = "Processed Database Table Rows

EXCEPTIONS
MISSING_ATTRIBUTE = 1 ILLEGAL_DEVIANCE = 2 DB_OP_FAILED = 3
.



IMPORTING Parameters details for SIQM_RESULT_INSERT_RESULTS

IV_INSPECTION_RUN - Inspection (Information Quality)

Data type: SIQM_RUN
Optional: No
Call by Reference: Yes

IV_PACKAGEID - Number of Data Package

Data type: SIQM_PACKAGE
Optional: No
Call by Reference: Yes

IT_RESULT - Results per Data Package

Data type: SIQM_T_RESULT_PACKAGE
Optional: No
Call by Reference: Yes

IV_SIMULATION -

Data type: ABAP_BOOL
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SIQM_RESULT_INSERT_RESULTS

EV_INSERTED_RESULTS - Processed Database Table Rows

Data type: SYDBCNT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MISSING_ATTRIBUTE - missing attribute

Data type:
Optional: No
Call by Reference: Yes

ILLEGAL_DEVIANCE - illegal deviance

Data type:
Optional: No
Call by Reference: Yes

DB_OP_FAILED - DB operation failed

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SIQM_RESULT_INSERT_RESULTS 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_iv_inspection_run  TYPE SIQM_RUN, "   
lv_missing_attribute  TYPE SIQM_RUN, "   
lv_ev_inserted_results  TYPE SYDBCNT, "   
lv_iv_packageid  TYPE SIQM_PACKAGE, "   
lv_illegal_deviance  TYPE SIQM_PACKAGE, "   
lv_it_result  TYPE SIQM_T_RESULT_PACKAGE, "   
lv_db_op_failed  TYPE SIQM_T_RESULT_PACKAGE, "   
lv_iv_simulation  TYPE ABAP_BOOL. "   ABAP_FALSE

  CALL FUNCTION 'SIQM_RESULT_INSERT_RESULTS'  "Insert Results
    EXPORTING
         IV_INSPECTION_RUN = lv_iv_inspection_run
         IV_PACKAGEID = lv_iv_packageid
         IT_RESULT = lv_it_result
         IV_SIMULATION = lv_iv_simulation
    IMPORTING
         EV_INSERTED_RESULTS = lv_ev_inserted_results
    EXCEPTIONS
        MISSING_ATTRIBUTE = 1
        ILLEGAL_DEVIANCE = 2
        DB_OP_FAILED = 3
. " SIQM_RESULT_INSERT_RESULTS




ABAP code using 7.40 inline data declarations to call FM SIQM_RESULT_INSERT_RESULTS

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_iv_simulation) = ABAP_FALSE.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!