Application Development and Automation 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: 
Read only

BAPI FM not working.

Former Member
0 Likes
665

Hi,

I am using BAPI_GL_GETGLACCPERIODBALANCES to get 'FS10N' data,

but its returning an empty structure.

Code:

DATA: IT_TAB TYPE STANDARD TABLE OF BAPI1028_4.

CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'

   EXPORTING

     COMPANYCODE                   = '1000'

     GLACCT                        = '2408408'

     FISCALYEAR                    = 2013

     CURRENCYTYPE                  = '10'

* IMPORTING

*   BALANCE_CARRIED_FORWARD       =

*   RETURN                        =

   TABLES

     ACCOUNT_BALANCES              = IT_TAB.

Its returning empty IT_TAB.

If i run transaction 'FS10N' with input parameters:

Company Code: 1000,

GLACCT = 1000

fiscal year = 2013,

I get  a list generated..

Should i be using some other BAPI to dispaly open GRs?

There are standard transactions to display open GRs i suppose,

but i need a custom report for it since displaying some additional field columns.

So i dont need transactions right now.

I just need any BAPI which can return me FI Doc number and Fiscal year (BSEG data) for all open GRs.

This BAPI can refer to any relevant transactions as long as they

return me FI Doc number and Fiscal year (BSEG data) for all open GRs for input parameters - Comapny Code, GL Account And Fiscal Year.

Thankyou,

KS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

Hi,

please check line

     GLACCT                        = '2408408'

Maybe you forgot some leadiing zeroes ...

Please try also with

     GLACCT                        = '0002408408'

Regards,

Klaus

3 REPLIES 3
Read only

Former Member
0 Likes
612

Hi,

please check line

     GLACCT                        = '2408408'

Maybe you forgot some leadiing zeroes ...

Please try also with

     GLACCT                        = '0002408408'

Regards,

Klaus

Read only

0 Likes
611

In addition to Klaus's reply, you can uncomment and use BAPI's return parameter to see exact error message.

Read only

0 Likes
611

Klaus,

Thanks a ton!!! Its working now!

Regards,

KS