SAP Function Modules

SAMPLE_INTERFACE_BOMBCS2S SAP Function module







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

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


Pattern for FM SAMPLE_INTERFACE_BOMBCS2S - SAMPLE INTERFACE BOMBCS2S





CALL FUNCTION 'SAMPLE_INTERFACE_BOMBCS2S' "
  EXPORTING
    i_bapicrmdh2 =              " bapicrmdh2
  TABLES
    ti_mast =                   " mast
    ti_eqst =                   " eqst
    ti_tpst =                   " tpst
    ti_stzu =                   " stzu
    ti_stko =                   " stko
    ti_stas =                   " stas
    ti_stpo =                   " stpo
    ti_deltop =                 " tabkeyop
    to_bapimtcsit =             " bapimtcs
    to_bapimtcs =               " bapimtcs
    .  "  SAMPLE_INTERFACE_BOMBCS2S

ABAP code example for Function Module SAMPLE_INTERFACE_BOMBCS2S





The ABAP code below is a full code listing to execute function module SAMPLE_INTERFACE_BOMBCS2S 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_ti_mast  TYPE STANDARD TABLE OF MAST,"TABLES PARAM
wa_ti_mast  LIKE LINE OF it_ti_mast ,
it_ti_eqst  TYPE STANDARD TABLE OF EQST,"TABLES PARAM
wa_ti_eqst  LIKE LINE OF it_ti_eqst ,
it_ti_tpst  TYPE STANDARD TABLE OF TPST,"TABLES PARAM
wa_ti_tpst  LIKE LINE OF it_ti_tpst ,
it_ti_stzu  TYPE STANDARD TABLE OF STZU,"TABLES PARAM
wa_ti_stzu  LIKE LINE OF it_ti_stzu ,
it_ti_stko  TYPE STANDARD TABLE OF STKO,"TABLES PARAM
wa_ti_stko  LIKE LINE OF it_ti_stko ,
it_ti_stas  TYPE STANDARD TABLE OF STAS,"TABLES PARAM
wa_ti_stas  LIKE LINE OF it_ti_stas ,
it_ti_stpo  TYPE STANDARD TABLE OF STPO,"TABLES PARAM
wa_ti_stpo  LIKE LINE OF it_ti_stpo ,
it_ti_deltop  TYPE STANDARD TABLE OF TABKEYOP,"TABLES PARAM
wa_ti_deltop  LIKE LINE OF it_ti_deltop ,
it_to_bapimtcsit  TYPE STANDARD TABLE OF BAPIMTCS,"TABLES PARAM
wa_to_bapimtcsit  LIKE LINE OF it_to_bapimtcsit ,
it_to_bapimtcs  TYPE STANDARD TABLE OF BAPIMTCS,"TABLES PARAM
wa_to_bapimtcs  LIKE LINE OF it_to_bapimtcs .

DATA(ld_i_bapicrmdh2) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ti_mast to it_ti_mast.

"populate fields of struture and append to itab
append wa_ti_eqst to it_ti_eqst.

"populate fields of struture and append to itab
append wa_ti_tpst to it_ti_tpst.

"populate fields of struture and append to itab
append wa_ti_stzu to it_ti_stzu.

"populate fields of struture and append to itab
append wa_ti_stko to it_ti_stko.

"populate fields of struture and append to itab
append wa_ti_stas to it_ti_stas.

"populate fields of struture and append to itab
append wa_ti_stpo to it_ti_stpo.

"populate fields of struture and append to itab
append wa_ti_deltop to it_ti_deltop.

"populate fields of struture and append to itab
append wa_to_bapimtcsit to it_to_bapimtcsit.

"populate fields of struture and append to itab
append wa_to_bapimtcs to it_to_bapimtcs. . CALL FUNCTION 'SAMPLE_INTERFACE_BOMBCS2S' EXPORTING i_bapicrmdh2 = ld_i_bapicrmdh2 TABLES ti_mast = it_ti_mast ti_eqst = it_ti_eqst ti_tpst = it_ti_tpst ti_stzu = it_ti_stzu ti_stko = it_ti_stko ti_stas = it_ti_stas ti_stpo = it_ti_stpo ti_deltop = it_ti_deltop to_bapimtcsit = it_to_bapimtcsit to_bapimtcs = it_to_bapimtcs . " SAMPLE_INTERFACE_BOMBCS2S
IF SY-SUBRC EQ 0. "All OK 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_i_bapicrmdh2  TYPE BAPICRMDH2 ,
it_ti_mast  TYPE STANDARD TABLE OF MAST ,
wa_ti_mast  LIKE LINE OF it_ti_mast,
it_ti_eqst  TYPE STANDARD TABLE OF EQST ,
wa_ti_eqst  LIKE LINE OF it_ti_eqst,
it_ti_tpst  TYPE STANDARD TABLE OF TPST ,
wa_ti_tpst  LIKE LINE OF it_ti_tpst,
it_ti_stzu  TYPE STANDARD TABLE OF STZU ,
wa_ti_stzu  LIKE LINE OF it_ti_stzu,
it_ti_stko  TYPE STANDARD TABLE OF STKO ,
wa_ti_stko  LIKE LINE OF it_ti_stko,
it_ti_stas  TYPE STANDARD TABLE OF STAS ,
wa_ti_stas  LIKE LINE OF it_ti_stas,
it_ti_stpo  TYPE STANDARD TABLE OF STPO ,
wa_ti_stpo  LIKE LINE OF it_ti_stpo,
it_ti_deltop  TYPE STANDARD TABLE OF TABKEYOP ,
wa_ti_deltop  LIKE LINE OF it_ti_deltop,
it_to_bapimtcsit  TYPE STANDARD TABLE OF BAPIMTCS ,
wa_to_bapimtcsit  LIKE LINE OF it_to_bapimtcsit,
it_to_bapimtcs  TYPE STANDARD TABLE OF BAPIMTCS ,
wa_to_bapimtcs  LIKE LINE OF it_to_bapimtcs.

ld_i_bapicrmdh2 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ti_mast to it_ti_mast.

"populate fields of struture and append to itab
append wa_ti_eqst to it_ti_eqst.

"populate fields of struture and append to itab
append wa_ti_tpst to it_ti_tpst.

"populate fields of struture and append to itab
append wa_ti_stzu to it_ti_stzu.

"populate fields of struture and append to itab
append wa_ti_stko to it_ti_stko.

"populate fields of struture and append to itab
append wa_ti_stas to it_ti_stas.

"populate fields of struture and append to itab
append wa_ti_stpo to it_ti_stpo.

"populate fields of struture and append to itab
append wa_ti_deltop to it_ti_deltop.

"populate fields of struture and append to itab
append wa_to_bapimtcsit to it_to_bapimtcsit.

"populate fields of struture and append to itab
append wa_to_bapimtcs to it_to_bapimtcs.

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