‎2009 Jan 22 2:54 AM
I have requirement where User don't want the records to be appeared in the Search Help which are set for Archiving, I am trying to restrict the records before it gets displayed in the search help, so I debugged the SAP code and found that there is F4_GET_RESULT function module in which the there is Field Symbols <itab> which contains the data which is going to display. Now I want to write a code to delete the records which are set for Archiving, but I am not able to read the data from the field symbol.
Following is the code of F4_GET_RESULT :
CREATE DATA result_ref TYPE STANDARD TABLE OF (sel_method).
ASSIGN result_ref->* TO <itab>.
Above SEL_METHOD Contains the view name of the search help, based on the selected search help in the Collective search help. for ex. M_MJG0M and forms the structure as of M_MJG0M.
FETCH NEXT CURSOR cursor-c INTO TABLE <itab>
PACKAGE SIZE max_select.
Above statment fetched the data into <itab>, Now after this I want to do the implicit enhancement where I will write code to delete the records from <itab>.
Please suggest how to read the data from the Field Symbols which forms the structure dynamically based on the search help choosed and the corresponding view of the search help.
Please guide me on this.
‎2009 Jan 22 3:14 AM
‎2009 Jan 22 3:14 AM
‎2009 Jan 22 3:50 PM
Hi Rajeev,
Thanks for the reply.
The link which you provided was helpful, Now I am able to get the data into Internal table from Field Symbol.
Thanks,
Chandravadan
Edited by: Chandravadan Jaiswal on Jan 22, 2009 8:05 PM