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: 

CJR2 - Bapi

Former Member
0 Kudos

Hi,

Is there any BAPI for CJR2 transaction code? If so, Please give it.

Regards,

Hari

4 REPLIES 4

Former Member
0 Kudos

Hi Hari.

The related bapi for Cost element is:

BAPI_COSTELEMENTGRP_GETDETAIL

BAPI_COSTELEMENTGRP_CREATE

BAPI_COSTELEMENTGRP_GETLIST

Please GoTo->Transaction code "BAPI".

That's a wonderfull transaction to find out the BAPI's you require.

Good Luck & Regards.

Harsh.

Former Member
0 Kudos

Hi,

I found the BAPI for CJR2 : - BAPI_COSTACTPLN_POSTACTINPUT

But however I am facing problem in passing data to this. SAP given example program using this : - RK_BAPI_POSTACTINPUT.

The errror which I am getting is " Cost Center , Fiscal year 2008 is not planned".

The parametes I am passing are: -

Header: -

CO_AREA WFP

FISC_YEAR 2008

PERIOD_FROM 001

PERIOD_TO 012

VERSION 0

Index structure: -

OBJECT_INDEX 000001

VALUE_INDEX 000001

CO Object: -

OBJECT_INDEX 000001

WBS_ELEMENT 200001.1.1

TOT value: -

VALUE_INDEX 000001

ORDER_CELEM 2950000

QUANTITY_FIX 9,

DIST_KEY_QUAN_FIX 1

QUANTITY_VAR 6,

DIST_KEY_QUAN_VAR 1

UNIT_OF_MEASURE $MT

The errror which I am getting is " Cost Center , Fiscal year 2008 is not planned".

Could someone Please tell me if there are some other parameters I need to pass to this BAPI.

Regards,

Hari krishna.

Former Member
0 Kudos

Hi Hari.

Good Work.

See, If you can use BAPI transaction.

May be this will help.

GoTo->BAPI (transaction)->CostActivityPlanning->PostActivityInput->Totvalue.

Totvalue - Plan Values Per Fiscal Year and Distribution Key.

Check the documentation for this "Totvalue" for parameter fields and other descriptions.

Even for CostActivityPlanning->PostActivityInput->CoObject->Documentation

This is related to cost center and other related parameters

Good Luck & Regards.

HARSH

Edited by: Harsh Dave on Jul 12, 2008 1:15 PM

Former Member
0 Kudos

Done