SAP ISU_DISCDOC_BOL_CREATE_DISCDOC Function Module for









ISU_DISCDOC_BOL_CREATE_DISCDOC is a standard isu discdoc bol create discdoc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bol create discdoc FM, simply by entering the name ISU_DISCDOC_BOL_CREATE_DISCDOC into the relevant SAP transaction such as SE37 or SE38.

Function Group: EDCN
Program Name: SAPLEDCN
Main Program: SAPLEDCN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ISU_DISCDOC_BOL_CREATE_DISCDOC 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_BOL_CREATE_DISCDOC'"
EXPORTING
* X_BP = "Business Partner Number
* X_OBJECTTYPE = "Object Category
* X_OBJECTKEY = "Object Key
* X_BUAG = "Contract Account Number
* X_CONTRACT = "Contract
* X_INSTLN = "Installation
* X_PREMISE = "Premise
* X_POD = "Internal Key for Point of Delivery
* X_DEVICE = "Equipment Number
* X_CONNOBJ = "Connection Object
* X_DISCREASON = "Disconnection reason

IMPORTING
Y_DISCNO = "Disconnection document number
YT_MSG = "Return Table

EXCEPTIONS
INPUT_ERROR = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLEDCN_001 User Exit for Determining Processsing Variants for Disconnection Document
EXIT_SAPLEDCN_002 Uer exit for user-defined authorization check in disconnection document
EXIT_SAPLEDCN_003 USer Exit for Determining Contract for Disconnection Charges

IMPORTING Parameters details for ISU_DISCDOC_BOL_CREATE_DISCDOC

X_BP - Business Partner Number

Data type: BU_PARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_OBJECTTYPE - Object Category

Data type: OJ_NAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_OBJECTKEY - Object Key

Data type: SWO_TYPEID
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_BUAG - Contract Account Number

Data type: VKONT_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CONTRACT - Contract

Data type: VERTRAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INSTLN - Installation

Data type: ANLAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_PREMISE - Premise

Data type: VSTELLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_POD - Internal Key for Point of Delivery

Data type: EXT_UI
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_DEVICE - Equipment Number

Data type: EQUNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CONNOBJ - Connection Object

Data type: HAUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_DISCREASON - Disconnection reason

Data type: DISCREASON
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISU_DISCDOC_BOL_CREATE_DISCDOC

Y_DISCNO - Disconnection document number

Data type: DISCNO
Optional: No
Call by Reference: No ( called with pass by value option)

YT_MSG - Return Table

Data type: BAPIRET2_T
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INPUT_ERROR - input_error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISU_DISCDOC_BOL_CREATE_DISCDOC 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_x_bp  TYPE BU_PARTNER, "   
lv_y_discno  TYPE DISCNO, "   
lv_input_error  TYPE DISCNO, "   
lv_x_objecttype  TYPE OJ_NAME, "   
lv_x_objectkey  TYPE SWO_TYPEID, "   
lv_x_buag  TYPE VKONT_KK, "   
lv_yt_msg  TYPE BAPIRET2_T, "   
lv_x_contract  TYPE VERTRAG, "   
lv_x_instln  TYPE ANLAGE, "   
lv_x_premise  TYPE VSTELLE, "   
lv_x_pod  TYPE EXT_UI, "   
lv_x_device  TYPE EQUNR, "   
lv_x_connobj  TYPE HAUS, "   
lv_x_discreason  TYPE DISCREASON. "   

  CALL FUNCTION 'ISU_DISCDOC_BOL_CREATE_DISCDOC'  "
    EXPORTING
         X_BP = lv_x_bp
         X_OBJECTTYPE = lv_x_objecttype
         X_OBJECTKEY = lv_x_objectkey
         X_BUAG = lv_x_buag
         X_CONTRACT = lv_x_contract
         X_INSTLN = lv_x_instln
         X_PREMISE = lv_x_premise
         X_POD = lv_x_pod
         X_DEVICE = lv_x_device
         X_CONNOBJ = lv_x_connobj
         X_DISCREASON = lv_x_discreason
    IMPORTING
         Y_DISCNO = lv_y_discno
         YT_MSG = lv_yt_msg
    EXCEPTIONS
        INPUT_ERROR = 1
. " ISU_DISCDOC_BOL_CREATE_DISCDOC




ABAP code using 7.40 inline data declarations to call FM ISU_DISCDOC_BOL_CREATE_DISCDOC

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!