SDFAS133 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for According to SFAS 133 - Accounting for Derivative Instruments and Hedging Activities - balance sheets must be prepared to the market value for open values in certain sales documents...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 SDFAS133 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.
Selection Text: AUART = Sales Document Type
Selection Text: BUKRS = Company code to be billed
Selection Text: ERDAT = Document Date
Selection Text: KUNNR = Sold-To Party
Selection Text: LAND_AG = Country of the Sold-To Party
Selection Text: MATKL = Material Group
Selection Text: MATNR = Material
Selection Text: Q_DATE = Date of bal. sheet preparation
Selection Text: RUNTIME = Min. validity period in days
Selection Text: VBELN = Documents
Selection Text: VKORG = Sales Organization
Selection Text: WAERK = Currency
Title: SFAS 133/138 SD
Text Symbol: 032 = Enter other currency:
Text Symbol: 031 = Balance Sheet Preparation, Minimum Order Net Value, Min. Validity Period in Days
Text Symbol: 030 = Relevant Docs
Text Symbol: 029 = Save results in cluster database INDX
Text Symbol: 028 = Overwrite
Text Symbol: 027 = Append
Text Symbol: 026 = Append or overwrite data?
Text Symbol: 025 = Data cluster already exists
Text Symbol: 024 = Save results in cluster database INDX
Text Symbol: 023 = Data Cluster
Text Symbol: 001 = Minimum Order Net Value
Text Symbol: 002 = Own Functional Currency
Text Symbol: 003 = Local Currency
Text Symbol: 004 = Group Currency
Text Symbol: 005 = Sold-To Party Functional Currency
Text Symbol: 006 = Relevant National Crrcy
Text Symbol: 007 = Document Data Restriction
Text Symbol: 008 = Only documents with billing plan
Text Symbol: 009 = Currency
Text Symbol: 010 = Net Value Item (Local Currency)
Text Symbol: 011 = Open Net Value (Local Currency)
Text Symbol: 012 = Local curr.
Text Symbol: 013 = Billing Value (not billed)
Text Symbol: 014 = Net Value Item (Document Currency)
Text Symbol: 015 = Open Net Value (Document Currency)
INCLUDE SDFASTOP.
No SAP DATABASE tables are accessed within this REPORT code!
GET_EWWU_WAERS_40 CALL FUNCTION 'GET_EWWU_WAERS_40' EXPORTING CONFIRM_CUST = 'X' TABLES EWUCURRS = DA_EUROTAB EXCEPTIONS CUSTOMIZING_NOT_FOUND = 1 CUSTOMIZING_NOT_CONFIRMED = 2 NO_WAERS_FOUND = 3 OTHERS = 4.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE =
-ERDAT FOREIGN_CURRENCY = CUR LOCAL_AMOUNT = VALUE LOCAL_CURRENCY = WA_T001-WAERS TYPE_OF_RATE = 'M' IMPORTING FOREIGN_AMOUNT = VALUE EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.
SD_ORDER_GET_BILLED_VALUE CALL FUNCTION 'SD_ORDER_GET_BILLED_VALUE' EXPORTING DOC_NUMBER =
-VBELN DOC_ITEM = -POSNR Q_DATE = Q_DATE ITEM_VALUE = -NETWR IMPORTING NET_VALUE = DA_NETWR VBKD = VBKD_DATA TABLES DA_XFPLT = DA_XFPLT.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE =
-ERDAT FOREIGN_CURRENCY = CUR LOCAL_AMOUNT = VALUE LOCAL_CURRENCY = WA_T001-WAERS TYPE_OF_RATE = 'M' IMPORTING FOREIGN_AMOUNT = VALUE EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = DATE FOREIGN_AMOUNT = OLD_VALUE FOREIGN_CURRENCY = OLD_CURR LOCAL_CURRENCY = NEW_CURR TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = VALUE EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = SPACE TEXTLINE2 = TEXT-022 TITEL = TEXT-023 IMPORTING ANSWER = G_ANSWER.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = L_REPID I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS' I_CALLBACK_USER_COMMAND = 'USER_COMMAND' I_GRID_TITLE = TEXT-030 IT_FIELDCAT = LT_FIELDCAT[] I_SAVE = 'A' TABLES T_OUTTAB = GT_OUTPUT EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.
POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING NO_VALUE_CHECK = ' ' POPUP_TITLE = TEXT-024 START_COLUMN = '5' START_ROW = '5' IMPORTING RETURNCODE = L_RETURN TABLES FIELDS = L_FIELDS EXCEPTIONS ERROR_IN_FIELDS = 1 OTHERS = 2.
POPUP_TO_DECIDE_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE' EXPORTING DEFAULTOPTION = '1' DIAGNOSETEXT1 = TEXT-025 TEXTLINE1 = TEXT-026 TEXT_OPTION1 = TEXT-027 TEXT_OPTION2 = TEXT-028 TITEL = TEXT-029 IMPORTING ANSWER = L_ANSWER.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.