2011 Dec 20 4:07 AM
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
2012 Jan 03 8:47 AM
T_FEBCL-SELFD = 'BELNR'.
CONCATENATE wa_bsis-belnr wa_bsis-gjahr INTO t_febcl-selvon.
APPEND t_febcl.
It worked.
2011 Dec 20 4:22 AM
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
2012 Jan 03 8:47 AM
T_FEBCL-SELFD = 'BELNR'.
CONCATENATE wa_bsis-belnr wa_bsis-gjahr INTO t_febcl-selvon.
APPEND t_febcl.
It worked.
2024 Jun 08 4:15 PM - edited 2024 Jun 08 4:15 PM
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