SAP BKK_PAYMEX_WRITE_A_AND_E_REC Function Module for BCA: Write A and C Record for Data Records Transferred









BKK_PAYMEX_WRITE_A_AND_E_REC is a standard bkk paymex write a and e rec SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BCA: Write A and C Record for Data Records Transferred 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 bkk paymex write a and e rec FM, simply by entering the name BKK_PAYMEX_WRITE_A_AND_E_REC into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_PAYMEX_WRITE_A_AND_E_REC 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 'BKK_PAYMEX_WRITE_A_AND_E_REC'"BCA: Write A and C Record for Data Records Transferred
EXPORTING
I_COMPL_FILE_NAME = "
I_OLD_BYTE = "
* I_DATE_CREATE = SY-DATUM "
I_REF_NO = "
I_REF_YEAR = "

IMPORTING
E_RC = "
E_DTADA = "Structure of A Record in DTA Format
E_DTADE = "DTA Inland Disk Data Record E (Data Medium Appendix)
E_NEW_BYTE = "
E_CURR_CLEAR_ID = "

TABLES
I_T_DTADC = "DTA Inland Disk Data Record C (Payment Exchange Record)
I_T_ITEMS = "
.



IMPORTING Parameters details for BKK_PAYMEX_WRITE_A_AND_E_REC

I_COMPL_FILE_NAME -

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

I_OLD_BYTE -

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

I_DATE_CREATE -

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

I_REF_NO -

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

I_REF_YEAR -

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

EXPORTING Parameters details for BKK_PAYMEX_WRITE_A_AND_E_REC

E_RC -

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

E_DTADA - Structure of A Record in DTA Format

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

E_DTADE - DTA Inland Disk Data Record E (Data Medium Appendix)

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

E_NEW_BYTE -

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

E_CURR_CLEAR_ID -

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

TABLES Parameters details for BKK_PAYMEX_WRITE_A_AND_E_REC

I_T_DTADC - DTA Inland Disk Data Record C (Payment Exchange Record)

Data type: IBKK_DTADC
Optional: No
Call by Reference: Yes

I_T_ITEMS -

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

Copy and paste ABAP code example for BKK_PAYMEX_WRITE_A_AND_E_REC 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_e_rc  TYPE SY-SUBRC, "   
lt_i_t_dtadc  TYPE STANDARD TABLE OF IBKK_DTADC, "   
lv_i_compl_file_name  TYPE RLGRAP-FILENAME, "   
lv_e_dtada  TYPE IBKK_DTADA, "   
lt_i_t_items  TYPE STANDARD TABLE OF IBKKPAYMEX_ITCL, "   
lv_i_old_byte  TYPE I, "   
lv_e_dtade  TYPE IBKK_DTADE, "   
lv_i_date_create  TYPE BKKPAYMEX_HD-DATE_CREATE, "   SY-DATUM
lv_i_ref_no  TYPE BKKPAYMEX_HD-REF_NO, "   
lv_e_new_byte  TYPE I, "   
lv_i_ref_year  TYPE BKKPAYMEX_HD-REF_YEAR, "   
lv_e_curr_clear_id  TYPE BKKPAYMEX_HD-CLEAR_ID. "   

  CALL FUNCTION 'BKK_PAYMEX_WRITE_A_AND_E_REC'  "BCA: Write A and C Record for Data Records Transferred
    EXPORTING
         I_COMPL_FILE_NAME = lv_i_compl_file_name
         I_OLD_BYTE = lv_i_old_byte
         I_DATE_CREATE = lv_i_date_create
         I_REF_NO = lv_i_ref_no
         I_REF_YEAR = lv_i_ref_year
    IMPORTING
         E_RC = lv_e_rc
         E_DTADA = lv_e_dtada
         E_DTADE = lv_e_dtade
         E_NEW_BYTE = lv_e_new_byte
         E_CURR_CLEAR_ID = lv_e_curr_clear_id
    TABLES
         I_T_DTADC = lt_i_t_dtadc
         I_T_ITEMS = lt_i_t_items
. " BKK_PAYMEX_WRITE_A_AND_E_REC




ABAP code using 7.40 inline data declarations to call FM BKK_PAYMEX_WRITE_A_AND_E_REC

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_e_rc).
 
 
"SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_i_compl_file_name).
 
 
 
 
 
"SELECT single DATE_CREATE FROM BKKPAYMEX_HD INTO @DATA(ld_i_date_create).
DATA(ld_i_date_create) = SY-DATUM.
 
"SELECT single REF_NO FROM BKKPAYMEX_HD INTO @DATA(ld_i_ref_no).
 
 
"SELECT single REF_YEAR FROM BKKPAYMEX_HD INTO @DATA(ld_i_ref_year).
 
"SELECT single CLEAR_ID FROM BKKPAYMEX_HD INTO @DATA(ld_e_curr_clear_id).
 


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!