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

POSTING_INTERFACE_CLEARING

0 Likes
2,309

Hi all,

I have a problem using the FM POSTING_INTERFACE_CLEARING. Fist, I fill the internal table called ftpost with the information about BKPF and BSEG.

Then I fill the ftclear with apropriate information.

    CLEAR ls_ftclear.
    ls_ftclear-agkon = <lfs_wa_bsid>-kunnr.
    ls_ftclear-agbuk = <lfs_wa_bsid>-bukrs.
    ls_ftclear-xnops = 'X'.
    ls_ftclear-agums = <lfs_wa_bsid>-umskz.
    ls_ftclear-selfd = 'BELNR'.
    CONCATENATE <lfs_wa_bsid>-belnr
                <lfs_wa_bsid>-gjahr
                <lfs_wa_bsid>-buzei
           INTO ls_ftclear-selvon.
    APPEND ls_ftclear TO li_ftclear.

ok, when I try to use the program I get this error: "The difference is too large for clearing"

I have investigate the problem I have trow the bath (with SHDB) ussing tje informatión of "tf" befor the call transaction (in LFIPIF00 line 1661)

        call transaction tcode using  ft
                             options from wa_opt            "N811562
                             messages into tab_msg.

The problem is in dynpro 6102. How can I resolve the isue

3 REPLIES 3
Read only

Former Member
0 Likes
1,335

hello,

It seems that the amount you are trying to post is either greater or less than the amount available. Check the values and try to post again.

best regards,

swanand

Read only

0 Likes
1,335

dear Swanand,

it was the first I test. I have get the amount from bsid


    ls_ftpost-fnam = 'BSEG-WRBTR'.
    WRITE <lfs_wa_bsid>-wrbtr TO ls_ftpost-fval(16) CURRENCY <lfs_wa_bsid>-waers.
    APPEND ls_ftpost TO li_ftpost.

and it is the correct amount. May be I have to use it in othe way....

Read only

Former Member
0 Likes
1,335

Hi Pablo,

when clearing the amounts are not matching, and the difference between the 2 amunts is greater than what is allowed by actual system settings

To fix the issue you have to

1/ check tolerances for automatic clearing using transaction OBA0, you can increase the margin (tolerence for difference)

2/ Set / check account that will be used for posting clearing difference using transaction OBXZ

Best regards

Ihsen ABROUG