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: 

Clearing partially a document using POSTING_INTERFACE_CLEARING

Former Member
0 Kudos

Hello.

I want to clear <b>partially</b> a financial document using POSTING_INTERFACE_CLEARING (transaction FB05), but when I try to do it, I obtain an error "No data for SAPDF05X dynpro 3100".

I can clear it completely.

Is it possible to clear partially a financial document?

Thanks very much.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

FB05 is "Post with Clearing". If you want to simply clear an existing document, you can use one of the clearing transactions such as F-03.

But in general, you don't clear documents; you clear document line items. So yes, you can partially clear a document by clearing only some of the line items.

Rob

12 REPLIES 12

Former Member
0 Kudos

FB05 is "Post with Clearing". If you want to simply clear an existing document, you can use one of the clearing transactions such as F-03.

But in general, you don't clear documents; you clear document line items. So yes, you can partially clear a document by clearing only some of the line items.

Rob

0 Kudos

Sorry, but my english is not very good.

What I want is "post with clearing" with POSTING_INTERFACE_CLEARING, but partially.

Thanks.

0 Kudos

If you can do throw FB05, you can do with FM, becose that FM do a BI to this transaction.

Try to run visible passin mode A to FM POSTING_INTERFACE_START and look for error.

Regards.

0 Kudos

You're English is fine. But I don't know of a way to partially clear using FB05 or this FM.

You might search for OSS notes for either the FM or the transaction, though.

Rob

0 Kudos

Example:

I have an invoice from a customer for 100 euros.

The customer pay me only 80 euros.

So, I don't want to post with clearing this invoice for 100 euros, only for 80 euros.

I give 80 euros to POSTING_INTERFACE_CLEARING via t_ftpost and give the invoice number via t_ftclear, but the Batch Input created, doesn't work fine.

0 Kudos

OK - I see. I think you should post your code.

Rob

0 Kudos

Hi Pelayo,

have you solved this issue?

Former Member
0 Kudos

Hi Pelayo Romero,

Have you solved this problem?

If the problem has solved, pls take some time to tell us the answer.

Afterwards, if someone has the problem as you told, he can follow your way to solve his problem.

Thanks.

0 Kudos

I had to do it via batch input.

0 Kudos

Hi There.

I had the same problem and manage to solve it by using the XFIFO field of structure FTCLEAR.

By activating this option ( 'X' ) it was possible to post partial amounts.

Regards,

Miguel Costa

0 Kudos

Hi Friends,

I had the same problem (partially) and solved it by the FM with a simple solution.

When the value is not same, you can post other document, to costumer like this:

  • Batch Input Values

lt_ftpost-stype = 'P'."Header

lt_ftpost-count = 2. "number of Dynpro

lt_ftpost-fnam = 'RF05A-NEWBS'.

lt_ftpost-fval = '40'. "

*Same type as documents cleared via F-32

APPEND lt_ftpost.

lt_ftpost-count = 2. "number of Dynpro

lt_ftpost-fnam = 'RF05A-NEWKO'.

lt_ftpost-fval = gl_account "G/L account.

*Same type as documents cleared via F-32

APPEND lt_ftpost.

lt_ftpost-stype = 'P'."Header

lt_ftpost-count = 2. "number of Dynpro

lt_ftpost-fnam = 'BSEG-WRBTR'.

lt_ftpost-fval = '600,00'. " the partially amount.

*Same type as documents cleared via F-32

APPEND lt_ftpost.

  • Batch Input Values

lt_ftpost-stype = 'P'."Header

lt_ftpost-count = 3. "number of Dynpro

lt_ftpost-fnam = 'RF05A-NEWBS'.

lt_ftpost-fval = '01'. "costumer account.

*Same type as documents cleared via F-32

APPEND lt_ftpost.

lt_ftpost-count = 3. "number of Dynpro

lt_ftpost-fnam = 'BSEG-HKONT'.

lt_ftpost-fval = '9000125'. "costumer account

*Same type as documents cleared via F-32

APPEND lt_ftpost.

lt_ftpost-stype = 'P'."Header

lt_ftpost-count = 3. "number of Dynpro

lt_ftpost-fnam = 'BSEG-WRBTR'.

lt_ftpost-fval = '400,00'. "residual amount

*Same type as documents cleared via F-32

APPEND lt_ftpost.

**************************************

  • Documents to be cleared

lt_ftclear-agkoa = 'D'. "Account Type

lt_ftclear-xnops = 'X'. "Indicator: Select only open items which are not special G/L?

"LT_FTCLEAR-XFIFO = 'X'.

lt_ftclear-agbuk = p_bukrs. "Example company code

lt_ftclear-agkon = p_kunnr. "Example Customer

lt_ftclear-selfd = 'BELNR'."Selection Field

lt_ftclear-selvon = p_doc1. "document selected

lt_ftclear-selbis = p_doc1.

APPEND lt_ftclear.

0 Kudos

Hi,

I used your example but for header it is working fine. If i need to populate with the posting keys values in the line item.

Its not working. can you please provide your inputs.

Thank you,

Regards,

Dinesh.