SAP Function Modules

ISM_SALES_ORDER_CHANGE SAP Function module - Change Sales Order







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

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


Pattern for FM ISM_SALES_ORDER_CHANGE - ISM SALES ORDER CHANGE





CALL FUNCTION 'ISM_SALES_ORDER_CHANGE' "Change Sales Order
  EXPORTING
    vbeln =                     " jkak-vbeln    Order Number
    posex =                     " jkap-posex    External Item Number
*   posnr =                     " jkap-posnr
    funktion =                  " rjkjk01-funktion  Function
*   xupdate_task = ' '          " jpsd_xfeld    Update Mode
*   xmessaging = 'X'            " jpsd_xfeld    Perform Output Determination
*   xtest = ' '                 " jpsd_xfeld    Test Run
*   jksi_suspend =              " jksi_suspend
*   jksi_cancel =               " jksi_cancel
*   jksi_storno =               " jksi_storno
*   jksi_address =              " jksi_address  Address structure
*   jksi_unbefr_aender =        " jksi_unbefr_aender
*   jksi_promotion =            " jksi_promotion
*   jksi_redirect =             " jksi_redirect
*   jksi_payment =              " jksi_payment
*   jksi_limit =                " jksi_limit
*   jksi_split =                " jksi_split
*   jksi_gift =                 " jksi_gift
*   jksi_charity =              " jksi_charity
*   jksi_uncancel = '   '       " jksi_uncancel
*   jksi_validity =             " jksi_validity
*   jksi_kgs_change =           " jksi_kgs_change
  IMPORTING
    cancel_date =               " jkkuend-liefendei
    ojkak =                     " jkakvb        Order Header
    posnr_new =                 " jkap-posnr
  EXCEPTIONS
    WRONG_DATA = 1              "               Incorrect data entered
    ERROR = 2                   "               Error Occurred During Processing
    .  "  ISM_SALES_ORDER_CHANGE

ABAP code example for Function Module ISM_SALES_ORDER_CHANGE





The ABAP code below is a full code listing to execute function module ISM_SALES_ORDER_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_cancel_date  TYPE JKKUEND-LIEFENDEI ,
ld_ojkak  TYPE JKAKVB ,
ld_posnr_new  TYPE JKAP-POSNR .


SELECT single VBELN
FROM JKAK
INTO @DATA(ld_vbeln).


SELECT single POSEX
FROM JKAP
INTO @DATA(ld_posex).


SELECT single POSNR
FROM JKAP
INTO @DATA(ld_posnr).


DATA(ld_funktion) = some text here
DATA(ld_xupdate_task) = 'Check type of data required'.
DATA(ld_xmessaging) = 'Check type of data required'.
DATA(ld_xtest) = 'Check type of data required'.
DATA(ld_jksi_suspend) = 'Check type of data required'.
DATA(ld_jksi_cancel) = 'Check type of data required'.
DATA(ld_jksi_storno) = 'Check type of data required'.
DATA(ld_jksi_address) = 'Check type of data required'.
DATA(ld_jksi_unbefr_aender) = 'Check type of data required'.
DATA(ld_jksi_promotion) = 'Check type of data required'.
DATA(ld_jksi_redirect) = 'Check type of data required'.
DATA(ld_jksi_payment) = 'Check type of data required'.
DATA(ld_jksi_limit) = 'Check type of data required'.
DATA(ld_jksi_split) = 'Check type of data required'.
DATA(ld_jksi_gift) = 'Check type of data required'.
DATA(ld_jksi_charity) = 'Check type of data required'.
DATA(ld_jksi_uncancel) = 'Check type of data required'.
DATA(ld_jksi_validity) = 'Check type of data required'.
DATA(ld_jksi_kgs_change) = 'Check type of data required'. . CALL FUNCTION 'ISM_SALES_ORDER_CHANGE' EXPORTING vbeln = ld_vbeln posex = ld_posex * posnr = ld_posnr funktion = ld_funktion * xupdate_task = ld_xupdate_task * xmessaging = ld_xmessaging * xtest = ld_xtest * jksi_suspend = ld_jksi_suspend * jksi_cancel = ld_jksi_cancel * jksi_storno = ld_jksi_storno * jksi_address = ld_jksi_address * jksi_unbefr_aender = ld_jksi_unbefr_aender * jksi_promotion = ld_jksi_promotion * jksi_redirect = ld_jksi_redirect * jksi_payment = ld_jksi_payment * jksi_limit = ld_jksi_limit * jksi_split = ld_jksi_split * jksi_gift = ld_jksi_gift * jksi_charity = ld_jksi_charity * jksi_uncancel = ld_jksi_uncancel * jksi_validity = ld_jksi_validity * jksi_kgs_change = ld_jksi_kgs_change IMPORTING cancel_date = ld_cancel_date ojkak = ld_ojkak posnr_new = ld_posnr_new EXCEPTIONS WRONG_DATA = 1 ERROR = 2 . " ISM_SALES_ORDER_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 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_cancel_date  TYPE JKKUEND-LIEFENDEI ,
ld_vbeln  TYPE JKAK-VBELN ,
ld_ojkak  TYPE JKAKVB ,
ld_posex  TYPE JKAP-POSEX ,
ld_posnr_new  TYPE JKAP-POSNR ,
ld_posnr  TYPE JKAP-POSNR ,
ld_funktion  TYPE RJKJK01-FUNKTION ,
ld_xupdate_task  TYPE JPSD_XFELD ,
ld_xmessaging  TYPE JPSD_XFELD ,
ld_xtest  TYPE JPSD_XFELD ,
ld_jksi_suspend  TYPE JKSI_SUSPEND ,
ld_jksi_cancel  TYPE JKSI_CANCEL ,
ld_jksi_storno  TYPE JKSI_STORNO ,
ld_jksi_address  TYPE JKSI_ADDRESS ,
ld_jksi_unbefr_aender  TYPE JKSI_UNBEFR_AENDER ,
ld_jksi_promotion  TYPE JKSI_PROMOTION ,
ld_jksi_redirect  TYPE JKSI_REDIRECT ,
ld_jksi_payment  TYPE JKSI_PAYMENT ,
ld_jksi_limit  TYPE JKSI_LIMIT ,
ld_jksi_split  TYPE JKSI_SPLIT ,
ld_jksi_gift  TYPE JKSI_GIFT ,
ld_jksi_charity  TYPE JKSI_CHARITY ,
ld_jksi_uncancel  TYPE JKSI_UNCANCEL ,
ld_jksi_validity  TYPE JKSI_VALIDITY ,
ld_jksi_kgs_change  TYPE JKSI_KGS_CHANGE .


SELECT single VBELN
FROM JKAK
INTO ld_vbeln.


SELECT single POSEX
FROM JKAP
INTO ld_posex.


SELECT single POSNR
FROM JKAP
INTO ld_posnr.


ld_funktion = some text here
ld_xupdate_task = 'Check type of data required'.
ld_xmessaging = 'Check type of data required'.
ld_xtest = 'Check type of data required'.
ld_jksi_suspend = 'Check type of data required'.
ld_jksi_cancel = 'Check type of data required'.
ld_jksi_storno = 'Check type of data required'.
ld_jksi_address = 'Check type of data required'.
ld_jksi_unbefr_aender = 'Check type of data required'.
ld_jksi_promotion = 'Check type of data required'.
ld_jksi_redirect = 'Check type of data required'.
ld_jksi_payment = 'Check type of data required'.
ld_jksi_limit = 'Check type of data required'.
ld_jksi_split = 'Check type of data required'.
ld_jksi_gift = 'Check type of data required'.
ld_jksi_charity = 'Check type of data required'.
ld_jksi_uncancel = 'Check type of data required'.
ld_jksi_validity = 'Check type of data required'.
ld_jksi_kgs_change = '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_SALES_ORDER_CHANGE or its description.