Quantcast
Channel: SCN : All Content - ABAP Connectivity
Viewing all articles
Browse latest Browse all 1442

CJ40 Change Cost Planning using KBPP_EXTERN_UPDATE_CO

$
0
0

Hi,

I'm trying to use FM KBPP_EXTERN_UPDATE_CO to change existing Cost Planning for WBS elements for a project, but I either get the following error: "Overall plan less than plan value distributed" or the update terminates with a system dump "Exception condition "ERR_UPDATE raised. Termination occurred in the ABAP program "SAPLKBPV" - in "KBPV_POST_GE_VB"".

I've searched the SDN, internet and OSS, but can't find any help. I'm using SAP ERP 6.0 and I've applied OSS note 1078106, but this hasn't fixed the error.

I'm calling the FM in the following way:

 

itab_bpak-e_objnr = itab_wbs3-objnr.

itab_bpak-wert = g_wert.

itab_bpak-twaer = 'GBP'.

itab_bpak-e_ges = k_true.

itab_bpak-e_versn = f_version_to.

append itab_bpak.

 

call function 'KBPP_EXTERN_UPDATE_CO'

EXPORTING

I_BUDGET_ACTIVITY = 'KSTP'

  • I_BUDGET_ACTIV_SUP_RET = ' '

I_COMMIT_DATA = 'X'

I_DELTA_AMOUNTS = ' '

I_ROLLUP_DATA = 'X'

I_CHECK_PLAN_DATA = 'X'

I_APPLICATION = 'P'

I_COMMIT_ALL = ' '

IMPORTING

E_ERRORS_FOUND = g_errors

tables

it_bpak = itab_bpak

IT_RETURN = itab_return2

EXCEPTIONS

NO_UPDATE = 1

OTHERS = 2.

 

I've tried switching the I_ROLLUP_DATA and I_CHECK_PLAN_DATA flags off, I've also tried switching I_COMMIT_ALL on, but it still does not change the existing cost plan.

I would be grateful if anyone has used this FM successfully could they please provide me with an example of their code.

Thanks,

Cara.


Viewing all articles
Browse latest Browse all 1442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>