SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

MV12AF0G SAP ABAP INCLUDE - documentation and ABAP source code







MV12AF0G is a standard ABAP INCLUDE 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 MV12AF0G into the relevant SAP transactions such as SE38 or SE80


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 MV12AF0G. "Basic submit
SUBMIT MV12AF0G AND RETURN. "Return to original report after report execution complete
SUBMIT MV12AF0G VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MV12AF0G

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:

RV_TABLE_READ CALL FUNCTION 'RV_TABLE_READ' EXPORTING TR_LANGU = SY-LANGU TR_TABLE = GDT_TABLE TABLES DD03V_TAB = DD03V_TAB DD04V_TAB = DD04V_TAB DFIES_TAB = DFIES_TAB EXCEPTIONS OTHERS = 01.

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING NAME = T681-KOTAB LANGU = SY-LANGU IMPORTING DD02V_WA = DD02V EXCEPTIONS OTHERS = 1.

RV_COND_TABLE_READ CALL FUNCTION 'RV_COND_TABLE_READ' EXPORTING CTR_KVEWE = T681-KVEWE CTR_KOTABNR = T681-KOTABNR TABLES VAKE_FLD_TAB = DD03V_TAB VAKE_DTL_TAB = DD04V_TAB KOND_DFIES_TAB = KOND_DFIES_TAB KOND_FLD_TAB = KOND_FLD_TAB VAKE_DFIES_TAB = VAKE_DFIES_TAB EXCEPTIONS OTHERS = 1.

RV_COND_TABLE_NUMBER_ASSIGN CALL FUNCTION 'RV_COND_TABLE_NUMBER_ASSIGN' EXPORTING KVEWE = T681-KVEWE KOTABNR_LOW = GRENZE_NIEDRIG KOTABNR_HIGH = GRENZE_HOCH IMPORTING KOTABNR = T681-KOTABNR.

RV_TABLE_NAME_SET CALL FUNCTION 'RV_TABLE_NAME_SET' EXPORTING RT_KVEWE = T681-KVEWE RT_KOTABNR = T681-KOTABNR IMPORTING RT_KOTAB = T681-KOTAB.

RV_COND_DEFINITION_WRITE CALL FUNCTION 'RV_COND_DEFINITION_WRITE' EXPORTING CDW_T681 = T681 CDW_TMC1T_GSTXT = MV12A-KOTAB_TEXT CDW_T681S = T681S CDW_T681T_VTEXT = T681T-VTEXT CDW_TMC1 = TMC1 TABLES T681E_TAB = T681E_TAB TMC1D_TAB = TMC1D_TAB TMC1K_TAB = TMC1K_TAB EXCEPTIONS STOP_WORK = 01. "#EC *

RKE_FILL_FIELD_TABLE CALL FUNCTION 'RKE_FILL_FIELD_TABLE' EXPORTING ERKRS = ERKRS TABNAME = TABNAME TABLES FIELDTAB = X_FIELDTAB EXCEPTIONS LEDGER_NOT_DEF = 1 LEDGER_NOT_FOUND = 2 TABLE_NOT_FOUND = 3 OTHERS = 4.



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 MV12AF0G or its description.