2012 Nov 05 10:31 AM
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
2012 Nov 05 10:53 AM
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
2012 Nov 05 10:53 AM
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
2012 Nov 05 11:02 AM
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.....
2012 Nov 05 11:19 AM
Hi,
As this is a NUMC field you can pass only digits. Character string with only digits.
Thanks
B.Prasanna
2012 Nov 05 11:24 AM
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)....
2012 Nov 05 11:59 AM
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
2012 Nov 06 8:41 AM
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....
2012 Nov 05 11:04 AM
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
2012 Nov 05 11:15 AM
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
2012 Nov 05 11:23 AM
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...