Advertisement
yaramohamed78

Untitled

Mar 15th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. *----------------------------------------------------------------------*
  2. ***INCLUDE ZDISPOSAL_PBO_SCREEN1.
  3. *----------------------------------------------------------------------*
  4. *&---------------------------------------------------------------------*
  5. *& Module STATUS_0001 OUTPUT
  6. *&---------------------------------------------------------------------*
  7. * text
  8. *----------------------------------------------------------------------*
  9. MODULE STATUS_0001 OUTPUT.
  10. SET PF-STATUS 'ST1'.
  11. SET TITLEBAR '001'.
  12.  
  13. * enforce single tone
  14. IF SINGLETONE_IS_CHECKED = ABAP_FALSE.
  15. PERFORM ENFORCE_SINGLE_TONE.
  16. ENDIF.
  17.  
  18. *---------- Hide un wanted fields that hold ids-----------------
  19. PERFORM set_ids.
  20. SET CURSOR FIELD CURSORFIELD.
  21.  
  22. *---------- create alv report -----------------
  23. if C_REQ_CONTAINER is INITIAL.
  24. *ZFI_DISPOSAL_REQ-ZZCOMPANY_CODE = 1200.
  25. GET PARAMETER ID 'BUK' FIELD ZFI_DISPOSAL_REQ-ZZCOMPANY_CODE .
  26.  
  27. CREATE OBJECT C_REQ_CONTAINER
  28. EXPORTING
  29. container_name = 'CS1'.
  30.  
  31. CREATE OBJECT R_REQ_GRID
  32. EXPORTING
  33. i_parent = C_REQ_CONTAINER.
  34.  
  35. DATA : EVENT_RECEIVER TYPE REF TO event_class ,
  36. EVENT_OBJECT TYPE REF TO cl_alv_event_toolbar_set.
  37.  
  38. *Create object of the event class and setting handler for hotspot click
  39. CREATE OBJECT EVENT_RECEIVER.
  40. SET HANDLER EVENT_RECEIVER->handle_hotspot_click FOR R_REQ_GRID.
  41. SET HANDLER event_receiver->handle_double_click FOR R_REQ_GRID.
  42. CREATE OBJECT EVENT_OBJECT.
  43.  
  44. *------------------ CREATE FIELD CATALOG ------------------------------
  45.  
  46. PERFORM fill_field_cat.
  47.  
  48. CALL METHOD R_REQ_GRID->set_table_for_first_display
  49. * EXPORTING
  50. * I_STRUCTURE_NAME = 'DRAW'
  51. CHANGING
  52. it_fieldcatalog = IT_FCAT_REQ
  53. it_outtab = IT_REQ.
  54.  
  55. else.
  56. IF RESET_IS_PRESSED = ABAP_TRUE.
  57. RESET_IS_PRESSED = ABAP_FALSE.
  58. ELSE.
  59. "28/6/2015 >>>>>>>>>>>>>>>>
  60. *** PERFORM set_ids.
  61. *** IF HAS_ERROR = abap_false.
  62. *** PERFORM search.
  63. *** else.
  64. *** CLEAR IT_REQ. "empty alv table
  65. *** ENDIF.
  66. *** perform refresh.
  67.  
  68. "28/6/2015 <<<<<<<<<<<<<<<<
  69.  
  70.  
  71.  
  72. CALL METHOD R_REQ_GRID->SET_SELECTED_ROWS
  73. EXPORTING
  74. It_index_rows = SELECTED_DOCS.
  75.  
  76. ENDIF.
  77.  
  78. ENDIF.
  79. * REMOVE LEADING ZEROS
  80. PERFORM REMOVE_ZEROS_REQ.
  81. ENDMODULE. " STATUS_0001 OUTPUT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement