SAP K_PC_CREATE_BTCI Function Module for









K_PC_CREATE_BTCI is a standard k pc create btci 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 k pc create btci FM, simply by entering the name K_PC_CREATE_BTCI into the relevant SAP transaction such as SE37 or SE38.

Function Group: KKPI
Program Name: SAPLKKPI
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function K_PC_CREATE_BTCI 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 'K_PC_CREATE_BTCI'"
EXPORTING
* CLIENT = SY-MANDT "Client
* HOLDDATE = SY-DATUM "Blocking the session until the specified date
* KEEP = ' ' "Indicator to keep processed sessions
* MAPN_E = 'ERRORMAP' "Batch input session name (sess.w.incorr.data)
* MAPN_R = 'BATCHMAP' "Batch input session name
* ONLINE = ' ' "Flag for online system (values: ' ',A,E,N)
* SORT_TAB = 'X' "Sort flag
* USER = SY-UNAME "User ID

IMPORTING
SUBRC = "Return code

TABLES
I_RKKPI1 = "Internal tab. for data transfer (DDIC: RKKPI1)

EXCEPTIONS
ERROR_IN_CALL_TRANSACTION = 1 NO_ENTRIES_IN_TABLE = 2 WRONG_ONLINE_PARAMETER = 3
.



IMPORTING Parameters details for K_PC_CREATE_BTCI

CLIENT - Client

Data type: APQI-MANDANT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

HOLDDATE - Blocking the session until the specified date

Data type: APQI-STARTDATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

KEEP - Indicator to keep processed sessions

Data type: APQI-QERASE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAPN_E - Batch input session name (sess.w.incorr.data)

Data type: APQI-GROUPID
Default: 'ERRORMAP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAPN_R - Batch input session name

Data type: APQI-GROUPID
Default: 'BATCHMAP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ONLINE - Flag for online system (values: SPACE,A,E,N)

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

SORT_TAB - Sort flag

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

USER - User ID

Data type: APQI-USERID
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for K_PC_CREATE_BTCI

SUBRC - Return code

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

TABLES Parameters details for K_PC_CREATE_BTCI

I_RKKPI1 - Internal tab. for data transfer (DDIC: RKKPI1)

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

EXCEPTIONS details

ERROR_IN_CALL_TRANSACTION -

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

NO_ENTRIES_IN_TABLE -

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

WRONG_ONLINE_PARAMETER - Incorrect transfer value in online parameter

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

Copy and paste ABAP code example for K_PC_CREATE_BTCI 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_subrc  TYPE SY-SUBRC, "   
lv_client  TYPE APQI-MANDANT, "   SY-MANDT
lt_i_rkkpi1  TYPE STANDARD TABLE OF RKKPI1, "   
lv_error_in_call_transaction  TYPE RKKPI1, "   
lv_holddate  TYPE APQI-STARTDATE, "   SY-DATUM
lv_no_entries_in_table  TYPE APQI, "   
lv_keep  TYPE APQI-QERASE, "   SPACE
lv_wrong_online_parameter  TYPE APQI, "   
lv_mapn_e  TYPE APQI-GROUPID, "   'ERRORMAP'
lv_mapn_r  TYPE APQI-GROUPID, "   'BATCHMAP'
lv_online  TYPE APQI, "   ' '
lv_sort_tab  TYPE APQI, "   'X'
lv_user  TYPE APQI-USERID. "   SY-UNAME

  CALL FUNCTION 'K_PC_CREATE_BTCI'  "
    EXPORTING
         CLIENT = lv_client
         HOLDDATE = lv_holddate
         KEEP = lv_keep
         MAPN_E = lv_mapn_e
         MAPN_R = lv_mapn_r
         ONLINE = lv_online
         SORT_TAB = lv_sort_tab
         USER = lv_user
    IMPORTING
         SUBRC = lv_subrc
    TABLES
         I_RKKPI1 = lt_i_rkkpi1
    EXCEPTIONS
        ERROR_IN_CALL_TRANSACTION = 1
        NO_ENTRIES_IN_TABLE = 2
        WRONG_ONLINE_PARAMETER = 3
. " K_PC_CREATE_BTCI




ABAP code using 7.40 inline data declarations to call FM K_PC_CREATE_BTCI

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.

"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
"SELECT single MANDANT FROM APQI INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
 
"SELECT single STARTDATE FROM APQI INTO @DATA(ld_holddate).
DATA(ld_holddate) = SY-DATUM.
 
 
"SELECT single QERASE FROM APQI INTO @DATA(ld_keep).
DATA(ld_keep) = ' '.
 
 
"SELECT single GROUPID FROM APQI INTO @DATA(ld_mapn_e).
DATA(ld_mapn_e) = 'ERRORMAP'.
 
"SELECT single GROUPID FROM APQI INTO @DATA(ld_mapn_r).
DATA(ld_mapn_r) = 'BATCHMAP'.
 
DATA(ld_online) = ' '.
 
DATA(ld_sort_tab) = 'X'.
 
"SELECT single USERID FROM APQI INTO @DATA(ld_user).
DATA(ld_user) = SY-UNAME.
 


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!