SAP Function Modules

CS_RT_BOM_READ SAP Function module - Import and test reference







CS_RT_BOM_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CS_RT_BOM_READ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CSRT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CS_RT_BOM_READ - CS RT BOM READ





CALL FUNCTION 'CS_RT_BOM_READ' "Import and test reference
  EXPORTING
*   eaennr =                    " csin-aennr
*   eclass = SPACE              " csin-class
*   eclint = SPACE              " csin-clint
*   edatub = SPACE              " csin-datub
*   edatuv = SPACE              " csin-datuv
*   edokar = SPACE              " csin-dokar
*   edoknr = SPACE              " csin-doknr
*   edoktl = SPACE              " csin-doktl
*   edokvr = SPACE              " csin-dokvr
*   eequnr = SPACE              " csin-equnr
*   eklart = SPACE              " csin-klart
*   ematnr = SPACE              " csin-matnr
*   epspnr = SPACE              " csin-pspnr
*   estlal = SPACE              " csin-stlal
*   estlan = SPACE              " csin-stlan
*   estlty = SPACE              " csin-stlty
*   estobj = SPACE              " csin-stobj
*   etplnr = SPACE              " csin-tplnr
*   evbeln = SPACE              " csin-vbeln
*   evbpos = SPACE              " csin-vbpos
*   ewerks = SPACE              " csin-werks
    flg_copy =                  "
*   e_eff_clint =               " cc_clint
  IMPORTING
    abmein =                    " stko-bmein
    akbaus =                    " stzu-kbaus
    astlal =                    " stko-stlal
    astlbe =                    " stzu-stlbe
    asubrc =                    " sy-subrc
    .  "  CS_RT_BOM_READ

ABAP code example for Function Module CS_RT_BOM_READ





The ABAP code below is a full code listing to execute function module CS_RT_BOM_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_abmein  TYPE STKO-BMEIN ,
ld_akbaus  TYPE STZU-KBAUS ,
ld_astlal  TYPE STKO-STLAL ,
ld_astlbe  TYPE STZU-STLBE ,
ld_asubrc  TYPE SY-SUBRC .


DATA(ld_eaennr) = some text here

DATA(ld_eclass) = some text here

DATA(ld_eclint) = Check type of data required

DATA(ld_edatub) = 20210129

DATA(ld_edatuv) = 20210129

DATA(ld_edokar) = some text here

DATA(ld_edoknr) = some text here

DATA(ld_edoktl) = some text here

DATA(ld_edokvr) = some text here

DATA(ld_eequnr) = some text here

DATA(ld_eklart) = some text here

DATA(ld_ematnr) = some text here

DATA(ld_epspnr) = Check type of data required

DATA(ld_estlal) = some text here

DATA(ld_estlan) = some text here

DATA(ld_estlty) = some text here

DATA(ld_estobj) = some text here

DATA(ld_etplnr) = some text here

DATA(ld_evbeln) = some text here

DATA(ld_evbpos) = Check type of data required

DATA(ld_ewerks) = some text here
DATA(ld_flg_copy) = 'some text here'.
DATA(ld_e_eff_clint) = 'Check type of data required'. . CALL FUNCTION 'CS_RT_BOM_READ' EXPORTING * eaennr = ld_eaennr * eclass = ld_eclass * eclint = ld_eclint * edatub = ld_edatub * edatuv = ld_edatuv * edokar = ld_edokar * edoknr = ld_edoknr * edoktl = ld_edoktl * edokvr = ld_edokvr * eequnr = ld_eequnr * eklart = ld_eklart * ematnr = ld_ematnr * epspnr = ld_epspnr * estlal = ld_estlal * estlan = ld_estlan * estlty = ld_estlty * estobj = ld_estobj * etplnr = ld_etplnr * evbeln = ld_evbeln * evbpos = ld_evbpos * ewerks = ld_ewerks flg_copy = ld_flg_copy * e_eff_clint = ld_e_eff_clint IMPORTING abmein = ld_abmein akbaus = ld_akbaus astlal = ld_astlal astlbe = ld_astlbe asubrc = ld_asubrc . " CS_RT_BOM_READ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_abmein  TYPE STKO-BMEIN ,
ld_eaennr  TYPE CSIN-AENNR ,
ld_akbaus  TYPE STZU-KBAUS ,
ld_eclass  TYPE CSIN-CLASS ,
ld_astlal  TYPE STKO-STLAL ,
ld_eclint  TYPE CSIN-CLINT ,
ld_astlbe  TYPE STZU-STLBE ,
ld_edatub  TYPE CSIN-DATUB ,
ld_asubrc  TYPE SY-SUBRC ,
ld_edatuv  TYPE CSIN-DATUV ,
ld_edokar  TYPE CSIN-DOKAR ,
ld_edoknr  TYPE CSIN-DOKNR ,
ld_edoktl  TYPE CSIN-DOKTL ,
ld_edokvr  TYPE CSIN-DOKVR ,
ld_eequnr  TYPE CSIN-EQUNR ,
ld_eklart  TYPE CSIN-KLART ,
ld_ematnr  TYPE CSIN-MATNR ,
ld_epspnr  TYPE CSIN-PSPNR ,
ld_estlal  TYPE CSIN-STLAL ,
ld_estlan  TYPE CSIN-STLAN ,
ld_estlty  TYPE CSIN-STLTY ,
ld_estobj  TYPE CSIN-STOBJ ,
ld_etplnr  TYPE CSIN-TPLNR ,
ld_evbeln  TYPE CSIN-VBELN ,
ld_evbpos  TYPE CSIN-VBPOS ,
ld_ewerks  TYPE CSIN-WERKS ,
ld_flg_copy  TYPE STRING ,
ld_e_eff_clint  TYPE CC_CLINT .


ld_eaennr = some text here

ld_eclass = some text here

ld_eclint = Check type of data required

ld_edatub = 20210129

ld_edatuv = 20210129

ld_edokar = some text here

ld_edoknr = some text here

ld_edoktl = some text here

ld_edokvr = some text here

ld_eequnr = some text here

ld_eklart = some text here

ld_ematnr = some text here

ld_epspnr = Check type of data required

ld_estlal = some text here

ld_estlan = some text here

ld_estlty = some text here

ld_estobj = some text here

ld_etplnr = some text here

ld_evbeln = some text here

ld_evbpos = Check type of data required

ld_ewerks = some text here
ld_flg_copy = 'some text here'.
ld_e_eff_clint = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CS_RT_BOM_READ or its description.