SAP KCD_SEND_TAB_FILL Function Module for Fills an internal table with the sender structure for a sender program









KCD_SEND_TAB_FILL is a standard kcd send tab fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fills an internal table with the sender structure for a sender program 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 kcd send tab fill FM, simply by entering the name KCD_SEND_TAB_FILL into the relevant SAP transaction such as SE37 or SE38.

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



Function KCD_SEND_TAB_FILL 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 'KCD_SEND_TAB_FILL'"Fills an internal table with the sender structure for a sender program
EXPORTING
REPID = "
* MANDT = SY-MANDT "

IMPORTING
CLENG = "
ET_SSTRUC = "
RLENG = "
ILENG = "
PROGN = "
ESTRC = "
ANWDG = "
VALID = "
MAVAL = "
DKEY = "

EXCEPTIONS
DDIC_NOT_FOUND = 1 NO_DDIC_STRUC = 2 SEND_STRUC_NOT_FOUND = 3
.



IMPORTING Parameters details for KCD_SEND_TAB_FILL

REPID -

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

MANDT -

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

EXPORTING Parameters details for KCD_SEND_TAB_FILL

CLENG -

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

ET_SSTRUC -

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

RLENG -

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

ILENG -

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

PROGN -

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

ESTRC -

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

ANWDG -

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

VALID -

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

MAVAL -

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

DKEY -

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

EXCEPTIONS details

DDIC_NOT_FOUND -

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

NO_DDIC_STRUC -

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

SEND_STRUC_NOT_FOUND -

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

Copy and paste ABAP code example for KCD_SEND_TAB_FILL 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_cleng  TYPE KCDDIFIE-OFFST, "   
lv_repid  TYPE KCDSM-REPID, "   
lv_ddic_not_found  TYPE KCDSM, "   
lv_et_sstruc  TYPE KCDU_SSTRUC_, "   
lv_mandt  TYPE SY-MANDT, "   SY-MANDT
lv_rleng  TYPE KCDDIFIE-OFFST, "   
lv_no_ddic_struc  TYPE KCDDIFIE, "   
lv_ileng  TYPE KCDDIFIE-OFFST, "   
lv_send_struc_not_found  TYPE KCDDIFIE, "   
lv_progn  TYPE KCDSM-PROGN, "   
lv_estrc  TYPE KCDSM-ESTRC, "   
lv_anwdg  TYPE KCDSM-ANWDG, "   
lv_valid  TYPE KCDSM-VALID, "   
lv_maval  TYPE KCDSM-MAVAL, "   
lv_dkey  TYPE KCDSM-DKEY. "   

  CALL FUNCTION 'KCD_SEND_TAB_FILL'  "Fills an internal table with the sender structure for a sender program
    EXPORTING
         REPID = lv_repid
         MANDT = lv_mandt
    IMPORTING
         CLENG = lv_cleng
         ET_SSTRUC = lv_et_sstruc
         RLENG = lv_rleng
         ILENG = lv_ileng
         PROGN = lv_progn
         ESTRC = lv_estrc
         ANWDG = lv_anwdg
         VALID = lv_valid
         MAVAL = lv_maval
         DKEY = lv_dkey
    EXCEPTIONS
        DDIC_NOT_FOUND = 1
        NO_DDIC_STRUC = 2
        SEND_STRUC_NOT_FOUND = 3
. " KCD_SEND_TAB_FILL




ABAP code using 7.40 inline data declarations to call FM KCD_SEND_TAB_FILL

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 OFFST FROM KCDDIFIE INTO @DATA(ld_cleng).
 
"SELECT single REPID FROM KCDSM INTO @DATA(ld_repid).
 
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single OFFST FROM KCDDIFIE INTO @DATA(ld_rleng).
 
 
"SELECT single OFFST FROM KCDDIFIE INTO @DATA(ld_ileng).
 
 
"SELECT single PROGN FROM KCDSM INTO @DATA(ld_progn).
 
"SELECT single ESTRC FROM KCDSM INTO @DATA(ld_estrc).
 
"SELECT single ANWDG FROM KCDSM INTO @DATA(ld_anwdg).
 
"SELECT single VALID FROM KCDSM INTO @DATA(ld_valid).
 
"SELECT single MAVAL FROM KCDSM INTO @DATA(ld_maval).
 
"SELECT single DKEY FROM KCDSM INTO @DATA(ld_dkey).
 


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!