Application Development and Automation 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: 
Read only

Reading data from Field Symbols which forms structure dynamically

Former Member
0 Likes
560

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
529

Hi Chandravadan,

refer to the code posted in following link:

Hope this will help you........

2 REPLIES 2
Read only

Former Member
0 Likes
530

Hi Chandravadan,

refer to the code posted in following link:

Hope this will help you........

Read only

0 Likes
529

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