SAP Function Modules

ISM_PHASE_MODEL_SBR_INIT SAP Function module - Create Phase Model for Replenishment Planning







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

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


Pattern for FM ISM_PHASE_MODEL_SBR_INIT - ISM PHASE MODEL SBR INIT





CALL FUNCTION 'ISM_PHASE_MODEL_SBR_INIT' "Create Phase Model for Replenishment Planning
  EXPORTING
    im_mediaissue =             " ismmatnr_issue  Media Issue
    im_mediaproduct =           " ismmatnr_product  Media Product
    im_vkorg =                  " vkorg         Sales Organization
    im_vtweg =                  " vtweg         Distribution Channel
    im_spart =                  " spart         Division
*   im_planorg_tab =            " rjksd_planorg_range_tab  Table Entry for Planning Organization
*   im_timestructure_tab =      " rjksd_timestruct_tab  Range Table for J_TIMESTRUCT
    im_contract_tab =           " rjksecontrindex_tab  IS-M: Contract Items
    im_modelkind =              " jvphmodelkind  Model Type
    im_xtest =                  " xfeld         Checkbox Field
  IMPORTING
    ex_phasemdl_tab =           " rjksd_phasemdl_tab  Table Type for Phase Model
    ex_return_tab =             " bapiret2tab   IS-M: BAPIRET2 Table
    .  "  ISM_PHASE_MODEL_SBR_INIT

ABAP code example for Function Module ISM_PHASE_MODEL_SBR_INIT





The ABAP code below is a full code listing to execute function module ISM_PHASE_MODEL_SBR_INIT 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_ex_phasemdl_tab  TYPE RJKSD_PHASEMDL_TAB ,
ld_ex_return_tab  TYPE BAPIRET2TAB .

DATA(ld_im_mediaissue) = 'Check type of data required'.
DATA(ld_im_mediaproduct) = 'Check type of data required'.
DATA(ld_im_vkorg) = 'Check type of data required'.
DATA(ld_im_vtweg) = 'Check type of data required'.
DATA(ld_im_spart) = 'Check type of data required'.
DATA(ld_im_planorg_tab) = 'Check type of data required'.
DATA(ld_im_timestructure_tab) = 'Check type of data required'.
DATA(ld_im_contract_tab) = 'Check type of data required'.
DATA(ld_im_modelkind) = 'Check type of data required'.
DATA(ld_im_xtest) = 'Check type of data required'. . CALL FUNCTION 'ISM_PHASE_MODEL_SBR_INIT' EXPORTING im_mediaissue = ld_im_mediaissue im_mediaproduct = ld_im_mediaproduct im_vkorg = ld_im_vkorg im_vtweg = ld_im_vtweg im_spart = ld_im_spart * im_planorg_tab = ld_im_planorg_tab * im_timestructure_tab = ld_im_timestructure_tab im_contract_tab = ld_im_contract_tab im_modelkind = ld_im_modelkind im_xtest = ld_im_xtest IMPORTING ex_phasemdl_tab = ld_ex_phasemdl_tab ex_return_tab = ld_ex_return_tab . " ISM_PHASE_MODEL_SBR_INIT
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_ex_phasemdl_tab  TYPE RJKSD_PHASEMDL_TAB ,
ld_im_mediaissue  TYPE ISMMATNR_ISSUE ,
ld_ex_return_tab  TYPE BAPIRET2TAB ,
ld_im_mediaproduct  TYPE ISMMATNR_PRODUCT ,
ld_im_vkorg  TYPE VKORG ,
ld_im_vtweg  TYPE VTWEG ,
ld_im_spart  TYPE SPART ,
ld_im_planorg_tab  TYPE RJKSD_PLANORG_RANGE_TAB ,
ld_im_timestructure_tab  TYPE RJKSD_TIMESTRUCT_TAB ,
ld_im_contract_tab  TYPE RJKSECONTRINDEX_TAB ,
ld_im_modelkind  TYPE JVPHMODELKIND ,
ld_im_xtest  TYPE XFELD .

ld_im_mediaissue = 'Check type of data required'.
ld_im_mediaproduct = 'Check type of data required'.
ld_im_vkorg = 'Check type of data required'.
ld_im_vtweg = 'Check type of data required'.
ld_im_spart = 'Check type of data required'.
ld_im_planorg_tab = 'Check type of data required'.
ld_im_timestructure_tab = 'Check type of data required'.
ld_im_contract_tab = 'Check type of data required'.
ld_im_modelkind = 'Check type of data required'.
ld_im_xtest = '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_PHASE_MODEL_SBR_INIT or its description.