SAP Function Modules

ISU_DISCDOC_BOL_CREATE_ORDER SAP Function module







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

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


Pattern for FM ISU_DISCDOC_BOL_CREATE_ORDER - ISU DISCDOC BOL CREATE ORDER





CALL FUNCTION 'ISU_DISCDOC_BOL_CREATE_ORDER' "
  EXPORTING
    x_discno =                  " discno        Disconnection document number
*   x_discact_key =             " eisu_il_md_ediscact_key  Key Disconnection Actions from CRM
    x_discacttyp =              " discacttyp    Disconnection Activity Category
*   x_discontime =              " ediscd-acttime  Time of a disconnection activity
*   x_discondate =              " ediscd-actdate  Date of a disconnection activity
*   x_billrel =                 " regen-kennzx  Relevant to Billing
*   x_notes =                   " text132       Text (length 132)
*   x_immediate_request =       " regen-kennzx
*   x_with_save =               " regen-kennzx
  IMPORTING
    y_discno =                  " discno        Disconnection document number
    yt_msg =                    " bapiret2_t    Return Table
* TABLES
*   xy_discobj =                " eisu_il_md_ediscobj  Screen Fields for Disconnection Document Objects
*   xy_discact =                " eisu_il_md_ediscact  Screen Fields for Disconnection Document Actions
    .  "  ISU_DISCDOC_BOL_CREATE_ORDER

ABAP code example for Function Module ISU_DISCDOC_BOL_CREATE_ORDER





The ABAP code below is a full code listing to execute function module ISU_DISCDOC_BOL_CREATE_ORDER 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_y_discno  TYPE DISCNO ,
ld_yt_msg  TYPE BAPIRET2_T ,
it_xy_discobj  TYPE STANDARD TABLE OF EISU_IL_MD_EDISCOBJ,"TABLES PARAM
wa_xy_discobj  LIKE LINE OF it_xy_discobj ,
it_xy_discact  TYPE STANDARD TABLE OF EISU_IL_MD_EDISCACT,"TABLES PARAM
wa_xy_discact  LIKE LINE OF it_xy_discact .

DATA(ld_x_discno) = 'Check type of data required'.
DATA(ld_x_discact_key) = 'Check type of data required'.
DATA(ld_x_discacttyp) = 'Check type of data required'.

DATA(ld_x_discontime) = Check type of data required

DATA(ld_x_discondate) = 20210129

DATA(ld_x_billrel) = some text here
DATA(ld_x_notes) = 'Check type of data required'.

DATA(ld_x_immediate_request) = some text here

DATA(ld_x_with_save) = some text here

"populate fields of struture and append to itab
append wa_xy_discobj to it_xy_discobj.

"populate fields of struture and append to itab
append wa_xy_discact to it_xy_discact. . CALL FUNCTION 'ISU_DISCDOC_BOL_CREATE_ORDER' EXPORTING x_discno = ld_x_discno * x_discact_key = ld_x_discact_key x_discacttyp = ld_x_discacttyp * x_discontime = ld_x_discontime * x_discondate = ld_x_discondate * x_billrel = ld_x_billrel * x_notes = ld_x_notes * x_immediate_request = ld_x_immediate_request * x_with_save = ld_x_with_save IMPORTING y_discno = ld_y_discno yt_msg = ld_yt_msg * TABLES * xy_discobj = it_xy_discobj * xy_discact = it_xy_discact . " ISU_DISCDOC_BOL_CREATE_ORDER
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_y_discno  TYPE DISCNO ,
ld_x_discno  TYPE DISCNO ,
it_xy_discobj  TYPE STANDARD TABLE OF EISU_IL_MD_EDISCOBJ ,
wa_xy_discobj  LIKE LINE OF it_xy_discobj,
ld_yt_msg  TYPE BAPIRET2_T ,
ld_x_discact_key  TYPE EISU_IL_MD_EDISCACT_KEY ,
it_xy_discact  TYPE STANDARD TABLE OF EISU_IL_MD_EDISCACT ,
wa_xy_discact  LIKE LINE OF it_xy_discact,
ld_x_discacttyp  TYPE DISCACTTYP ,
ld_x_discontime  TYPE EDISCD-ACTTIME ,
ld_x_discondate  TYPE EDISCD-ACTDATE ,
ld_x_billrel  TYPE REGEN-KENNZX ,
ld_x_notes  TYPE TEXT132 ,
ld_x_immediate_request  TYPE REGEN-KENNZX ,
ld_x_with_save  TYPE REGEN-KENNZX .

ld_x_discno = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xy_discobj to it_xy_discobj.
ld_x_discact_key = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xy_discact to it_xy_discact.
ld_x_discacttyp = 'Check type of data required'.

ld_x_discontime = Check type of data required

ld_x_discondate = 20210129

ld_x_billrel = some text here
ld_x_notes = 'Check type of data required'.

ld_x_immediate_request = some text here

ld_x_with_save = some text here

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