K_UNITCOSTING_DISPLAY 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 K_UNITCOSTING_DISPLAY into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
KKE2
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'K_UNITCOSTING_DISPLAY' "
EXPORTING
* kuc_cospa = SPACE " cospa
* kuc_count_days = 0 "
* kuc_key_fully_qualified = SPACE " rk70eq-char1
* kuc_rk70k_bwvar = SPACE " rk70k-bwvar
kuc_rk70k_bzobj = " rk70k-bzobj
* kuc_rk70k_ewknz = 0 " rk70k-ewknz
* kuc_rk70k_herkt = SPACE " rk70k-herkt
* kuc_rk70k_kadky = 00000000 " rk70k-kadky
* kuc_rk70k_kalka = SPACE " rk70k-kalka
kuc_rk70k_kalnr = " rk70k-kalnr
kuc_rk70k_kkart = " rk70k-kkart
* kuc_rk70k_kkzma = SPACE " rk70k-kkzma
kuc_rk70k_kokrs = " rk70k-kokrs
* kuc_rk70k_lednr = '00' " rk70k-lednr
* kuc_rk70k_tvers = 01 " rk70k-tvers
* kuc_t_820 = SPACE " t820
* kuc_rk70k_matnr = SPACE " rk70k-matnr
* kuc_rk70k_wrttp = '01' " rk70k-wrttp
* kuc_rk70k_versn = '000' " rk70k-versn
* kuc_rk70k_werks = SPACE " rk70k-werks
IMPORTING
kuc_rk70k_rc = " rk70k-rc
TABLES
kuc_posting = "
EXCEPTIONS
ABNORMAL_END = 1 " Error in control tables
. " K_UNITCOSTING_DISPLAY
The ABAP code below is a full code listing to execute function module K_UNITCOSTING_DISPLAY 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).
| ld_kuc_rk70k_rc | TYPE RK70K-RC , |
| it_kuc_posting | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_kuc_posting | LIKE LINE OF it_kuc_posting . |
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_kuc_rk70k_rc | TYPE RK70K-RC , |
| ld_kuc_cospa | TYPE COSPA , |
| it_kuc_posting | TYPE STANDARD TABLE OF STRING , |
| wa_kuc_posting | LIKE LINE OF it_kuc_posting, |
| ld_kuc_count_days | TYPE STRING , |
| ld_kuc_key_fully_qualified | TYPE RK70EQ-CHAR1 , |
| ld_kuc_rk70k_bwvar | TYPE RK70K-BWVAR , |
| ld_kuc_rk70k_bzobj | TYPE RK70K-BZOBJ , |
| ld_kuc_rk70k_ewknz | TYPE RK70K-EWKNZ , |
| ld_kuc_rk70k_herkt | TYPE RK70K-HERKT , |
| ld_kuc_rk70k_kadky | TYPE RK70K-KADKY , |
| ld_kuc_rk70k_kalka | TYPE RK70K-KALKA , |
| ld_kuc_rk70k_kalnr | TYPE RK70K-KALNR , |
| ld_kuc_rk70k_kkart | TYPE RK70K-KKART , |
| ld_kuc_rk70k_kkzma | TYPE RK70K-KKZMA , |
| ld_kuc_rk70k_kokrs | TYPE RK70K-KOKRS , |
| ld_kuc_rk70k_lednr | TYPE RK70K-LEDNR , |
| ld_kuc_rk70k_tvers | TYPE RK70K-TVERS , |
| ld_kuc_t_820 | TYPE T820 , |
| ld_kuc_rk70k_matnr | TYPE RK70K-MATNR , |
| ld_kuc_rk70k_wrttp | TYPE RK70K-WRTTP , |
| ld_kuc_rk70k_versn | TYPE RK70K-VERSN , |
| ld_kuc_rk70k_werks | TYPE RK70K-WERKS . |
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 K_UNITCOSTING_DISPLAY or its description.