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

How pass period in this function module BAPI(FMKU_0050_CREATE_WITH_COMMIT )

Former Member
0 Likes
1,985

Hi Guys,

I ahve a requirement where i have to pull the data from excel and upload the budget data in FMBBC. i am using the BAPI FMKU_0050_CREATE_WITH_COMMIT for it. There i am facing an issue i have to upload data where period is 'All' i.i value in period to be passed is All. So i am not getting how to pass All value to the period_data structure in this BAPI.the BAPI retruns a message that

Item number (    1) and budgeting period (000) should not be initial

The field defined for budgeting period is NUMC is the structure   PERIOD_DATA

. if someone has used this please help. <removed by moderator>

Message was edited by: Thomas Zloch

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,644

Hi,

    Under period -data there is a field called BUDGETING_PERIOD (structure          BAPI_0050_PERIOD) pass this as entire internal which contains all 3 fields.

thanks and regards,

prasanna.B

9 REPLIES 9
Read only

Former Member
0 Likes
1,645

Hi,

    Under period -data there is a field called BUDGETING_PERIOD (structure          BAPI_0050_PERIOD) pass this as entire internal which contains all 3 fields.

thanks and regards,

prasanna.B

Read only

0 Likes
1,644

HI prasanna,

thks fr ur reply i know budgeting period structure but i am not able to pass 'All' value in the bedgeting period field.....

Read only

0 Likes
1,644

Hi,

    As this is a NUMC field you can pass only digits. Character string with only digits.

Thanks

B.Prasanna

Read only

0 Likes
1,644

hi prasanna,

hi Deepti,

But in transaction FMBBC if we enter 'All' in period field it distributed the line item amount equally in 12 months.... and thats the same thing i want to do... through bAPI... In that transaction the period field is having the same data element nUMC (3)....

Read only

0 Likes
1,644

Did u try by Passing 'ALL' in period field then? I think 'ALL' could be standard transaction referring to period between 001-012.

Regards,

Deepti

Read only

0 Likes
1,644

No it does not allow to pass 'ALL' in period as it is NUMC field.... solved it myself.... thkx.... with the help of distribution key field in item data....

Read only

Former Member
0 Likes
1,644

Hello Vipul,

Are you getting period in Excel file?

Declare variable of say t_period type BAPI_0050_PERIOD and pass period/item number and append.

Then while calling BAPI pass t_period in tables parameter PERIOD_DATA. If this is not working then try to use table parameter SENDER_PERIOD_DATA

Regards,

Deepti

Read only

Former Member
0 Likes
1,644

Hello Vipul,

Further to my previous reply, I dont think you can enter 'ALL' as period. You can get period with the help of  Fun Module FMKU_GET_PERIOD_INFO. Pass Area in it and you will get period.

Regards,

Deepti

Read only

0 Likes
1,644

hi Deepti,

Thks fr ur reply... but in transaction FMBBC if we enter 'All' in period field it distributed the line item amount equally in 12 months.... and thats the same thing i want to do... through bAPI...