RFVIMW01 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report generates a batch input session which converts the tax code from "old tax code" to "new tax code" as from a specific date for all active rental agreements...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RFVIMW01 into the relevant SAP transactions such as SE38 or SE80
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.
VAT Code Change: Affected Contracts
Selection Text: P_DGAB = New tax code valid as from
Selection Text: P_MAPNAM = Name of batch input session
Selection Text: P_MW_NEW = New tax code
Selection Text: P_MW_OLD = Old tax code
Selection Text: P_WARN = Ignore warnings
Title: Create Batch Input Session for Changing Tax Code ID for Current LO
Text Symbol: 090 = Batch input session generated successfully:
Text Symbol: 095 = No contracts selected, no batch input session
Text Symbol: 096 = generated
Text Symbol: 100 = VAT code / Batch input session
Text Symbol: 101 = Adjustment Valid From
INCLUDE RFVICNSV.
No SAP DATABASE tables are accessed within this REPORT code!
STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING BYPASS_BUFFER = 'X' CLIENT = SY-MANDT OBJNR = VIMIMV-SNKS STATUS = CON_ISTAT-MV_AKTIV EXCEPTIONS OBJECT_NOT_FOUND = 01 STATUS_NOT_ACTIVE = 02 OTHERS = 03.
FVZK_INIT_VZZKOPO CALL FUNCTION 'FVZK_INIT_VZZKOPO' TABLES IVZZKOPO = TAB_VVZZKOPO.
FVZK_LOAD_VZZKOPO CALL FUNCTION 'FVZK_LOAD_VZZKOPO' EXPORTING FLG_KOPA_READ = SPACE GET_EMPTY = SPACE GSART = CON_GSART_MV INIT_TABLES = SPACE KOKO_KEY = LOC_KOKO_KEY TABLES IVZZKOPO = TAB_VVZZKOPO.
FVZK_LOAD_VZZKOPO CALL FUNCTION 'FVZK_LOAD_VZZKOPO' EXPORTING FLG_KOPA_READ = SPACE GET_EMPTY = SPACE GSART = CON_GSART_MV INIT_TABLES = SPACE KOKO_KEY = LOC_KOKO_KEY TABLES IVZZKOPO = TAB_VVZZKOPO.
BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING CLIENT = SY-MANDT *<<<< DEST = E02 GROUP = PAR_MAPNAME *<<<< HOLDDATE = E04 *<<<< KEEP = E05 USER = SY-UNAME .
BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING TCODE = CON_TCODE_CHANGE_ACT_MV TABLES DYNPROTAB = TAB_BDCDATA.
BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP' EXCEPTIONS NOT_OPEN = 01.
FVST_STATUS_CHECK_AND_SET CALL FUNCTION 'FVST_STATUS_CHECK_AND_SET' EXPORTING RFVSTIMP = LOC_RFVSTIMP IMPORTING * CHANGE_FLAG = * OBJNR_TMP = WARNING_OCCURED = PAR_FLG_W EXCEPTIONS * ALLOWED_WITH_WARNING = 1 * ACTIVITY_NOT_POSSIBLE_MESS_HAN = 2 * ACTIVITY_NOT_POSSIBLE = 3 * OTHERS = 4 OTHERS = 1.
END_OF_PERIOD_DETERMINE CALL FUNCTION 'END_OF_PERIOD_DETERMINE' EXPORTING I_AMMRHY = PV_AMMRHY I_DPERBEG = LV_DATE I_KZ_PERBEG = LF_PERBEG IMPORTING E_DPEREND = LV_DATE.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFVIMW01 - Create Batch Input Session for Changing Tax Code ID for Current LO RFVIMW01 - Create Batch Input Session for Changing Tax Code ID for Current LO RFVIMVVL - Lease-out renewal RFVIMVVL - Lease-out renewal RFVIMVSU - Search all lease-outs of a tenant RFVIMVSU - Search all lease-outs of a tenant