06-13-2007 3:22 PM
Hi All
Does anyone know how to make t-code FMBB Budgeting Workbench available for batch input? When we record the transaction, the values for funds centre, commiment item and amount are not populated. Or is there some other way to use batch input for budget values in BCS?
06-15-2007 9:14 AM
Dear Yvonne,
Instead of using Batch Input use BAPI BAPI_0050_CREATE, with this
function you are able to fill structures with proper information and
create the FM document, like using transaction FMBB but easy and
quickly. Check the documentation of the function.
Regards, Noemí
06-18-2007 9:28 AM
I have the same problem with SHDB. I was thinking that this functionality ist just common for all transactions, but...
I was testing the BAPI_0050_CREATE. This seems to work also not properly. I have tested the BAPI with se37. BAPI has created 4 documents - sometimes books SAP w/o positiontext, sometimes books with a state 2 (I would like to have 1).
After this 4 documents are booked, books SAP any documents more, shows in a return table that everything is OK, and gives a documentnumber back.
06-18-2007 11:11 AM
Hi Noemi, Alexei
I am also having a probem with the BAPI. It creates a document number but when you try to display the document, the system says it does not exist i.e. it does not actually create the document. But if you display the return tabl, it shows that everything is Ok and gives the document number. Even when you check the number range in config, it displays that current doc number as the one created in the BAPI. If this program could work and correctly display the document, my problem would be solved.
06-18-2007 3:38 PM
Hi Yvonne,
I was in contact with SAP regarding the problem we both have with BAPI_0050_CREATE. They told me that I should put a 'COMMIT WORK' after calling BAPI. I have done it - this does't work properly. Then I have looked in BAPI coding - this BAPI does nothing but calling function FMKU_0050_CREATE with almost the same parameters. This function I implemented with FMKU has created just one document with a number which was just a decrement number from DOCNUMBER and does't produce any more documents. So, I will be in touch with You in this topic if SAP finds the solution. Good is that we both have the same problem - it seems to be smth. wrong in the application.
Regards
Alexey
06-18-2007 4:04 PM
Hi Alexey
Did you log a customer message? I appreciate the assistance.
Kind regards and God bless.
06-18-2007 4:05 PM
Hi Yvonne,
I have found a solution for our problem:
After calling the BAPI_0050_CREATE You have put the following :
clear ret_tab.
refresh ret_tab.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = ret_tab.
Then the document is posted and the number is correct.
Look good that the parameters are correct - the date should be like 20070618 and the amount should be with a points not commas.
Sometimes it works w/o external support.
Kind regards
Alexey
06-19-2007 2:53 PM
06-22-2007 11:59 AM
Hi Alexey
This solution works well. Thanks a lot for the assistance. The only thing is that when you want to specify period values under PERIOD DATA, the system returns nothing. The documentation says that the amount value in ITEM DATA should be left blank and should be specified under PERIOD DATA. I have tried this and it still does not work. Have you tried entering data for PERIOD DATA?
Kind regards
06-22-2007 1:20 PM
The system actaully posts but just does not populate the returns table when entering period data.