SAP ISU_DISCDOC_CREATE_ORDER Function Module for Private: Disconnection Document: Create Service Order









ISU_DISCDOC_CREATE_ORDER is a standard isu discdoc create order SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Private: Disconnection Document: Create Service Order processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for isu discdoc create order FM, simply by entering the name ISU_DISCDOC_CREATE_ORDER into the relevant SAP transaction such as SE37 or SE38.

Function Group: ES34ALLG
Program Name: SAPLES34ALLG
Main Program: SAPLES34ALLG
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISU_DISCDOC_CREATE_ORDER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISU_DISCDOC_CREATE_ORDER'"Private: Disconnection Document: Create Service Order
EXPORTING
X_ORDERCODE = "Order Code
X_REGIOGROUP = "Regional Structure Grouping
* X_DARKCONF = "Indicator
X_IWERK = "PM Planning Plant for Disconnection Order
X_KUNUM = "Customer Number
X_LANGU = "Language Key of Current Text Environment
X_ACTDAT = "Date and Time, Current (Application Server) Date
* X_ACTTIME = "Date and Time, Current Application Server Time
X_COMMIT = "
X_DISCACT = "Disconnection Activity Number
X_DISCNO = "Disconnection document number

IMPORTING
Y_ORDERNUM = "Order Number

TABLES
XT_EDISCOBJ = "Disconnection Document: Disconnection Object

EXCEPTIONS
ACTION_FAILED = 1
.



IMPORTING Parameters details for ISU_DISCDOC_CREATE_ORDER

X_ORDERCODE - Order Code

Data type: TEWOCODE-ORDER_CODE
Optional: No
Call by Reference: Yes

X_REGIOGROUP - Regional Structure Grouping

Data type: REGIOGROUP
Optional: No
Call by Reference: Yes

X_DARKCONF - Indicator

Data type: KENNZX
Optional: Yes
Call by Reference: Yes

X_IWERK - PM Planning Plant for Disconnection Order

Data type: EDISCVAR-ORD_WERK_D
Optional: No
Call by Reference: Yes

X_KUNUM - Customer Number

Data type: CAUFVD-KUNUM
Optional: No
Call by Reference: Yes

X_LANGU - Language Key of Current Text Environment

Data type: SY-LANGU
Optional: No
Call by Reference: Yes

X_ACTDAT - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

X_ACTTIME - Date and Time, Current Application Server Time

Data type: SY-UZEIT
Optional: Yes
Call by Reference: Yes

X_COMMIT -

Data type: EBAGEN-KENNZX
Optional: No
Call by Reference: Yes

X_DISCACT - Disconnection Activity Number

Data type: EDISCACT-DISCACT
Optional: No
Call by Reference: Yes

X_DISCNO - Disconnection document number

Data type: EDISCACT-DISCNO
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ISU_DISCDOC_CREATE_ORDER

Y_ORDERNUM - Order Number

Data type: EDISCACT-ORDERNUM
Optional: No
Call by Reference: Yes

TABLES Parameters details for ISU_DISCDOC_CREATE_ORDER

XT_EDISCOBJ - Disconnection Document: Disconnection Object

Data type: EDISCOBJ
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ACTION_FAILED - Could Not Execute Action

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISU_DISCDOC_CREATE_ORDER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_y_ordernum  TYPE EDISCACT-ORDERNUM, "   
lt_xt_ediscobj  TYPE STANDARD TABLE OF EDISCOBJ, "   
lv_x_ordercode  TYPE TEWOCODE-ORDER_CODE, "   
lv_action_failed  TYPE TEWOCODE, "   
lv_x_regiogroup  TYPE REGIOGROUP, "   
lv_x_darkconf  TYPE KENNZX, "   
lv_x_iwerk  TYPE EDISCVAR-ORD_WERK_D, "   
lv_x_kunum  TYPE CAUFVD-KUNUM, "   
lv_x_langu  TYPE SY-LANGU, "   
lv_x_actdat  TYPE SY-DATUM, "   
lv_x_acttime  TYPE SY-UZEIT, "   
lv_x_commit  TYPE EBAGEN-KENNZX, "   
lv_x_discact  TYPE EDISCACT-DISCACT, "   
lv_x_discno  TYPE EDISCACT-DISCNO. "   

  CALL FUNCTION 'ISU_DISCDOC_CREATE_ORDER'  "Private: Disconnection Document: Create Service Order
    EXPORTING
         X_ORDERCODE = lv_x_ordercode
         X_REGIOGROUP = lv_x_regiogroup
         X_DARKCONF = lv_x_darkconf
         X_IWERK = lv_x_iwerk
         X_KUNUM = lv_x_kunum
         X_LANGU = lv_x_langu
         X_ACTDAT = lv_x_actdat
         X_ACTTIME = lv_x_acttime
         X_COMMIT = lv_x_commit
         X_DISCACT = lv_x_discact
         X_DISCNO = lv_x_discno
    IMPORTING
         Y_ORDERNUM = lv_y_ordernum
    TABLES
         XT_EDISCOBJ = lt_xt_ediscobj
    EXCEPTIONS
        ACTION_FAILED = 1
. " ISU_DISCDOC_CREATE_ORDER




ABAP code using 7.40 inline data declarations to call FM ISU_DISCDOC_CREATE_ORDER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single ORDERNUM FROM EDISCACT INTO @DATA(ld_y_ordernum).
 
 
"SELECT single ORDER_CODE FROM TEWOCODE INTO @DATA(ld_x_ordercode).
 
 
 
 
"SELECT single ORD_WERK_D FROM EDISCVAR INTO @DATA(ld_x_iwerk).
 
"SELECT single KUNUM FROM CAUFVD INTO @DATA(ld_x_kunum).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_x_langu).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_x_actdat).
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_x_acttime).
 
"SELECT single KENNZX FROM EBAGEN INTO @DATA(ld_x_commit).
 
"SELECT single DISCACT FROM EDISCACT INTO @DATA(ld_x_discact).
 
"SELECT single DISCNO FROM EDISCACT INTO @DATA(ld_x_discno).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!