‎2008 Jan 15 8:49 PM
Hi guys,
I've got runtime error in BAPI-function call BAPI_0050_CREATE for create\release budgeting entry document:
"Number range 01 not found for object BULI_DOCNR in fiscal year 2007"
Function parameters below:
CALL FUNCTION 'BAPI_0050_CREATE'
EXPORTING
header_data = l_wa_header
testrun = ' '
TABLES
item_data = g_it_item_data
return = g_it_return.
l_wa_header-FM_AREA = '2500'
l_wa_header-VERSION = '000'.
l_wa_header-DOCSTATE = '1'.
l_wa_header-PROCESS = 'ENTR'.
l_wa_header-DOCTYPE = '0001'.
l_wa_item_data-BUDTYPE = 'DEBL'.
l_wa_item_data-BUDCAT = '9F'.
l_wa_item_data-ITEM_NUM = '01'.
l_wa_item_data-FISC_YEAR = 2007.
l_wa_item_data-FUNDS_CTR = '2000'.
l_wa_item_data-CMMT_ITEM = 'R10101010'.
l_wa_item_data-TOTAL_AMOUNT = 20000.
l_wa_item_data-DISTKEY = '0'.
l_wa_item_data-TRANS_CURR = 'RUB'.
l_wa_item_data-VALTYPE = 'R1'.
Interval 01 was already created in SPRO-tran for customizing option for FM module (Budgeting)
(000000001 до 99999999) - Create Number Range Interval for Entry Document
Does anybody know correct parameters for BAPI-call or customizing option for Budjeting (FM) ?
ps Sorry, I am not expert in FI-FM-module
Thnx in advance,
Dmitry
‎2008 Jan 15 8:57 PM
‎2008 Jan 15 10:18 PM
Yes, it is a long text . And additional parameters of error message are:
message_v1=01
message_v2=
message_v3=BULI_DOCNR
message_v4=2007
‎2008 Jan 15 10:27 PM
OK - can you tell me the message id and number (BDCMSGCOLL-MSGID and BDCMSGCOLL-MSGNR)?
It appears you've missed something in assigning number ranges. Can you perform this function using the budgeting workbench?
Rob
‎2008 Jan 15 11:09 PM
It works !
I've performed this function in workbench and got additional help guide for error resolving.
You're right - i've missed initial interval 05 for number ranges 5000000000 to 599999999 for budjeting docs.
But i've got new error message
'Release and budget amounts are inconsistent'
‎2008 Jan 15 11:19 PM
‎2008 Jan 16 10:17 AM
Thnx Rob,
Problem with BAPI error solved.
I was using BAPI -parameters got from Former Budgeting module tables. But BAPI-function intended only for BCS module tables, and It was no correct data for budget release of course.