SAP Function Modules

CO_DT_DTAB_CREATE SAP Function module - CIM order







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

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


Pattern for FM CO_DT_DTAB_CREATE - CO DT DTAB CREATE





CALL FUNCTION 'CO_DT_DTAB_CREATE' "CIM order
  EXPORTING
*   aufnr_imp = SPACE           " aufk-aufnr    Order Number
*   complete = SPACE            " xfeld         Flag; creation of the dialog table across all networks
*   flg_obju = SPACE            " xfeld         Checkbox
    object_status =             " tca11         Object selection for object overviews
*   prps_projn = 00000000       " prps-pspnr    WBS Element
*   rc27i_a_allig = 0           " sy-tabix      Index of Internal Tables
    rc27i_imp =                 " rc27i         Task lists: Indexes referring to current rec'd in rec'd tabs
*   selection =                 " rc271         Fields in Screen for the Selection of Task Lists
*   trtyp_imp = SPACE           " tc10-trtyp    Transaction Type
*   wbspos_imp = SPACE          " xfeld         Checkbox
  IMPORTING
    entries =                   " sy-tabix      Index of Internal Tables
    flg_lst_exists =            " xflag         New Input Values
    lstnr =                     " rclst-lstnr   Task list: Number of the object overview to be displayed
    .  "  CO_DT_DTAB_CREATE

ABAP code example for Function Module CO_DT_DTAB_CREATE





The ABAP code below is a full code listing to execute function module CO_DT_DTAB_CREATE 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_entries  TYPE SY-TABIX ,
ld_flg_lst_exists  TYPE XFLAG ,
ld_lstnr  TYPE RCLST-LSTNR .


SELECT single AUFNR
FROM AUFK
INTO @DATA(ld_aufnr_imp).

DATA(ld_complete) = 'Check type of data required'.
DATA(ld_flg_obju) = 'Check type of data required'.
DATA(ld_object_status) = 'Check type of data required'.

SELECT single PSPNR
FROM PRPS
INTO @DATA(ld_prps_projn).

DATA(ld_rc27i_a_allig) = '123 '.
DATA(ld_rc27i_imp) = '123 '.
DATA(ld_selection) = '123 '.

SELECT single TRTYP
FROM TC10
INTO @DATA(ld_trtyp_imp).

DATA(ld_wbspos_imp) = '123 '. . CALL FUNCTION 'CO_DT_DTAB_CREATE' EXPORTING * aufnr_imp = ld_aufnr_imp * complete = ld_complete * flg_obju = ld_flg_obju object_status = ld_object_status * prps_projn = ld_prps_projn * rc27i_a_allig = ld_rc27i_a_allig rc27i_imp = ld_rc27i_imp * selection = ld_selection * trtyp_imp = ld_trtyp_imp * wbspos_imp = ld_wbspos_imp IMPORTING entries = ld_entries flg_lst_exists = ld_flg_lst_exists lstnr = ld_lstnr . " CO_DT_DTAB_CREATE
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_entries  TYPE SY-TABIX ,
ld_aufnr_imp  TYPE AUFK-AUFNR ,
ld_flg_lst_exists  TYPE XFLAG ,
ld_complete  TYPE XFELD ,
ld_lstnr  TYPE RCLST-LSTNR ,
ld_flg_obju  TYPE XFELD ,
ld_object_status  TYPE TCA11 ,
ld_prps_projn  TYPE PRPS-PSPNR ,
ld_rc27i_a_allig  TYPE SY-TABIX ,
ld_rc27i_imp  TYPE RC27I ,
ld_selection  TYPE RC271 ,
ld_trtyp_imp  TYPE TC10-TRTYP ,
ld_wbspos_imp  TYPE XFELD .


SELECT single AUFNR
FROM AUFK
INTO ld_aufnr_imp.

ld_complete = '123 '.
ld_flg_obju = '123 '.
ld_object_status = '123 '.

SELECT single PSPNR
FROM PRPS
INTO ld_prps_projn.

ld_rc27i_a_allig = '123 '.
ld_rc27i_imp = '123 '.
ld_selection = '123 '.

SELECT single TRTYP
FROM TC10
INTO ld_trtyp_imp.

ld_wbspos_imp = '123 '.

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