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

Search Help Exit Problem.

Former Member
0 Likes
531

Hia Everybody,

There is a dbase zcst_mst in which one of the field is PARFN. The PARFN domain is ZPARFN which has fixed values(SOTP, SHTP, BHTP).

Now i want a F4 help for some other field where it retrieves the values only related to SOTP or SHTP or BHTP. That means if I press F4 then it should retrieve only those values where PARFN = SHTP. or SOTP or BHTP.

Please help in coding thru Search help exit.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Thanks for your valuable suggestions...I solved the problem using the below code..

DATA: lwa_temp LIKE record_tab,

         lt_temp LIKE TABLE OF record_tab.

  IF callcontrol-step = 'DISP'.

     LOOP AT record_tab INTO lwa_temp WHERE string CS 'Y'.

       APPEND lwa_temp TO lt_temp.

     ENDLOOP.

     CLEAR record_tab[].

     record_tab[] = lt_temp[].

     REFRESH lt_temp.

   ENDIF.

I created a search help exit with the above code.

3 REPLIES 3
Read only

VijayCR
Active Contributor
0 Likes
489

Hi Kishore,

     I fi understand your question correctly you dont need any coding for that you can use the belowlinl http://saptechnical.com/Tutorials/ABAP/SearchHelp/page1.htm .Where we can use search help for the above Requirement hope its halpful.

Thanks,

Vijay

Read only

vinoth_aruldass
Contributor
0 Likes
489

hi,

you can fix those values for ZPARFN in the domains value range and use the domain in the data element your problem will be solved.

hope it helps,

Vinoth.

Read only

Former Member
0 Likes
490

Thanks for your valuable suggestions...I solved the problem using the below code..

DATA: lwa_temp LIKE record_tab,

         lt_temp LIKE TABLE OF record_tab.

  IF callcontrol-step = 'DISP'.

     LOOP AT record_tab INTO lwa_temp WHERE string CS 'Y'.

       APPEND lwa_temp TO lt_temp.

     ENDLOOP.

     CLEAR record_tab[].

     record_tab[] = lt_temp[].

     REFRESH lt_temp.

   ENDIF.

I created a search help exit with the above code.