SAP RV_SCHEDULING_TYPE_DETERMINE Function Module for NOTRANSL: Ermitteln und Prüfen des Einteilungstyps









RV_SCHEDULING_TYPE_DETERMINE is a standard rv scheduling type determine 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: Ermitteln und Prüfen des Einteilungstyps 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 rv scheduling type determine FM, simply by entering the name RV_SCHEDULING_TYPE_DETERMINE into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_SCHEDULING_TYPE_DETERMINE 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 'RV_SCHEDULING_TYPE_DETERMINE'"NOTRANSL: Ermitteln und Prüfen des Einteilungstyps
EXPORTING
* F_BEDAE = ' ' "
* F_VGTYP = ' ' "
* F_DISGR = ' ' "
F_DISMM = "
* F_ETERL = 'X' "
* F_ETTYP = ' ' "
* F_MTART = ' ' "
F_PSTYV = "
* F_WERKS = ' ' "
* F_STRGR = ' ' "

IMPORTING
E_BEDAE = "
E_ETTYP = "
E_MSR_BEDAE = "

EXCEPTIONS
SCHEDULING_TYPE_NOT_ALLOWED = 1 TVEPZ_ENTRY_NOT_FOUND = 2
.



IMPORTING Parameters details for RV_SCHEDULING_TYPE_DETERMINE

F_BEDAE -

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

F_VGTYP -

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

F_DISGR -

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

F_DISMM -

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

F_ETERL -

Data type: TVAP-ETERL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

F_ETTYP -

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

F_MTART -

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

F_PSTYV -

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

F_WERKS -

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

F_STRGR -

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

EXPORTING Parameters details for RV_SCHEDULING_TYPE_DETERMINE

E_BEDAE -

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

E_ETTYP -

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

E_MSR_BEDAE -

Data type: MSR_BEDAE_NONVAL
Optional: No
Call by Reference: Yes

EXCEPTIONS details

SCHEDULING_TYPE_NOT_ALLOWED - entered schedule line category not

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

TVEPZ_ENTRY_NOT_FOUND - Entry not found in TVEPZ

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

Copy and paste ABAP code example for RV_SCHEDULING_TYPE_DETERMINE 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_e_bedae  TYPE TVEPZ-BEDAE, "   
lv_f_bedae  TYPE T459A-BEDAE, "   SPACE
lv_scheduling_type_not_allowed  TYPE T459A, "   
lv_f_vgtyp  TYPE VBAP-VGTYP, "   SPACE
lv_e_ettyp  TYPE VBEP-ETTYP, "   
lv_f_disgr  TYPE MARC-DISGR, "   SPACE
lv_tvepz_entry_not_found  TYPE MARC, "   
lv_f_dismm  TYPE MARC-DISMM, "   
lv_e_msr_bedae  TYPE MSR_BEDAE_NONVAL, "   
lv_f_eterl  TYPE TVAP-ETERL, "   'X'
lv_f_ettyp  TYPE VBEP-ETTYP, "   SPACE
lv_f_mtart  TYPE MAAPV-MTART, "   SPACE
lv_f_pstyv  TYPE VBAP-PSTYV, "   
lv_f_werks  TYPE VBAP-WERKS, "   SPACE
lv_f_strgr  TYPE MARC-STRGR. "   SPACE

  CALL FUNCTION 'RV_SCHEDULING_TYPE_DETERMINE'  "NOTRANSL: Ermitteln und Prüfen des Einteilungstyps
    EXPORTING
         F_BEDAE = lv_f_bedae
         F_VGTYP = lv_f_vgtyp
         F_DISGR = lv_f_disgr
         F_DISMM = lv_f_dismm
         F_ETERL = lv_f_eterl
         F_ETTYP = lv_f_ettyp
         F_MTART = lv_f_mtart
         F_PSTYV = lv_f_pstyv
         F_WERKS = lv_f_werks
         F_STRGR = lv_f_strgr
    IMPORTING
         E_BEDAE = lv_e_bedae
         E_ETTYP = lv_e_ettyp
         E_MSR_BEDAE = lv_e_msr_bedae
    EXCEPTIONS
        SCHEDULING_TYPE_NOT_ALLOWED = 1
        TVEPZ_ENTRY_NOT_FOUND = 2
. " RV_SCHEDULING_TYPE_DETERMINE




ABAP code using 7.40 inline data declarations to call FM RV_SCHEDULING_TYPE_DETERMINE

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 BEDAE FROM TVEPZ INTO @DATA(ld_e_bedae).
 
"SELECT single BEDAE FROM T459A INTO @DATA(ld_f_bedae).
DATA(ld_f_bedae) = ' '.
 
 
"SELECT single VGTYP FROM VBAP INTO @DATA(ld_f_vgtyp).
DATA(ld_f_vgtyp) = ' '.
 
"SELECT single ETTYP FROM VBEP INTO @DATA(ld_e_ettyp).
 
"SELECT single DISGR FROM MARC INTO @DATA(ld_f_disgr).
DATA(ld_f_disgr) = ' '.
 
 
"SELECT single DISMM FROM MARC INTO @DATA(ld_f_dismm).
 
 
"SELECT single ETERL FROM TVAP INTO @DATA(ld_f_eterl).
DATA(ld_f_eterl) = 'X'.
 
"SELECT single ETTYP FROM VBEP INTO @DATA(ld_f_ettyp).
DATA(ld_f_ettyp) = ' '.
 
"SELECT single MTART FROM MAAPV INTO @DATA(ld_f_mtart).
DATA(ld_f_mtart) = ' '.
 
"SELECT single PSTYV FROM VBAP INTO @DATA(ld_f_pstyv).
 
"SELECT single WERKS FROM VBAP INTO @DATA(ld_f_werks).
DATA(ld_f_werks) = ' '.
 
"SELECT single STRGR FROM MARC INTO @DATA(ld_f_strgr).
DATA(ld_f_strgr) = ' '.
 


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!