SAP Function Modules

BBP_PRODUCT_GETLIST SAP Function module







BBP_PRODUCT_GETLIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BBP_PRODUCT_GETLIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_PRODUCT_PURCHASE_API
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BBP_PRODUCT_GETLIST - BBP PRODUCT GETLIST





CALL FUNCTION 'BBP_PRODUCT_GETLIST' "
* EXPORTING
*   iv_max_rows = 250           " bapimaxrow
*   it_product_type_range =     " comt_product_type_range_tab
*   it_product_id_range =       " comt_product_id_range_tab
*   iv_logsys =                 " comt_logsys
*   it_category_range =         " comt_pr_category_range_tab
*   iv_category_hierarchy =     " comt_hierarchy_guid
*   it_object_family_range =    " comt_pr_obj_fam_range_t
*   it_prshtext_range =         " comt_prshtext_range_tab
*   iv_langu = SY-LANGU         " spras
*   iv_read_description =       " xfeld
*   iv_read_category_pur =      " xfeld
*   iv_read_base_uom =          " xfeld
*   iv_read_order_uom =         " xfeld
*   iv_ignore_xnosearch =       " comt_product_xnosearch
*   it_category_guid_range =    " comt_category_guid_range_tab
  IMPORTING
    et_product =                " bbpt_product_selection_tab
  EXCEPTIONS
    NOT_FOUND = 1               "
    WRONG_CALL = 2              "
    .  "  BBP_PRODUCT_GETLIST

ABAP code example for Function Module BBP_PRODUCT_GETLIST





The ABAP code below is a full code listing to execute function module BBP_PRODUCT_GETLIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_et_product  TYPE BBPT_PRODUCT_SELECTION_TAB .

DATA(ld_iv_max_rows) = 'Check type of data required'.
DATA(ld_it_product_type_range) = 'Check type of data required'.
DATA(ld_it_product_id_range) = 'Check type of data required'.
DATA(ld_iv_logsys) = 'some text here'.
DATA(ld_it_category_range) = 'some text here'.
DATA(ld_iv_category_hierarchy) = 'some text here'.
DATA(ld_it_object_family_range) = 'some text here'.
DATA(ld_it_prshtext_range) = 'some text here'.
DATA(ld_iv_langu) = 'some text here'.
DATA(ld_iv_read_description) = 'some text here'.
DATA(ld_iv_read_category_pur) = 'some text here'.
DATA(ld_iv_read_base_uom) = 'some text here'.
DATA(ld_iv_read_order_uom) = 'some text here'.
DATA(ld_iv_ignore_xnosearch) = 'some text here'.
DATA(ld_it_category_guid_range) = 'some text here'. . CALL FUNCTION 'BBP_PRODUCT_GETLIST' * EXPORTING * iv_max_rows = ld_iv_max_rows * it_product_type_range = ld_it_product_type_range * it_product_id_range = ld_it_product_id_range * iv_logsys = ld_iv_logsys * it_category_range = ld_it_category_range * iv_category_hierarchy = ld_iv_category_hierarchy * it_object_family_range = ld_it_object_family_range * it_prshtext_range = ld_it_prshtext_range * iv_langu = ld_iv_langu * iv_read_description = ld_iv_read_description * iv_read_category_pur = ld_iv_read_category_pur * iv_read_base_uom = ld_iv_read_base_uom * iv_read_order_uom = ld_iv_read_order_uom * iv_ignore_xnosearch = ld_iv_ignore_xnosearch * it_category_guid_range = ld_it_category_guid_range IMPORTING et_product = ld_et_product EXCEPTIONS NOT_FOUND = 1 WRONG_CALL = 2 . " BBP_PRODUCT_GETLIST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_product  TYPE BBPT_PRODUCT_SELECTION_TAB ,
ld_iv_max_rows  TYPE BAPIMAXROW ,
ld_it_product_type_range  TYPE COMT_PRODUCT_TYPE_RANGE_TAB ,
ld_it_product_id_range  TYPE COMT_PRODUCT_ID_RANGE_TAB ,
ld_iv_logsys  TYPE COMT_LOGSYS ,
ld_it_category_range  TYPE COMT_PR_CATEGORY_RANGE_TAB ,
ld_iv_category_hierarchy  TYPE COMT_HIERARCHY_GUID ,
ld_it_object_family_range  TYPE COMT_PR_OBJ_FAM_RANGE_T ,
ld_it_prshtext_range  TYPE COMT_PRSHTEXT_RANGE_TAB ,
ld_iv_langu  TYPE SPRAS ,
ld_iv_read_description  TYPE XFELD ,
ld_iv_read_category_pur  TYPE XFELD ,
ld_iv_read_base_uom  TYPE XFELD ,
ld_iv_read_order_uom  TYPE XFELD ,
ld_iv_ignore_xnosearch  TYPE COMT_PRODUCT_XNOSEARCH ,
ld_it_category_guid_range  TYPE COMT_CATEGORY_GUID_RANGE_TAB .

ld_iv_max_rows = 'some text here'.
ld_it_product_type_range = 'some text here'.
ld_it_product_id_range = 'some text here'.
ld_iv_logsys = 'some text here'.
ld_it_category_range = 'some text here'.
ld_iv_category_hierarchy = 'some text here'.
ld_it_object_family_range = 'some text here'.
ld_it_prshtext_range = 'some text here'.
ld_iv_langu = 'some text here'.
ld_iv_read_description = 'some text here'.
ld_iv_read_category_pur = 'some text here'.
ld_iv_read_base_uom = 'some text here'.
ld_iv_read_order_uom = 'some text here'.
ld_iv_ignore_xnosearch = 'some text here'.
ld_it_category_guid_range = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_PRODUCT_GETLIST or its description.