SAP Function Modules

BBP_CTR_APP_EVENT_HANDLER SAP Function module - FCODE Bearbeitung







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

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


Pattern for FM BBP_CTR_APP_EVENT_HANDLER - BBP CTR APP EVENT HANDLER





CALL FUNCTION 'BBP_CTR_APP_EVENT_HANDLER' "FCODE Bearbeitung
  EXPORTING
    iv_fcode =                  " syucomm       Bildschirmbilder, Funktionscode, der PAI ausgelöst hat
*   is_default =                " bbps_ctr_ui_default  Vorschlagswerte für Einkaufskontrakt
*   is_external_call =          " bbps_ctr_external_call  Externer Aufruf des Kontraktes aus PO, WF, etc.
    is_header =                 " bbps_ctr_ui_header  Kopfstruktur Einkaufskontrakt
*   is_status =                 " bbps_ctr_ui_status  Status Einkaufskontrakt
    is_item =                   " bbps_ctr_ui_item  Tabellentyp Position Einkaufskontrakt
    it_items =                  " bbpt_ctr_ui_item  Tabellentyp Position Einkaufskontrakt
    it_items_update =           " bbpt_ctr_ui_item  Tabellentyp Position Einkaufskontrakt
*   it_search_field_list =      " bbpt_sel_search_field_control  Übergabe der Feldliste an den Search-Screen
*   it_dist_update =            " bbpt_pd_dis   Kontrakt Verteilungsdaten
  IMPORTING
    ev_fcode =                  " syucomm       Bildschirmbilder, Funktionscode, der PAI ausgelöst hat
    es_header =                 " bbps_ctr_ui_header  Kopfstruktur Einkaufskontrakt
    es_item =                   " bbps_ctr_ui_item  Tabellentyp Position Einkaufskontrakt
    et_items =                  " bbpt_ctr_ui_item  Tabellentyp Position Einkaufskontrakt
    et_status =                 " bbpt_ctr_ui_status  Tabellentyp Status Einkaufskontrakt
    et_partners =               " bbpt_pd_partner  Tabellentyp Partner Einkaufskontrakt
    et_search_field_list =      " bbpt_sel_search_field_control  Übergabe der Feldliste an den Search-Screen
    et_text =                   " bbpt_pd_longtext  Langtexte
    et_attach =                 " bbpt_pds_att_t  KW-Anlagen inkl. Dokument
    et_call_off_list =          " bbpt_ctr_ui_call_off  Liste von Abrufbestellungen
    et_cuftable_h =             " bbpt_pds_hcf_ctr  Tabellenartige Kunden- und Solutionfelder am Kontraktkopf
    et_cuftable_i =             " bbpt_pds_icf_ctr  Tab. Kunden- und Solutionfelder an der Kontraktposition
    et_dist =                   " bbpt_ctr_ui_dis  Kontrakt Verteilungsdaten
* CHANGING
*   cs_global =                 " bbps_ctr_ui_global  Globaldaten Einkaufskontrakt
*   cs_inframe_catalog =        " bbps_inframe_catalog  Struktur zur Anzeige von Inframe-Katalogen
*   ct_messages =               " bbpt_pds_messages  Error Message for Procurement Document Methods
  EXCEPTIONS
    ERROR_OCCURRED = 1          "               Fehler aufgetreten
    AUTHORIZATION_ERROR = 2     "               Fehler in der Berechtigungsprüfung aufgetaucht
    .  "  BBP_CTR_APP_EVENT_HANDLER

ABAP code example for Function Module BBP_CTR_APP_EVENT_HANDLER





The ABAP code below is a full code listing to execute function module BBP_CTR_APP_EVENT_HANDLER 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_ev_fcode  TYPE SYUCOMM ,
ld_es_header  TYPE BBPS_CTR_UI_HEADER ,
ld_es_item  TYPE BBPS_CTR_UI_ITEM ,
ld_et_items  TYPE BBPT_CTR_UI_ITEM ,
ld_et_status  TYPE BBPT_CTR_UI_STATUS ,
ld_et_partners  TYPE BBPT_PD_PARTNER ,
ld_et_search_field_list  TYPE BBPT_SEL_SEARCH_FIELD_CONTROL ,
ld_et_text  TYPE BBPT_PD_LONGTEXT ,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
ld_et_call_off_list  TYPE BBPT_CTR_UI_CALL_OFF ,
ld_et_cuftable_h  TYPE BBPT_PDS_HCF_CTR ,
ld_et_cuftable_i  TYPE BBPT_PDS_ICF_CTR ,
ld_et_dist  TYPE BBPT_CTR_UI_DIS .

DATA(ld_cs_global) = 'Check type of data required'.
DATA(ld_cs_inframe_catalog) = 'Check type of data required'.
DATA(ld_ct_messages) = 'Check type of data required'.
DATA(ld_iv_fcode) = 'some text here'.
DATA(ld_is_default) = 'some text here'.
DATA(ld_is_external_call) = 'some text here'.
DATA(ld_is_header) = 'some text here'.
DATA(ld_is_status) = 'some text here'.
DATA(ld_is_item) = 'some text here'.
DATA(ld_it_items) = 'some text here'.
DATA(ld_it_items_update) = 'some text here'.
DATA(ld_it_search_field_list) = 'some text here'.
DATA(ld_it_dist_update) = 'some text here'. . CALL FUNCTION 'BBP_CTR_APP_EVENT_HANDLER' EXPORTING iv_fcode = ld_iv_fcode * is_default = ld_is_default * is_external_call = ld_is_external_call is_header = ld_is_header * is_status = ld_is_status is_item = ld_is_item it_items = ld_it_items it_items_update = ld_it_items_update * it_search_field_list = ld_it_search_field_list * it_dist_update = ld_it_dist_update IMPORTING ev_fcode = ld_ev_fcode es_header = ld_es_header es_item = ld_es_item et_items = ld_et_items et_status = ld_et_status et_partners = ld_et_partners et_search_field_list = ld_et_search_field_list et_text = ld_et_text et_attach = ld_et_attach et_call_off_list = ld_et_call_off_list et_cuftable_h = ld_et_cuftable_h et_cuftable_i = ld_et_cuftable_i et_dist = ld_et_dist * CHANGING * cs_global = ld_cs_global * cs_inframe_catalog = ld_cs_inframe_catalog * ct_messages = ld_ct_messages EXCEPTIONS ERROR_OCCURRED = 1 AUTHORIZATION_ERROR = 2 . " BBP_CTR_APP_EVENT_HANDLER
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_cs_global  TYPE BBPS_CTR_UI_GLOBAL ,
ld_ev_fcode  TYPE SYUCOMM ,
ld_iv_fcode  TYPE SYUCOMM ,
ld_cs_inframe_catalog  TYPE BBPS_INFRAME_CATALOG ,
ld_es_header  TYPE BBPS_CTR_UI_HEADER ,
ld_is_default  TYPE BBPS_CTR_UI_DEFAULT ,
ld_ct_messages  TYPE BBPT_PDS_MESSAGES ,
ld_es_item  TYPE BBPS_CTR_UI_ITEM ,
ld_is_external_call  TYPE BBPS_CTR_EXTERNAL_CALL ,
ld_et_items  TYPE BBPT_CTR_UI_ITEM ,
ld_is_header  TYPE BBPS_CTR_UI_HEADER ,
ld_et_status  TYPE BBPT_CTR_UI_STATUS ,
ld_is_status  TYPE BBPS_CTR_UI_STATUS ,
ld_et_partners  TYPE BBPT_PD_PARTNER ,
ld_is_item  TYPE BBPS_CTR_UI_ITEM ,
ld_et_search_field_list  TYPE BBPT_SEL_SEARCH_FIELD_CONTROL ,
ld_it_items  TYPE BBPT_CTR_UI_ITEM ,
ld_et_text  TYPE BBPT_PD_LONGTEXT ,
ld_it_items_update  TYPE BBPT_CTR_UI_ITEM ,
ld_it_search_field_list  TYPE BBPT_SEL_SEARCH_FIELD_CONTROL ,
ld_et_attach  TYPE BBPT_PDS_ATT_T ,
ld_it_dist_update  TYPE BBPT_PD_DIS ,
ld_et_call_off_list  TYPE BBPT_CTR_UI_CALL_OFF ,
ld_et_cuftable_h  TYPE BBPT_PDS_HCF_CTR ,
ld_et_cuftable_i  TYPE BBPT_PDS_ICF_CTR ,
ld_et_dist  TYPE BBPT_CTR_UI_DIS .

ld_cs_global = 'some text here'.
ld_iv_fcode = 'some text here'.
ld_cs_inframe_catalog = 'some text here'.
ld_is_default = 'some text here'.
ld_ct_messages = 'some text here'.
ld_is_external_call = 'some text here'.
ld_is_header = 'some text here'.
ld_is_status = 'some text here'.
ld_is_item = 'some text here'.
ld_it_items = 'some text here'.
ld_it_items_update = 'some text here'.
ld_it_search_field_list = 'some text here'.
ld_it_dist_update = '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_CTR_APP_EVENT_HANDLER or its description.