SAP Reports / Programs | Logistics - General | Merchandise Distribution(LO-MDS) SAP LO

MWFRM2F0F SAP ABAP INCLUDE - documentation and ABAP source code







MWFRM2F0F 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 MWFRM2F0F 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 MWFRM2F0F. "Basic submit
SUBMIT MWFRM2F0F AND RETURN. "Return to original report after report execution complete
SUBMIT MWFRM2F0F 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 MWFRM2F0F

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:

ENQUEUE_E_FRET_E CALL FUNCTION 'ENQUEUE_E_FRET_E' EXPORTING MODE_FRET = 'E' MANDT = P_X_FRET-MANDT BTYPB = P_X_FRET-BTYPB BLNRB = BLNRB BPOSB = BPOSB BTYPA = P_X_FRET-BTYPA BLNRA = P_X_FRET-BLNRA BPOSA = P_X_FRET-BPOSA * x_btypb = ' ' * x_blnrb = ' ' * x_bposb = ' ' * x_btypa = ' ' * x_blnra = ' ' * x_bposa = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

DEQUEUE_E_FRET_E CALL FUNCTION 'DEQUEUE_E_FRET_E' EXPORTING MODE_FRET = 'E' MANDT = SY-MANDT BTYPB = P_X_FRET-BTYPB BLNRB = BLNRB BPOSB = BPOSB BTYPA = P_X_FRET-BTYPA BLNRA = P_X_FRET-BLNRA BPOSA = P_X_FRET-BPOSA.

ENQUEUE_E_FRET_S CALL FUNCTION 'ENQUEUE_E_FRET_S' EXPORTING MODE_FRET = 'S' MANDT = P_X_FRET-MANDT BTYPB = P_X_FRET-BTYPB BLNRB = P_X_FRET-BLNRB BPOSB = P_X_FRET-BPOSB BTYPA = P_X_FRET-BTYPA BLNRA = P_X_FRET-BLNRA BPOSA = P_X_FRET-BPOSA * x_btypb = ' ' * x_blnrb = ' ' * x_bposb = ' ' * x_btypa = ' ' * x_blnra = ' ' * x_bposa = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

DEQUEUE_E_FRET_S CALL FUNCTION 'DEQUEUE_E_FRET_S' EXPORTING MODE_FRET = 'S' MANDT = SY-MANDT BTYPB = P_X_FRET-BTYPB BLNRB = P_X_FRET-BLNRB BPOSB = P_X_FRET-BPOSB BTYPA = P_X_FRET-BTYPA BLNRA = P_X_FRET-BLNRA BPOSA = P_X_FRET-BPOSA.

W_FRM_DELIVERY_VBFS_SHOW CALL FUNCTION 'W_FRM_DELIVERY_VBFS_SHOW' TABLES T_VBFS = COMMVBFS EXCEPTIONS NOTHING_TO_DO = 1 OTHERS = 2.

W_FRM_DELIVERY_ERRORLOG_SHOW CALL FUNCTION 'W_FRM_DELIVERY_ERRORLOG_SHOW' TABLES T_ERRORLOG = ERROR_LOG_TAB EXCEPTIONS NOTHING_TO_DO = 1 OTHERS = 2.

W_FRM_DELIVERIES_SHOW CALL FUNCTION 'W_FRM_DELIVERIES_SHOW' TABLES T_VBLS = COMMVBLS EXCEPTIONS NOTHING_TO_DO = 1 OTHERS = 2.

W_FRM_DELIVERIES_MAINTAIN CALL FUNCTION 'W_FRM_DELIVERIES_MAINTAIN' EXPORTING CALL_LOCATION = '2' * NEW_DELIVERIES = 'X' * TRANSPORT_ORDER = 'X' * CHANGE_DELIVERIES = 'X' * NO_MESSAGES = 'X' TABLES T_XFRET = HHI_FRET T_ERRORLOG = L_XERRORLOG T_VBFS = COMMVBFS T_VBLS = COMMVBLS EXCEPTIONS NOTHING_TO_DO = 1 ERRORLOG_EXISTS = 2 OTHERS = 3.

W_FRM_SWITCH_TO_BASE_UNIT CALL FUNCTION 'W_FRM_SWITCH_TO_BASE_UNIT' EXPORTING * I_INIT_WFR2 = ' ' I_MATNR = TFRET-MATNR I_UNIT1 = TFRET-IEINA I_UNIT2 = HHI_FRET-VEINA I_QUANT1 = TFRET-IMNGA I_QUANT2 = HHI_FRET-VMNGA IMPORTING E_BASE_UNIT = BASE_UNIT E_QUANT1 = TFRET-IMNGA E_QUANT2 = HHI_FRET-VMNGA CHANGING T_CONV = CONV_TAB EXCEPTIONS ERROR_READING_MATERIAL_MASTER = 1 ERROR_AT_UNIT_CONVERSION = 2 OTHERS = 3 .

W_FRM_ASSIGNMENT_CORRECT CALL FUNCTION 'W_FRM_ASSIGNMENT_CORRECT' TABLES T_FRET = TFRET T_FRETB = XFRETB.

W_FRM_ASSIGNMENT_ADJUST CALL FUNCTION 'W_FRM_ASSIGNMENT_ADJUST' EXPORTING I_COMMIT_WORK = 'X' I_PERFORM_EXTENDED_CHECK = 'X' TABLES T_FRET = TFRET * T_FRETB = EXCEPTIONS NOTHING_TO_DO = 1 OTHERS = 2.

W_FRM_ASSIGNMENT_CREATE CALL FUNCTION 'W_FRM_ASSIGNMENT_CREATE' EXPORTING I_COMMIT_WORK = 'X' TABLES T_FRET = TFRET * T_FRETB = EXCEPTIONS OTHERS = 0.



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