SAP Reports / Programs | Materials Management | Inventory Management | Excise Duty(MM-IM-ED) SAP MM

/BEV2/ED_WRITE_FIXSTOCKS SAP ABAP Report - ED: Update fixed stocks







/BEV2/ED_WRITE_FIXSTOCKS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter /BEV2/ED_WRITE_FIXSTOCKS into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/BEV2/ED_WRITE_FIXST - Update Fixed Stocks


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT /BEV2/ED_WRITE_FIXSTOCKS. "Basic submit
SUBMIT /BEV2/ED_WRITE_FIXSTOCKS AND RETURN. "Return to original report after report execution complete
SUBMIT /BEV2/ED_WRITE_FIXSTOCKS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_JAHR = to the closing year
Selection Text: P_PERIOD = with periodicity on
Selection Text: P_STPER = to closing period
Selection Text: S_DATUM = in period
Selection Text: S_SLAGER = D Tax/Bonded Warehouse Number
Selection Text: S_VBART = D Excise Duty Type
Title: ED: Update fixed stocks
Text Symbol: 001 = Update Fixed Stocks for:
Text Symbol: 002 = Fix. Stock
Text Symbol: 003 = LOG


INCLUDES used within this REPORT /BEV2/ED_WRITE_FIXSTOCKS

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile EXCEPTIONS OTHERS = 1.

/BEV2/EDHP_GET_ED_WORKAREA CALL FUNCTION '/BEV2/EDHP_GET_ED_WORKAREA' IMPORTING e_yhvbart = lv_vbart e_yhslager = lv_slager EXCEPTIONS OTHERS = 1.

/BEV2/ED_REA_STEUERLAGER CALL FUNCTION '/BEV2/ED_REA_STEUERLAGER' TABLES i_yh903 = it_903 i_yh902 = xyh902 i_select_yhvbart = s_vbart i_select_yhslager = s_slager EXCEPTIONS not_found = 1 OTHERS = 2.

/BEV2/ED_CALC_STOCK CALL FUNCTION '/BEV2/ED_CALC_STOCK' EXPORTING i_edart = it_periode-vbart i_edslager = it_periode-slager i_nullbestand = ' ' i_zieldat = it_periode-datend i_ae_flag = con_fixstock_end i_scheme = con_scheme_performant * I_STARTDAT = * IMPORTING * E_VALID = TABLES * IT_WERKS = * IT_LGORT = ot_stock = it_stock_s EXCEPTIONS startdat_nonexist = 1 bookingbottleneck = 2 OTHERS = 3.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

/BEV2/ED_CALC_STOCK CALL FUNCTION '/BEV2/ED_CALC_STOCK' EXPORTING i_edart = it_periode-vbart i_edslager = it_periode-slager i_nullbestand = ' ' i_zieldat = it_periode-datend i_ae_flag = con_fixstock_end i_scheme = con_scheme_performant * I_STARTDAT = * IMPORTING * E_VALID = TABLES it_werks = r_werks_abgel it_lgort = r_lgort_abgel ot_stock = it_stock_s EXCEPTIONS startdat_nonexist = 1 bookingbottleneck = 2 OTHERS = 3.

/BEV2/ED_CALC_STOCK CALL FUNCTION '/BEV2/ED_CALC_STOCK' EXPORTING i_edart = it_periode-vbart i_edslager = it_periode-slager i_nullbestand = ' ' i_zieldat = it_periode-datbeg i_ae_flag = con_fixstock_begin i_scheme = con_scheme_performant * I_STARTDAT = * IMPORTING * E_VALID = TABLES * IT_WERKS = * IT_LGORT = ot_stock = it_stock_s EXCEPTIONS startdat_nonexist = 1 bookingbottleneck = 2 OTHERS = 3.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

/BEV2/ED_CALC_STOCK CALL FUNCTION '/BEV2/ED_CALC_STOCK' EXPORTING i_edart = it_periode-vbart i_edslager = it_periode-slager i_nullbestand = ' ' i_zieldat = it_periode-datbeg i_ae_flag = con_fixstock_begin i_scheme = con_scheme_performant * I_STARTDAT = * IMPORTING * E_VALID = TABLES it_werks = r_werks_neu it_lgort = r_lgort_neu ot_stock = it_stock_s EXCEPTIONS startdat_nonexist = 1 bookingbottleneck = 2 OTHERS = 3.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = ls_marv-vvmgj i_periv = ls_t001-periv i_poper = lv_poper IMPORTING e_date = gv_last_day EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = st_header IMPORTING e_log_handle = gv_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DSP_LOG_DISPLAY





CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

ENQUEUE_/BEV2/E_EDFIXADM CALL FUNCTION 'ENQUEUE_/BEV2/E_EDFIXADM' EXPORTING edart = it_periode-vbart edslager = it_periode-slager EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_handle i_s_msg = st_message EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

DEQUEUE_/BEV2/E_EDFIXADM CALL FUNCTION 'DEQUEUE_/BEV2/E_EDFIXADM' EXPORTING edart = it_periode-vbart edslager = it_periode-slager.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name /BEV2/ED_WRITE_FIXSTOCKS or its description.