SAP Function Modules

ISM_SALES_ORDER_TCODE_GET SAP Function module - Determine Transaction Code for Order Change







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

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


Pattern for FM ISM_SALES_ORDER_TCODE_GET - ISM SALES ORDER TCODE GET





CALL FUNCTION 'ISM_SALES_ORDER_TCODE_GET' "Determine Transaction Code for Order Change
  EXPORTING
*   vbeln =                     " jkak-vbeln    Publisher Sales Order
*   auart =                     " jkak-auart    IS-M/SD: Sales Document Types
*   trvog =                     " trvog_isp     Transaction Group for IS-M Order Processing
    trtyp =                     " trtyp         Transaction Type
  IMPORTING
    tcode =                     " sy-tcode      ABAP Program, Current Transaction Code
    memoryid_vbeln =            " memoryid      Set/Get Parameter ID
    memoryid_auart =            " memoryid      Set/Get Parameter ID
    .  "  ISM_SALES_ORDER_TCODE_GET

ABAP code example for Function Module ISM_SALES_ORDER_TCODE_GET





The ABAP code below is a full code listing to execute function module ISM_SALES_ORDER_TCODE_GET 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_tcode  TYPE SY-TCODE ,
ld_memoryid_vbeln  TYPE MEMORYID ,
ld_memoryid_auart  TYPE MEMORYID .


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


SELECT single AUART
FROM JKAK
INTO @DATA(ld_auart).

DATA(ld_trvog) = 'Check type of data required'.
DATA(ld_trtyp) = 'Check type of data required'. . CALL FUNCTION 'ISM_SALES_ORDER_TCODE_GET' EXPORTING * vbeln = ld_vbeln * auart = ld_auart * trvog = ld_trvog trtyp = ld_trtyp IMPORTING tcode = ld_tcode memoryid_vbeln = ld_memoryid_vbeln memoryid_auart = ld_memoryid_auart . " ISM_SALES_ORDER_TCODE_GET
IF SY-SUBRC EQ 0. "All OK 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_tcode  TYPE SY-TCODE ,
ld_vbeln  TYPE JKAK-VBELN ,
ld_memoryid_vbeln  TYPE MEMORYID ,
ld_auart  TYPE JKAK-AUART ,
ld_memoryid_auart  TYPE MEMORYID ,
ld_trvog  TYPE TRVOG_ISP ,
ld_trtyp  TYPE TRTYP .


SELECT single VBELN
FROM JKAK
INTO ld_vbeln.


SELECT single AUART
FROM JKAK
INTO ld_auart.

ld_trvog = 'Check type of data required'.
ld_trtyp = '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_TCODE_GET or its description.