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: 

BAPI_GL_GETGLACCBALANCE

Former Member
0 Kudos
454

Hi,

I have got a great problem.

I would like to use this bapi, but it does not work. I dont know, where the mistake is. To my mind, the bapi does not return the data.

Here is my code. thanks:

REPORT Z_BAPI_TEST_LEDGER .

DATA: MY_RET TYPE BAPIRETURN.

DATA BEGIN OF MY_TEXT OCCURS 1.

INCLUDE STRUCTURE BAPI1028_3.

DATA END OF MY_TEXT.

CALL FUNCTION 'BAPI_GL_GETGLACCBALANCE' DESTINATION 'DM06'

EXPORTING

companycode = '1000'

glacct = '1000'

fiscalyear = '1997'

currencytype = '10'

  • IMPORTING

ACCOUNT_BALANCE = MY_TEXT

RETURN = MY_RET

.

LOOP AT MY_TEXT.

WRITE: / MY_TEXT-Currency.

WRITE : / MY_TEXT-BALANCE.

WRITE : / MY_TEXT-COMP_CODE.

WRITE : / MY_TEXT-GL_ACCOUNT.

WRITE : / MY_RET-MESSAGE.

ENDLOOP.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
238

hi,

Keep this Function module statement after the the calling of your bapi function module.

'BAPI_TRANSACTION_COMMIT'. There is nothing to export and import to this FM.

I hope this helps you.

Regards,

Gopi.

8 REPLIES 8

Former Member
0 Kudos
239

hi,

Keep this Function module statement after the the calling of your bapi function module.

'BAPI_TRANSACTION_COMMIT'. There is nothing to export and import to this FM.

I hope this helps you.

Regards,

Gopi.

former_member188685
Active Contributor
0 Kudos
238

why are you specifying destination...

just to know...i am asking..

vijay

former_member188685
Active Contributor
0 Kudos
238

I am able to see the result , remove the Destination

for the sake of testing and try it out..

<b>you will get the result...</b>

vijay

former_member188685
Active Contributor
0 Kudos
238

Hi

What happened , are you able to see the result..

if so please reward for helpful answers

vijay

andreas_mann3
Active Contributor
0 Kudos
238

Hi Björn,

have you analyse structure return???

i've got error message

(in german: E |FN004|Keine Berechtigung für Kontoart Sachkonto )

-> check authority (F_BKPF_KOA) of your rfc-user

Andreas

Former Member
0 Kudos
238

You've commented out "IMPORTING". Put it bck in and it should work.

Rob

Former Member
0 Kudos
238

Hi,

Import Statement is commented. Uncomment that.

Regards,

Ramesh

Former Member
0 Kudos
238

Thanks for helping me !