‎2013 Jul 26 12:03 PM
Hi all,
I have the following problem while processing the transaction kp06 in batch input session:
- Field KPPOB-VALUE(x) doesnot exist in the screen SAPLKPP0
- No Batch input data for screen SAPLKPP0
I found a note on the SAP support page:
Note 1234774 - Cost planning: batch input sessions are terminated.
Error: 00344 "No batch input data for screen &&"
SAP strongly recommends not to use batch input programs for manual planning.
Cause and prequisite: this is caused by a programm error.
Solution (just a part): the program change is not contained in the standard system, since other already existing batch input programs can possibly not executed anymore.
My questions are:
- have you already encountered this problem?
- how did you solve it?
- have you ever implement an sap note? if yes , how did you process?
- have you already implemented this note?, if yes, how did you process?
- how about the warnings from sap that this should be avoided?
- do you have an alternative solution for this problem?
- please just give me all information you have about this problem and how you solved it.
Thanks.
‎2013 Jul 27 5:24 AM
Hi Maria,
Try using BAPI
BAPI_COSTELEM_CREATEMULTIPLE
BAPI_COSTELEMENTGRP_CREATE
BAPI_COSTELEMENTGRP_ADDNODE
Regards
‎2013 Jul 27 5:31 AM
Hi,
can you be a little bit specific? What problem did you have and how did you solve it using these BAPI?
I am new to this please explain.
Thanks.
‎2013 Jul 29 8:49 AM
Well,
I got this on SDN only
you have to pass the values for mandatory fields like import parameter
CONTROLLINGAREA and inside
tables COSTCENTERLIST,
many fields are mandatory .
I guess this sample can give u an idea.
DATA: t_cclist TYPE STANDARD table OF bapi0012_ccinputlist,
wa_cclist TYPE bapi0012_ccinputlist,
wa_cclist-costcenter = 'TST413'.
wa_cclist-valid_from = sy-datum.
wa_cclist-valid_to = '99991231'.
wa_cclist-person_in_charge = 'DEVON'.
wa_cclist-department = '000000032328'.
wa_cclist-costcenter_type = 'O'.
wa_cclist-costctr_hier_grp = 'FLD0000006'.
wa_cclist-comp_code ='0132'.
wa_cclist-profit_ctr = 'P0000016'.
wa_cclist-addr_title = 'TITLE'.
wa_cclist-addr_name1 = 'NAME 1'.
wa_cclist-addr_city = 'NAME 2'.
wa_cclist-addr_district = ' '.
wa_cclist-addr_country = 'CA'.
wa_cclist-addr_region = 'BC'.
wa_cclist-jv_venture = '100000'.
wa_cclist-jv_rec_ind = 'BI'.
wa_cclist-jv_equity_typ = 'E01'.
wa_cclist-jv_otype = 'C001'.
wa_cclist-name = 'MANATOKAN HOL 100/06'.
wa_cclist-descript = 'MANATOKAN HOL 100/06C-14-62-6W4M SL5-14'.
APPEND wa_cclist TO t_cclist.
CLEAR wa_cclist.
CALL FUNCTION 'BAPI_COSTCENTER_CREATEMULTIPLE'
EXPORTING
controllingarea = 'BH01'
TESTRUN = ' '
MASTER_DATA_INACTIVE = ' '
TABLES
costcenterlist = t_cclist
return = t_ret
READ TABLE t_ret WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc IS NOT INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
‎2013 Jul 27 5:55 AM
‎2013 Jul 27 11:48 AM
Thanks for your reply. I have never used BAPIs before. Could you give me a simple example how to use this for my problem?
Are they alternatives to BAPIs? if, yes Which one?
‎2013 Jul 27 3:49 PM
‎2013 Jul 28 10:48 PM
Hi,
The BAPI's are function modules that has to called in a custom program. The item details are passed via import parameters and tables. The bapi's used for this transaction is
K_COSTELEMENT_CREATE
K_COSTELEMENT_CREATE_DB_UPDATE
K_COSTELEMENT_DELETE_DB_UPDATE
K_COSTELEMENT_REFRESH_BUFFERS
K_COSTELEMENT_SHOW
K_COSTELEM_BAPI_CHANGE
K_COSTELEM_BAPI_CREATEMULTIPLE
K_COSTELEM_BAPI_GETDETAIL
K_COSTELEM_BAPI_GETLIST
BAPI_COSTELEM_CREATEMULTIPLE
BAPI_COSTELEMENTGRP_CREATE
BAPI_COSTELEMENTGRP_ADDNODE
BAPI_COSTACTPLN_POSTACTINPUT
The BAPI's would have documentation that you can see in SE37. This would give you a fair idea on how to use them. Best would be to test them individually or writing a test program to see which one suites you best.
Cheers,
Arindam