11-05-2005 3:57 AM
Hello friends,
is there a BAPI/BDC for the tr.code F-02(G/L account posting).
Your help is greatly appreciated.
Regards.
-Milind.
11-05-2005 4:06 AM
Try the follwing BAPIs
BAPI_ACC_GL_POSTING_CHECK
BAPI_ACC_GL_POSTING_POST
BAPI_ACC_DOCUMENT_POST
Have a look at the documentation provided for these BAPIs
Message was edited by: Sudhir Bhate
11-05-2005 5:03 AM
Try BAPI_ACC_GL_POSTING_POST.
More Information about this:
Text
Accounting: General G/L Account Posting Functionality
You can use this method to update business transactions in Accounting which mainly affect the general ledger and are definitely not updated in subledgers which are relevant to the balance sheet.
An example of this is a provision posting for an expected guarantee service.
This can be produce debit or credit entries to balances which are not managed in one of the subledgers relevant to the balance sheet. This is especially applicable if the balances cannot be represented as assets, customers/vendors, materials, loans, etc.
An example of this is a provision posting for an expected guarantee. However, this can also involve depreciation or write-ups in which values have a higher level of summarization than in the corresponding subledger relevant to the balance sheet in which they are managed.
An example of this is foreign currency revaluation for receivables/ payables caused by considerable exchange rate fluctuations which is not updated in accounts payable or accounts receivable.
A similar transaction may come about when revaluating balances for raw materials if the revaluation takes place at a corresponding level of summarization.
The third cateogry is the reclassification of items to balance sheet accounts or income statement accounts, which is only undertaken in the general ledger in order to balance accounts (values are then finally reassigned to financial statement items).
Example: Reclassifying balances of receivables with different return times for the balance sheet.
Restrictions:
This object cannot be used to update business transactions which are normally posted to one of the subledgers which affects the balance sheet (such as a billing document; for this see the business object AcctngBilling).
This is especially applicable if the reason the relevant subledger cannot be updated is because it is an external system or is not in use.
Notes
If the currency fields have been entered in the CurrencyAmount parameter, the system runs a complete check for the document. Otherwise only the account assignment objects are validated.
Messages are displayed in the Return parameter. You will find the return values and their meanings in the documentation for this parameter.
Further Information
For further information, see the documentation on "Interfaces to Accounting" in the R/3 Library (under "Cross-Application Functions -> Interfaces to External Systems").
Parameters
DOCUMENTHEADER
OBJ_TYPE
OBJ_KEY
OBJ_SYS
ACCOUNTGL
CURRENCYAMOUNT
RETURN
EXTENSION1
Exceptions
Function Group
ACC4
11-05-2005 5:44 PM
Hi Milind,
Above mentioned BAPI's are good for some cases. This FB01/FB02 is a very complex transaction in nature. In this transaction we can post for vendors, customers and for G/L accounts and based on configuration screen will change like PA(Profit Assignment) segment. You need decide either bapi or bdc. I have checked these bapi's for my client, these bapis are not doing good so we went for bdc's.
Enjoy SAP,
Satya
11-05-2005 5:57 PM
Hi
see the BAPI:
- BAPI_ACC_GL_POSTING_POST
- BAPI_ACC_DOCUMENT_POST
or BDC standard
- RFBIBL00.
These std program use the trandaction FB01 (instead of F-02): you can post whichever FI document by FB01.
Max
11-07-2005 9:54 AM
Hello all,
thanks to you all especially to Satya and Max.
As suggested by Satya i am going for my own BDC but its very complex.
And as i am not aware how to run a standard batch input program i have to go with the BDC.
anyway thanks to Max and Satya again.
regards.
-milind.
11-07-2005 10:00 AM
Hi,
<b>never</b> use a bdc for TA FB01
-> instead use report <b>RFBIBL00</b>
(here's a documentation!)
regards Andreas