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: 

Original Budget posting (CJ30) using KBPP_EXTERN_UPDATE_CO

afordham
Participant
0 Kudos

Hi,

I've been trying to update the Original Budget (transaction CJ30) using the function module KBPP_EXTERN_UPDATE_CO in R/3 4.7. I have managed to get the Cost and Revenue Planning (CJ40/CJ42) data in successfully using this function module, but cannot get the Budget (activity KBUD) to work correctly.

Whichever way I order the WBS elements in the BPAK table, whether I commit all the records at once or singley, whether I have the I_CHECK_PLAN_DATA parameter on or off, I always end up with a bunch of "Overall budget less than distributed budget" errors.

Is anybody who has successfully updated the Original Budget using this function module able to give me some pointers (or even a snippet of code that works!) I have implemented all the OSS notes that I could find relating to this functional module, and as I said I've managed to get the Cost and Revenue Planning working perfectly. I have read and re-read note 625613 to see if I've missed anything, but I can't find any obvious errors.

Many thanks in advance,

Andrew

5 REPLIES 5

Former Member
0 Kudos

Hi,

This FM has one parameter called <b>I_ROLLUP_DATE</b>. You have to pass a value 'X' here. For more information on this FM, check OSS note <b>625613</b>.

There is one more issue with this FM is that, when you use this FM to create a budget for WBS element, it does not set status BUDG on WBS element. If you create a budget using transaction CJ30, it pu this status. This status is important bacuse it allow to accound assing the WBS to PO or incurr some actual cost. You will have to apply <b>OSS note 928243</b>.

We are usign this FM and we had a issue with updating BUDG status. We wrote to SAP regarding where is a bug in the code for this and they created this OSS note 928243.

Let me know if you have any question.

Regards,

RS

0 Kudos

Hi,

I have the I_ROLLUP_DATE parameter 'X'ed and I'm using the function module for updating the cost and revenue planning (activities KSTP & KSTR) successfully.

When I send the same data through using activity KBUD, I get 'Overall budget less than distributed budget' errors for every WBS. This also happens if I 'manually' roll up the data, so the parent WBS elements are also in the BPAK table.

Does anyone have any code they could post where they've successfully updated the budget using KBPP_EXTERN_UPDATE_CO?

0 Kudos

Hi Andrew,

I'm facing the same problem as you've described, but with activity KSTP, I keep getting error message "Overall plan less than plan value distributed". I've searched the forum and internet and I can't find any solution to this. You said that you had successfully used FM KBPP_EXTERN_UPDATE_CO for activity KSTP, would it be possible for you to post a copy of the code you are using for activity KSTP?

Thanks,

Cara.

0 Kudos

Hello!

I have the same problem with ROLL UP.

In case without ROLL UP you should pass higher WBS first then lower in table BPAK.

But i need ROLL UP to work...

Here is my code and data content (with rollup):

CALL FUNCTION 'KBPP_EXTERN_UPDATE_CO'

EXPORTING

i_budget_activity = 'KBUD' " Original Budget

i_delta_amounts = ' ' " Provide absolute values

i_rollup_data = 'X' " Roll up at WBS hierarchy

i_application = 'P' " Project

i_commit_all = 'X' " Commit changes

IMPORTING

e_errors_found = l_errors " Errors found?

TABLES

it_bpak = lt_bpak[] " Values supplied

it_return = lt_return[] " Messages returned

EXCEPTIONS

no_update = 1

OTHERS = 2

lt_bpak content:

E_OBJNR BLDAT WERT SGTEXT TWAER

PR00003596 20090113 280000.00 AUTOMATIC COPY CZK

PR00003593 20090113 112000.00 AUTOMATIC COPY CZK

Result

I BP 743 11510000059001000 :

I BQ 001 Overall budget less than distributed budget

E BQ 002 - 11510-000059: 112 000,00 < 392 000,00 (CZK)

In case with rollup it takes into account only first of two wbs's and during rollup of second it tries to put invalid value into higher level (value of second WBS) and fails.

Former Member
0 Kudos

Hi Andrew,

We are trying to upload data to CJ42 using the same FM. But it is giving error that Version 0 does not exist. Could you pls share your code how you successfully updated CJ42 data.

THanks in advance

Raghu Kumar