SAP Function Modules

FKK_REPEAT_TO_LOGICAL_VIEW SAP Function module







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

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


Pattern for FM FKK_REPEAT_TO_LOGICAL_VIEW - FKK REPEAT TO LOGICAL VIEW





CALL FUNCTION 'FKK_REPEAT_TO_LOGICAL_VIEW' "
  EXPORTING
    whang =                     " fkkop-whang
    abswh =                     " rfpe1-abswh
    abtyp =                     " rfpe1-abtyp
    startdat =                  " fkkop-faedn
*   fcalid = '01'               " scal-fcalid
*   use_calendar = 'X'          " boole-boole
*   use_paymcond =              " boole-boole
*   posting_date =              " fkkko-budat
  TABLES
    lfkkop =                    " sfkkop
    imfkkop =                   " sfkkop
  EXCEPTIONS
    GENERAL_FAULT = 1           "
    .  "  FKK_REPEAT_TO_LOGICAL_VIEW

ABAP code example for Function Module FKK_REPEAT_TO_LOGICAL_VIEW





The ABAP code below is a full code listing to execute function module FKK_REPEAT_TO_LOGICAL_VIEW 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_lfkkop  TYPE STANDARD TABLE OF SFKKOP,"TABLES PARAM
wa_lfkkop  LIKE LINE OF it_lfkkop ,
it_imfkkop  TYPE STANDARD TABLE OF SFKKOP,"TABLES PARAM
wa_imfkkop  LIKE LINE OF it_imfkkop .


DATA(ld_whang) = Check type of data required

DATA(ld_abswh) = Check type of data required

DATA(ld_abtyp) = some text here

DATA(ld_startdat) = 20210129

DATA(ld_fcalid) = some text here

DATA(ld_use_calendar) = some text here

DATA(ld_use_paymcond) = some text here

DATA(ld_posting_date) = 20210129

"populate fields of struture and append to itab
append wa_lfkkop to it_lfkkop.

"populate fields of struture and append to itab
append wa_imfkkop to it_imfkkop. . CALL FUNCTION 'FKK_REPEAT_TO_LOGICAL_VIEW' EXPORTING whang = ld_whang abswh = ld_abswh abtyp = ld_abtyp startdat = ld_startdat * fcalid = ld_fcalid * use_calendar = ld_use_calendar * use_paymcond = ld_use_paymcond * posting_date = ld_posting_date TABLES lfkkop = it_lfkkop imfkkop = it_imfkkop EXCEPTIONS GENERAL_FAULT = 1 . " FKK_REPEAT_TO_LOGICAL_VIEW
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_whang  TYPE FKKOP-WHANG ,
it_lfkkop  TYPE STANDARD TABLE OF SFKKOP ,
wa_lfkkop  LIKE LINE OF it_lfkkop,
ld_abswh  TYPE RFPE1-ABSWH ,
it_imfkkop  TYPE STANDARD TABLE OF SFKKOP ,
wa_imfkkop  LIKE LINE OF it_imfkkop,
ld_abtyp  TYPE RFPE1-ABTYP ,
ld_startdat  TYPE FKKOP-FAEDN ,
ld_fcalid  TYPE SCAL-FCALID ,
ld_use_calendar  TYPE BOOLE-BOOLE ,
ld_use_paymcond  TYPE BOOLE-BOOLE ,
ld_posting_date  TYPE FKKKO-BUDAT .


ld_whang = Check type of data required

"populate fields of struture and append to itab
append wa_lfkkop to it_lfkkop.

ld_abswh = Check type of data required

"populate fields of struture and append to itab
append wa_imfkkop to it_imfkkop.

ld_abtyp = some text here

ld_startdat = 20210129

ld_fcalid = some text here

ld_use_calendar = some text here

ld_use_paymcond = some text here

ld_posting_date = 20210129

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