Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_COSTACTPLN_POSTACTINPUT error

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member

Solved.

Used function module K_COSTS_PLAN_INTERFACE_PERIOD.

Thanks anyway.

1 REPLY 1

Former Member

Solved.

Used function module K_COSTS_PLAN_INTERFACE_PERIOD.

Thanks anyway.