2005 Dec 12 12:41 PM
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.
2005 Dec 12 12:49 PM
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.
2005 Dec 12 12:49 PM
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.
2005 Dec 12 12:54 PM
why are you specifying destination...
just to know...i am asking..
vijay
2005 Dec 12 12:57 PM
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
2005 Dec 12 1:24 PM
Hi
What happened , are you able to see the result..
if so please reward for helpful answers
vijay
2005 Dec 12 1:39 PM
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
2005 Dec 12 3:20 PM
You've commented out "IMPORTING". Put it bck in and it should work.
Rob
2005 Dec 12 3:25 PM
Hi,
Import Statement is commented. Uncomment that.
Regards,
Ramesh
2005 Dec 13 8:23 AM