12-19-2012 8:46 PM
Hi,
I am testing the bapi BAPI_COSTACTPLN_POSTACTINPUT for transaction CJR2 but i am getting the
error " Activity type for cost center , fiscal year 2012, is not planned."
I am giving values like this:-
ls_headerinfo-co_area = 'STF'.
ls_headerinfo-fisc_year = '2012'.
ls_headerinfo-period_from = '01'.
ls_headerinfo-period_to = '12'.
ls_headerinfo-version = '11A'.
ls_headerinfo-plan_currtype = '1'.
lt_coobject-object_index = '1'.
lt_coobject-wbs_element = 'TEST0032001'.
append lt_coobject.
lt_pervalue-value_index = '1'.
lt_pervalue-var_val_per01 = '15'.
append lt_pervalue.
lt_index-object_index = '1'.
lt_index-value_index = '1'.
append lt_index.
In structure coobject there is the field ACTTYPE, but they are telling me that we do not use Activity type, and for some layouts in transaction CJR2, this field is not obligatory.
Can anybody help, what fields should I fill to pass the activity type validation?
Thanks in Advance.
12-19-2012 10:41 PM
Solved.
Used function module K_COSTS_PLAN_INTERFACE_PERIOD.
Thanks anyway.
12-19-2012 10:41 PM
Solved.
Used function module K_COSTS_PLAN_INTERFACE_PERIOD.
Thanks anyway.