SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

BAFAFORMS SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = CON_Y TEXTLINE1 = TEXT-001 TEXTLINE2 = TEXT-002 TITEL = TEXT-003 IMPORTING ANSWER = HLP_ANSWER.

COUNTRY_CODE_SAP_TO_ISO CALL FUNCTION 'COUNTRY_CODE_SAP_TO_ISO' EXPORTING SAP_CODE = LOC_SAP_COUNTRY IMPORTING ISO_CODE = LOC_ISO_LAND EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = LOC_STRUC I_CLIENT_NEVER_DISPLAY = CON_X CHANGING CT_FIELDCAT = LOC_FIELDCAT[] EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = LOC_VDATU FOREIGN_AMOUNT = LOC_NETWR FOREIGN_CURRENCY = LOC_OLD_WAERK LOCAL_CURRENCY = LOC_CURR IMPORTING LOCAL_AMOUNT = LOC_NETWR EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.

FT_CONTROL_BAFA_DATA_SELECT CALL FUNCTION 'FT_CONTROL_BAFA_DATA_SELECT' EXPORTING I_GEGRU = LV_GEGRU I_MLAND = LV_MLAND I_MSG = LV_MSG I_NEW_STRUCTURE = CON_X TABLES T_RANGE_GENNR = LR_GENNR T_RANGE_EXGEN = LR_EXGEN T_RANGE_WERKS = LT_WERKS T_RANGE_BUKRS = LR_BUKRS T_RANGE_ERDAT = LT_ERDAT T_RANGE_KUNNR = LT_KUNNR T_RANGE_ALNUM = LT_ALNUM T_VBAK = LT_VBAK T_VBAP = LT_VBAP T_VBPA = LT_VBPA T_VBEX = LT_VBEX T_MARC = LT_MARC T_T606V = LT_T606V T_MAKT = LT_MAKT T_ADDR_VAL = LT_ADDR EXCEPTIONS NO_DATA_SELECTED = 1 NO_DATA_AUTHORITY_CHECK = 2 OTHERS = 3.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = LOC_ADDR_SEL IMPORTING ADDRESS_VALUE = ADDR_COMP EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING QUERY = 'OS' IMPORTING RETURN = LV_OPERATING_SYSTEM EXCEPTIONS INV_QUERY = 1 NO_BATCH = 2 FRONTEND_ERROR = 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 BAFAFORMS or its description.