Application Development 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: 

BDC to upload Gl accounts data

Former Member
0 Kudos

Hi All

Can any body tell me the steps to update the g/l Accounts data by using the session method in BDC...

1 REPLY 1

Former Member
0 Kudos

Hi,

Instead of a BDC, a BAPI is always safer to use.

I normally use the below BAPIs to upload a GL Account.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

DESTINATION lc_dest

EXPORTING

documentheader = lwa_doc_header

TABLES

accountgl = li_accnt_gl

accounttax = li_accnt_tax

currencyamount = li_currency_amt

return = li_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

PS: If your query is answered please reward points and close this question.

Regards.