yaramohamed78

Untitled

Mar 15th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. *----------------------------------------------------------------------*
  2. ***INCLUDE ZDISPOSAL_PAI_SCREEN1.
  3. *----------------------------------------------------------------------*
  4. *&---------------------------------------------------------------------*
  5. *& Module USER_COMMAND_0001 INPUT
  6. *&---------------------------------------------------------------------*
  7. * text
  8. *----------------------------------------------------------------------*
  9. MODULE USER_COMMAND_0001 INPUT.
  10. get CURSOR FIELD CURSORFIELD.
  11. CASE sy-ucomm .
  12. WHEN 'SEARCH'. "search
  13. PERFORM set_ids.
  14. IF HAS_ERROR = abap_false.
  15. PERFORM search.
  16. else.
  17. CLEAR IT_REQ. "empty alv table
  18. ENDIF.
  19. perform refresh.
  20.  
  21. WHEN 'RESET'."reset
  22. perform reset.
  23. perform refresh.
  24. CLEAR RES_COUNT_MSG.
  25. RESET_IS_PRESSED = ABAP_TRUE.
  26. CLEAR SELECTED_DOCS.
  27.  
  28. WHEN 'NEW'. " new entery
  29. CALL METHOD R_REQ_GRID->GET_SELECTED_ROWS
  30. IMPORTING
  31. et_index_rows = SELECTED_DOCS.
  32.  
  33. set parameter id 'BUK' field ZFI_DISPOSAL_REQ-ZZCOMPANY_CODE .
  34. set parameter id 'SELECTED_REQ_ID' field '-1' ." clear
  35. set parameter id 'OP_SC1' FIELD 'A'." insert operation for master data
  36. set parameter id 'OP_SC2' FIELD 'S'." SHOW operation for Details data(assets)
  37. set parameter id 'OP_SC3' FIELD 'S'." SHOW operation for Details data(DOCS)
  38. set parameter id 'OP_SC4' FIELD 'S'." SHOW operation for Details data(APPROVAL)
  39. CALL TRANSACTION 'ZDREQ'.
  40.  
  41. "28/6/2015 >>>>>>>>>>>>>>>>
  42. "Empty ALV After Return
  43. CLEAR IT_REQ. "empty alv table
  44. CLEAR RES_COUNT_MSG.
  45. PERFORM refresh.
  46. "28/6/2015 <<<<<<<<<<<<<<<<
  47.  
  48. WHEN 'BACK'.
  49.  
  50. leave to screen 0. " 23-6-15 omar el halawany
  51.  
  52. ENDCASE.
  53. ENDMODULE. " USER_COMMAND_0001 INPUT
Add Comment
Please, Sign In to add comment