SAP Function Modules

ISM_BP_CREATE SAP Function module







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

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


Pattern for FM ISM_BP_CREATE - ISM BP CREATE





CALL FUNCTION 'ISM_BP_CREATE' "
* EXPORTING
*   pv_bukrs =                  " bukrs         Company Code
*   ps_sales_area =             " rjhvtber      Sales Area
*   pv_x_mc_new =               " ism_x_mc_new
*   pv_x_sc_new =               " ism_x_sc_new
*   pv_x_gen_bp_new =           " ism_x_gen_bp_new
*   pv_x_no_role_switch =       " ism_x_no_role_switch  IS-M: Role Change Not Possible
*   pv_bu_group =               " bu_group      Business Partner Grouping
*   pv_type = '1'               " bu_type       Business Partner Category
*   pv_bpkind =                 " bu_bpkind     Business Partner Type
*   pv_new_sa =                 " ism_xnew_sa_for_bp
*   pv_new_role =               " ism_xnew_role_for_bp
*   pv_kurst =                  " kurst         Exchange Rate Type
  IMPORTING
    pv_partner =                " bu_partner    Business Partner Number
* CHANGING
*   ps_search =                 " rjycic_search
  EXCEPTIONS
    BP_NOT_CREATED = 1          "               Business partner not created
    BP_CREATED = 2              "
    ERROR_OCCURED = 3           "
    IMPORT_PARAS_WRONG = 4      "
    .  "  ISM_BP_CREATE

ABAP code example for Function Module ISM_BP_CREATE





The ABAP code below is a full code listing to execute function module ISM_BP_CREATE 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_pv_partner  TYPE BU_PARTNER .

DATA(ld_ps_search) = 'Check type of data required'.
DATA(ld_pv_bukrs) = 'Check type of data required'.
DATA(ld_ps_sales_area) = 'Check type of data required'.
DATA(ld_pv_x_mc_new) = 'Check type of data required'.
DATA(ld_pv_x_sc_new) = 'Check type of data required'.
DATA(ld_pv_x_gen_bp_new) = 'Check type of data required'.
DATA(ld_pv_x_no_role_switch) = 'Check type of data required'.
DATA(ld_pv_bu_group) = 'Check type of data required'.
DATA(ld_pv_type) = 'Check type of data required'.
DATA(ld_pv_bpkind) = 'Check type of data required'.
DATA(ld_pv_new_sa) = 'Check type of data required'.
DATA(ld_pv_new_role) = 'Check type of data required'.
DATA(ld_pv_kurst) = 'Check type of data required'. . CALL FUNCTION 'ISM_BP_CREATE' * EXPORTING * pv_bukrs = ld_pv_bukrs * ps_sales_area = ld_ps_sales_area * pv_x_mc_new = ld_pv_x_mc_new * pv_x_sc_new = ld_pv_x_sc_new * pv_x_gen_bp_new = ld_pv_x_gen_bp_new * pv_x_no_role_switch = ld_pv_x_no_role_switch * pv_bu_group = ld_pv_bu_group * pv_type = ld_pv_type * pv_bpkind = ld_pv_bpkind * pv_new_sa = ld_pv_new_sa * pv_new_role = ld_pv_new_role * pv_kurst = ld_pv_kurst IMPORTING pv_partner = ld_pv_partner * CHANGING * ps_search = ld_ps_search EXCEPTIONS BP_NOT_CREATED = 1 BP_CREATED = 2 ERROR_OCCURED = 3 IMPORT_PARAS_WRONG = 4 . " ISM_BP_CREATE
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_ps_search  TYPE RJYCIC_SEARCH ,
ld_pv_partner  TYPE BU_PARTNER ,
ld_pv_bukrs  TYPE BUKRS ,
ld_ps_sales_area  TYPE RJHVTBER ,
ld_pv_x_mc_new  TYPE ISM_X_MC_NEW ,
ld_pv_x_sc_new  TYPE ISM_X_SC_NEW ,
ld_pv_x_gen_bp_new  TYPE ISM_X_GEN_BP_NEW ,
ld_pv_x_no_role_switch  TYPE ISM_X_NO_ROLE_SWITCH ,
ld_pv_bu_group  TYPE BU_GROUP ,
ld_pv_type  TYPE BU_TYPE ,
ld_pv_bpkind  TYPE BU_BPKIND ,
ld_pv_new_sa  TYPE ISM_XNEW_SA_FOR_BP ,
ld_pv_new_role  TYPE ISM_XNEW_ROLE_FOR_BP ,
ld_pv_kurst  TYPE KURST .

ld_ps_search = 'Check type of data required'.
ld_pv_bukrs = 'Check type of data required'.
ld_ps_sales_area = 'Check type of data required'.
ld_pv_x_mc_new = 'Check type of data required'.
ld_pv_x_sc_new = 'Check type of data required'.
ld_pv_x_gen_bp_new = 'Check type of data required'.
ld_pv_x_no_role_switch = 'Check type of data required'.
ld_pv_bu_group = 'Check type of data required'.
ld_pv_type = 'Check type of data required'.
ld_pv_bpkind = 'Check type of data required'.
ld_pv_new_sa = 'Check type of data required'.
ld_pv_new_role = 'Check type of data required'.
ld_pv_kurst = '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 ISM_BP_CREATE or its description.