SAP Function Modules

BBP_CF_AUTOMATIC SAP Function module







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

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


Pattern for FM BBP_CF_AUTOMATIC - BBP CF AUTOMATIC





CALL FUNCTION 'BBP_CF_AUTOMATIC' "
* EXPORTING
*   is_user_info =              " bbps_sel_user_info
*   is_ext_partner =            " bbp_pds_partner
  TABLES
    it_selection =              " bbps_object_key
*   it_confirm =                " bbp_cf_item_app
*   e_messages =                " bbp_pds_messages
  EXCEPTIONS
    DOC_LOCK = 1                "
    OTHER_ERROR = 2             "
    .  "  BBP_CF_AUTOMATIC

ABAP code example for Function Module BBP_CF_AUTOMATIC





The ABAP code below is a full code listing to execute function module BBP_CF_AUTOMATIC 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:
it_it_selection  TYPE STANDARD TABLE OF BBPS_OBJECT_KEY,"TABLES PARAM
wa_it_selection  LIKE LINE OF it_it_selection ,
it_it_confirm  TYPE STANDARD TABLE OF BBP_CF_ITEM_APP,"TABLES PARAM
wa_it_confirm  LIKE LINE OF it_it_confirm ,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_e_messages  LIKE LINE OF it_e_messages .

DATA(ld_is_user_info) = 'Check type of data required'.
DATA(ld_is_ext_partner) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_selection to it_it_selection.

"populate fields of struture and append to itab
append wa_it_confirm to it_it_confirm.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages. . CALL FUNCTION 'BBP_CF_AUTOMATIC' * EXPORTING * is_user_info = ld_is_user_info * is_ext_partner = ld_is_ext_partner TABLES it_selection = it_it_selection * it_confirm = it_it_confirm * e_messages = it_e_messages EXCEPTIONS DOC_LOCK = 1 OTHER_ERROR = 2 . " BBP_CF_AUTOMATIC
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_is_user_info  TYPE BBPS_SEL_USER_INFO ,
it_it_selection  TYPE STANDARD TABLE OF BBPS_OBJECT_KEY ,
wa_it_selection  LIKE LINE OF it_it_selection,
ld_is_ext_partner  TYPE BBP_PDS_PARTNER ,
it_it_confirm  TYPE STANDARD TABLE OF BBP_CF_ITEM_APP ,
wa_it_confirm  LIKE LINE OF it_it_confirm,
it_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_e_messages  LIKE LINE OF it_e_messages.

ld_is_user_info = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_selection to it_it_selection.
ld_is_ext_partner = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_confirm to it_it_confirm.

"populate fields of struture and append to itab
append wa_e_messages to it_e_messages.

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