SAP Function Modules

AIS2_IQ_VALUES_COMPLETE SAP Function module







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

Associated Function Group: AIS2
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM AIS2_IQ_VALUES_COMPLETE - AIS2 IQ VALUES COMPLETE





CALL FUNCTION 'AIS2_IQ_VALUES_COMPLETE' "
  EXPORTING
*   iflg_test_run = 'X'         " xfeld
    id_versn_iq =               " bpge-versn
* TABLES
*   et_return =                 " bapiret2
*   ct_bpge =                   " bpge
*   ct_bpja =                   " bpja
  EXCEPTIONS
    ABEND_OCCURED = 1           "
    .  "  AIS2_IQ_VALUES_COMPLETE

ABAP code example for Function Module AIS2_IQ_VALUES_COMPLETE





The ABAP code below is a full code listing to execute function module AIS2_IQ_VALUES_COMPLETE 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_et_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return ,
it_ct_bpge  TYPE STANDARD TABLE OF BPGE,"TABLES PARAM
wa_ct_bpge  LIKE LINE OF it_ct_bpge ,
it_ct_bpja  TYPE STANDARD TABLE OF BPJA,"TABLES PARAM
wa_ct_bpja  LIKE LINE OF it_ct_bpja .

DATA(ld_iflg_test_run) = 'Check type of data required'.

SELECT single VERSN
FROM BPGE
INTO @DATA(ld_id_versn_iq).


"populate fields of struture and append to itab
append wa_et_return to it_et_return.

"populate fields of struture and append to itab
append wa_ct_bpge to it_ct_bpge.

"populate fields of struture and append to itab
append wa_ct_bpja to it_ct_bpja. . CALL FUNCTION 'AIS2_IQ_VALUES_COMPLETE' EXPORTING * iflg_test_run = ld_iflg_test_run id_versn_iq = ld_id_versn_iq * TABLES * et_return = it_et_return * ct_bpge = it_ct_bpge * ct_bpja = it_ct_bpja EXCEPTIONS ABEND_OCCURED = 1 . " AIS2_IQ_VALUES_COMPLETE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_iflg_test_run  TYPE XFELD ,
it_et_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_et_return  LIKE LINE OF it_et_return,
ld_id_versn_iq  TYPE BPGE-VERSN ,
it_ct_bpge  TYPE STANDARD TABLE OF BPGE ,
wa_ct_bpge  LIKE LINE OF it_ct_bpge,
it_ct_bpja  TYPE STANDARD TABLE OF BPJA ,
wa_ct_bpja  LIKE LINE OF it_ct_bpja.

ld_iflg_test_run = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.

SELECT single VERSN
FROM BPGE
INTO ld_id_versn_iq.


"populate fields of struture and append to itab
append wa_ct_bpge to it_ct_bpge.

"populate fields of struture and append to itab
append wa_ct_bpja to it_ct_bpja.

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