Skip to Content
0
Former Member
Dec 19, 2012 at 08:46 PM

BAPI_COSTACTPLN_POSTACTINPUT error

154 Views

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.