Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3575

ABAP Development!

$
0
0

Hi all,

 

I have developed a program to clear all the open items against the GL account. I am aware that it can be done via standard transaction(F-03) But I am told to create a custom program for that.

 

Since there is no BAPI available for clearing I used queries comparing BSAS, BSIS and updated the same. For your kind reference, I have mentioned the queries below.

 

** Open Items

   SELECT * FROM bsis INTO TABLE lt_bsis1

     FOR ALL ENTRIES IN lt_delalv

     WHERE belnr = lt_delalv-belnr

       AND blart = lt_delalv-blart

       AND budat = lt_delalv-budat

       AND bschl = lt_delalv-bschl.

 

** Clear items:

     SELECT * FROM bsas INTO TABLE lt_bsas

       FOR ALL ENTRIES IN lt_bsis1

       WHERE bukrs = lt_bsis1-bukrs

       AND   gjahr = lt_bsis1-gjahr

       AND   belnr = lt_bsis1-belnr

       AND   augdt >= lt_bsis1-augdt

       AND   budat <= lt_bsis1-budat.



This is working fine. FBL3N and FS10N is getting updated.


But the issue is with FS10N. While double clicking on the credit, debit or balance entry the values are displayed correctly. But in screen level it is failed to display. PFTA of the screenshot along with this query for your kind reference.


I debugged the standard Tcode 'FS10N' and figured out this standard program 'RFGLBALANCE'. I tried calling it in my custom development but still I couldn't fix the error.


Can this be resolved in any other alternative way ? Or How it can be done using the same standard program ?


Please suggest me what should be done. Thanks in advance.


Viewing all articles
Browse latest Browse all 3575

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>