SAP Function Modules

K_ACTIVITY_INPUT_POSTING SAP Function module







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

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


Pattern for FM K_ACTIVITY_INPUT_POSTING - K ACTIVITY INPUT POSTING





CALL FUNCTION 'K_ACTIVITY_INPUT_POSTING' "
* EXPORTING
*   v_commit = 'X'              "               Commit via Function Module
*   rwin_check_only = ' '       "               RWIN Testing Only
*   online_vb = SPACE           "
  IMPORTING
    integration_error =         " boole
  TABLES
    v_cobk3 =                   " cobk          Document Headers for Activity Input
*   v_cobk3_ni =                " cobk            "  for Objects with CCSS-PLGKZ <> TKA07-RWINKZ
    v_coeja3 =                  " coeja         Activity Input Line Items
*   v_coeja3_ni =               " coeja           "  for Objects with CCSS-PLGJZ <> TKA07-RWINZ
*   v_coeja3_neps =             " coeja
    v_coiob =                   " coiob         Integration Data per Object in V_COEJA3
*   v_coks =                    " coks          Control Table, Secondary Cost Record
*   v_coksu =                   " rksta         Update/Insert Control per V_COKSU
    v_cobk2 =                   " cobk          Activity Planning Document Headers
    v_coeja2 =                  " coeja         Cost Line Items from Activity Planning
    v_coejla =                  " coejla        Activity Line Items from Activity Planning
    .  "  K_ACTIVITY_INPUT_POSTING

ABAP code example for Function Module K_ACTIVITY_INPUT_POSTING





The ABAP code below is a full code listing to execute function module K_ACTIVITY_INPUT_POSTING 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_integration_error  TYPE BOOLE ,
it_v_cobk3  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_v_cobk3  LIKE LINE OF it_v_cobk3 ,
it_v_cobk3_ni  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_v_cobk3_ni  LIKE LINE OF it_v_cobk3_ni ,
it_v_coeja3  TYPE STANDARD TABLE OF COEJA,"TABLES PARAM
wa_v_coeja3  LIKE LINE OF it_v_coeja3 ,
it_v_coeja3_ni  TYPE STANDARD TABLE OF COEJA,"TABLES PARAM
wa_v_coeja3_ni  LIKE LINE OF it_v_coeja3_ni ,
it_v_coeja3_neps  TYPE STANDARD TABLE OF COEJA,"TABLES PARAM
wa_v_coeja3_neps  LIKE LINE OF it_v_coeja3_neps ,
it_v_coiob  TYPE STANDARD TABLE OF COIOB,"TABLES PARAM
wa_v_coiob  LIKE LINE OF it_v_coiob ,
it_v_coks  TYPE STANDARD TABLE OF COKS,"TABLES PARAM
wa_v_coks  LIKE LINE OF it_v_coks ,
it_v_coksu  TYPE STANDARD TABLE OF RKSTA,"TABLES PARAM
wa_v_coksu  LIKE LINE OF it_v_coksu ,
it_v_cobk2  TYPE STANDARD TABLE OF COBK,"TABLES PARAM
wa_v_cobk2  LIKE LINE OF it_v_cobk2 ,
it_v_coeja2  TYPE STANDARD TABLE OF COEJA,"TABLES PARAM
wa_v_coeja2  LIKE LINE OF it_v_coeja2 ,
it_v_coejla  TYPE STANDARD TABLE OF COEJLA,"TABLES PARAM
wa_v_coejla  LIKE LINE OF it_v_coejla .

DATA(ld_v_commit) = 'some text here'.
DATA(ld_rwin_check_only) = 'some text here'.
DATA(ld_online_vb) = 'some text here'.

"populate fields of struture and append to itab
append wa_v_cobk3 to it_v_cobk3.

"populate fields of struture and append to itab
append wa_v_cobk3_ni to it_v_cobk3_ni.

"populate fields of struture and append to itab
append wa_v_coeja3 to it_v_coeja3.

"populate fields of struture and append to itab
append wa_v_coeja3_ni to it_v_coeja3_ni.

"populate fields of struture and append to itab
append wa_v_coeja3_neps to it_v_coeja3_neps.

"populate fields of struture and append to itab
append wa_v_coiob to it_v_coiob.

"populate fields of struture and append to itab
append wa_v_coks to it_v_coks.

"populate fields of struture and append to itab
append wa_v_coksu to it_v_coksu.

"populate fields of struture and append to itab
append wa_v_cobk2 to it_v_cobk2.

"populate fields of struture and append to itab
append wa_v_coeja2 to it_v_coeja2.

"populate fields of struture and append to itab
append wa_v_coejla to it_v_coejla. . CALL FUNCTION 'K_ACTIVITY_INPUT_POSTING' * EXPORTING * v_commit = ld_v_commit * rwin_check_only = ld_rwin_check_only * online_vb = ld_online_vb IMPORTING integration_error = ld_integration_error TABLES v_cobk3 = it_v_cobk3 * v_cobk3_ni = it_v_cobk3_ni v_coeja3 = it_v_coeja3 * v_coeja3_ni = it_v_coeja3_ni * v_coeja3_neps = it_v_coeja3_neps v_coiob = it_v_coiob * v_coks = it_v_coks * v_coksu = it_v_coksu v_cobk2 = it_v_cobk2 v_coeja2 = it_v_coeja2 v_coejla = it_v_coejla . " K_ACTIVITY_INPUT_POSTING
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_integration_error  TYPE BOOLE ,
ld_v_commit  TYPE STRING ,
it_v_cobk3  TYPE STANDARD TABLE OF COBK ,
wa_v_cobk3  LIKE LINE OF it_v_cobk3,
ld_rwin_check_only  TYPE STRING ,
it_v_cobk3_ni  TYPE STANDARD TABLE OF COBK ,
wa_v_cobk3_ni  LIKE LINE OF it_v_cobk3_ni,
ld_online_vb  TYPE STRING ,
it_v_coeja3  TYPE STANDARD TABLE OF COEJA ,
wa_v_coeja3  LIKE LINE OF it_v_coeja3,
it_v_coeja3_ni  TYPE STANDARD TABLE OF COEJA ,
wa_v_coeja3_ni  LIKE LINE OF it_v_coeja3_ni,
it_v_coeja3_neps  TYPE STANDARD TABLE OF COEJA ,
wa_v_coeja3_neps  LIKE LINE OF it_v_coeja3_neps,
it_v_coiob  TYPE STANDARD TABLE OF COIOB ,
wa_v_coiob  LIKE LINE OF it_v_coiob,
it_v_coks  TYPE STANDARD TABLE OF COKS ,
wa_v_coks  LIKE LINE OF it_v_coks,
it_v_coksu  TYPE STANDARD TABLE OF RKSTA ,
wa_v_coksu  LIKE LINE OF it_v_coksu,
it_v_cobk2  TYPE STANDARD TABLE OF COBK ,
wa_v_cobk2  LIKE LINE OF it_v_cobk2,
it_v_coeja2  TYPE STANDARD TABLE OF COEJA ,
wa_v_coeja2  LIKE LINE OF it_v_coeja2,
it_v_coejla  TYPE STANDARD TABLE OF COEJLA ,
wa_v_coejla  LIKE LINE OF it_v_coejla.

ld_v_commit = 'some text here'.

"populate fields of struture and append to itab
append wa_v_cobk3 to it_v_cobk3.
ld_rwin_check_only = 'some text here'.

"populate fields of struture and append to itab
append wa_v_cobk3_ni to it_v_cobk3_ni.
ld_online_vb = 'some text here'.

"populate fields of struture and append to itab
append wa_v_coeja3 to it_v_coeja3.

"populate fields of struture and append to itab
append wa_v_coeja3_ni to it_v_coeja3_ni.

"populate fields of struture and append to itab
append wa_v_coeja3_neps to it_v_coeja3_neps.

"populate fields of struture and append to itab
append wa_v_coiob to it_v_coiob.

"populate fields of struture and append to itab
append wa_v_coks to it_v_coks.

"populate fields of struture and append to itab
append wa_v_coksu to it_v_coksu.

"populate fields of struture and append to itab
append wa_v_cobk2 to it_v_cobk2.

"populate fields of struture and append to itab
append wa_v_coeja2 to it_v_coeja2.

"populate fields of struture and append to itab
append wa_v_coejla to it_v_coejla.

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