BAPI_COSTACTPLN_POSTPRIMCOST
does anybody knows how this indexing thing goes on this bapi
thanks
amit
HI,
There is a Example Program <b>RK_BAPI_POSTPRIMCOST</b> for this BAPI, check out this prog
Check OSS-Note 420646 - (it's about MM-Bapi's) and
check OSS-Notes 450442 and 192235.
Thanks
Sudheer
Similar Messages
-
Use BAPI_COSTACTPLN_POSTPRIMCOST
How to use BAPI_COSTACTPLN_POSTPRIMCOST Function?
In test program function works correctly and update cost planning values. But if i try to test function in SE37 transaction - does not. Why???Hello,
may be it's again the things that Bapi's do not commit a LUW.
In SE37 you have to work with test sequences (Check OSS-Note 420646 - it's about MM-Bapi's, but it's the same effect). Or check OSS-Notes 450442 and 192235.
Regards Wolfgang -
KP06 : BAPI_COSTACTPLN_POSTPRIMCOST problem
Hi,
I am using BAPI "BAPI_COSTACTPLN_POSTPRIMCOST" to uploaded Plan fixed cost & actual fixed cost.
Now i am passing value in BAPI as
Ex: Plan fixed cost period 1 = 10.
Plan fixed cost period 2 = 10.
& Plan variable cost period 1 = 10.
final output in KP06 is :
Plan fixed cost period 1 = 20.
Plan fixed cost period 2 = 20.
can any one tell me why this value is summing up.
please find code below :
*& Report ZSOU_TEST
REPORT ZSOU_TEST.
data : HEADERINFO LIKE BAPIPLNHDR.
data : INDEXSTRUCTURE like BAPIACPSTRU occurs 0 with header line.
data : COOBJECT like BAPIPCPOBJ occurs 0 with header line.
data : PERVALUE like BAPIPCPVAL occurs 0 with header line.
data : RETURN like BAPIRET2 occurs 0 with header line.
HEADERINFO-CO_AREA = 'SD00'.
HEADERINFO-FISC_YEAR = '2008'.
HEADERINFO-PERIOD_FROM = '001'.
HEADERINFO-PERIOD_TO = '012'.
HEADERINFO-VERSION = '0'.
*HEADERINFO-DOC_HDR_TX
HEADERINFO-PLAN_CURRTYPE = 'C'.
INDEXSTRUCTURE-OBJECT_INDEX = '000001'.
INDEXSTRUCTURE-VALUE_INDEX = '000001'.
append INDEXSTRUCTURE.
COOBJECT-OBJECT_INDEX = '000001'.
COOBJECT-COSTCENTER = 'US00401100'.
append COOBJECT.
PERVALUE-VALUE_INDEX = '000001'.
PERVALUE-COST_ELEM = '501000'.
*RESOURCE
*TRANS_CURRENCY_ISO
*TRANS_CURR
*UNIT_ISO
*PERVALUE-UNIT_OF_MEASURE = 'EA'.
PERVALUE-FIX_VAL_PER01 = '10.00'.
PERVALUE-FIX_VAL_PER02 = '10.00'.
*PERVALUE-FIX_VAL_PER03 = '10.00'.
*PERVALUE-FIX_VAL_PER04 = '10.00'.
*PERVALUE-FIX_VAL_PER05 = '10.00'.
*FIX_VAL_PER06
*FIX_VAL_PER07
*FIX_VAL_PER08
*FIX_VAL_PER09
*FIX_VAL_PER10
*FIX_VAL_PER11
*FIX_VAL_PER11
*FIX_VAL_PER12
*FIX_VAL_PER13
*FIX_VAL_PER14
*FIX_VAL_PER15
*FIX_VAL_PER16
PERVALUE-VAR_VAL_PER01 = '10.00'.
*PERVALUE-VAR_VAL_PER02 = '10.00'.
*PERVALUE-VAR_VAL_PER03 = '10.00'.
*VAR_VAL_PER04
*VAR_VAL_PER05
*VAR_VAL_PER06
*VAR_VAL_PER07
*VAR_VAL_PER08
*VAR_VAL_PER09
*VAR_VAL_PER10
*VAR_VAL_PER11
*VAR_VAL_PER12
*VAR_VAL_PER12
*VAR_VAL_PER13
*VAR_VAL_PER14
*VAR_VAL_PER15
*VAR_VAL_PER16
*PERVALUE-FIX_QUAN_PER01 = '5.00'.
*PERVALUE-FIX_QUAN_PER02 = '5.00'.
*FIX_QUAN_PER03
*FIX_QUAN_PER04
*FIX_QUAN_PER05
*FIX_QUAN_PER06
*FIX_QUAN_PER07
*FIX_QUAN_PER08
*FIX_QUAN_PER09
*FIX_QUAN_PER10
*FIX_QUAN_PER11
*FIX_QUAN_PER12
*FIX_QUAN_PER13
*FIX_QUAN_PER13
*FIX_QUAN_PER14
*FIX_QUAN_PER15
*FIX_QUAN_PER16
*PERVALUE-VAR_QUAN_PER01 = '11.00'.
*PERVALUE-VAR_QUAN_PER02 = '11.00'.
*PERVALUE-VAR_QUAN_PER03 = '11.00'.
*VAR_QUAN_PER04
*VAR_QUAN_PER05
*VAR_QUAN_PER06
*VAR_QUAN_PER07
*VAR_QUAN_PER08
*VAR_QUAN_PER09
*VAR_QUAN_PER10
*VAR_QUAN_PER11
*VAR_QUAN_PER12
*VAR_QUAN_PER13
*VAR_QUAN_PER14
*VAR_QUAN_PER15
*VAR_QUAN_PER16
*FUND
*FUNCTION
*GRANT_NBR
append PERVALUE.
*INDEXSTRUCTURE-ATTRIB_INDEX
CALL FUNCTION 'BAPI_COSTACTPLN_POSTPRIMCOST'
EXPORTING
HEADERINFO = HEADERINFO
DELTA = 'X'
TABLES
INDEXSTRUCTURE = INDEXSTRUCTURE
COOBJECT = COOBJECT
PERVALUE = PERVALUE
TOTVALUE =
CONTRL =
RETURN = RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
write 'done'. .Hello,
If you use DELTA = 'X' then the BAPI summing up the value.
Thierry -
BAPI_COSTACTPLN_POSTPRIMCOST + cosp not updated
Hi,
I am using the BAPI_COSTACTPLN_POSTPRIMCOST to post FM data extracted from FMBDT table to COSP table.
i have no errors in the bapi but no records is created in the COSP table.
CALL FUNCTION 'BAPI_COSTACTPLN_POSTPRIMCOST'
EXPORTING
headerinfo = ws_headerinfo
DELTA = ' '
TABLES
indexstructure = wt_indexstructure
coobject = wt_coobject
pervalue = wt_pervalue
totvalue = wt_totvalue
contrl = wt_contrl
return = wt_return
data in my code:
Header info:
CO_AREA 1000
FISC_YEAR 2010
PERIOD_FROM 012
PERIOD_TO 012
VERSION P10
DOC_HDR_TX
PLAN_CURRTYPE C
indexstructure:
object_index value_index attrib_index
1 000001 000001 000000
2 000002 000002 000000
3 000003 000003 000000
4 000004 000004 000000
5 000005 000005 000000
6 000006 000006 000000
TOTALVALUE:
VALUE_INDEX COST_ELEM Trans_Currency_iso Fix_Value
1 000001 CAC_TOT EUR EUR 15835000.0000-
2 000002 CAC_TOT EUR EUR 104182000.0000-
3 000003 CAC_TOT EUR EUR 306499000.0000-
4 000004 CAC_TOT EUR EUR 28703000.0000-
5 000005 CAC_TOT EUR EUR 27900000.0000-
6 000006 CAC_TOT EUR EUR 33048000.0000-
Any help?
If this bapi does not work for my requirement, have you any other solution to psot data from FMBDT (FM) table to COSP (CO) table
Best regardsHi,
i had an error in the period parameters: it's must be:
headerinfo-period_from = 1
headerinfo-period_to = 12.
and the table updated by the bapi in my case is COSS table and not COSP table
Best regards -
What Tables are updated for BAPI BAPI_COSTACTPLN_POSTPRIMCOST .
What are the database tables that are updated when this BAPI returns no error .
I am trying to use this BAPI to load the data entered in transaction KP26.
The BAPI gives me no errors and does not update the table COST ( which is updated when the trasaction is saved manually )
Urgent....Thanks for your reply.
No, I am not looking directly for dependencies which can be very well if any table is read in a PL/SQL code.
I am strictly (subset of dependecies) looking for PL/SQL that updates tables.
I was going to search for update string in user_source, but was hoping someone must have figured out a nicer way.
Thx -
Function modules or BAPI for posting plan costs for WBS Element
Hi all,
Does anyone know, whether there exists a function module or BAPI for posting plan costs to a WBS Element? K_COSTS_PLAN_PS does not work, because RKP1 is not allowed.
Greetingscheck
BAPI_COSTACTPLN_POSTACTINPUT Activity Input Planning: Posting
BAPI_COSTACTPLN_POSTACTOUTPUT Activity/Price Planning: Posting
BAPI_COSTACTPLN_POSTKEYFIGURE Stat. Key Figure Planning: Postings
BAPI_COSTACTPLN_POSTPRIMCOST Primary Cost Planning: Postings
BAPI_PDTRANSCO_POSTPRIMCOST Transfer of Planning Data: Post Primary Costs
K40C CO Actual Postings, Manual
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_COPAACTUALS_POSTCOSTDATA BAPI Operating Concern: Post Costing-Based Actua
BAPI_PRIM_COST_CHECK_AND_POST Primary Costs: Formal Parameter Check
S@meer -
Function modules or BAPI for deleting plan costs on a cost center
Hi all,
I search for a function module or bapi to delete plan costs / activity on a cost center.
At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
but there is no function for deleting.
Has anyone an idea?
Thx for help - points as reward !check
BAPI_COSTACTPLN_POSTACTINPUT Activity Input Planning: Posting
BAPI_COSTACTPLN_POSTACTOUTPUT Activity/Price Planning: Posting
BAPI_COSTACTPLN_POSTKEYFIGURE Stat. Key Figure Planning: Postings
BAPI_COSTACTPLN_POSTPRIMCOST Primary Cost Planning: Postings
BAPI_PDTRANSCO_POSTPRIMCOST Transfer of Planning Data: Post Primary Costs
K40C CO Actual Postings, Manual
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_COPAACTUALS_POSTCOSTDATA BAPI Operating Concern: Post Costing-Based Actua
BAPI_PRIM_COST_CHECK_AND_POST Primary Costs: Formal Parameter Check
S@meer -
BAPI KPF6 POST PLAN COST FOR INTERNAL ORDER AND COST ELEMENT
Hi all gurus,
I would like to use in a custom report a BAPI/Function Module that help me to simulate KPF6 in order to post planning costs for internal order and cost element (layout 1-401).
So the input should be:
1) Version
2) period from
3) periodo to
4) year
5) internal order n.
6) cost element n.
7) value
I found a lot of BAPI but don't know the correct one and how to use it (example how to fill the input value).
Can anyone help me on that?
Kind RegardsIn additio to the previous I found the BAPI_COSTACTPLN_POSTPRIMCOST but don't know if it's the correct one and how to use it (some example fitting the my case will be very appreciated).
If the quoted BAPI is correct.
I tested it filling all fields as following:
HEADERINFO:
CO_AREA=FFCA
FISC_YEAR=2008
PERIOD_FROM=001
PERIOD_TO=012
DOC_HDR_TX='blank'
INDEXSTRUCTURE:
OBJECT_INDEX=000001
VALUE_INDEX=000004 (hope this point at Interna Order)
ATTRIB_INDEX=000000
COOBJECT:
OBJECT_INDEX=000001
ORDERID=ZO53-08IMZ
TOTVALUE:
VALUE_INDEX=000004
COST_ELEM=3224048
FIX_VALUE= 200,0000
DIST_KEY_FIX_VAL=2
The Return table is set to 0. Nothing happens.....I suspect something related to indexstructure or index is wrong..
Could anyone help me on that?
Kind Regards -
Internal orders - Plan Line items are not uploading into SAP!!
Hi Experts,
Am uploading the budget values as plan line items of Internal orders(AUFK table) from my Z prog. by using BAPI_COSTACTPLN_POSTPRIMCOST.......in Return table(bapiret2), am not getting any error messages........so, am taking it for granted that, upload is successful.
But, when I went to KOBP transaction.........I did not see any values for the internal order in question.......but, just now, I uploaded successfullly!!
Let me know that, Why its happening like that? How to fix it?
replies appreciated, thanq.I've lil doubt if this BAPI really update the internal orders in KOBP transaction.
However just refer:
bapi_costactpln_postprimcost
Use BAPI_COSTACTPLN_POSTPRIMCOST
And refer relevant OSS which is mentioned in Above threads. -
Hi guys,
i'm working in a report like cj40 (more or less), I never work in PS module and I unknown the ps process, bapi's and FM...
I need update the Primary Costs and Activity Input, but i can't do run some Bapi that I found in this forum, and I'm not sure that this Bapi's are the corrects...
BAPI_ACC_PRIMARY_COSTS_POST
BAPI_COSTACTPLN_POSTPRIMCOST
please, could you help me?
Thanks!Hi,
Refer to this link..
Re: what are the bapis in cj40,cj42 -
Budgeting for Cost center in KPZ2 tcode
Hi Friends,
I have a requirement stating to create the cost center and do the budgeting for that cost center.
This has to be done using BAPI / FM.
Can anyone help me out in finding out the BAPI / FM .Try those BAPI
- BAPI_COSTCENTER_CREATEMULTIPLE Create One or More Cost Centers
- BAPI_COSTACTPLN_POSTPRIMCOST Primary Cost Planning: Postings (sample report RK_BAPI_POSTPRIMCOST)
Regards,
Raymond -
We are trying to retract the freezed budgets from BPC to ECC and followed the How to guide...However, it shows that data is submitted succesfully but still no numbers are posted in ECC. Also, changed the BADI to match our controlling area, cost center etc in ECC. Still no data found in ECC.
Please advise if anyone has tried the How to retract available.
Regards,
AbhiHi Abhi,
There are some things you can check:
1. Put a breakpoint inside the code and verify if structures are updated correctly. (Look at Velavan Trichy Thirugnanamu2019s article at /people/velavan.trichythirugnanam/blog/2009/02/12/debugging-sap-businessobjects-planning-and-consolidation-70-version-for-nw-data-manager-job-in-abap-backend )
2. You can also verify (through that breakpoint) the result message that appears after you process function BAPI_COSTACTPLN_POSTPRIMCOST at the IF_UJD_RETRACT~RETRACT method
3. Verify if the connection between your SAP BW and SAP ECC are working and user has the rights for updating the SAP ECC, through transaction SM59. (I had this problem, and had to create a new RFC destination with other user).
Hope this helps.
Best regards,
Sue -
Hi All,
I'm new to BPC and working on retraction using a BAdI. I was following a SAP: How To... Retract data from BPC 7.5 NetWeaver to SAP ERP Cost Center Accounting, Part I.
The File explains how to retract Data on a Cost center level and Im doing it on a profit center level.
Can any tell me how I can debug the BAdI?Hi,
Find this tip in the thread How to debug data manager BADI end routine ?.
Look at the LT_RETURN variable on the call function 'BAPI_COSTACTPLN_POSTPRIMCOST'.
My problem was no authorization to modify cost planning on ECC...
I give some tips about this HTG on thread Re: BPC CO Retraction
regards,
Marco.
Try infinite loop in End routine of your logic as follows.
data: v_val(1) value ''.
DO.
if v_val = 'X'.
exit.
endif.
ENDDO.
Save and activate the method.
Run your package from BPC Excel and login into back end goto Tcode SM50. You can find a job there which is in running mode.
Select the process, Goto menu options select Program/Session-->Program -->Debugging.
Once system opens debugging session change v_val to X and proceed to debug of your logic.
Edited by: Marco Aurelio Barreto Modesto on Sep 14, 2011 12:44 AM -
Hi all!!!
I need help. I'm trying to make the initial load in CJ30 (For Budget). With function KBPP_EXTERN_UPDATE_CO . But I can't find the way to do it. Please, help me.
Thanks a lot!
MRosaHi Phabru!
In fact, only now I'm testing this with FM. And I don't know that I'm doing wrong. Because, Does not update the value in the field budget - CJ30. I need update field WERT1.
Previously, I used the FM BAPI_COSTACTPLN_POSTPRIMCOST, and I could not update this field. I updated the field "Total Plan" (WERT2).
The problem is that I don't know if I'm using the correct bapi.
Thank you very much! -
Hi experts
Which BAPI or function can create cost planning for project or wbs element?
BR
ChrisHi,
*BAPI_COSTACTPLN_CHECKACTINPUT
BAPI_COSTACTPLN_CHECKACTOUTPUT
BAPI_COSTACTPLN_CHECKKEYFIGURE
BAPI_COSTACTPLN_CHECKPRIMCOST
BAPI_COSTACTPLN_POSTACTINPUT
BAPI_COSTACTPLN_POSTACTOUTPUT
BAPI_COSTACTPLN_POSTKEYFIGURE
BAPI_COSTACTPLN_POSTPRIMCOST
BAPI_COSTACTPLN_READACTINPUT
BAPI_COSTACTPLN_READACTOUTPUT
BAPI_COSTACTPLN_READKEYFIGURE
BAPI_COSTACTPLN_READPRIMCOST*
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 11:16 AM
Maybe you are looking for
-
Editing a web site created in MS Front Page
This may be a very simple question with a very simple answer: If a web site has been created, and was maintained, on a PC - how easy is it to take ownership and edit it using a Mac? (I am not a developer or anything close hence the possible stupidity
-
How to create CMPCTRL attribute of the type internal table (as global list)
Hi, I want to create global internal table to be able to access it across all my webdynpro views. Ideally I will create this global internal table in CMPCTRL and will add different values from diffent methods of one view and use in another view as ta
-
Query to find the list of BP without having Particular GL transactions.
Hi Experts, I want the query to find the List of Business partner who is not having Journal entry for Certain General ledger. Scenario: we are creating JE for TDS posting. so, i want to know the list of BP , who and all not having particular TDS GL f
-
TS4149 What is the proper command, it is cut off at the end
Help please, this is driving the office crazy
-
Error Connecting to Oracle apps 11i
Hi Friends, I have installed Apps 11i in my PC.It was working fine so far. But now i am unable to connect to apps. When i enter the user name/password as operaions/welcome in the login screen, it says ' ORA-01422: exact fetch returns more than reques