SAP FKR2_CREATE_LINES Function Module for









FKR2_CREATE_LINES is a standard fkr2 create lines SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fkr2 create lines FM, simply by entering the name FKR2_CREATE_LINES into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKR2
Program Name: SAPLFKR2
Main Program: SAPLFKR2
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKR2_CREATE_LINES pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FKR2_CREATE_LINES'"
EXPORTING
I_DFKKRK = "
I_FKKKO = "

CHANGING
C_DFKKRP = "

TABLES
T_NFKKOP = "
T_NFKKOPK = "
T_CFKKOP = "
T_ZFKKOP = "
T_ZFKKOPK = "
T_DFKKRP3 = "
E_FKKRACT = "
E_FKKVK = "
E_FKKVKP = "

EXCEPTIONS
FAILURE = 1
.



IMPORTING Parameters details for FKR2_CREATE_LINES

I_DFKKRK -

Data type: DFKKRK
Optional: No
Call by Reference: No ( called with pass by value option)

I_FKKKO -

Data type: FKKKO
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for FKR2_CREATE_LINES

C_DFKKRP -

Data type: DFKKRP
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FKR2_CREATE_LINES

T_NFKKOP -

Data type: FKKOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_NFKKOPK -

Data type: FKKOPK
Optional: No
Call by Reference: No ( called with pass by value option)

T_CFKKOP -

Data type: FKKOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_ZFKKOP -

Data type: FKKOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_ZFKKOPK -

Data type: FKKOPK
Optional: No
Call by Reference: No ( called with pass by value option)

T_DFKKRP3 -

Data type: DFKKRP3
Optional: No
Call by Reference: No ( called with pass by value option)

E_FKKRACT -

Data type: FKKRACT
Optional: No
Call by Reference: No ( called with pass by value option)

E_FKKVK -

Data type: FKKVK
Optional: No
Call by Reference: No ( called with pass by value option)

E_FKKVKP -

Data type: FKKVKP
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FAILURE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FKR2_CREATE_LINES Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_failure  TYPE STRING, "   
lv_c_dfkkrp  TYPE DFKKRP, "   
lv_i_dfkkrk  TYPE DFKKRK, "   
lt_t_nfkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_i_fkkko  TYPE FKKKO, "   
lt_t_nfkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lt_t_cfkkop  TYPE STANDARD TABLE OF FKKOP, "   
lt_t_zfkkop  TYPE STANDARD TABLE OF FKKOP, "   
lt_t_zfkkopk  TYPE STANDARD TABLE OF FKKOPK, "   
lt_t_dfkkrp3  TYPE STANDARD TABLE OF DFKKRP3, "   
lt_e_fkkract  TYPE STANDARD TABLE OF FKKRACT, "   
lt_e_fkkvk  TYPE STANDARD TABLE OF FKKVK, "   
lt_e_fkkvkp  TYPE STANDARD TABLE OF FKKVKP. "   

  CALL FUNCTION 'FKR2_CREATE_LINES'  "
    EXPORTING
         I_DFKKRK = lv_i_dfkkrk
         I_FKKKO = lv_i_fkkko
    CHANGING
         C_DFKKRP = lv_c_dfkkrp
    TABLES
         T_NFKKOP = lt_t_nfkkop
         T_NFKKOPK = lt_t_nfkkopk
         T_CFKKOP = lt_t_cfkkop
         T_ZFKKOP = lt_t_zfkkop
         T_ZFKKOPK = lt_t_zfkkopk
         T_DFKKRP3 = lt_t_dfkkrp3
         E_FKKRACT = lt_e_fkkract
         E_FKKVK = lt_e_fkkvk
         E_FKKVKP = lt_e_fkkvkp
    EXCEPTIONS
        FAILURE = 1
. " FKR2_CREATE_LINES




ABAP code using 7.40 inline data declarations to call FM FKR2_CREATE_LINES

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!