SAP Function Modules

ISU_MIG_SP_MASTERDATA SAP Function module - Migration Module for Service Provider Header and Historical Data







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

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


Pattern for FM ISU_MIG_SP_MASTERDATA - ISU MIG SP MASTERDATA





CALL FUNCTION 'ISU_MIG_SP_MASTERDATA' "Migration Module for Service Provider Header and Historical Data
  EXPORTING
    x_auto_headdata =           " eedmideservprov_auto_headdata  Automation Data Service Provider
    x_wmode =                   " regen-wmode   Processing Mode (1 = Display, 2 = Change, 3 = Create...)
    x_raise_exc =               " kennzx        Indicator
  TABLES
*   xt_auto_histdata =          " eedmideservprov_auto_histdata  Service Provider Auto Historical Data
    return =                    " bapiret2      Return Parameter(s)
*   xt_auto_service_data =      " eedmideservprov_auto_servdata  Service Provider Auto Header for Non-Billable Services
  EXCEPTIONS
    INVALID_WMODE = 1           "
    NOT_FOUND = 2               "
    INPUT_ERROR = 3             "
    GENERAL_FAULT = 4           "
    .  "  ISU_MIG_SP_MASTERDATA

ABAP code example for Function Module ISU_MIG_SP_MASTERDATA





The ABAP code below is a full code listing to execute function module ISU_MIG_SP_MASTERDATA 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_xt_auto_histdata  TYPE STANDARD TABLE OF EEDMIDESERVPROV_AUTO_HISTDATA,"TABLES PARAM
wa_xt_auto_histdata  LIKE LINE OF it_xt_auto_histdata ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_xt_auto_service_data  TYPE STANDARD TABLE OF EEDMIDESERVPROV_AUTO_SERVDATA,"TABLES PARAM
wa_xt_auto_service_data  LIKE LINE OF it_xt_auto_service_data .

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

DATA(ld_x_wmode) = some text here
DATA(ld_x_raise_exc) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_auto_histdata to it_xt_auto_histdata.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_xt_auto_service_data to it_xt_auto_service_data. . CALL FUNCTION 'ISU_MIG_SP_MASTERDATA' EXPORTING x_auto_headdata = ld_x_auto_headdata x_wmode = ld_x_wmode x_raise_exc = ld_x_raise_exc TABLES * xt_auto_histdata = it_xt_auto_histdata return = it_return * xt_auto_service_data = it_xt_auto_service_data EXCEPTIONS INVALID_WMODE = 1 NOT_FOUND = 2 INPUT_ERROR = 3 GENERAL_FAULT = 4 . " ISU_MIG_SP_MASTERDATA
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_x_auto_headdata  TYPE EEDMIDESERVPROV_AUTO_HEADDATA ,
it_xt_auto_histdata  TYPE STANDARD TABLE OF EEDMIDESERVPROV_AUTO_HISTDATA ,
wa_xt_auto_histdata  LIKE LINE OF it_xt_auto_histdata,
ld_x_wmode  TYPE REGEN-WMODE ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_x_raise_exc  TYPE KENNZX ,
it_xt_auto_service_data  TYPE STANDARD TABLE OF EEDMIDESERVPROV_AUTO_SERVDATA ,
wa_xt_auto_service_data  LIKE LINE OF it_xt_auto_service_data.

ld_x_auto_headdata = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_auto_histdata to it_xt_auto_histdata.

ld_x_wmode = some text here

"populate fields of struture and append to itab
append wa_return to it_return.
ld_x_raise_exc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_auto_service_data to it_xt_auto_service_data.

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