Hello Daniel Roa,
Please, follow the below related note..., I hope this will helps you...,
Note 62435 - F-03: Selection by purchasing documents
Symptom
1. When you use Transaction F-03 (Clear G/L account), the warning message F5170 'No open items were found' is displayed in cases where you select by purchasing document.
2. However, when you process the line items using the selection 'Document number' and entering the individual document numbers, the numbers of the purchasing documents are displayed. When you enter document number intervals, the statement made under point 1 applies again.
Additional key words
Manual clearing, GR/IR, SAPF123, SAPF123W
Cause and prerequisites
Re symptom 1:
In this case, program SAPMF05A reads table BSIS. However,
there is no 'EBELN' field (purchasing document) in table BSIS. It
is currently not planned for the standard system to include the EBELN field in the table. Selecting by purchasing document is only supported for vendor accounts.
Re symptom 2:
In this case, table BSEG is read directly. There,
the field 'EBELN' exists.
Solution
In the standard system, no solution is currently provided for this problem. In principle, you can achieve the functionality by a modification. However, you should consider whether a change is absolutely necessary (the GR/IR clearing account should always be cleared automatically and an assignment of goods receipts and the corresponding invoice receipts is possible via the purchase order number/item in this case).
If nevertheless you decide on a modification, the following remarks should help you solve your problem and inform you about how complex and time-consuming this modification is:
You can include field EBELN in tables BSIS and BSAS through a modification. Since the index table BSIS or BSAS respectively is filled by 'MOVE-CORRESPONDING' from table BSEG, field 'EBELN' should exist in table BSIS or BSAS after this. Otherwise, the corresponding positions at which table BSIS or BSAS is filled are also to be modified so that a proper update of table BSIS or BSAS is ensured. If you want to also apply the changes to documents that were posted prior to this modification, you would have to write a report which transfers the purchase order number from table BSEG into the index tables BSIS or BSAS. You should thoroughly test such modifications in a test system (a comparison of table BSEG with BSIS/BSAS using Transaction SE16 is very useful, for example).
Regards,
Sagar