SAP Function Modules

EXIT_SAPLQIRF_121 SAP Function module - Customer Function Before Processing in QIRF_GET_FEATURE_VALUES







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

Associated Function Group: XQIR
Released Date: 17.10.1995
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXIT_SAPLQIRF_121 - EXIT SAPLQIRF 121





CALL FUNCTION 'EXIT_SAPLQIRF_121' "Customer Function Before Processing in QIRF_GET_FEATURE_VALUES
  EXPORTING
*   i_ind_evaluation_transfer =   " qm00-qkz    Transfer of Valuation for Characteristic/Sample
*   i_ind_close_processing =    " qm00-qkz      Close Processing for Characteristic/Sample
*   i_ind_proc_commit_work =    " qm00-qkz      Indicator: Transmit COMMIT WORK to the database
*   i_ind_posting_kz =          " qm00-qkz      Indicator: Call Results Update
*   i_send_protocol_mail =      " qm00-qkz      Indicator: Send Error Table by Mail if Error Occurs
    i_subsys =                  " qiwl-subsys   Subsystem That Confirms the Results
  TABLES
    t_qaimrtab =                " qaimr         Characteristic Table from Interface
    t_qierrtab =                " qierr         Error Table
    .  "  EXIT_SAPLQIRF_121

ABAP code example for Function Module EXIT_SAPLQIRF_121





The ABAP code below is a full code listing to execute function module EXIT_SAPLQIRF_121 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_qaimrtab  TYPE STANDARD TABLE OF QAIMR,"TABLES PARAM
wa_t_qaimrtab  LIKE LINE OF it_t_qaimrtab ,
it_t_qierrtab  TYPE STANDARD TABLE OF QIERR,"TABLES PARAM
wa_t_qierrtab  LIKE LINE OF it_t_qierrtab .


DATA(ld_i_ind_evaluation_transfer) = some text here

DATA(ld_i_ind_close_processing) = some text here

DATA(ld_i_ind_proc_commit_work) = some text here

DATA(ld_i_ind_posting_kz) = some text here

DATA(ld_i_send_protocol_mail) = some text here

SELECT single SUBSYS
FROM QIWL
INTO @DATA(ld_i_subsys).


"populate fields of struture and append to itab
append wa_t_qaimrtab to it_t_qaimrtab.

"populate fields of struture and append to itab
append wa_t_qierrtab to it_t_qierrtab. . CALL FUNCTION 'EXIT_SAPLQIRF_121' EXPORTING * i_ind_evaluation_transfer = ld_i_ind_evaluation_transfer * i_ind_close_processing = ld_i_ind_close_processing * i_ind_proc_commit_work = ld_i_ind_proc_commit_work * i_ind_posting_kz = ld_i_ind_posting_kz * i_send_protocol_mail = ld_i_send_protocol_mail i_subsys = ld_i_subsys TABLES t_qaimrtab = it_t_qaimrtab t_qierrtab = it_t_qierrtab . " EXIT_SAPLQIRF_121
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_i_ind_evaluation_transfer  TYPE QM00-QKZ ,
it_t_qaimrtab  TYPE STANDARD TABLE OF QAIMR ,
wa_t_qaimrtab  LIKE LINE OF it_t_qaimrtab,
ld_i_ind_close_processing  TYPE QM00-QKZ ,
it_t_qierrtab  TYPE STANDARD TABLE OF QIERR ,
wa_t_qierrtab  LIKE LINE OF it_t_qierrtab,
ld_i_ind_proc_commit_work  TYPE QM00-QKZ ,
ld_i_ind_posting_kz  TYPE QM00-QKZ ,
ld_i_send_protocol_mail  TYPE QM00-QKZ ,
ld_i_subsys  TYPE QIWL-SUBSYS .


ld_i_ind_evaluation_transfer = some text here

"populate fields of struture and append to itab
append wa_t_qaimrtab to it_t_qaimrtab.

ld_i_ind_close_processing = some text here

"populate fields of struture and append to itab
append wa_t_qierrtab to it_t_qierrtab.

ld_i_ind_proc_commit_work = some text here

ld_i_ind_posting_kz = some text here

ld_i_send_protocol_mail = some text here

SELECT single SUBSYS
FROM QIWL
INTO ld_i_subsys.

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