SAP CACS_BDTD_INIT Function Module for NOTRANSL: INIT-Baustein zum Anschluß an die FDÜ









CACS_BDTD_INIT is a standard cacs bdtd init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: INIT-Baustein zum Anschluß an die FDÜ 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 cacs bdtd init FM, simply by entering the name CACS_BDTD_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACS_BDTD
Program Name: SAPLCACS_BDTD
Main Program: SAPLCACS_BDTD
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS_BDTD_INIT 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 'CACS_BDTD_INIT'"NOTRANSL: INIT-Baustein zum Anschluß an die FDÜ
EXPORTING
* CHECKLEVEL = '3' "
* FDU_START_MODE = 'N' "
* EXTPROTNR = "
* I_EDTFILE = "External file name
* I_PSERVER = "

TABLES
ERROR_ITAB = "
DATA_ITAB = "Small Receiver Structure for Data Transfer via EDT

EXCEPTIONS
ERROR_FOUND = 1
.



IMPORTING Parameters details for CACS_BDTD_INIT

CHECKLEVEL -

Data type: JBISTDSTRU-JCHECK
Default: '3'
Optional: Yes
Call by Reference: Yes

FDU_START_MODE -

Data type: C
Default: 'N'
Optional: Yes
Call by Reference: Yes

EXTPROTNR -

Data type: BALHDRI-EXTNUMBER
Optional: Yes
Call by Reference: Yes

I_EDTFILE - External file name

Data type: CFFILE-FILENAME
Optional: Yes
Call by Reference: Yes

I_PSERVER -

Data type:
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for CACS_BDTD_INIT

ERROR_ITAB -

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

DATA_ITAB - Small Receiver Structure for Data Transfer via EDT

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR_FOUND -

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

Copy and paste ABAP code example for CACS_BDTD_INIT 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_checklevel  TYPE JBISTDSTRU-JCHECK, "   '3'
lt_error_itab  TYPE STANDARD TABLE OF SPROT_X, "   
lv_error_found  TYPE SPROT_X, "   
lt_data_itab  TYPE STANDARD TABLE OF SPROT_X, "   
lv_fdu_start_mode  TYPE C, "   'N'
lv_extprotnr  TYPE BALHDRI-EXTNUMBER, "   
lv_i_edtfile  TYPE CFFILE-FILENAME, "   
lv_i_pserver  TYPE CFFILE. "   

  CALL FUNCTION 'CACS_BDTD_INIT'  "NOTRANSL: INIT-Baustein zum Anschluß an die FDÜ
    EXPORTING
         CHECKLEVEL = lv_checklevel
         FDU_START_MODE = lv_fdu_start_mode
         EXTPROTNR = lv_extprotnr
         I_EDTFILE = lv_i_edtfile
         I_PSERVER = lv_i_pserver
    TABLES
         ERROR_ITAB = lt_error_itab
         DATA_ITAB = lt_data_itab
    EXCEPTIONS
        ERROR_FOUND = 1
. " CACS_BDTD_INIT




ABAP code using 7.40 inline data declarations to call FM CACS_BDTD_INIT

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 JCHECK FROM JBISTDSTRU INTO @DATA(ld_checklevel).
DATA(ld_checklevel) = '3'.
 
 
 
 
DATA(ld_fdu_start_mode) = 'N'.
 
"SELECT single EXTNUMBER FROM BALHDRI INTO @DATA(ld_extprotnr).
 
"SELECT single FILENAME FROM CFFILE INTO @DATA(ld_i_edtfile).
 
 


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!