SAP Function Modules

BKK_GL_AW_FIELDS_SET SAP Function module - General Ledger: Determine AW Fields from FI Key etc.







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

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


Pattern for FM BKK_GL_AW_FIELDS_SET - BKK GL AW FIELDS SET





CALL FUNCTION 'BKK_GL_AW_FIELDS_SET' "General Ledger: Determine AW Fields from FI Key etc.
  EXPORTING
    i_bkkrs =                   " bkkc01-bkkrs  Bank Area
    i_fikey =                   " bkkc01-fikey  Reconciliation Key
*   i_fidocno =                 " ibkk_glsfi-fidoc  General Ledger: Sequential Number of FI Document
*   i_docno =                   " bkkc02-docno  BCA Document Number (Only for Individual Transfer)
  IMPORTING
    e_awsys =                   " ibkkglache-awsys  Logical System
    e_awtyp =                   " ibkkglache-awtyp  Object Category of Sending System
    e_awref =                   " ibkkglache-awref  Reference Document Number
    e_aworg =                   " ibkkglache-aworg  Reference Organizational Units
    e_awkey =                   " ibkkglache-awkey  Object Key (AWREF + AWORG)
    e_xblnr =                   " ibkkglache-xblnr  Reference Document Number
    e_docno =                   " bkkh_docno_c  BCA Document Number for Individual Document Transfer
    .  "  BKK_GL_AW_FIELDS_SET

ABAP code example for Function Module BKK_GL_AW_FIELDS_SET





The ABAP code below is a full code listing to execute function module BKK_GL_AW_FIELDS_SET 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_awsys  TYPE IBKKGLACHE-AWSYS ,
ld_e_awtyp  TYPE IBKKGLACHE-AWTYP ,
ld_e_awref  TYPE IBKKGLACHE-AWREF ,
ld_e_aworg  TYPE IBKKGLACHE-AWORG ,
ld_e_awkey  TYPE IBKKGLACHE-AWKEY ,
ld_e_xblnr  TYPE IBKKGLACHE-XBLNR ,
ld_e_docno  TYPE BKKH_DOCNO_C .


SELECT single BKKRS
FROM BKKC01
INTO @DATA(ld_i_bkkrs).


SELECT single FIKEY
FROM BKKC01
INTO @DATA(ld_i_fikey).


DATA(ld_i_fidocno) = Check type of data required

SELECT single DOCNO
FROM BKKC02
INTO @DATA(ld_i_docno).
. CALL FUNCTION 'BKK_GL_AW_FIELDS_SET' EXPORTING i_bkkrs = ld_i_bkkrs i_fikey = ld_i_fikey * i_fidocno = ld_i_fidocno * i_docno = ld_i_docno IMPORTING e_awsys = ld_e_awsys e_awtyp = ld_e_awtyp e_awref = ld_e_awref e_aworg = ld_e_aworg e_awkey = ld_e_awkey e_xblnr = ld_e_xblnr e_docno = ld_e_docno . " BKK_GL_AW_FIELDS_SET
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_awsys  TYPE IBKKGLACHE-AWSYS ,
ld_i_bkkrs  TYPE BKKC01-BKKRS ,
ld_e_awtyp  TYPE IBKKGLACHE-AWTYP ,
ld_i_fikey  TYPE BKKC01-FIKEY ,
ld_e_awref  TYPE IBKKGLACHE-AWREF ,
ld_i_fidocno  TYPE IBKK_GLSFI-FIDOC ,
ld_e_aworg  TYPE IBKKGLACHE-AWORG ,
ld_i_docno  TYPE BKKC02-DOCNO ,
ld_e_awkey  TYPE IBKKGLACHE-AWKEY ,
ld_e_xblnr  TYPE IBKKGLACHE-XBLNR ,
ld_e_docno  TYPE BKKH_DOCNO_C .


SELECT single BKKRS
FROM BKKC01
INTO ld_i_bkkrs.


SELECT single FIKEY
FROM BKKC01
INTO ld_i_fikey.


ld_i_fidocno = Check type of data required

SELECT single DOCNO
FROM BKKC02
INTO ld_i_docno.

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