SAP MV_ADJUST_USER_RANGE Function Module for









MV_ADJUST_USER_RANGE is a standard mv adjust user range SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 mv adjust user range FM, simply by entering the name MV_ADJUST_USER_RANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVMA07
Program Name: SAPLFVMA07
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MV_ADJUST_USER_RANGE 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 'MV_ADJUST_USER_RANGE'"
EXPORTING
I_BUKRS = "
* I_NEUMIETE_RELATIV = 0 "
* I_CURR_UNIT = "
* I_AREA_UNIT = "
* I_DZUBIS = "
* I_DZUSTIM = "
* I_FLAGS = "
* I_SAVE = ' ' "
* I_ACTIVATE = ' ' "
I_DGUELAB = "
* I_XIDENT = '' "
* I_SADJRSN = '' "
* I_DNACHBUCH = SY-DATUM "
* I_NEUMIETE_SET_GESAMT = 0 "
* I_NEUMIETE_SET_PRO_FE = 0 "
* I_NEUMIETE_PLUS_GESAMT = 0 "
* I_NEUMIETE_PLUS_PRO_FE = 0 "

IMPORTING
E_NUM_SELECTED = "
E_NUM_ADJUSTED = "
E_NUM_ACTIVATED = "

CHANGING
* IE_PROTNAME = '' "

TABLES
I_SO_SWENR = "
I_SO_SMENR = "
I_SO_SMIVE = "
I_SO_SGENR = "
I_SO_SMVART = "
I_SO_SKOART = "
* E_TAB_ADJUST = "
* E_PROTOCOL = "

EXCEPTIONS
HEADER_ALREADY_USED = 1 CANNOT_CREATE_HEADER = 2 MULTIPLE_ADJUST_TYPES = 3 SAVING_FAILED = 4 ACTIVATION_NEEDS_SAVING = 5
.



IMPORTING Parameters details for MV_ADJUST_USER_RANGE

I_BUKRS -

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

I_NEUMIETE_RELATIV -

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

I_CURR_UNIT -

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

I_AREA_UNIT -

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

I_DZUBIS -

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

I_DZUSTIM -

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

I_FLAGS -

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

I_SAVE -

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

I_ACTIVATE -

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

I_DGUELAB -

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

I_XIDENT -

Data type: VIMI17-XIDENT
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SADJRSN -

Data type: VIMI17-SADJRSN
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DNACHBUCH -

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

I_NEUMIETE_SET_GESAMT -

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

I_NEUMIETE_SET_PRO_FE -

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

I_NEUMIETE_PLUS_GESAMT -

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

I_NEUMIETE_PLUS_PRO_FE -

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

EXPORTING Parameters details for MV_ADJUST_USER_RANGE

E_NUM_SELECTED -

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

E_NUM_ADJUSTED -

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

E_NUM_ACTIVATED -

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

CHANGING Parameters details for MV_ADJUST_USER_RANGE

IE_PROTNAME -

Data type: VIMI17-PROTNAME
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MV_ADJUST_USER_RANGE

I_SO_SWENR -

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

I_SO_SMENR -

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

I_SO_SMIVE -

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

I_SO_SGENR -

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

I_SO_SMVART -

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

I_SO_SKOART -

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

E_TAB_ADJUST -

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

E_PROTOCOL -

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

EXCEPTIONS details

HEADER_ALREADY_USED -

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

CANNOT_CREATE_HEADER -

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

MULTIPLE_ADJUST_TYPES -

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

SAVING_FAILED -

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

ACTIVATION_NEEDS_SAVING -

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

Copy and paste ABAP code example for MV_ADJUST_USER_RANGE 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_bukrs  TYPE VIMI16-BUKRS, "   
lt_i_so_swenr  TYPE STANDARD TABLE OF RSOSWENR, "   
lv_ie_protname  TYPE VIMI17-PROTNAME, "   ''
lv_e_num_selected  TYPE I, "   
lv_header_already_used  TYPE I, "   
lv_i_neumiete_relativ  TYPE VIMI16-PERHREL, "   0
lv_i_curr_unit  TYPE VIMI16-SWHRKOND, "   
lv_i_area_unit  TYPE VIMI16-FEINS, "   
lv_i_dzubis  TYPE VIMI16-DZUBIS, "   
lv_i_dzustim  TYPE VIMI16-DZUSTIM, "   
lv_i_flags  TYPE FVIMA_REC_FLAGS, "   
lv_i_save  TYPE FVIMA_REC_FLAGS, "   ' '
lv_i_activate  TYPE FVIMA_REC_FLAGS, "   ' '
lv_i_dguelab  TYPE VIMI17-DGUELAB, "   
lt_i_so_smenr  TYPE STANDARD TABLE OF RSOSMENR, "   
lv_e_num_adjusted  TYPE I, "   
lv_cannot_create_header  TYPE I, "   
lv_i_xident  TYPE VIMI17-XIDENT, "   ''
lt_i_so_smive  TYPE STANDARD TABLE OF RSOSMIVE, "   
lv_e_num_activated  TYPE I, "   
lv_multiple_adjust_types  TYPE I, "   
lv_i_sadjrsn  TYPE VIMI17-SADJRSN, "   ''
lt_i_so_sgenr  TYPE STANDARD TABLE OF RSOSGENR, "   
lv_saving_failed  TYPE RSOSGENR, "   
lv_i_dnachbuch  TYPE SY-DATUM, "   SY-DATUM
lt_i_so_smvart  TYPE STANDARD TABLE OF RSOSMVART, "   
lv_activation_needs_saving  TYPE RSOSMVART, "   
lt_i_so_skoart  TYPE STANDARD TABLE OF RSOSKOART, "   
lv_i_neumiete_set_gesamt  TYPE VIMI16-BERHGES, "   0
lt_e_tab_adjust  TYPE STANDARD TABLE OF FVIMA_TAB_ADJUST, "   
lv_i_neumiete_set_pro_fe  TYPE VIMI16-BERHABS, "   0
lt_e_protocol  TYPE STANDARD TABLE OF FVIMA_TAB_MESG, "   
lv_i_neumiete_plus_gesamt  TYPE VIMI16-BERHGES, "   0
lv_i_neumiete_plus_pro_fe  TYPE VIMI16-BERHABS. "   0

  CALL FUNCTION 'MV_ADJUST_USER_RANGE'  "
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_NEUMIETE_RELATIV = lv_i_neumiete_relativ
         I_CURR_UNIT = lv_i_curr_unit
         I_AREA_UNIT = lv_i_area_unit
         I_DZUBIS = lv_i_dzubis
         I_DZUSTIM = lv_i_dzustim
         I_FLAGS = lv_i_flags
         I_SAVE = lv_i_save
         I_ACTIVATE = lv_i_activate
         I_DGUELAB = lv_i_dguelab
         I_XIDENT = lv_i_xident
         I_SADJRSN = lv_i_sadjrsn
         I_DNACHBUCH = lv_i_dnachbuch
         I_NEUMIETE_SET_GESAMT = lv_i_neumiete_set_gesamt
         I_NEUMIETE_SET_PRO_FE = lv_i_neumiete_set_pro_fe
         I_NEUMIETE_PLUS_GESAMT = lv_i_neumiete_plus_gesamt
         I_NEUMIETE_PLUS_PRO_FE = lv_i_neumiete_plus_pro_fe
    IMPORTING
         E_NUM_SELECTED = lv_e_num_selected
         E_NUM_ADJUSTED = lv_e_num_adjusted
         E_NUM_ACTIVATED = lv_e_num_activated
    CHANGING
         IE_PROTNAME = lv_ie_protname
    TABLES
         I_SO_SWENR = lt_i_so_swenr
         I_SO_SMENR = lt_i_so_smenr
         I_SO_SMIVE = lt_i_so_smive
         I_SO_SGENR = lt_i_so_sgenr
         I_SO_SMVART = lt_i_so_smvart
         I_SO_SKOART = lt_i_so_skoart
         E_TAB_ADJUST = lt_e_tab_adjust
         E_PROTOCOL = lt_e_protocol
    EXCEPTIONS
        HEADER_ALREADY_USED = 1
        CANNOT_CREATE_HEADER = 2
        MULTIPLE_ADJUST_TYPES = 3
        SAVING_FAILED = 4
        ACTIVATION_NEEDS_SAVING = 5
. " MV_ADJUST_USER_RANGE




ABAP code using 7.40 inline data declarations to call FM MV_ADJUST_USER_RANGE

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 BUKRS FROM VIMI16 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single PROTNAME FROM VIMI17 INTO @DATA(ld_ie_protname).
DATA(ld_ie_protname) = ''.
 
 
 
"SELECT single PERHREL FROM VIMI16 INTO @DATA(ld_i_neumiete_relativ).
 
"SELECT single SWHRKOND FROM VIMI16 INTO @DATA(ld_i_curr_unit).
 
"SELECT single FEINS FROM VIMI16 INTO @DATA(ld_i_area_unit).
 
"SELECT single DZUBIS FROM VIMI16 INTO @DATA(ld_i_dzubis).
 
"SELECT single DZUSTIM FROM VIMI16 INTO @DATA(ld_i_dzustim).
 
 
DATA(ld_i_save) = ' '.
 
DATA(ld_i_activate) = ' '.
 
"SELECT single DGUELAB FROM VIMI17 INTO @DATA(ld_i_dguelab).
 
 
 
 
"SELECT single XIDENT FROM VIMI17 INTO @DATA(ld_i_xident).
DATA(ld_i_xident) = ''.
 
 
 
 
"SELECT single SADJRSN FROM VIMI17 INTO @DATA(ld_i_sadjrsn).
DATA(ld_i_sadjrsn) = ''.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_dnachbuch).
DATA(ld_i_dnachbuch) = SY-DATUM.
 
 
 
 
"SELECT single BERHGES FROM VIMI16 INTO @DATA(ld_i_neumiete_set_gesamt).
 
 
"SELECT single BERHABS FROM VIMI16 INTO @DATA(ld_i_neumiete_set_pro_fe).
 
 
"SELECT single BERHGES FROM VIMI16 INTO @DATA(ld_i_neumiete_plus_gesamt).
 
"SELECT single BERHABS FROM VIMI16 INTO @DATA(ld_i_neumiete_plus_pro_fe).
 


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!