SAP Function Modules

ISU_S_MOVE_IN_DATE_CHANGE SAP Function module - INTERNAL: Change Move-In Date of a Move-In Document







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

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


Pattern for FM ISU_S_MOVE_IN_DATE_CHANGE - ISU S MOVE IN DATE CHANGE





CALL FUNCTION 'ISU_S_MOVE_IN_DATE_CHANGE' "INTERNAL: Change Move-In Date of a Move-In Document
  EXPORTING
    x_einzbeleg =               " eeinv-einzbeleg  Move-In Document
*   x_bezugsdat =               " bezugsdat
*   x_no_commit =               " regen-kennzx
*   x_save_and_reopen =         " regen-kennzx
*   x_no_message =              " kennzx
*   x_cch_expert_mode =         " regen-kennzx
*   x_upd_online =              " regen-upd_online
*   x_contr_ext =               " emi_contr_ext
*   x_auto =                    " isu06_movein_auto  Automation data
  IMPORTING
    y_db_update =               " regen-db_update
    y_changed =                 " isu06_mi_changed
    y_exit_type =               " regen-exit_type  Return Mode
    y_rc_planned_changes =      " sysubrc       Return Value, Return Value after ABAP Statements
    yt_emiballoghndl =          " emitballoghndl  Table for EMIBALLOGHNDL
* TABLES
*   tx_vertrag =                " isu06_mi_t_vertrag
*   ty_new_sm_orders =          " isu06_t_sm_orders
  EXCEPTIONS
    NOT_FOUND = 1               "               Object Not Found
    FOREIGN_LOCK = 2            "               Object is currently locked
    INTERNAL_ERROR = 3          "               Other
    INPUT_ERROR = 4             "               Input error
    ACTION_FAILED = 5           "               Could Not Execute Action
    NOT_AUTHORIZED = 6          "               You are not authorized to make changes
    DONT_DELETE_BBP = 7         "
    REVERSE_DOCS_NECESSARY = 8  "
    INTERNAL_CRM_ERROR = 9      "
    .  "  ISU_S_MOVE_IN_DATE_CHANGE

ABAP code example for Function Module ISU_S_MOVE_IN_DATE_CHANGE





The ABAP code below is a full code listing to execute function module ISU_S_MOVE_IN_DATE_CHANGE 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_y_db_update  TYPE REGEN-DB_UPDATE ,
ld_y_changed  TYPE ISU06_MI_CHANGED ,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
ld_y_rc_planned_changes  TYPE SYSUBRC ,
ld_yt_emiballoghndl  TYPE EMITBALLOGHNDL ,
it_tx_vertrag  TYPE STANDARD TABLE OF ISU06_MI_T_VERTRAG,"TABLES PARAM
wa_tx_vertrag  LIKE LINE OF it_tx_vertrag ,
it_ty_new_sm_orders  TYPE STANDARD TABLE OF ISU06_T_SM_ORDERS,"TABLES PARAM
wa_ty_new_sm_orders  LIKE LINE OF it_ty_new_sm_orders .


SELECT single EINZBELEG
FROM EEINV
INTO @DATA(ld_x_einzbeleg).

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

DATA(ld_x_no_commit) = some text here

DATA(ld_x_save_and_reopen) = some text here
DATA(ld_x_no_message) = 'Check type of data required'.

DATA(ld_x_cch_expert_mode) = some text here

DATA(ld_x_upd_online) = some text here
DATA(ld_x_contr_ext) = 'Check type of data required'.
DATA(ld_x_auto) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tx_vertrag to it_tx_vertrag.

"populate fields of struture and append to itab
append wa_ty_new_sm_orders to it_ty_new_sm_orders. . CALL FUNCTION 'ISU_S_MOVE_IN_DATE_CHANGE' EXPORTING x_einzbeleg = ld_x_einzbeleg * x_bezugsdat = ld_x_bezugsdat * x_no_commit = ld_x_no_commit * x_save_and_reopen = ld_x_save_and_reopen * x_no_message = ld_x_no_message * x_cch_expert_mode = ld_x_cch_expert_mode * x_upd_online = ld_x_upd_online * x_contr_ext = ld_x_contr_ext * x_auto = ld_x_auto IMPORTING y_db_update = ld_y_db_update y_changed = ld_y_changed y_exit_type = ld_y_exit_type y_rc_planned_changes = ld_y_rc_planned_changes yt_emiballoghndl = ld_yt_emiballoghndl * TABLES * tx_vertrag = it_tx_vertrag * ty_new_sm_orders = it_ty_new_sm_orders EXCEPTIONS NOT_FOUND = 1 FOREIGN_LOCK = 2 INTERNAL_ERROR = 3 INPUT_ERROR = 4 ACTION_FAILED = 5 NOT_AUTHORIZED = 6 DONT_DELETE_BBP = 7 REVERSE_DOCS_NECESSARY = 8 INTERNAL_CRM_ERROR = 9 . " ISU_S_MOVE_IN_DATE_CHANGE
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 ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "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_y_db_update  TYPE REGEN-DB_UPDATE ,
ld_x_einzbeleg  TYPE EEINV-EINZBELEG ,
it_tx_vertrag  TYPE STANDARD TABLE OF ISU06_MI_T_VERTRAG ,
wa_tx_vertrag  LIKE LINE OF it_tx_vertrag,
ld_y_changed  TYPE ISU06_MI_CHANGED ,
ld_x_bezugsdat  TYPE BEZUGSDAT ,
it_ty_new_sm_orders  TYPE STANDARD TABLE OF ISU06_T_SM_ORDERS ,
wa_ty_new_sm_orders  LIKE LINE OF it_ty_new_sm_orders,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
ld_x_no_commit  TYPE REGEN-KENNZX ,
ld_y_rc_planned_changes  TYPE SYSUBRC ,
ld_x_save_and_reopen  TYPE REGEN-KENNZX ,
ld_yt_emiballoghndl  TYPE EMITBALLOGHNDL ,
ld_x_no_message  TYPE KENNZX ,
ld_x_cch_expert_mode  TYPE REGEN-KENNZX ,
ld_x_upd_online  TYPE REGEN-UPD_ONLINE ,
ld_x_contr_ext  TYPE EMI_CONTR_EXT ,
ld_x_auto  TYPE ISU06_MOVEIN_AUTO .


SELECT single EINZBELEG
FROM EEINV
INTO ld_x_einzbeleg.


"populate fields of struture and append to itab
append wa_tx_vertrag to it_tx_vertrag.
ld_x_bezugsdat = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ty_new_sm_orders to it_ty_new_sm_orders.

ld_x_no_commit = some text here

ld_x_save_and_reopen = some text here
ld_x_no_message = 'Check type of data required'.

ld_x_cch_expert_mode = some text here

ld_x_upd_online = some text here
ld_x_contr_ext = 'Check type of data required'.
ld_x_auto = '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 ISU_S_MOVE_IN_DATE_CHANGE or its description.