SAP Function Modules

EXIT_SAPLCSLS_002 SAP Function module - Customer Exit Immediately Before Dispatching Sales Orders







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

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


Pattern for FM EXIT_SAPLCSLS_002 - EXIT SAPLCSLS 002





CALL FUNCTION 'EXIT_SAPLCSLS_002' "Customer Exit Immediately Before Dispatching Sales Orders
* EXPORTING
*   is_ctrlparams =             " cifctrlpar    Control Parameters for Data Transfers
*   iv_aporl =                  " cifctrlpar-aporl  Release Status of SAP System
  TABLES
    ct_doc =                    " cif_sl_doc
    ct_req =                    " cif_sl_req
    ct_gid =                    " cif_sl_gid
    ct_docx =                   " cif_sldocx
    ct_reqx =                   " cif_slreqx
    ct_atpfield =               " atpfield
    ct_quot_vb =                " quot_vbapo
    ct_ccv =                    " cif_ccvext
    ct_doc_cus =                " cifsldccus
    ct_req_cus =                " cifslrqcus
    extensionout =              " cifbparex
    ct_sddoc =                  " cifslitmso
  CHANGING
    cs_apoinf =                 " cifshpapoi
    .  "  EXIT_SAPLCSLS_002

ABAP code example for Function Module EXIT_SAPLCSLS_002





The ABAP code below is a full code listing to execute function module EXIT_SAPLCSLS_002 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_ct_doc  TYPE STANDARD TABLE OF CIF_SL_DOC,"TABLES PARAM
wa_ct_doc  LIKE LINE OF it_ct_doc ,
it_ct_req  TYPE STANDARD TABLE OF CIF_SL_REQ,"TABLES PARAM
wa_ct_req  LIKE LINE OF it_ct_req ,
it_ct_gid  TYPE STANDARD TABLE OF CIF_SL_GID,"TABLES PARAM
wa_ct_gid  LIKE LINE OF it_ct_gid ,
it_ct_docx  TYPE STANDARD TABLE OF CIF_SLDOCX,"TABLES PARAM
wa_ct_docx  LIKE LINE OF it_ct_docx ,
it_ct_reqx  TYPE STANDARD TABLE OF CIF_SLREQX,"TABLES PARAM
wa_ct_reqx  LIKE LINE OF it_ct_reqx ,
it_ct_atpfield  TYPE STANDARD TABLE OF ATPFIELD,"TABLES PARAM
wa_ct_atpfield  LIKE LINE OF it_ct_atpfield ,
it_ct_quot_vb  TYPE STANDARD TABLE OF QUOT_VBAPO,"TABLES PARAM
wa_ct_quot_vb  LIKE LINE OF it_ct_quot_vb ,
it_ct_ccv  TYPE STANDARD TABLE OF CIF_CCVEXT,"TABLES PARAM
wa_ct_ccv  LIKE LINE OF it_ct_ccv ,
it_ct_doc_cus  TYPE STANDARD TABLE OF CIFSLDCCUS,"TABLES PARAM
wa_ct_doc_cus  LIKE LINE OF it_ct_doc_cus ,
it_ct_req_cus  TYPE STANDARD TABLE OF CIFSLRQCUS,"TABLES PARAM
wa_ct_req_cus  LIKE LINE OF it_ct_req_cus ,
it_extensionout  TYPE STANDARD TABLE OF CIFBPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout ,
it_ct_sddoc  TYPE STANDARD TABLE OF CIFSLITMSO,"TABLES PARAM
wa_ct_sddoc  LIKE LINE OF it_ct_sddoc .

DATA(ld_cs_apoinf) = 'Check type of data required'.
DATA(ld_is_ctrlparams) = 'Check type of data required'.

DATA(ld_iv_aporl) = some text here

"populate fields of struture and append to itab
append wa_ct_doc to it_ct_doc.

"populate fields of struture and append to itab
append wa_ct_req to it_ct_req.

"populate fields of struture and append to itab
append wa_ct_gid to it_ct_gid.

"populate fields of struture and append to itab
append wa_ct_docx to it_ct_docx.

"populate fields of struture and append to itab
append wa_ct_reqx to it_ct_reqx.

"populate fields of struture and append to itab
append wa_ct_atpfield to it_ct_atpfield.

"populate fields of struture and append to itab
append wa_ct_quot_vb to it_ct_quot_vb.

"populate fields of struture and append to itab
append wa_ct_ccv to it_ct_ccv.

"populate fields of struture and append to itab
append wa_ct_doc_cus to it_ct_doc_cus.

"populate fields of struture and append to itab
append wa_ct_req_cus to it_ct_req_cus.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_ct_sddoc to it_ct_sddoc. . CALL FUNCTION 'EXIT_SAPLCSLS_002' * EXPORTING * is_ctrlparams = ld_is_ctrlparams * iv_aporl = ld_iv_aporl TABLES ct_doc = it_ct_doc ct_req = it_ct_req ct_gid = it_ct_gid ct_docx = it_ct_docx ct_reqx = it_ct_reqx ct_atpfield = it_ct_atpfield ct_quot_vb = it_ct_quot_vb ct_ccv = it_ct_ccv ct_doc_cus = it_ct_doc_cus ct_req_cus = it_ct_req_cus extensionout = it_extensionout ct_sddoc = it_ct_sddoc CHANGING cs_apoinf = ld_cs_apoinf . " EXIT_SAPLCSLS_002
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_cs_apoinf  TYPE CIFSHPAPOI ,
ld_is_ctrlparams  TYPE CIFCTRLPAR ,
it_ct_doc  TYPE STANDARD TABLE OF CIF_SL_DOC ,
wa_ct_doc  LIKE LINE OF it_ct_doc,
ld_iv_aporl  TYPE CIFCTRLPAR-APORL ,
it_ct_req  TYPE STANDARD TABLE OF CIF_SL_REQ ,
wa_ct_req  LIKE LINE OF it_ct_req,
it_ct_gid  TYPE STANDARD TABLE OF CIF_SL_GID ,
wa_ct_gid  LIKE LINE OF it_ct_gid,
it_ct_docx  TYPE STANDARD TABLE OF CIF_SLDOCX ,
wa_ct_docx  LIKE LINE OF it_ct_docx,
it_ct_reqx  TYPE STANDARD TABLE OF CIF_SLREQX ,
wa_ct_reqx  LIKE LINE OF it_ct_reqx,
it_ct_atpfield  TYPE STANDARD TABLE OF ATPFIELD ,
wa_ct_atpfield  LIKE LINE OF it_ct_atpfield,
it_ct_quot_vb  TYPE STANDARD TABLE OF QUOT_VBAPO ,
wa_ct_quot_vb  LIKE LINE OF it_ct_quot_vb,
it_ct_ccv  TYPE STANDARD TABLE OF CIF_CCVEXT ,
wa_ct_ccv  LIKE LINE OF it_ct_ccv,
it_ct_doc_cus  TYPE STANDARD TABLE OF CIFSLDCCUS ,
wa_ct_doc_cus  LIKE LINE OF it_ct_doc_cus,
it_ct_req_cus  TYPE STANDARD TABLE OF CIFSLRQCUS ,
wa_ct_req_cus  LIKE LINE OF it_ct_req_cus,
it_extensionout  TYPE STANDARD TABLE OF CIFBPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout,
it_ct_sddoc  TYPE STANDARD TABLE OF CIFSLITMSO ,
wa_ct_sddoc  LIKE LINE OF it_ct_sddoc.

ld_cs_apoinf = 'Check type of data required'.
ld_is_ctrlparams = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ct_doc to it_ct_doc.

ld_iv_aporl = some text here

"populate fields of struture and append to itab
append wa_ct_req to it_ct_req.

"populate fields of struture and append to itab
append wa_ct_gid to it_ct_gid.

"populate fields of struture and append to itab
append wa_ct_docx to it_ct_docx.

"populate fields of struture and append to itab
append wa_ct_reqx to it_ct_reqx.

"populate fields of struture and append to itab
append wa_ct_atpfield to it_ct_atpfield.

"populate fields of struture and append to itab
append wa_ct_quot_vb to it_ct_quot_vb.

"populate fields of struture and append to itab
append wa_ct_ccv to it_ct_ccv.

"populate fields of struture and append to itab
append wa_ct_doc_cus to it_ct_doc_cus.

"populate fields of struture and append to itab
append wa_ct_req_cus to it_ct_req_cus.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_ct_sddoc to it_ct_sddoc.

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