SAP FT_COCKPIT_FILL_TREE Function Module for NOTRANSL: Außenhandel: Datenselektion für Änderungstransaktion









FT_COCKPIT_FILL_TREE is a standard ft cockpit fill tree 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: Außenhandel: Datenselektion für Änderungstransaktion 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 ft cockpit fill tree FM, simply by entering the name FT_COCKPIT_FILL_TREE into the relevant SAP transaction such as SE37 or SE38.

Function Group: VFBS
Program Name: SAPLVFBS
Main Program: SAPLVFBS
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FT_COCKPIT_FILL_TREE 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 'FT_COCKPIT_FILL_TREE'"NOTRANSL: Außenhandel: Datenselektion für Änderungstransaktion
EXPORTING
I_AHBAS = "Basis document category for foreign trade processing

TABLES
* ITAB_EKKO = "Purchasing Document Header
* ITAB_LIPS = "Reference structure for XLIPS/YLIPS
* I_TAB_TREE = "Foreign Trade: Trees Operative Cockpit Document Processing
* ITAB_EKPO = "Purchasing Document Item
* ITAB_LFA1 = "Vendor Master (General Section)
* ITAB_MKPF = "Header: Material Document
* ITAB_MSEG = "Document Segment: Material
* ITAB_VBRK = "Reference Structure for XVBRK/YVBRP
* ITAB_VBRP = "Billing Document: Item Data
* ITAB_VBPA = "Sales Document: Partner
* ITAB_LIKP = "Reference structure for XLIKP/YLIKP

EXCEPTIONS
NO_DATA_SELECTED = 1
.



IMPORTING Parameters details for FT_COCKPIT_FILL_TREE

I_AHBAS - Basis document category for foreign trade processing

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

TABLES Parameters details for FT_COCKPIT_FILL_TREE

ITAB_EKKO - Purchasing Document Header

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

ITAB_LIPS - Reference structure for XLIPS/YLIPS

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

I_TAB_TREE - Foreign Trade: Trees Operative Cockpit Document Processing

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

ITAB_EKPO - Purchasing Document Item

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

ITAB_LFA1 - Vendor Master (General Section)

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

ITAB_MKPF - Header: Material Document

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

ITAB_MSEG - Document Segment: Material

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

ITAB_VBRK - Reference Structure for XVBRK/YVBRP

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

ITAB_VBRP - Billing Document: Item Data

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

ITAB_VBPA - Sales Document: Partner

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

ITAB_LIKP - Reference structure for XLIKP/YLIKP

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

EXCEPTIONS details

NO_DATA_SELECTED - No data could be selected

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

Copy and paste ABAP code example for FT_COCKPIT_FILL_TREE 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_i_ahbas  TYPE EIKP-AHBAS, "   
lt_itab_ekko  TYPE STANDARD TABLE OF EKKO, "   
lv_no_data_selected  TYPE EKKO, "   
lt_itab_lips  TYPE STANDARD TABLE OF LIPSVB, "   
lt_i_tab_tree  TYPE STANDARD TABLE OF FTTREE_COCK, "   
lt_itab_ekpo  TYPE STANDARD TABLE OF EKPO, "   
lt_itab_lfa1  TYPE STANDARD TABLE OF LFA1, "   
lt_itab_mkpf  TYPE STANDARD TABLE OF MKPF, "   
lt_itab_mseg  TYPE STANDARD TABLE OF MSEG, "   
lt_itab_vbrk  TYPE STANDARD TABLE OF VBRKVB, "   
lt_itab_vbrp  TYPE STANDARD TABLE OF VBRP, "   
lt_itab_vbpa  TYPE STANDARD TABLE OF VBPA, "   
lt_itab_likp  TYPE STANDARD TABLE OF LIKPVB. "   

  CALL FUNCTION 'FT_COCKPIT_FILL_TREE'  "NOTRANSL: Außenhandel: Datenselektion für Änderungstransaktion
    EXPORTING
         I_AHBAS = lv_i_ahbas
    TABLES
         ITAB_EKKO = lt_itab_ekko
         ITAB_LIPS = lt_itab_lips
         I_TAB_TREE = lt_i_tab_tree
         ITAB_EKPO = lt_itab_ekpo
         ITAB_LFA1 = lt_itab_lfa1
         ITAB_MKPF = lt_itab_mkpf
         ITAB_MSEG = lt_itab_mseg
         ITAB_VBRK = lt_itab_vbrk
         ITAB_VBRP = lt_itab_vbrp
         ITAB_VBPA = lt_itab_vbpa
         ITAB_LIKP = lt_itab_likp
    EXCEPTIONS
        NO_DATA_SELECTED = 1
. " FT_COCKPIT_FILL_TREE




ABAP code using 7.40 inline data declarations to call FM FT_COCKPIT_FILL_TREE

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 AHBAS FROM EIKP INTO @DATA(ld_i_ahbas).
 
 
 
 
 
 
 
 
 
 
 
 
 


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!