SAP Function Modules

FKK_GET_CCNUM_ARC_DOC SAP Function module







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

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


Pattern for FM FKK_GET_CCNUM_ARC_DOC - FKK GET CCNUM ARC DOC





CALL FUNCTION 'FKK_GET_CCNUM_ARC_DOC' "
  EXPORTING
    it_sel =                    " rsds_frange_t
* TABLES
*   t_fkkko =                   " fkkko
*   t_fkkop =                   " fkkop
*   t_fkkopk =                  " fkkopk
*   t_fkkopw =                  " fkkopw
*   t_fkkop_c =                 " fkkop
*   t_fkkopkc =                 " dfkkopkc
*   t_fkkia =                   " dfkkia
*   t_locks =                   " dfkklocks
*   t_locksh =                  " dfkklocksh
*   t_fkkopkx =                 " dfkkopkx
*   t_fkkopk_text_gl =          " dfkkopk_text_gl
*   t_fkkopc =                  " dfkkopc
*   t_fkkdefrev =               " fkkdefrev
*   t_fkkesr =                  " dfkkesr
*   t_fkkko_wf =                " dfkkko_wf
*   t_fkkopwh =                 " dfkkopwh
*   t_fkkopaa =                 " dfkkopaa
  EXCEPTIONS
    DUPLICATE_DOCUMENT_NUMBERS = 1  "
    NO_DOCUMENT_FOUND = 2       "
    NO_INFOSTRUC_FOUND = 3      "
    NO_SELECTION_CRITERIA = 4   "
    INVALID_SELCTION_CRITERIA = 5  "
    AS_ERROR = 6                "
    .  "  FKK_GET_CCNUM_ARC_DOC

ABAP code example for Function Module FKK_GET_CCNUM_ARC_DOC





The ABAP code below is a full code listing to execute function module FKK_GET_CCNUM_ARC_DOC 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_fkkko  TYPE STANDARD TABLE OF FKKKO,"TABLES PARAM
wa_t_fkkko  LIKE LINE OF it_t_fkkko ,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_t_fkkop  LIKE LINE OF it_t_fkkop ,
it_t_fkkopk  TYPE STANDARD TABLE OF FKKOPK,"TABLES PARAM
wa_t_fkkopk  LIKE LINE OF it_t_fkkopk ,
it_t_fkkopw  TYPE STANDARD TABLE OF FKKOPW,"TABLES PARAM
wa_t_fkkopw  LIKE LINE OF it_t_fkkopw ,
it_t_fkkop_c  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_t_fkkop_c  LIKE LINE OF it_t_fkkop_c ,
it_t_fkkopkc  TYPE STANDARD TABLE OF DFKKOPKC,"TABLES PARAM
wa_t_fkkopkc  LIKE LINE OF it_t_fkkopkc ,
it_t_fkkia  TYPE STANDARD TABLE OF DFKKIA,"TABLES PARAM
wa_t_fkkia  LIKE LINE OF it_t_fkkia ,
it_t_locks  TYPE STANDARD TABLE OF DFKKLOCKS,"TABLES PARAM
wa_t_locks  LIKE LINE OF it_t_locks ,
it_t_locksh  TYPE STANDARD TABLE OF DFKKLOCKSH,"TABLES PARAM
wa_t_locksh  LIKE LINE OF it_t_locksh ,
it_t_fkkopkx  TYPE STANDARD TABLE OF DFKKOPKX,"TABLES PARAM
wa_t_fkkopkx  LIKE LINE OF it_t_fkkopkx ,
it_t_fkkopk_text_gl  TYPE STANDARD TABLE OF DFKKOPK_TEXT_GL,"TABLES PARAM
wa_t_fkkopk_text_gl  LIKE LINE OF it_t_fkkopk_text_gl ,
it_t_fkkopc  TYPE STANDARD TABLE OF DFKKOPC,"TABLES PARAM
wa_t_fkkopc  LIKE LINE OF it_t_fkkopc ,
it_t_fkkdefrev  TYPE STANDARD TABLE OF FKKDEFREV,"TABLES PARAM
wa_t_fkkdefrev  LIKE LINE OF it_t_fkkdefrev ,
it_t_fkkesr  TYPE STANDARD TABLE OF DFKKESR,"TABLES PARAM
wa_t_fkkesr  LIKE LINE OF it_t_fkkesr ,
it_t_fkkko_wf  TYPE STANDARD TABLE OF DFKKKO_WF,"TABLES PARAM
wa_t_fkkko_wf  LIKE LINE OF it_t_fkkko_wf ,
it_t_fkkopwh  TYPE STANDARD TABLE OF DFKKOPWH,"TABLES PARAM
wa_t_fkkopwh  LIKE LINE OF it_t_fkkopwh ,
it_t_fkkopaa  TYPE STANDARD TABLE OF DFKKOPAA,"TABLES PARAM
wa_t_fkkopaa  LIKE LINE OF it_t_fkkopaa .

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

"populate fields of struture and append to itab
append wa_t_fkkko to it_t_fkkko.

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.

"populate fields of struture and append to itab
append wa_t_fkkopk to it_t_fkkopk.

"populate fields of struture and append to itab
append wa_t_fkkopw to it_t_fkkopw.

"populate fields of struture and append to itab
append wa_t_fkkop_c to it_t_fkkop_c.

"populate fields of struture and append to itab
append wa_t_fkkopkc to it_t_fkkopkc.

"populate fields of struture and append to itab
append wa_t_fkkia to it_t_fkkia.

"populate fields of struture and append to itab
append wa_t_locks to it_t_locks.

"populate fields of struture and append to itab
append wa_t_locksh to it_t_locksh.

"populate fields of struture and append to itab
append wa_t_fkkopkx to it_t_fkkopkx.

"populate fields of struture and append to itab
append wa_t_fkkopk_text_gl to it_t_fkkopk_text_gl.

"populate fields of struture and append to itab
append wa_t_fkkopc to it_t_fkkopc.

"populate fields of struture and append to itab
append wa_t_fkkdefrev to it_t_fkkdefrev.

"populate fields of struture and append to itab
append wa_t_fkkesr to it_t_fkkesr.

"populate fields of struture and append to itab
append wa_t_fkkko_wf to it_t_fkkko_wf.

"populate fields of struture and append to itab
append wa_t_fkkopwh to it_t_fkkopwh.

"populate fields of struture and append to itab
append wa_t_fkkopaa to it_t_fkkopaa. . CALL FUNCTION 'FKK_GET_CCNUM_ARC_DOC' EXPORTING it_sel = ld_it_sel * TABLES * t_fkkko = it_t_fkkko * t_fkkop = it_t_fkkop * t_fkkopk = it_t_fkkopk * t_fkkopw = it_t_fkkopw * t_fkkop_c = it_t_fkkop_c * t_fkkopkc = it_t_fkkopkc * t_fkkia = it_t_fkkia * t_locks = it_t_locks * t_locksh = it_t_locksh * t_fkkopkx = it_t_fkkopkx * t_fkkopk_text_gl = it_t_fkkopk_text_gl * t_fkkopc = it_t_fkkopc * t_fkkdefrev = it_t_fkkdefrev * t_fkkesr = it_t_fkkesr * t_fkkko_wf = it_t_fkkko_wf * t_fkkopwh = it_t_fkkopwh * t_fkkopaa = it_t_fkkopaa EXCEPTIONS DUPLICATE_DOCUMENT_NUMBERS = 1 NO_DOCUMENT_FOUND = 2 NO_INFOSTRUC_FOUND = 3 NO_SELECTION_CRITERIA = 4 INVALID_SELCTION_CRITERIA = 5 AS_ERROR = 6 . " FKK_GET_CCNUM_ARC_DOC
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "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_it_sel  TYPE RSDS_FRANGE_T ,
it_t_fkkko  TYPE STANDARD TABLE OF FKKKO ,
wa_t_fkkko  LIKE LINE OF it_t_fkkko,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP ,
wa_t_fkkop  LIKE LINE OF it_t_fkkop,
it_t_fkkopk  TYPE STANDARD TABLE OF FKKOPK ,
wa_t_fkkopk  LIKE LINE OF it_t_fkkopk,
it_t_fkkopw  TYPE STANDARD TABLE OF FKKOPW ,
wa_t_fkkopw  LIKE LINE OF it_t_fkkopw,
it_t_fkkop_c  TYPE STANDARD TABLE OF FKKOP ,
wa_t_fkkop_c  LIKE LINE OF it_t_fkkop_c,
it_t_fkkopkc  TYPE STANDARD TABLE OF DFKKOPKC ,
wa_t_fkkopkc  LIKE LINE OF it_t_fkkopkc,
it_t_fkkia  TYPE STANDARD TABLE OF DFKKIA ,
wa_t_fkkia  LIKE LINE OF it_t_fkkia,
it_t_locks  TYPE STANDARD TABLE OF DFKKLOCKS ,
wa_t_locks  LIKE LINE OF it_t_locks,
it_t_locksh  TYPE STANDARD TABLE OF DFKKLOCKSH ,
wa_t_locksh  LIKE LINE OF it_t_locksh,
it_t_fkkopkx  TYPE STANDARD TABLE OF DFKKOPKX ,
wa_t_fkkopkx  LIKE LINE OF it_t_fkkopkx,
it_t_fkkopk_text_gl  TYPE STANDARD TABLE OF DFKKOPK_TEXT_GL ,
wa_t_fkkopk_text_gl  LIKE LINE OF it_t_fkkopk_text_gl,
it_t_fkkopc  TYPE STANDARD TABLE OF DFKKOPC ,
wa_t_fkkopc  LIKE LINE OF it_t_fkkopc,
it_t_fkkdefrev  TYPE STANDARD TABLE OF FKKDEFREV ,
wa_t_fkkdefrev  LIKE LINE OF it_t_fkkdefrev,
it_t_fkkesr  TYPE STANDARD TABLE OF DFKKESR ,
wa_t_fkkesr  LIKE LINE OF it_t_fkkesr,
it_t_fkkko_wf  TYPE STANDARD TABLE OF DFKKKO_WF ,
wa_t_fkkko_wf  LIKE LINE OF it_t_fkkko_wf,
it_t_fkkopwh  TYPE STANDARD TABLE OF DFKKOPWH ,
wa_t_fkkopwh  LIKE LINE OF it_t_fkkopwh,
it_t_fkkopaa  TYPE STANDARD TABLE OF DFKKOPAA ,
wa_t_fkkopaa  LIKE LINE OF it_t_fkkopaa.

ld_it_sel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkko to it_t_fkkko.

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.

"populate fields of struture and append to itab
append wa_t_fkkopk to it_t_fkkopk.

"populate fields of struture and append to itab
append wa_t_fkkopw to it_t_fkkopw.

"populate fields of struture and append to itab
append wa_t_fkkop_c to it_t_fkkop_c.

"populate fields of struture and append to itab
append wa_t_fkkopkc to it_t_fkkopkc.

"populate fields of struture and append to itab
append wa_t_fkkia to it_t_fkkia.

"populate fields of struture and append to itab
append wa_t_locks to it_t_locks.

"populate fields of struture and append to itab
append wa_t_locksh to it_t_locksh.

"populate fields of struture and append to itab
append wa_t_fkkopkx to it_t_fkkopkx.

"populate fields of struture and append to itab
append wa_t_fkkopk_text_gl to it_t_fkkopk_text_gl.

"populate fields of struture and append to itab
append wa_t_fkkopc to it_t_fkkopc.

"populate fields of struture and append to itab
append wa_t_fkkdefrev to it_t_fkkdefrev.

"populate fields of struture and append to itab
append wa_t_fkkesr to it_t_fkkesr.

"populate fields of struture and append to itab
append wa_t_fkkko_wf to it_t_fkkko_wf.

"populate fields of struture and append to itab
append wa_t_fkkopwh to it_t_fkkopwh.

"populate fields of struture and append to itab
append wa_t_fkkopaa to it_t_fkkopaa.

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