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: 

select query on table returned by bapi

Former Member
0 Kudos

Hi all,

I m facing a problem in using bapi , i m using bapi 'BAPI_GL_GETGLACCPERIODBALANCES' as like this

CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'

EXPORTING

companycode = '1000'

glacct = itab-hkont

fiscalyear = itab-gjahr

currencytype = '10'

  • IMPORTING

  • BALANCE_CARRIED_FORWARD =

  • RETURN =

tables

account_balances = itab1.

it is returning 16 value in itab1 but i just want to pick a single line for e.g bal in period = 4.

how to go ahead

kindly suggest

thanks

reagrds

sarabjit

2 REPLIES 2

Former Member
0 Kudos

hi,

Read the table itab1 with the key fields according to your requirement and delete all other entries from the table if that condtion is not satisied.

Regards,

Srilatha

Former Member
0 Kudos

thanks a lot