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

BAPI_0050_CREATE How Use?

Former Member
0 Likes
5,098

Hi All,

I'm using the BAPI_0050_CREATE and I don't obtaining to creat with the correct period.

CALL FUNCTION 'BAPI_0050_CREATE'

EXPORTING

header_data = r_i_header

header_data_add = r_i_header_add

testrun = ' '

TABLES

item_data = i_item_data

sender_item_data = i_sender_item_data

period_data = i_period_data

sender_period_data = i_sender_period_data

return = i_return.

Process = ENTR.

r_i_header is:

FM_AREA = LT01

VERSION = 000

DOCDATE = 20061127

DOCTYPE = 00

DOCSTATE = 1

PROCESS = ENTR

i_item_data is:

ITEM_NUM = 000001

FISC_YEAR = 2006

BUDCAT = 9F

BUDTYPE = 00

FUND = LT01

FUNDS_CTR = LT01015000

CMMT_ITEM = 6020600000

FUNC_AREA = 60600200

TRANS_CURR = UYU

TOTAL_AMOUN = 10,0000

DISTKE = 0

ITEM_TEXT = Test

VALTYPE = B1

i_period_data is:

ITEM_NUM = 000001

BUDGETING_PERIOD =

008


PERIOD_AMOUNT = 10,0000

I do not obtain to create the document the desired period in accordance with, the BAPI always creates the document with period

001

. Somebody knows as makes to create a document in the BAPI_0050_CREATE with the correct period?

Regards,

Mário jr.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,836

Hi Rob.

Using FMBB standard program it functions with any period.

But when use the BAPI_0050_CREATE it does not function, the proper BAPI palces 001 period.

tanks.

8 REPLIES 8
Read only

Former Member
2,836

It may have to do with the configuration or budget profile of your fund. Check that it allows period budgets. If it does, check how they can be distributed.

Can you put a budget into a period using the standard programs?

Rob

Read only

Former Member
0 Likes
2,837

Hi Rob.

Using FMBB standard program it functions with any period.

But when use the BAPI_0050_CREATE it does not function, the proper BAPI palces 001 period.

tanks.

Read only

0 Likes
2,836

To the same Fund/Fund Center/Commitment Item you are using here?

Rob

Read only

0 Likes
2,836

Yes, the same.

Read only

0 Likes
2,836

OK - what happens if you remove the distribution key and the total amount from the item?

If that doesn't work, try removing just one of them and then the other.

Rob

Read only

0 Likes
2,836

Perfect !!

Thanks for your help.

Best Regards,

Mário Jr.

Read only

0 Likes
2,836

Glad to help.

Rob

Read only

0 Likes
2,836

Hi ,

Merry X'mas,

Can I use bapi_0050_create for FR52 transaction ?

Its giving me number rage error : ''Number range 01 not found for object BUED_DOCNR in fiscal year 2008" .

We have former budgeting system instead BCS.

Thanks in advance.

Milind .