2012 May 17 6:59 AM
Hi, Experts
I had Developed a Classical Report, Now my Client want to Add the FILTER FUNCTIONALITY for the Report.
How to achieve it, is there any FM or class or Standard code for the filter functionality .
Thank you
Regards
Abhinav N
2012 May 17 7:04 AM
HI, Why dont you use an ALV display?
If that's not possible, I guess you can add a button in the output and handle the code for filtering there.
I dont think there are any FM's you can use to acheive this.
2012 May 17 7:25 AM
Thank you for your Reply
Actually i had made ME41 to ZME41 and in the CREATE RFQ: SELECTION LIST: PURCHASE REQUISITION report they need to have a FILTER FUNCTIONALITY , so i have added a Icon on tool bar, Now when i click on the icon(filter) i need the filter functionality.
2012 May 17 7:05 AM
Hi,
Why use classical reports? I think you are working on the FI reports.
see this following link
Karthik.R
2012 May 17 7:25 AM
Thank you for your Reply
Actually i had made ME41 to ZME41 and in the CREATE RFQ: SELECTION LIST: PURCHASE REQUISITION report they need to have a FILTER FUNCTIONALITY , so i have added a Icon on tool bar, Now when i click on the icon(filter) i need the filter functionality.
2012 May 17 7:40 AM
2012 May 17 8:03 AM
Thank you.
Do you have any code that when i Click on Button a Pop Screen with select-options will appear.
2012 May 17 2:41 PM
Hi Abhinav,
You can use the FM POPUP_GET_VALUES to create dynamic selection options on fields you want.
So after the filter call that FM and when the user enters filter criteria, refresh the report by restricting the output table entries as per user input.
Hope this will be helpful.
Regards,
Karthik D
2012 May 21 10:59 AM
2012 May 21 11:07 AM
Hi Abhinav,
On pressing the Filter button you should call the POPUP_GET_VALUES function module with all the report fields.
After the user enters the value for filter you can then use the same to delete the unwanted records from the list output internal table and re write the classical report using the filtered record.
Try this and let me know if it works.
Regards,
Karthik D
2012 May 22 9:25 AM
Thank you
I Need a little help, when i click on the button The FM is executing, In this Fm when I press F4 i need to get the Values of the Internal table, and when i select one value and execute , the internal table should be Modified, can you send a Logic for this , tried in many ways but can not.
Regards
Abhinav N
2012 May 22 9:35 AM
Thank you
I Need a little help, when i click on the button The FM is executing, In this Fm when I press F4 i need to get the Values of the Internal table, and when i select one value and execute , the internal table should be Modified, can you send a Logic for this , tried in many ways but can not.
Regards
Abhinav N
2012 May 22 9:46 AM
Hi Abhinav,
Since the F4 help and other events are handled by the Popup function itself we can't do much in restricting the F4 help values.
In that case you need to create your own function module/screen to get the filter values of the report fields.
Regards,
Karthik D
2012 May 23 9:43 AM
Thank You
Can You send any Sample code for this
Regards
Abhinav N
2012 May 23 9:53 AM