SAP Function Modules

ISM_SD_RFC_GET_ORDER_DATA SAP Function module - IS-M: Generate Orders from Contract







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

Associated Function Group: JKSDORDER37
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ISM_SD_RFC_GET_ORDER_DATA - ISM SD RFC GET ORDER DATA





CALL FUNCTION 'ISM_SD_RFC_GET_ORDER_DATA' "IS-M: Generate Orders from Contract
  EXPORTING
    in_logid =                  " jksdprotocolhead-logid  Internal Number of Log in System
    in_phasemdl =               " jksddemand-phasemdl  Phase Model in Phase-Based Delivery
    in_phasenbr =               " jksddemand-phasenbr  Sequence Number in Phase-Based Delivery
    in_contract_tab =           " rjksecontrindex_tab  IS-M: Table Type for JKSECONTRINDEX
    in_copynumber =             " jksdunsolditem-copy_number  Copy Number of Media Issue
    in_doc_type_order =         " bapisdhd1-doc_type  Sales Document Type
    in_publdate =               " jksdunsolditem-publ_date  Publication Date
    in_wish_del_date =          " sy-datum      Requested Delivery Date
    in_x_use_as_delivery_date = ABAP_FALSE  " xfeld  Use Req. Delivery Date as Deliv. Date in Order Sched. Line?
    in_product_issue_tab =      " rjksd_product_issue_tab  Table Type for RJKSD_PRODUCT_ISSUE
    in_success_msg =            " xfeld         Checkbox Field
    in_testrun =                " xfeld         Checkbox Field
*   in_debug =                  " xfeld         Switch On Debugging Mode?
  IMPORTING
    order_tab =                 " rjksdcreateorder_tab  Table Type for RJKSDCREATEORDER_TAB
    .  "  ISM_SD_RFC_GET_ORDER_DATA

ABAP code example for Function Module ISM_SD_RFC_GET_ORDER_DATA





The ABAP code below is a full code listing to execute function module ISM_SD_RFC_GET_ORDER_DATA 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_order_tab  TYPE RJKSDCREATEORDER_TAB .


SELECT single LOGID
FROM JKSDPROTOCOLHEAD
INTO @DATA(ld_in_logid).


SELECT single PHASEMDL
FROM JKSDDEMAND
INTO @DATA(ld_in_phasemdl).


SELECT single PHASENBR
FROM JKSDDEMAND
INTO @DATA(ld_in_phasenbr).

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

SELECT single COPY_NUMBER
FROM JKSDUNSOLDITEM
INTO @DATA(ld_in_copynumber).


DATA(ld_in_doc_type_order) = some text here

SELECT single PUBL_DATE
FROM JKSDUNSOLDITEM
INTO @DATA(ld_in_publdate).

DATA(ld_in_wish_del_date) = '20210129'.
DATA(ld_in_x_use_as_delivery_date) = '20210129'.
DATA(ld_in_product_issue_tab) = '20210129'.
DATA(ld_in_success_msg) = '20210129'.
DATA(ld_in_testrun) = '20210129'.
DATA(ld_in_debug) = '20210129'. . CALL FUNCTION 'ISM_SD_RFC_GET_ORDER_DATA' EXPORTING in_logid = ld_in_logid in_phasemdl = ld_in_phasemdl in_phasenbr = ld_in_phasenbr in_contract_tab = ld_in_contract_tab in_copynumber = ld_in_copynumber in_doc_type_order = ld_in_doc_type_order in_publdate = ld_in_publdate in_wish_del_date = ld_in_wish_del_date in_x_use_as_delivery_date = ld_in_x_use_as_delivery_date in_product_issue_tab = ld_in_product_issue_tab in_success_msg = ld_in_success_msg in_testrun = ld_in_testrun * in_debug = ld_in_debug IMPORTING order_tab = ld_order_tab . " ISM_SD_RFC_GET_ORDER_DATA
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_order_tab  TYPE RJKSDCREATEORDER_TAB ,
ld_in_logid  TYPE JKSDPROTOCOLHEAD-LOGID ,
ld_in_phasemdl  TYPE JKSDDEMAND-PHASEMDL ,
ld_in_phasenbr  TYPE JKSDDEMAND-PHASENBR ,
ld_in_contract_tab  TYPE RJKSECONTRINDEX_TAB ,
ld_in_copynumber  TYPE JKSDUNSOLDITEM-COPY_NUMBER ,
ld_in_doc_type_order  TYPE BAPISDHD1-DOC_TYPE ,
ld_in_publdate  TYPE JKSDUNSOLDITEM-PUBL_DATE ,
ld_in_wish_del_date  TYPE SY-DATUM ,
ld_in_x_use_as_delivery_date  TYPE XFELD ,
ld_in_product_issue_tab  TYPE RJKSD_PRODUCT_ISSUE_TAB ,
ld_in_success_msg  TYPE XFELD ,
ld_in_testrun  TYPE XFELD ,
ld_in_debug  TYPE XFELD .


SELECT single LOGID
FROM JKSDPROTOCOLHEAD
INTO ld_in_logid.


SELECT single PHASEMDL
FROM JKSDDEMAND
INTO ld_in_phasemdl.


SELECT single PHASENBR
FROM JKSDDEMAND
INTO ld_in_phasenbr.

ld_in_contract_tab = '20210129'.

SELECT single COPY_NUMBER
FROM JKSDUNSOLDITEM
INTO ld_in_copynumber.


ld_in_doc_type_order = some text here

SELECT single PUBL_DATE
FROM JKSDUNSOLDITEM
INTO ld_in_publdate.

ld_in_wish_del_date = '20210129'.
ld_in_x_use_as_delivery_date = '20210129'.
ld_in_product_issue_tab = '20210129'.
ld_in_success_msg = '20210129'.
ld_in_testrun = '20210129'.
ld_in_debug = '20210129'.

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_SD_RFC_GET_ORDER_DATA or its description.