SAP QPLEXT_INSPECTION_LOT_CANCEL Function Module for Cancel Insp. Lot - External Inspection









QPLEXT_INSPECTION_LOT_CANCEL is a standard qplext inspection lot cancel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Cancel Insp. Lot - External Inspection 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 qplext inspection lot cancel FM, simply by entering the name QPLEXT_INSPECTION_LOT_CANCEL into the relevant SAP transaction such as SE37 or SE38.

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



Function QPLEXT_INSPECTION_LOT_CANCEL 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 'QPLEXT_INSPECTION_LOT_CANCEL'"Cancel Insp. Lot - External Inspection
EXPORTING
IS_INSP_HEADER = "External Inspection Document
* IV_EXECUTE_COMMIT = 'X' "X and Blank

IMPORTING
EV_LOT_NUMBER = "Inspection Lot Number
EV_INSP_DOC_NUMBER = "Inspection Document Number from External System
ET_RETURN = "Table Type for BAPIRET2

EXCEPTIONS
CANCEL_FAILED = 1
.



IMPORTING Parameters details for QPLEXT_INSPECTION_LOT_CANCEL

IS_INSP_HEADER - External Inspection Document

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

IV_EXECUTE_COMMIT - X and Blank

Data type: QKZ
Default: 'X'
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for QPLEXT_INSPECTION_LOT_CANCEL

EV_LOT_NUMBER - Inspection Lot Number

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

EV_INSP_DOC_NUMBER - Inspection Document Number from External System

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

ET_RETURN - Table Type for BAPIRET2

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

EXCEPTIONS details

CANCEL_FAILED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for QPLEXT_INSPECTION_LOT_CANCEL 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_cancel_failed  TYPE STRING, "   
lv_ev_lot_number  TYPE QPLOS, "   
lv_is_insp_header  TYPE QPLEXT_INSP_HEADER, "   
lv_iv_execute_commit  TYPE QKZ, "   'X'
lv_ev_insp_doc_number  TYPE QINSP_DOC_NUMBER, "   
lv_et_return  TYPE TT_BAPIRET2. "   

  CALL FUNCTION 'QPLEXT_INSPECTION_LOT_CANCEL'  "Cancel Insp. Lot - External Inspection
    EXPORTING
         IS_INSP_HEADER = lv_is_insp_header
         IV_EXECUTE_COMMIT = lv_iv_execute_commit
    IMPORTING
         EV_LOT_NUMBER = lv_ev_lot_number
         EV_INSP_DOC_NUMBER = lv_ev_insp_doc_number
         ET_RETURN = lv_et_return
    EXCEPTIONS
        CANCEL_FAILED = 1
. " QPLEXT_INSPECTION_LOT_CANCEL




ABAP code using 7.40 inline data declarations to call FM QPLEXT_INSPECTION_LOT_CANCEL

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_execute_commit) = 'X'.
 
 
 


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!