SAP Function Modules

QIBP_INSPOPER_GETLIST SAP Function module - Select Inspection Operations







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

Associated Function Group: QIBP
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM QIBP_INSPOPER_GETLIST - QIBP INSPOPER GETLIST





CALL FUNCTION 'QIBP_INSPOPER_GETLIST' "Select Inspection Operations
  EXPORTING
    i_insp_lot =                " qals-prueflos  Inspection Lot Number
*   i_insp_oper =               " qapo-vornr
*   i_handheld_application =    " qewl-hhanw    Handheld Application
  TABLES
    t_qapo_tab =                " qapo          Inspection Operations
*   t_qewl_tab =                " qewl          QM Handheld: Worklist for Transfer
  EXCEPTIONS
    NO_INSPECTION_LOT = 1       "               Inspection Lot Does Not Exist
    NO_OPERATIONS = 2           "
    .  "  QIBP_INSPOPER_GETLIST

ABAP code example for Function Module QIBP_INSPOPER_GETLIST





The ABAP code below is a full code listing to execute function module QIBP_INSPOPER_GETLIST 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:
it_t_qapo_tab  TYPE STANDARD TABLE OF QAPO,"TABLES PARAM
wa_t_qapo_tab  LIKE LINE OF it_t_qapo_tab ,
it_t_qewl_tab  TYPE STANDARD TABLE OF QEWL,"TABLES PARAM
wa_t_qewl_tab  LIKE LINE OF it_t_qewl_tab .


SELECT single PRUEFLOS
FROM QALS
INTO @DATA(ld_i_insp_lot).


DATA(ld_i_insp_oper) = some text here

SELECT single HHANW
FROM QEWL
INTO @DATA(ld_i_handheld_application).


"populate fields of struture and append to itab
append wa_t_qapo_tab to it_t_qapo_tab.

"populate fields of struture and append to itab
append wa_t_qewl_tab to it_t_qewl_tab. . CALL FUNCTION 'QIBP_INSPOPER_GETLIST' EXPORTING i_insp_lot = ld_i_insp_lot * i_insp_oper = ld_i_insp_oper * i_handheld_application = ld_i_handheld_application TABLES t_qapo_tab = it_t_qapo_tab * t_qewl_tab = it_t_qewl_tab EXCEPTIONS NO_INSPECTION_LOT = 1 NO_OPERATIONS = 2 . " QIBP_INSPOPER_GETLIST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_i_insp_lot  TYPE QALS-PRUEFLOS ,
it_t_qapo_tab  TYPE STANDARD TABLE OF QAPO ,
wa_t_qapo_tab  LIKE LINE OF it_t_qapo_tab,
ld_i_insp_oper  TYPE QAPO-VORNR ,
it_t_qewl_tab  TYPE STANDARD TABLE OF QEWL ,
wa_t_qewl_tab  LIKE LINE OF it_t_qewl_tab,
ld_i_handheld_application  TYPE QEWL-HHANW .


SELECT single PRUEFLOS
FROM QALS
INTO ld_i_insp_lot.


"populate fields of struture and append to itab
append wa_t_qapo_tab to it_t_qapo_tab.

ld_i_insp_oper = some text here

"populate fields of struture and append to itab
append wa_t_qewl_tab to it_t_qewl_tab.

SELECT single HHANW
FROM QEWL
INTO ld_i_handheld_application.

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