Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in function call BAPI_0050_CREATE. Create FM Budgeting Entry document

Former Member
0 Likes
2,057

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,282

Is there a long text for the message?

Rob

Read only

Former Member
0 Likes
1,282

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

Read only

0 Likes
1,282

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

Read only

0 Likes
1,282

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'

Read only

0 Likes
1,282

Once again - is there a long text?

Rob

Read only

0 Likes
1,282

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.