SAP GET_DATA_FROM_TRAINING_SYSTEM Function Module for Data generating program for VVBAK, KKNA1 etc.









GET_DATA_FROM_TRAINING_SYSTEM is a standard get data from training system SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Data generating program for VVBAK, KKNA1 etc. 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 get data from training system FM, simply by entering the name GET_DATA_FROM_TRAINING_SYSTEM into the relevant SAP transaction such as SE37 or SE38.

Function Group: BC490
Program Name: SAPLBC490
Main Program:
Appliation area:
Release date: 24-Jan-2001
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function GET_DATA_FROM_TRAINING_SYSTEM 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 'GET_DATA_FROM_TRAINING_SYSTEM'"Data generating program for VVBAK, KKNA1 etc.
EXPORTING
* IM_BSEG = ' ' "FLAG
* IM_KNA1 = ' ' "FLAG
* IM_VBPA = ' ' "FLAG
* IM_VBFA = ' ' "FLAG
* IM_EORD = ' ' "FLAG
* IM_MARC = ' ' "FLAG
* IM_BKPF = ' ' "FLAG
* IM_BSID = ' ' "FLAG
* IM_A005 = ' ' "FLAG
* IM_VBAK = ' ' "FLAG
* IM_VBAP = ' ' "FLAG
* IM_VBEP = ' ' "FLAG
* IM_VBUK = ' ' "FLAG
* IM_VBUP = ' ' "FLAG
* IM_MARA = ' ' "FLAG

TABLES
* IBSEG = "ibseg
* IKNA1 = "Ikna1
* IVBPA = "Ivbpa
* IVBFA = "ivbfa
* IEORD = "ieord
* IMARC = "imarc
* IBKPF = "ibkpf
* IBSID = "ibsid
* IA005 = "ia005
* IVBAK = "ivbak
* IVBAP = "ivbap
* IVBEP = "IVBEP
* IVBUK = "ivbuk
* IVBUP = "IVBup
* IMARA = "Imara

EXCEPTIONS
BSEG_EMPTY = 1 KNA1_EMPTY = 10 VBPA_EMPTY = 11 VBFA_EMPTY = 12 EORD_EMPTY = 13 MARC_EMPTY = 14 BKPF_EMPTY = 15 BSID_EMPTY = 2 A005_EMPTY = 3 VBAK_EMPTY = 4 VBAP_EMPTY = 5 VBEP_EMPTY = 6 VBUK_EMPTY = 7 VBUP_EMPTY = 8 MARA_EMPTY = 9
.



IMPORTING Parameters details for GET_DATA_FROM_TRAINING_SYSTEM

IM_BSEG - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_KNA1 - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBPA - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBFA - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_EORD - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_MARC - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_BKPF - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_BSID - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_A005 - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBAK - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBAP - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBEP - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBUK - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_VBUP - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_MARA - FLAG

Data type: VBAP-LFREL
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for GET_DATA_FROM_TRAINING_SYSTEM

IBSEG - ibseg

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

IKNA1 - Ikna1

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

IVBPA - Ivbpa

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

IVBFA - ivbfa

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

IEORD - ieord

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

IMARC - imarc

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

IBKPF - ibkpf

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

IBSID - ibsid

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

IA005 - ia005

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

IVBAK - ivbak

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

IVBAP - ivbap

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

IVBEP - IVBEP

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

IVBUK - ivbuk

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

IVBUP - IVBup

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

IMARA - Imara

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

EXCEPTIONS details

BSEG_EMPTY - bseg_empty

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

KNA1_EMPTY - kna1_empty

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

VBPA_EMPTY - vbpa_empty

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

VBFA_EMPTY - vbfa_empty

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

EORD_EMPTY - eord_empty

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

MARC_EMPTY - marc_empty

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

BKPF_EMPTY - bkpf_empty

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

BSID_EMPTY - bsid_empty

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

A005_EMPTY - a005_empty

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

VBAK_EMPTY - vbak_empty

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

VBAP_EMPTY - vbap_empty

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

VBEP_EMPTY - vbep_empty

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

VBUK_EMPTY - vbuk_empty

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

VBUP_EMPTY - vbup_empty

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

MARA_EMPTY - mara_empty

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

Copy and paste ABAP code example for GET_DATA_FROM_TRAINING_SYSTEM 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:
lt_ibseg  TYPE STANDARD TABLE OF BSEG, "   
lv_im_bseg  TYPE VBAP-LFREL, "   SPACE
lv_bseg_empty  TYPE VBAP, "   
lt_ikna1  TYPE STANDARD TABLE OF KNA1, "   
lv_im_kna1  TYPE VBAP-LFREL, "   SPACE
lv_kna1_empty  TYPE VBAP, "   
lt_ivbpa  TYPE STANDARD TABLE OF VBPA, "   
lv_im_vbpa  TYPE VBAP-LFREL, "   SPACE
lv_vbpa_empty  TYPE VBAP, "   
lt_ivbfa  TYPE STANDARD TABLE OF VBFA, "   
lv_im_vbfa  TYPE VBAP-LFREL, "   SPACE
lv_vbfa_empty  TYPE VBAP, "   
lt_ieord  TYPE STANDARD TABLE OF EORD, "   
lv_im_eord  TYPE VBAP-LFREL, "   SPACE
lv_eord_empty  TYPE VBAP, "   
lt_imarc  TYPE STANDARD TABLE OF MARC, "   
lv_im_marc  TYPE VBAP-LFREL, "   SPACE
lv_marc_empty  TYPE VBAP, "   
lt_ibkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_im_bkpf  TYPE VBAP-LFREL, "   SPACE
lv_bkpf_empty  TYPE VBAP, "   
lt_ibsid  TYPE STANDARD TABLE OF BSID, "   
lv_im_bsid  TYPE VBAP-LFREL, "   SPACE
lv_bsid_empty  TYPE VBAP, "   
lt_ia005  TYPE STANDARD TABLE OF A005, "   
lv_im_a005  TYPE VBAP-LFREL, "   SPACE
lv_a005_empty  TYPE VBAP, "   
lt_ivbak  TYPE STANDARD TABLE OF VBAK, "   
lv_im_vbak  TYPE VBAP-LFREL, "   SPACE
lv_vbak_empty  TYPE VBAP, "   
lt_ivbap  TYPE STANDARD TABLE OF VBAP, "   
lv_im_vbap  TYPE VBAP-LFREL, "   SPACE
lv_vbap_empty  TYPE VBAP, "   
lt_ivbep  TYPE STANDARD TABLE OF VBEP, "   
lv_im_vbep  TYPE VBAP-LFREL, "   SPACE
lv_vbep_empty  TYPE VBAP, "   
lt_ivbuk  TYPE STANDARD TABLE OF VBUK, "   
lv_im_vbuk  TYPE VBAP-LFREL, "   SPACE
lv_vbuk_empty  TYPE VBAP, "   
lt_ivbup  TYPE STANDARD TABLE OF VBUP, "   
lv_im_vbup  TYPE VBAP-LFREL, "   SPACE
lv_vbup_empty  TYPE VBAP, "   
lt_imara  TYPE STANDARD TABLE OF MARA, "   
lv_im_mara  TYPE VBAP-LFREL, "   SPACE
lv_mara_empty  TYPE VBAP. "   

  CALL FUNCTION 'GET_DATA_FROM_TRAINING_SYSTEM'  "Data generating program for VVBAK, KKNA1 etc.
    EXPORTING
         IM_BSEG = lv_im_bseg
         IM_KNA1 = lv_im_kna1
         IM_VBPA = lv_im_vbpa
         IM_VBFA = lv_im_vbfa
         IM_EORD = lv_im_eord
         IM_MARC = lv_im_marc
         IM_BKPF = lv_im_bkpf
         IM_BSID = lv_im_bsid
         IM_A005 = lv_im_a005
         IM_VBAK = lv_im_vbak
         IM_VBAP = lv_im_vbap
         IM_VBEP = lv_im_vbep
         IM_VBUK = lv_im_vbuk
         IM_VBUP = lv_im_vbup
         IM_MARA = lv_im_mara
    TABLES
         IBSEG = lt_ibseg
         IKNA1 = lt_ikna1
         IVBPA = lt_ivbpa
         IVBFA = lt_ivbfa
         IEORD = lt_ieord
         IMARC = lt_imarc
         IBKPF = lt_ibkpf
         IBSID = lt_ibsid
         IA005 = lt_ia005
         IVBAK = lt_ivbak
         IVBAP = lt_ivbap
         IVBEP = lt_ivbep
         IVBUK = lt_ivbuk
         IVBUP = lt_ivbup
         IMARA = lt_imara
    EXCEPTIONS
        BSEG_EMPTY = 1
        KNA1_EMPTY = 10
        VBPA_EMPTY = 11
        VBFA_EMPTY = 12
        EORD_EMPTY = 13
        MARC_EMPTY = 14
        BKPF_EMPTY = 15
        BSID_EMPTY = 2
        A005_EMPTY = 3
        VBAK_EMPTY = 4
        VBAP_EMPTY = 5
        VBEP_EMPTY = 6
        VBUK_EMPTY = 7
        VBUP_EMPTY = 8
        MARA_EMPTY = 9
. " GET_DATA_FROM_TRAINING_SYSTEM




ABAP code using 7.40 inline data declarations to call FM GET_DATA_FROM_TRAINING_SYSTEM

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 LFREL FROM VBAP INTO @DATA(ld_im_bseg).
DATA(ld_im_bseg) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_kna1).
DATA(ld_im_kna1) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbpa).
DATA(ld_im_vbpa) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbfa).
DATA(ld_im_vbfa) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_eord).
DATA(ld_im_eord) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_marc).
DATA(ld_im_marc) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_bkpf).
DATA(ld_im_bkpf) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_bsid).
DATA(ld_im_bsid) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_a005).
DATA(ld_im_a005) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbak).
DATA(ld_im_vbak) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbap).
DATA(ld_im_vbap) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbep).
DATA(ld_im_vbep) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbuk).
DATA(ld_im_vbuk) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_vbup).
DATA(ld_im_vbup) = ' '.
 
 
 
"SELECT single LFREL FROM VBAP INTO @DATA(ld_im_mara).
DATA(ld_im_mara) = ' '.
 
 


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!