SAP /BKC/RFC_INSERT_PTQUODED Function Module for C&T! - Insert of table PTQUODED
/BKC/RFC_INSERT_PTQUODED is a standard /bkc/rfc insert ptquoded 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! - Insert of table PTQUODED 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 ptquoded FM, simply by entering the name /BKC/RFC_INSERT_PTQUODED into the relevant SAP transaction such as SE37 or SE38.
Function Group: /BKC/SOL21
Program Name: /BKC/SAPLSOL21
Main Program: /BKC/SAPLSOL21
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /BKC/RFC_INSERT_PTQUODED 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_PTQUODED'"C&T! - Insert of table PTQUODED.
EXPORTING
* CALLER_IS_UNICODE = "Background processing, program running in the background
* IF_VERSN = '01' "Version of cluster data
* XBUFSIZE = 256 "C&T! - Size of binary buffer
* P_ANOINP = "Background processing, program running in the background
* FILL_EX_TAB = "Background processing, program running in the background
IMPORTING
BCOUNT = "
RC = "
TABLES
PTQUODED_TAB = "
* PT_EX_TAB = "C&T! - Conversion table for quotas and deductions
* XBUF256 = "C&T! - Binary buffer with 256 byte
* SYS_FEHLER = "C&T! - Interface structure for error messages
EXCEPTIONS
BUCHUNGSFEHLER = 1
IMPORTING Parameters details for /BKC/RFC_INSERT_PTQUODED
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_XBUFSIZEDefault: 256
Optional: 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)
FILL_EX_TAB - 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_PTQUODED
BCOUNT -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /BKC/RFC_INSERT_PTQUODED
PTQUODED_TAB -
Data type: PTQUODEDOptional: No
Call by Reference: No ( called with pass by value option)
PT_EX_TAB - C&T! - Conversion table for quotas and deductions
Data type: /BKC/S21_PTQUODED_EX_TABOptional: Yes
Call by Reference: Yes
XBUF256 - C&T! - Binary buffer with 256 byte
Data type: /BKC/S21_XBUF256Optional: Yes
Call by Reference: Yes
SYS_FEHLER - C&T! - Interface structure for error messages
Data type: /BKC/S21_SYSTEMFEHLEROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
BUCHUNGSFEHLER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /BKC/RFC_INSERT_PTQUODED 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_bcount | TYPE SY-TABIX, " | |||
| lt_ptquoded_tab | TYPE STANDARD TABLE OF PTQUODED, " | |||
| lv_buchungsfehler | TYPE PTQUODED, " | |||
| lv_caller_is_unicode | TYPE SY-BATCH, " | |||
| lv_rc | TYPE SY-SUBRC, " | |||
| lv_if_versn | TYPE PVRSN, " '01' | |||
| lt_pt_ex_tab | TYPE STANDARD TABLE OF /BKC/S21_PTQUODED_EX_TAB, " | |||
| lt_xbuf256 | TYPE STANDARD TABLE OF /BKC/S21_XBUF256, " | |||
| lv_xbufsize | TYPE /BKC/S21_XBUFSIZE, " 256 | |||
| lv_p_anoinp | TYPE SY-BATCH, " | |||
| lt_sys_fehler | TYPE STANDARD TABLE OF /BKC/S21_SYSTEMFEHLER, " | |||
| lv_fill_ex_tab | TYPE SY-BATCH. " |
|   CALL FUNCTION '/BKC/RFC_INSERT_PTQUODED' "C&T! - Insert of table PTQUODED |
| EXPORTING | ||
| CALLER_IS_UNICODE | = lv_caller_is_unicode | |
| IF_VERSN | = lv_if_versn | |
| XBUFSIZE | = lv_xbufsize | |
| P_ANOINP | = lv_p_anoinp | |
| FILL_EX_TAB | = lv_fill_ex_tab | |
| IMPORTING | ||
| BCOUNT | = lv_bcount | |
| RC | = lv_rc | |
| TABLES | ||
| PTQUODED_TAB | = lt_ptquoded_tab | |
| PT_EX_TAB | = lt_pt_ex_tab | |
| XBUF256 | = lt_xbuf256 | |
| SYS_FEHLER | = lt_sys_fehler | |
| EXCEPTIONS | ||
| BUCHUNGSFEHLER = 1 | ||
| . " /BKC/RFC_INSERT_PTQUODED | ||
ABAP code using 7.40 inline data declarations to call FM /BKC/RFC_INSERT_PTQUODED
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 TABIX FROM SY INTO @DATA(ld_bcount). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_caller_is_unicode). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_rc). | ||||
| DATA(ld_if_versn) | = '01'. | |||
| DATA(ld_xbufsize) | = 256. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_p_anoinp). | ||||
| "SELECT single BATCH FROM SY INTO @DATA(ld_fill_ex_tab). | ||||
Search for further information about these or an SAP related objects