09-06-2014 10:54 AM
Hi,
I am trying to upload data to KP06 using the bapi BAPI_COSTACTPLN_POSTACTINPUT . I had filled the index, header , totvalue parameters as below. But can any one plz tell me where and how to update the plan fixed costs and pla fixed consumption available in KP06.
** FILL THE DATA TO PARAMETERS FROM THE RECORD.
EX_HEADERINFO-CO_AREA = 'CTKL' .
EX_HEADERINFO-FISC_YEAR = RECORD-FISC_YEAR .
EX_HEADERINFO-PERIOD_FROM = RECORD-PER_FRM .
EX_HEADERINFO-PERIOD_TO = RECORD-PER_TO.
EX_HEADERINFO-VERSION = RECORD-VERSION .
** fill the proposed object indexes to index structure and try to fill the given input record numbers.
IT_INDEXSTRUCTURE-OBJECT_INDEX = RECORD-REC_NO_INPUT.
IT_INDEXSTRUCTURE-VALUE_INDEX = RECORD-REC_NO_INPUT.
APPEND IT_INDEXSTRUCTURE.
*** FILL THE COOBJECT TABLE.
IT_COOBJECT-OBJECT_INDEX = RECORD-REC_NO_INPUT.
IT_COOBJECT-COSTCENTER = RECORD-KOSTL.
APPEND IT_COOBJECT.
** FILL TOT VALUE TABLE.
IT_TOTVALUE-VALUE_INDEX = RECORD-REC_NO_INPUT.
IT_TOTVALUE-ORDER_CELEM = RECORD-COST_ELEMENT.
IT_TOTVALUE-UNIT_OF_MEASURE = RECORD-UOM.
APPEND IT_TOTVALUE.
Could you plz any body input me about the parameters to be filled for those marked two fields.
Regards,
P Ch.
09-08-2014 12:12 PM
It is done..!!!!!!!!!!!!.
The above mentioned bapi (BAPI_COSTACTPLN_POSTACTINPUT) is used to upload the cost center activity input with activity group and actual , varaible data. But to use without activity group and variable input we have to use the bapi BAPI_COSTACTPLN_POSTPRIMCOST. Now everything is working fine.
Thank you Felipe for your co-ordination.
Regards,
Praveen CHITTURI.
09-06-2014 11:56 AM
09-06-2014 2:04 PM
Hi Felipe, I agree with that table parameter PERVALUE but my concern is what are the exact fields in that table for plan fixed price & plan fixed quantity.
Regards,
Chitturi.
09-06-2014 2:26 PM
09-06-2014 6:15 PM
For this BAPI we should give activity type which is mandatory. But in our scenario we are not using activity type at all so that even variable qty also will not use. So have you any idea regarding this or any other bapi related to this.
Regards,
Chitturi.
09-07-2014 6:34 PM
Sorry, I don't have any other idea, but you could try looking in the function group 6026.
Regards,
Felipe
09-08-2014 12:12 PM
It is done..!!!!!!!!!!!!.
The above mentioned bapi (BAPI_COSTACTPLN_POSTACTINPUT) is used to upload the cost center activity input with activity group and actual , varaible data. But to use without activity group and variable input we have to use the bapi BAPI_COSTACTPLN_POSTPRIMCOST. Now everything is working fine.
Thank you Felipe for your co-ordination.
Regards,
Praveen CHITTURI.
09-08-2014 1:34 PM
Great to hear, mark the answers as helpfull would be appreciated
Regards,
Felipe