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: 

FM POSTING_INTERFACE_CLEARING for posting FB05

jack_wong
Participant
2,182

Hi,

In this FM, there is a table T_FTCLEAR

I passed in 2 search parameters into T_FTCLEAR:

BELNR = 12345 and GJAHR = 2011

However, when the BDC runs into this screen (SAPMF05A 0733), the default operation is OR

Meaning, FB05 will search for document where BELNR = 12345 OR GJAHR = 2011

Anyone knows how to change the operation to AND?

The OKCODE to switch from OR to AND is =SLM2.

But we're in 4.7, no enhancement point feature.

If there any config or OSS note I can refer to?

Thanks

Jack

1 ACCEPTED SOLUTION

jack_wong
Participant
1,275

T_FEBCL-SELFD = 'BELNR'.

CONCATENATE wa_bsis-belnr wa_bsis-gjahr INTO t_febcl-selvon.

APPEND t_febcl.

It worked.

3 REPLIES 3

Former Member
0 Kudos
1,275

There are certain rules that you need to adhere to as per the documentation

Note the following rules:

The AGKOA (Account type) field in each FTCLEAR line must be filled.

The field AGKON (Account number) should only NOT be filled, if either the field 'BELNR' (Document number) or the field 'XBLNR' (Reference document number) is used as a selection criterion. Otherwise the account number must be specified in each FTCLEAR line.

The field AGBUK (Company code) must be filled in each FTCLEAR line.

The selection criterion in field SELFD is a character field of length 5. The field names from the document index can be used.

Removed code tags

Edited by: Rob Burbank on Jan 3, 2012 9:28 AM

jack_wong
Participant
1,276

T_FEBCL-SELFD = 'BELNR'.

CONCATENATE wa_bsis-belnr wa_bsis-gjahr INTO t_febcl-selvon.

APPEND t_febcl.

It worked.

1,062

Oh my god thank you so much for posting this solution, this saved days of effort which I'd have to put by doing my own bdc for this. I have no idea how just simply concatenating the document no and year in sevlon is working when we have given selfd as 'BELNR'.

I have been searching for a long time how to clear based on two conditions in POSTING_INTERFACE_CLEARING. Adding a few keywords so that other people in future are able to google out this solution.

Multiple conditions in FTCLEAR in POSTING_INTERFACE_CLEARING

How to add two SELFD in POSTING_INTERFACE_CLEARING