Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. report zvab.
  2.  
  3. types:
  4. begin of ty_cidade,
  5. cidade type string,
  6. estado type string,
  7. end of ty_cidade.
  8.  
  9. types:
  10. begin of ty_time,
  11. posicao type i,
  12. nome type string,
  13. cidade type ty_cidade,
  14. end of ty_time,
  15.  
  16. ty_file type x length 1024.
  17.  
  18. data t_times type table of ty_time.
  19. data t_file type table of ty_file.
  20.  
  21. field-symbols <time> like line of t_times.
  22.  
  23. data v_xml type xstring.
  24. data v_filelength type i.
  25.  
  26.  
  27. start-of-selection.
  28.  
  29.  
  30. cl_gui_frontend_services=>gui_upload(
  31. exporting
  32. filename = 'c:/temp/times.xml'
  33. filetype = 'BIN'
  34. importing
  35. filelength = v_filelength
  36. changing
  37. data_tab = t_file
  38. ).
  39.  
  40. call function 'SCMS_BINARY_TO_XSTRING'
  41. exporting
  42. input_length = v_filelength
  43. importing
  44. buffer = v_xml
  45. tables
  46. binary_tab = t_file.
  47.  
  48.  
  49. call transformation zvab03
  50. source xml v_xml
  51. result time = t_times.
  52.  
  53. break-point .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement