SAP /BKC/RFC_INSERT_PTEX_TABLE Function Module for C&T! - Transfer of PTEX* tables
/BKC/RFC_INSERT_PTEX_TABLE is a standard /bkc/rfc insert ptex table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for C&T! - Transfer of PTEX* tables processing and below is the pattern details for this FM, 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 /bkc/rfc insert ptex table FM, simply by entering the name /BKC/RFC_INSERT_PTEX_TABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: /BKC/SOL21_CATS
Program Name: /BKC/SAPLSOL21_CATS
Main Program: /BKC/SAPLSOL21_CATS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /BKC/RFC_INSERT_PTEX_TABLE 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 '/BKC/RFC_INSERT_PTEX_TABLE'"C&T! - Transfer of PTEX* tables.
EXPORTING
TABNAME = "Table name
* CALLER_IS_UNICODE = "Background processing, program running in the background
* IF_VERSN = '01' "Version of cluster data
* XBUFSIZE = "C&T! - Size of binary buffer
* XBUFNAME = "Table name
* PROGRAM_IN_TARGET = "Program/transaction in SQL trace evaluation
* P_ANOINP = "Background processing, program running in the background
IMPORTING
RC = "Return value, return value according to ABAP instructions
TABLES
* TRANS_TAB = "C&T! - Buffer for any table
* XBUFFER8192 = "C&T! - Binary buffer with 8192 byte
* XBUFFER16384 = "C&T! - Binary buffer with 16384 byte
* SYS_FEHLER = "C&T! - Structure for transfer of error messages
* XBUFFER32 = "C&T! - Binary buffer with 32 byte
* XBUFFER64 = "C&T! - Binary buffer with 64 byte
* XBUFFER128 = "C&T! - Binary buffer with 128 bytes
* XBUFFER256 = "C&T! - Binary buffer with 256 byte
* XBUFFER512 = "C&T! - Binary buffer with 512 byte
* XBUFFER1024 = "C&T! - Binary buffer with 1024 byte
* XBUFFER2048 = "C&T! - Binary buffer with 2048 byte
* XBUFFER4096 = "C&T! - Binary buffer with 4096 byte
EXCEPTIONS
NO_LOGSYS = 1 NO_ASSIGN_LOGSYS = 2 NO_ASSIGN_AWKEY = 3 NO_ASSIGN_AWTYP = 4
IMPORTING Parameters details for /BKC/RFC_INSERT_PTEX_TABLE
TABNAME - Table name
Data type: TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
CALLER_IS_UNICODE - Background processing, program running in the background
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_VERSN - Version of cluster data
Data type: PVRSNDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
XBUFSIZE - C&T! - Size of binary buffer
Data type: /BKC/S21_XBUFSIZEOptional: Yes
Call by Reference: No ( called with pass by value option)
XBUFNAME - Table name
Data type: TABNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
PROGRAM_IN_TARGET - Program/transaction in SQL trace evaluation
Data type: PROGRAMOptional: Yes
Call by Reference: No ( called with pass by value option)
P_ANOINP - Background processing, program running in the background
Data type: SY-BATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /BKC/RFC_INSERT_PTEX_TABLE
RC - Return value, return value according to ABAP instructions
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /BKC/RFC_INSERT_PTEX_TABLE
TRANS_TAB - C&T! - Buffer for any table
Data type: /BKC/S21_ANY_TAB_PUFFEROptional: Yes
Call by Reference: Yes
XBUFFER8192 - C&T! - Binary buffer with 8192 byte
Data type: /BKC/S21_XBUF8192Optional: Yes
Call by Reference: Yes
XBUFFER16384 - C&T! - Binary buffer with 16384 byte
Data type: /BKC/S21_XBUF16384Optional: Yes
Call by Reference: Yes
SYS_FEHLER - C&T! - Structure for transfer of error messages
Data type: /BKC/S21_SYSTEMFEHLEROptional: Yes
Call by Reference: Yes
XBUFFER32 - C&T! - Binary buffer with 32 byte
Data type: /BKC/S21_XBUF32Optional: Yes
Call by Reference: Yes
XBUFFER64 - C&T! - Binary buffer with 64 byte
Data type: /BKC/S21_XBUF64Optional: Yes
Call by Reference: Yes
XBUFFER128 - C&T! - Binary buffer with 128 bytes
Data type: /BKC/S21_XBUF128Optional: Yes
Call by Reference: Yes
XBUFFER256 - C&T! - Binary buffer with 256 byte
Data type: /BKC/S21_XBUF256Optional: Yes
Call by Reference: Yes
XBUFFER512 - C&T! - Binary buffer with 512 byte
Data type: /BKC/S21_XBUF512Optional: Yes
Call by Reference: Yes
XBUFFER1024 - C&T! - Binary buffer with 1024 byte
Data type: /BKC/S21_XBUF1024Optional: Yes
Call by Reference: Yes
XBUFFER2048 - C&T! - Binary buffer with 2048 byte
Data type: /BKC/S21_XBUF2048Optional: Yes
Call by Reference: Yes
XBUFFER4096 - C&T! - Binary buffer with 4096 byte
Data type: /BKC/S21_XBUF4096Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_LOGSYS - No LOGSYS found in T000
Data type:Optional: No
Call by Reference: Yes
NO_ASSIGN_LOGSYS -
Data type:Optional: No
Call by Reference: Yes
NO_ASSIGN_AWKEY -
Data type:Optional: No
Call by Reference: Yes
NO_ASSIGN_AWTYP -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /BKC/RFC_INSERT_PTEX_TABLE 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_rc | TYPE SY-SUBRC, " | |||
| lv_tabname | TYPE TABNAME, " | |||
| lv_no_logsys | TYPE TABNAME, " | |||
| lt_trans_tab | TYPE STANDARD TABLE OF /BKC/S21_ANY_TAB_PUFFER, " | |||
| lt_xbuffer8192 | TYPE STANDARD TABLE OF /BKC/S21_XBUF8192, " | |||
| lt_xbuffer16384 | TYPE STANDARD TABLE OF /BKC/S21_XBUF16384, " | |||
| lt_sys_fehler | TYPE STANDARD TABLE OF /BKC/S21_SYSTEMFEHLER, " | |||
| lt_xbuffer32 | TYPE STANDARD TABLE OF /BKC/S21_XBUF32, " | |||
| lv_no_assign_logsys | TYPE /BKC/S21_XBUF32, " | |||
| lv_caller_is_unicode | TYPE SY-BATCH, " | |||
| lv_if_versn | TYPE PVRSN, " '01' | |||
| lt_xbuffer64 | TYPE STANDARD TABLE OF /BKC/S21_XBUF64, " | |||
| lv_no_assign_awkey | TYPE /BKC/S21_XBUF64, " | |||
| lv_xbufsize | TYPE /BKC/S21_XBUFSIZE, " | |||
| lt_xbuffer128 | TYPE STANDARD TABLE OF /BKC/S21_XBUF128, " | |||
| lv_no_assign_awtyp | TYPE /BKC/S21_XBUF128, " | |||
| lv_xbufname | TYPE TABNAME, " | |||
| lt_xbuffer256 | TYPE STANDARD TABLE OF /BKC/S21_XBUF256, " | |||
| lt_xbuffer512 | TYPE STANDARD TABLE OF /BKC/S21_XBUF512, " | |||
| lv_program_in_target | TYPE PROGRAM, " | |||
| lv_p_anoinp | TYPE SY-BATCH, " | |||
| lt_xbuffer1024 | TYPE STANDARD TABLE OF /BKC/S21_XBUF1024, " | |||
| lt_xbuffer2048 | TYPE STANDARD TABLE OF /BKC/S21_XBUF2048, " | |||
| lt_xbuffer4096 | TYPE STANDARD TABLE OF /BKC/S21_XBUF4096. " |
|   CALL FUNCTION '/BKC/RFC_INSERT_PTEX_TABLE' "C&T! - Transfer of PTEX* tables |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| CALLER_IS_UNICODE | = lv_caller_is_unicode | |
| IF_VERSN | = lv_if_versn | |
| XBUFSIZE | = lv_xbufsize | |
| XBUFNAME | = lv_xbufname | |
| PROGRAM_IN_TARGET | = lv_program_in_target | |
| P_ANOINP | = lv_p_anoinp | |
| IMPORTING | ||
| RC | = lv_rc | |
| TABLES | ||
| TRANS_TAB | = lt_trans_tab | |
| XBUFFER8192 | = lt_xbuffer8192 | |
| XBUFFER16384 | = lt_xbuffer16384 | |
| SYS_FEHLER | = lt_sys_fehler | |
| XBUFFER32 | = lt_xbuffer32 | |
| XBUFFER64 | = lt_xbuffer64 | |
| XBUFFER128 | = lt_xbuffer128 | |
| XBUFFER256 | = lt_xbuffer256 | |
| XBUFFER512 | = lt_xbuffer512 | |
| XBUFFER1024 | = lt_xbuffer1024 | |
| XBUFFER2048 | = lt_xbuffer2048 | |
| XBUFFER4096 | = lt_xbuffer4096 | |
| EXCEPTIONS | ||
| NO_LOGSYS = 1 | ||
| NO_ASSIGN_LOGSYS = 2 | ||
| NO_ASSIGN_AWKEY = 3 | ||
| NO_ASSIGN_AWTYP = 4 | ||
| . " /BKC/RFC_INSERT_PTEX_TABLE | ||
ABAP code using 7.40 inline data declarations to call FM /BKC/RFC_INSERT_PTEX_TABLE
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_rc). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_caller_is_unicode). | ||||
| DATA(ld_if_versn) | = '01'. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_p_anoinp). | ||||
Search for further information about these or an SAP related objects