SAP Function Modules

ISU_S_MOVE_OUT_CREATE SAP Function module - INTERNAL: Create Move-Out Document







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

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


Pattern for FM ISU_S_MOVE_OUT_CREATE - ISU S MOVE OUT CREATE





CALL FUNCTION 'ISU_S_MOVE_OUT_CREATE' "INTERNAL: Create Move-Out Document
* EXPORTING
*   x_auszbeleg = SPACE         " eaus-auszbeleg
*   x_upd_online = 'X'          " regen-upd_online
*   x_no_dialog = SPACE         " regen-no_dialog
*   x_suppress_dialog = SPACE   " regen-no_dialog
*   x_auto =                    " isu06_moveout_auto
*   x_auto_bapi =               " isu06_moveout_bapi_auto
*   x_no_other = SPACE          " regen-no_other
*   x_supplier_switch = SPACE   " regen-kennzx  Change of supplier
*   x_sswtcreason = SPACE       " eaus-sswtcreason
*   x_frommovein = SPACE        " regen-kennzx
*   x_no_commit = SPACE         " regen-kennzx
*   x_obj =                     " isu06_moveout
*   x_obja =                    " isu03_account
*   x_objp =                    " isu01_partner
*   x_objs =                    " isu06_objs
*   x_contr_ext = SPACE         " isu06_mo_contr_ext  Tax Data
  IMPORTING
    y_db_update =               " regen-db_update
    y_exit_type =               " regen-exit_type  Return Mode
    y_curfield =                " eeno_gen-feldname
    y_curline =                 " sy-lilli
    y_curdynnr =                " sy-dynnr
    y_new_eaus =                " eaus          New Record
    y_intlog =                  " cl_ezlog      Message Management (Specific/Individual)
  TABLES
    tx_vertrag =                " isu06_mo_t_vertrag
*   tx_objc =                   " isu06_t_objc
*   tx_obji =                   " isu06_t_obji
*   ty_new_eausv =              " isu06_t_eausv
*   ty_new_sm_orders =          " isu06_t_sm_orders
*   ty_emsg =                   " isu06_objs-subobj-iemsg
  EXCEPTIONS
    EXISTING = 1                "
    FOREIGN_LOCK = 2            "
    NUMBER_ERROR = 3            "               Error in number assignment
    GENERAL_FAULT = 4           "               Other
    INVALID_KEY = 5             "
    PARAM_ERROR = 6             "
    INPUT_ERROR = 7             "               Error in Data Entry Check (Background)
    NOT_AUTHORIZED = 8          "
    ACTION_FAILED = 9           "
    BILLED = 10                 "
    .  "  ISU_S_MOVE_OUT_CREATE

ABAP code example for Function Module ISU_S_MOVE_OUT_CREATE





The ABAP code below is a full code listing to execute function module ISU_S_MOVE_OUT_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_y_db_update  TYPE REGEN-DB_UPDATE ,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
ld_y_curfield  TYPE EENO_GEN-FELDNAME ,
ld_y_curline  TYPE SY-LILLI ,
ld_y_curdynnr  TYPE SY-DYNNR ,
ld_y_new_eaus  TYPE EAUS ,
ld_y_intlog  TYPE CL_EZLOG ,
it_tx_vertrag  TYPE STANDARD TABLE OF ISU06_MO_T_VERTRAG,"TABLES PARAM
wa_tx_vertrag  LIKE LINE OF it_tx_vertrag ,
it_tx_objc  TYPE STANDARD TABLE OF ISU06_T_OBJC,"TABLES PARAM
wa_tx_objc  LIKE LINE OF it_tx_objc ,
it_tx_obji  TYPE STANDARD TABLE OF ISU06_T_OBJI,"TABLES PARAM
wa_tx_obji  LIKE LINE OF it_tx_obji ,
it_ty_new_eausv  TYPE STANDARD TABLE OF ISU06_T_EAUSV,"TABLES PARAM
wa_ty_new_eausv  LIKE LINE OF it_ty_new_eausv ,
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 ,
it_ty_emsg  TYPE STANDARD TABLE OF ISU06_OBJS-SUBOBJ-IEMSG,"TABLES PARAM
wa_ty_emsg  LIKE LINE OF it_ty_emsg .


SELECT single AUSZBELEG
FROM EAUS
INTO @DATA(ld_x_auszbeleg).


DATA(ld_x_upd_online) = some text here

DATA(ld_x_no_dialog) = some text here

DATA(ld_x_suppress_dialog) = some text here
DATA(ld_x_auto) = 'Check type of data required'.
DATA(ld_x_auto_bapi) = 'Check type of data required'.

DATA(ld_x_no_other) = some text here

DATA(ld_x_supplier_switch) = some text here

SELECT single SSWTCREASON
FROM EAUS
INTO @DATA(ld_x_sswtcreason).


DATA(ld_x_frommovein) = some text here

DATA(ld_x_no_commit) = some text here
DATA(ld_x_obj) = 'Check type of data required'.
DATA(ld_x_obja) = 'Check type of data required'.
DATA(ld_x_objp) = 'Check type of data required'.
DATA(ld_x_objs) = 'Check type of data required'.
DATA(ld_x_contr_ext) = '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_tx_objc to it_tx_objc.

"populate fields of struture and append to itab
append wa_tx_obji to it_tx_obji.

"populate fields of struture and append to itab
append wa_ty_new_eausv to it_ty_new_eausv.

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

"populate fields of struture and append to itab
append wa_ty_emsg to it_ty_emsg. . CALL FUNCTION 'ISU_S_MOVE_OUT_CREATE' * EXPORTING * x_auszbeleg = ld_x_auszbeleg * x_upd_online = ld_x_upd_online * x_no_dialog = ld_x_no_dialog * x_suppress_dialog = ld_x_suppress_dialog * x_auto = ld_x_auto * x_auto_bapi = ld_x_auto_bapi * x_no_other = ld_x_no_other * x_supplier_switch = ld_x_supplier_switch * x_sswtcreason = ld_x_sswtcreason * x_frommovein = ld_x_frommovein * x_no_commit = ld_x_no_commit * x_obj = ld_x_obj * x_obja = ld_x_obja * x_objp = ld_x_objp * x_objs = ld_x_objs * x_contr_ext = ld_x_contr_ext IMPORTING y_db_update = ld_y_db_update y_exit_type = ld_y_exit_type y_curfield = ld_y_curfield y_curline = ld_y_curline y_curdynnr = ld_y_curdynnr y_new_eaus = ld_y_new_eaus y_intlog = ld_y_intlog TABLES tx_vertrag = it_tx_vertrag * tx_objc = it_tx_objc * tx_obji = it_tx_obji * ty_new_eausv = it_ty_new_eausv * ty_new_sm_orders = it_ty_new_sm_orders * ty_emsg = it_ty_emsg EXCEPTIONS EXISTING = 1 FOREIGN_LOCK = 2 NUMBER_ERROR = 3 GENERAL_FAULT = 4 INVALID_KEY = 5 PARAM_ERROR = 6 INPUT_ERROR = 7 NOT_AUTHORIZED = 8 ACTION_FAILED = 9 BILLED = 10 . " ISU_S_MOVE_OUT_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 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 ELSEIF SY-SUBRC EQ 10. "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 ,
it_tx_vertrag  TYPE STANDARD TABLE OF ISU06_MO_T_VERTRAG ,
wa_tx_vertrag  LIKE LINE OF it_tx_vertrag,
ld_x_auszbeleg  TYPE EAUS-AUSZBELEG ,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
it_tx_objc  TYPE STANDARD TABLE OF ISU06_T_OBJC ,
wa_tx_objc  LIKE LINE OF it_tx_objc,
ld_x_upd_online  TYPE REGEN-UPD_ONLINE ,
ld_y_curfield  TYPE EENO_GEN-FELDNAME ,
ld_x_no_dialog  TYPE REGEN-NO_DIALOG ,
it_tx_obji  TYPE STANDARD TABLE OF ISU06_T_OBJI ,
wa_tx_obji  LIKE LINE OF it_tx_obji,
ld_y_curline  TYPE SY-LILLI ,
it_ty_new_eausv  TYPE STANDARD TABLE OF ISU06_T_EAUSV ,
wa_ty_new_eausv  LIKE LINE OF it_ty_new_eausv,
ld_x_suppress_dialog  TYPE REGEN-NO_DIALOG ,
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_x_auto  TYPE ISU06_MOVEOUT_AUTO ,
ld_y_curdynnr  TYPE SY-DYNNR ,
it_ty_emsg  TYPE STANDARD TABLE OF ISU06_OBJS-SUBOBJ-IEMSG ,
wa_ty_emsg  LIKE LINE OF it_ty_emsg,
ld_x_auto_bapi  TYPE ISU06_MOVEOUT_BAPI_AUTO ,
ld_y_new_eaus  TYPE EAUS ,
ld_x_no_other  TYPE REGEN-NO_OTHER ,
ld_y_intlog  TYPE CL_EZLOG ,
ld_x_supplier_switch  TYPE REGEN-KENNZX ,
ld_x_sswtcreason  TYPE EAUS-SSWTCREASON ,
ld_x_frommovein  TYPE REGEN-KENNZX ,
ld_x_no_commit  TYPE REGEN-KENNZX ,
ld_x_obj  TYPE ISU06_MOVEOUT ,
ld_x_obja  TYPE ISU03_ACCOUNT ,
ld_x_objp  TYPE ISU01_PARTNER ,
ld_x_objs  TYPE ISU06_OBJS ,
ld_x_contr_ext  TYPE ISU06_MO_CONTR_EXT .


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

SELECT single AUSZBELEG
FROM EAUS
INTO ld_x_auszbeleg.


"populate fields of struture and append to itab
append wa_tx_objc to it_tx_objc.

ld_x_upd_online = some text here

ld_x_no_dialog = some text here

"populate fields of struture and append to itab
append wa_tx_obji to it_tx_obji.

"populate fields of struture and append to itab
append wa_ty_new_eausv to it_ty_new_eausv.

ld_x_suppress_dialog = some text here

"populate fields of struture and append to itab
append wa_ty_new_sm_orders to it_ty_new_sm_orders.
ld_x_auto = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ty_emsg to it_ty_emsg.
ld_x_auto_bapi = 'Check type of data required'.

ld_x_no_other = some text here

ld_x_supplier_switch = some text here

SELECT single SSWTCREASON
FROM EAUS
INTO ld_x_sswtcreason.


ld_x_frommovein = some text here

ld_x_no_commit = some text here
ld_x_obj = 'Check type of data required'.
ld_x_obja = 'Check type of data required'.
ld_x_objp = 'Check type of data required'.
ld_x_objs = 'Check type of data required'.
ld_x_contr_ext = '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_OUT_CREATE or its description.