Abap search help

4,976 views
4,658 views

Published on

Abap search help

1 Comment
2 Likes
Statistics
Notes
No Downloads
Views
Total views
4,976
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
204
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide

Abap search help

  1. 1. SEARCH HELP ABAP Fundamental Authors: Tăng Chí Hùng Refer to: ABAP Training Material of Tran Anh Tu and Nguyen Van Sinh
  2. 2. ELEMENTARY SEARCH HELP <ul><li>Elementary search helps describe a search path. </li></ul><ul><li>The elementary search help must define where the data of the hit list should be read from. </li></ul><ul><li>An elementary search help defines the standard flow of an input help. </li></ul>
  3. 3. ELEMENTARY SEARCH HELP
  4. 4. ELEMENTARY SEARCH HELP
  5. 5. ELEMENTARY SEARCH HELP
  6. 6. ELEMENTARY SEARCH HELP
  7. 7. COLLECTIVE SEARCH HELP <ul><li>Collective search helps combine several elementary search helps. </li></ul><ul><li>Collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with collective search help. </li></ul>
  8. 8. COLLECTIVE SEARCH HELP
  9. 9. COLLECTIVE SEARCH HELP
  10. 10. COLLECTIVE SEARCH HELP
  11. 11. COLLECTIVE SEARCH HELP
  12. 12. COLLECTIVE SEARCH HELP
  13. 13. ADD SEARCH HELP TO SCREEN FIELD <ul><li>Can attach Search Help in two ways: </li></ul><ul><ul><li>Static Attachment </li></ul></ul><ul><ul><li>Dynamic Attachment </li></ul></ul>
  14. 14. Static Attachment <ul><ul><li>PARAMETERS p MATCHCODE OBJECT search_help </li></ul></ul><ul><ul><li>ex: PARAMETERS p_carrid TYPE s_carr_id            MATCHCODE OBJECT demo_f4_de. </li></ul></ul><ul><ul><li>a)  To a selection-screen element: </li></ul></ul>
  15. 15. Static Attachment <ul><ul><li>Goto Layout -> Field Attributes -> Dict Tab – > Search Help </li></ul></ul><ul><ul><li>Field. Specify the search help which you want to attach. </li></ul></ul><ul><ul><li>b)  To a Dynpro element: </li></ul></ul>
  16. 16. DYNAMIC ATTACHMENT <ul><ul><li>PARAMETERS: p_carrid (2). </li></ul></ul><ul><ul><li>DATA: table1 LIKE ddshretval OCCURS 0 WITH HEADER LINE. </li></ul></ul><ul><ul><li>AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carrid . </li></ul></ul><ul><ul><li>CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' </li></ul></ul><ul><ul><li>EXPORTING </li></ul></ul><ul><ul><li>tabname = 'scarr' </li></ul></ul><ul><ul><li>fieldname = 'carrid’ </li></ul></ul><ul><ul><li>DYNPROFIELD = ' p_carrid ’ </li></ul></ul><ul><ul><li>TABLES </li></ul></ul><ul><ul><li>return_tab = table1 </li></ul></ul><ul><ul><li>EXCEPTIONS </li></ul></ul><ul><ul><li>field_not_found = 1 </li></ul></ul><ul><ul><li>no_help_for_field = 2 </li></ul></ul><ul><ul><li>inconsistent_help = 3 </li></ul></ul><ul><ul><li>no_values_found = 4 </li></ul></ul><ul><ul><li>OTHERS = 5 . </li></ul></ul><ul><ul><li>a)  To a selection-screen element: </li></ul></ul>
  17. 17. DYNAMIC ATTACHMENT <ul><li>In PAI of the screen, call the event On value Request. </li></ul><ul><li>PROCESS ON VALUE-REQUEST. </li></ul><ul><li>FIELD: FIFLNAME1 MODULE get_objval. </li></ul><ul><ul><li>b)  To a Dynpro element: </li></ul></ul>
  18. 18. THE END

×