SAP SMB_UIE_SD_SALE_REVNUE_PRODUCT Function Module for Display of sales revenue details for all products
SMB_UIE_SD_SALE_REVNUE_PRODUCT is a standard smb uie sd sale revnue product SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display of sales revenue details for all products processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for smb uie sd sale revnue product FM, simply by entering the name SMB_UIE_SD_SALE_REVNUE_PRODUCT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SMB_UIE_SD_C_LEVEL
Program Name: SAPLSMB_UIE_SD_C_LEVEL
Main Program: SAPLSMB_UIE_SD_C_LEVEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SMB_UIE_SD_SALE_REVNUE_PRODUCT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SMB_UIE_SD_SALE_REVNUE_PRODUCT'"Display of sales revenue details for all products.
EXPORTING
* IV_COMP_CODE = "Company Code
* IV_MONTH_YEAR = "Period to analyze - month
IMPORTING
ET_C_LEV_SAL_REV_PROD_CARD = "internal table for sales org for score card
ET_C_LEV_SAL_REV_PROD_CHART = "internal table for slaes kpi line chart information
IMPORTING Parameters details for SMB_UIE_SD_SALE_REVNUE_PRODUCT
IV_COMP_CODE - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_MONTH_YEAR - Period to analyze - month
Data type: SPMONOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SMB_UIE_SD_SALE_REVNUE_PRODUCT
ET_C_LEV_SAL_REV_PROD_CARD - internal table for sales org for score card
Data type: SMB_UIE_C_LEVEL_SALORG_TTOptional: No
Call by Reference: No ( called with pass by value option)
ET_C_LEV_SAL_REV_PROD_CHART - internal table for slaes kpi line chart information
Data type: SMB_UIE_C_LEVEL_CHART_TTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SMB_UIE_SD_SALE_REVNUE_PRODUCT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_iv_comp_code | TYPE BUKRS, " | |||
lv_et_c_lev_sal_rev_prod_card | TYPE SMB_UIE_C_LEVEL_SALORG_TT, " | |||
lv_iv_month_year | TYPE SPMON, " | |||
lv_et_c_lev_sal_rev_prod_chart | TYPE SMB_UIE_C_LEVEL_CHART_TT. " |
  CALL FUNCTION 'SMB_UIE_SD_SALE_REVNUE_PRODUCT' "Display of sales revenue details for all products |
EXPORTING | ||
IV_COMP_CODE | = lv_iv_comp_code | |
IV_MONTH_YEAR | = lv_iv_month_year | |
IMPORTING | ||
ET_C_LEV_SAL_REV_PROD_CARD | = lv_et_c_lev_sal_rev_prod_card | |
ET_C_LEV_SAL_REV_PROD_CHART | = lv_et_c_lev_sal_rev_prod_chart | |
. " SMB_UIE_SD_SALE_REVNUE_PRODUCT |
ABAP code using 7.40 inline data declarations to call FM SMB_UIE_SD_SALE_REVNUE_PRODUCT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects