SAP Function Modules

QPL1_INIT_QSS SAP Function module







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

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


Pattern for FM QPL1_INIT_QSS - QPL1 INIT QSS





CALL FUNCTION 'QPL1_INIT_QSS' "
  EXPORTING
*   i_aktyp = 'H'               " t063-aktyp    Activity type
*   i_art = '        '          " qals-art      Inspection Type
*   i_prueflos = '            '  " qals-prueflos  Inspection lot number
*   i_qinfupd = ' '             " qinfinspt-qinfupd  Indicator : change quality info record
*   i_status = '     '          " qinfinspt-status  Status quality info record
    mbqss =                     " mbqss         Record layout with QM-relevant information
*   i_cert_required =           " rmqed-cert_req  Ind. Certificate not yet received
*   i_two_step =                " qm00-qkz
*   i_kont_change =             " qm00-qkz
  IMPORTING
    e_kzskiplot =               " qals-kzskiplot  Ind. skip lot is available
    e_prueflos =                " qals-prueflos  Assigned inspection lot number
    subrc =                     " sy-subrc      Return code
    e_skip_to_stock =           " qm00-qkz      Ind. Skip to stock is available
    .  "  QPL1_INIT_QSS

ABAP code example for Function Module QPL1_INIT_QSS





The ABAP code below is a full code listing to execute function module QPL1_INIT_QSS 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:
ld_e_kzskiplot  TYPE QALS-KZSKIPLOT ,
ld_e_prueflos  TYPE QALS-PRUEFLOS ,
ld_subrc  TYPE SY-SUBRC ,
ld_e_skip_to_stock  TYPE QM00-QKZ .


SELECT single AKTYP
FROM T063
INTO @DATA(ld_i_aktyp).


SELECT single ART
FROM QALS
INTO @DATA(ld_i_art).


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


DATA(ld_i_qinfupd) = some text here

DATA(ld_i_status) = some text here
DATA(ld_mbqss) = 'Check type of data required'.

DATA(ld_i_cert_required) = some text here

DATA(ld_i_two_step) = some text here

DATA(ld_i_kont_change) = some text here . CALL FUNCTION 'QPL1_INIT_QSS' EXPORTING * i_aktyp = ld_i_aktyp * i_art = ld_i_art * i_prueflos = ld_i_prueflos * i_qinfupd = ld_i_qinfupd * i_status = ld_i_status mbqss = ld_mbqss * i_cert_required = ld_i_cert_required * i_two_step = ld_i_two_step * i_kont_change = ld_i_kont_change IMPORTING e_kzskiplot = ld_e_kzskiplot e_prueflos = ld_e_prueflos subrc = ld_subrc e_skip_to_stock = ld_e_skip_to_stock . " QPL1_INIT_QSS
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_e_kzskiplot  TYPE QALS-KZSKIPLOT ,
ld_i_aktyp  TYPE T063-AKTYP ,
ld_e_prueflos  TYPE QALS-PRUEFLOS ,
ld_i_art  TYPE QALS-ART ,
ld_subrc  TYPE SY-SUBRC ,
ld_i_prueflos  TYPE QALS-PRUEFLOS ,
ld_e_skip_to_stock  TYPE QM00-QKZ ,
ld_i_qinfupd  TYPE QINFINSPT-QINFUPD ,
ld_i_status  TYPE QINFINSPT-STATUS ,
ld_mbqss  TYPE MBQSS ,
ld_i_cert_required  TYPE RMQED-CERT_REQ ,
ld_i_two_step  TYPE QM00-QKZ ,
ld_i_kont_change  TYPE QM00-QKZ .


SELECT single AKTYP
FROM T063
INTO ld_i_aktyp.


SELECT single ART
FROM QALS
INTO ld_i_art.


SELECT single PRUEFLOS
FROM QALS
INTO ld_i_prueflos.


ld_i_qinfupd = some text here

ld_i_status = some text here
ld_mbqss = 'Check type of data required'.

ld_i_cert_required = some text here

ld_i_two_step = some text here

ld_i_kont_change = some text here

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