SAP Function Modules

ME_CREATE_TIME_DEP_COND_EXT SAP Function module







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

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


Pattern for FM ME_CREATE_TIME_DEP_COND_EXT - ME CREATE TIME DEP COND EXT





CALL FUNCTION 'ME_CREATE_TIME_DEP_COND_EXT' "
  EXPORTING
    i_trtyp =                   " trtyp         Transaction Type
    is_header =                 " meout_header  Outline Agreement Header
*   is_item =                   " meout_item    Outline Agreement Item
    it_konh =                   " meout_t_konh  KONH Restricted for Outline Agreements
*   it_konm =                   " meout_t_konm  Table Type for KONM (Quantity Scales)
*   it_konw =                   " meout_t_konw  Table Type for KONW (Value Scales)
*   i_check =                   " boolean
*   io_header =                 " if_purchase_out_header
*   io_item =                   " if_purchase_out_item
  IMPORTING
    e_ekpo =                    " ekpo          Purchasing Document Item
    e_komp =                    " komp          Communication Item for Pricing
    e_subrc =                   " sysubrc
  TABLES
    t_knt =                     " mmpur_ekknu   Account Assignment
  CHANGING
    cht_konp =                  " meout_t_konp  Table Type for MEOUT_KONP
    .  "  ME_CREATE_TIME_DEP_COND_EXT

ABAP code example for Function Module ME_CREATE_TIME_DEP_COND_EXT





The ABAP code below is a full code listing to execute function module ME_CREATE_TIME_DEP_COND_EXT 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_e_ekpo  TYPE EKPO ,
ld_e_komp  TYPE KOMP ,
ld_e_subrc  TYPE SYSUBRC ,
it_t_knt  TYPE STANDARD TABLE OF MMPUR_EKKNU,"TABLES PARAM
wa_t_knt  LIKE LINE OF it_t_knt .

DATA(ld_cht_konp) = 'Check type of data required'.
DATA(ld_i_trtyp) = 'Check type of data required'.
DATA(ld_is_header) = 'Check type of data required'.
DATA(ld_is_item) = 'Check type of data required'.
DATA(ld_it_konh) = 'Check type of data required'.
DATA(ld_it_konm) = 'Check type of data required'.
DATA(ld_it_konw) = 'Check type of data required'.
DATA(ld_i_check) = 'Check type of data required'.
DATA(ld_io_header) = 'Check type of data required'.
DATA(ld_io_item) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_knt to it_t_knt. . CALL FUNCTION 'ME_CREATE_TIME_DEP_COND_EXT' EXPORTING i_trtyp = ld_i_trtyp is_header = ld_is_header * is_item = ld_is_item it_konh = ld_it_konh * it_konm = ld_it_konm * it_konw = ld_it_konw * i_check = ld_i_check * io_header = ld_io_header * io_item = ld_io_item IMPORTING e_ekpo = ld_e_ekpo e_komp = ld_e_komp e_subrc = ld_e_subrc TABLES t_knt = it_t_knt CHANGING cht_konp = ld_cht_konp . " ME_CREATE_TIME_DEP_COND_EXT
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_cht_konp  TYPE MEOUT_T_KONP ,
ld_e_ekpo  TYPE EKPO ,
ld_i_trtyp  TYPE TRTYP ,
it_t_knt  TYPE STANDARD TABLE OF MMPUR_EKKNU ,
wa_t_knt  LIKE LINE OF it_t_knt,
ld_e_komp  TYPE KOMP ,
ld_is_header  TYPE MEOUT_HEADER ,
ld_e_subrc  TYPE SYSUBRC ,
ld_is_item  TYPE MEOUT_ITEM ,
ld_it_konh  TYPE MEOUT_T_KONH ,
ld_it_konm  TYPE MEOUT_T_KONM ,
ld_it_konw  TYPE MEOUT_T_KONW ,
ld_i_check  TYPE BOOLEAN ,
ld_io_header  TYPE IF_PURCHASE_OUT_HEADER ,
ld_io_item  TYPE IF_PURCHASE_OUT_ITEM .

ld_cht_konp = 'Check type of data required'.
ld_i_trtyp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_knt to it_t_knt.
ld_is_header = 'Check type of data required'.
ld_is_item = 'Check type of data required'.
ld_it_konh = 'Check type of data required'.
ld_it_konm = 'Check type of data required'.
ld_it_konw = 'Check type of data required'.
ld_i_check = 'Check type of data required'.
ld_io_header = 'Check type of data required'.
ld_io_item = 'Check type of data required'.

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