SAP Function Modules

ISM_IAC_VARIANT_RESTORE SAP Function module - IS-M/SD: Restore Direct Order Change by an IAC Variant







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

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


Pattern for FM ISM_IAC_VARIANT_RESTORE - ISM IAC VARIANT RESTORE





CALL FUNCTION 'ISM_IAC_VARIANT_RESTORE' "IS-M/SD: Restore Direct Order Change by an IAC Variant
  EXPORTING
    pv_iac_type =               " ism_iac_type  IS-M: Type of Change or Creation in IAC
    pv_key_iac =                " jwwwkey       IS-M: Key of IAC
    pv_date_suspend =           " ism_date_suspend  IS-M/SD: Date on which IAC Entry Suspended for Updates
    pv_time_suspend =           " ism_time_suspend  IS-M/SD: Time at which IAC Entry Suspended for Updates
*   pv_date_restore = SY-DATUM  " ism_date_restore  IS-M/SD: Date on which IAC Entry Updates Reactivated
*   pv_time_restore = SY-UZEIT  " ism_time_restore  IS-M/SD: Time at which IAC Entry Updates Reactivated
    pv_data_target =            " data_target   IS-M: Destination for Saving Internet Data
    pv_xdelete_sv =             " xfeld
  EXCEPTIONS
    VARIANT_UPDATE_ERROR = 1    "
    SUSP_VARIANT_UPDATE_ERROR = 2  "
    SUSP_VARIANT_DELETE_ERROR = 3  "
    .  "  ISM_IAC_VARIANT_RESTORE

ABAP code example for Function Module ISM_IAC_VARIANT_RESTORE





The ABAP code below is a full code listing to execute function module ISM_IAC_VARIANT_RESTORE 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_iac_type) = 'Check type of data required'.
DATA(ld_pv_key_iac) = 'Check type of data required'.
DATA(ld_pv_date_suspend) = 'Check type of data required'.
DATA(ld_pv_time_suspend) = 'Check type of data required'.
DATA(ld_pv_date_restore) = 'Check type of data required'.
DATA(ld_pv_time_restore) = 'Check type of data required'.
DATA(ld_pv_data_target) = 'Check type of data required'.
DATA(ld_pv_xdelete_sv) = 'Check type of data required'. . CALL FUNCTION 'ISM_IAC_VARIANT_RESTORE' EXPORTING pv_iac_type = ld_pv_iac_type pv_key_iac = ld_pv_key_iac pv_date_suspend = ld_pv_date_suspend pv_time_suspend = ld_pv_time_suspend * pv_date_restore = ld_pv_date_restore * pv_time_restore = ld_pv_time_restore pv_data_target = ld_pv_data_target pv_xdelete_sv = ld_pv_xdelete_sv EXCEPTIONS VARIANT_UPDATE_ERROR = 1 SUSP_VARIANT_UPDATE_ERROR = 2 SUSP_VARIANT_DELETE_ERROR = 3 . " ISM_IAC_VARIANT_RESTORE
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 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_pv_iac_type  TYPE ISM_IAC_TYPE ,
ld_pv_key_iac  TYPE JWWWKEY ,
ld_pv_date_suspend  TYPE ISM_DATE_SUSPEND ,
ld_pv_time_suspend  TYPE ISM_TIME_SUSPEND ,
ld_pv_date_restore  TYPE ISM_DATE_RESTORE ,
ld_pv_time_restore  TYPE ISM_TIME_RESTORE ,
ld_pv_data_target  TYPE DATA_TARGET ,
ld_pv_xdelete_sv  TYPE XFELD .

ld_pv_iac_type = 'Check type of data required'.
ld_pv_key_iac = 'Check type of data required'.
ld_pv_date_suspend = 'Check type of data required'.
ld_pv_time_suspend = 'Check type of data required'.
ld_pv_date_restore = 'Check type of data required'.
ld_pv_time_restore = 'Check type of data required'.
ld_pv_data_target = 'Check type of data required'.
ld_pv_xdelete_sv = '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_IAC_VARIANT_RESTORE or its description.