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: 

Function Module for GL open Items

Former Member
0 Kudos

Hi Experts,

Is there function module to find out Open Item for any GL, like we have Fn Module for Vendor and Customer open items.

Any Suggestions?

Rajiv Ranjan

1 ACCEPTED SOLUTION

Former Member

Hi

No there's is one, but you can use the same concept to get the open item for a certain date just like for vendor and customer.

The open item are the open items posted on the date <date> and the cleared items posted on the date <date> but cleared after <date>, so:

DATA: T_GL_ITEMS LIKE STANDARD TABLE OF BSIS.

* Open Items
SELECT * FROM BSIS INTO TABLE T_GL_ITEMS WHERE BUKRS = ...
                                           AND HKONT = ....
                                           AND BUDAT <= <DATE>.
* Clear items:
SELECT * FROM BSAS APPENDING TABLE T_GL_ITEMS WHERE BUKRS = ...
                                                AND HKONT = ....
                                                AND AUGDT > <DATE>
                                                AND BUDAT <= <DATE>.

Max

5 REPLIES 5

Former Member
0 Kudos

Hi,

try bapi is BAPI_ACC_GL_POSTING_POST

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hi

Use the table <b>BSIS</b> straight away by writing a Select query

Why you need a fun module for this

BSIS is nothing but GL open items table

if you need check the fun modules

<b>FAGL_GET_OPEN_ITEMS_GL</b>

FAGL_GET_OPEN_ITEMS

<b>Reward points for useful Answers</b>

Regards

Anji

Message was edited by:

Anji Reddy Vangala

Former Member
0 Kudos

You can find out Open Line items directly from table BSIS,

you don't need to use function module for that,

anyhow you can still try LOAN_GET_OPEN_ITEMS_GL

Former Member

Hi

No there's is one, but you can use the same concept to get the open item for a certain date just like for vendor and customer.

The open item are the open items posted on the date <date> and the cleared items posted on the date <date> but cleared after <date>, so:

DATA: T_GL_ITEMS LIKE STANDARD TABLE OF BSIS.

* Open Items
SELECT * FROM BSIS INTO TABLE T_GL_ITEMS WHERE BUKRS = ...
                                           AND HKONT = ....
                                           AND BUDAT <= <DATE>.
* Clear items:
SELECT * FROM BSAS APPENDING TABLE T_GL_ITEMS WHERE BUKRS = ...
                                                AND HKONT = ....
                                                AND AUGDT > <DATE>
                                                AND BUDAT <= <DATE>.

Max

Former Member
0 Kudos

This message was moderated.