SAP Function Modules

BBP_PD_SOS_FIND SAP Function module







BBP_PD_SOS_FIND 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_PD_SOS_FIND into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM BBP_PD_SOS_FIND - BBP PD SOS FIND





CALL FUNCTION 'BBP_PD_SOS_FIND' "
  EXPORTING
*   iv_find_contract = 'X'      " flag
*   iv_find_interlinkage = 'X'  " flag
*   iv_find_avl =               " flag
*   iv_read_desc = SPACE        " flag
*   iv_read_price = 'X'         " flag
*   iv_read_avl_details = SPACE  " flag
*   iv_tolerant_search = SPACE  " flag
    it_search_criteria =        " bbpt_sos_find
  IMPORTING
    et_found_contracts =        " bbpt_sos_contracts
    et_found_interlinkages =    " bbpt_sos_interlinkages
    et_found_avl =              " bbpt_sos_avl
    et_messages =               " bbpt_messages
    et_cust_messages =          " bbpt_pd_messages
  EXCEPTIONS
    NO_SEARCH_CRITERIA = 1      "
    NO_COMPANY = 2              "
    .  "  BBP_PD_SOS_FIND

ABAP code example for Function Module BBP_PD_SOS_FIND





The ABAP code below is a full code listing to execute function module BBP_PD_SOS_FIND 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_found_contracts  TYPE BBPT_SOS_CONTRACTS ,
ld_et_found_interlinkages  TYPE BBPT_SOS_INTERLINKAGES ,
ld_et_found_avl  TYPE BBPT_SOS_AVL ,
ld_et_messages  TYPE BBPT_MESSAGES ,
ld_et_cust_messages  TYPE BBPT_PD_MESSAGES .

DATA(ld_iv_find_contract) = 'Check type of data required'.
DATA(ld_iv_find_interlinkage) = 'Check type of data required'.
DATA(ld_iv_find_avl) = 'Check type of data required'.
DATA(ld_iv_read_desc) = 'Check type of data required'.
DATA(ld_iv_read_price) = 'Check type of data required'.
DATA(ld_iv_read_avl_details) = 'Check type of data required'.
DATA(ld_iv_tolerant_search) = 'Check type of data required'.
DATA(ld_it_search_criteria) = 'Check type of data required'. . CALL FUNCTION 'BBP_PD_SOS_FIND' EXPORTING * iv_find_contract = ld_iv_find_contract * iv_find_interlinkage = ld_iv_find_interlinkage * iv_find_avl = ld_iv_find_avl * iv_read_desc = ld_iv_read_desc * iv_read_price = ld_iv_read_price * iv_read_avl_details = ld_iv_read_avl_details * iv_tolerant_search = ld_iv_tolerant_search it_search_criteria = ld_it_search_criteria IMPORTING et_found_contracts = ld_et_found_contracts et_found_interlinkages = ld_et_found_interlinkages et_found_avl = ld_et_found_avl et_messages = ld_et_messages et_cust_messages = ld_et_cust_messages EXCEPTIONS NO_SEARCH_CRITERIA = 1 NO_COMPANY = 2 . " BBP_PD_SOS_FIND
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_found_contracts  TYPE BBPT_SOS_CONTRACTS ,
ld_iv_find_contract  TYPE FLAG ,
ld_et_found_interlinkages  TYPE BBPT_SOS_INTERLINKAGES ,
ld_iv_find_interlinkage  TYPE FLAG ,
ld_et_found_avl  TYPE BBPT_SOS_AVL ,
ld_iv_find_avl  TYPE FLAG ,
ld_et_messages  TYPE BBPT_MESSAGES ,
ld_iv_read_desc  TYPE FLAG ,
ld_et_cust_messages  TYPE BBPT_PD_MESSAGES ,
ld_iv_read_price  TYPE FLAG ,
ld_iv_read_avl_details  TYPE FLAG ,
ld_iv_tolerant_search  TYPE FLAG ,
ld_it_search_criteria  TYPE BBPT_SOS_FIND .

ld_iv_find_contract = 'Check type of data required'.
ld_iv_find_interlinkage = 'Check type of data required'.
ld_iv_find_avl = 'Check type of data required'.
ld_iv_read_desc = 'Check type of data required'.
ld_iv_read_price = 'Check type of data required'.
ld_iv_read_avl_details = 'Check type of data required'.
ld_iv_tolerant_search = 'Check type of data required'.
ld_it_search_criteria = 'Check type of data required'.

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