Advertisement
Gireada

ABAP CNP

Apr 25th, 2019
1,337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 2.88 KB | None | 0 0
  1. *&---------------------------------------------------------------------*
  2. *& Report  Z_PROIECT_GRIGORE_CNP
  3. *&
  4. *&---------------------------------------------------------------------*
  5. *&
  6. *&
  7. *&---------------------------------------------------------------------*
  8.  
  9. REPORT  Z_PROIECT_GRIGORE_CNP.
  10.  
  11. Data x1 Type p DECIMALS 4.
  12. Data x11 Type p DECIMALS 4.
  13. Data x12 Type p DECIMALS 4.
  14. Data delta Type p DECIMALS 4.
  15. Data delta1 Type p DECIMALS 4.
  16. Data sol Type p DECIMALS 4.
  17.  
  18. Parameters an type p.
  19. Parameters luna type p.
  20. Parameters ziua type p.
  21.  
  22.  
  23. data: begin of itab occurs 0,
  24.  
  25. str type string,
  26.  
  27. end of itab.
  28.  
  29. itab-str = 'ALBA'. append itab.
  30. itab-str = 'ARAD'. append itab.
  31. itab-str = 'ARGES'. append itab.
  32. itab-str = 'BACAU'. append itab.
  33. itab-str = 'BIHOR'. append itab.
  34. itab-str = 'BISTRITA-NASAUD'. append itab.
  35. itab-str = 'BOTOSANI'. append itab.
  36. itab-str = 'BRASOV'. append itab.
  37. itab-str = 'BRAILA'. append itab.
  38. itab-str = 'BUZAU'. append itab.
  39. itab-str = 'CARAS-SEVERIN'. append itab.
  40. itab-str = 'CLUJ'. append itab.
  41. itab-str = 'CONSTANTA'. append itab.
  42. itab-str = 'COVASNA'. append itab.
  43. itab-str = 'DAMBOVITA'. append itab.
  44. itab-str = 'DOLJ'. append itab.
  45. itab-str = 'GALATI'. append itab.
  46. itab-str = 'GORJ'. append itab.
  47. itab-str = 'HARGHITA'. append itab.
  48. itab-str = 'HUNEDOARA'. append itab.
  49. itab-str = 'IALOMITA'. append itab.
  50. itab-str = 'IASI'. append itab.
  51. itab-str = 'ILFOV'. append itab.
  52. itab-str = 'MARAMURES'. append itab.
  53. itab-str = 'MEHEDINTI'. append itab.
  54. itab-str = 'MURES'. append itab.
  55. itab-str = 'NEAMT'. append itab.
  56. itab-str = 'OLT'. append itab.
  57. itab-str = 'PRAHOVA'. append itab.
  58. itab-str = 'SATU MARE'. append itab.
  59. itab-str = 'SALAJ'. append itab.
  60. itab-str = 'SIBIU'. append itab.
  61. itab-str = 'SUCEAVA'. append itab.
  62. itab-str = 'TELEORMAN'. append itab.
  63. itab-str = 'TIMIS'. append itab.
  64. itab-str = 'TULCEA'. append itab.
  65. itab-str = 'VASLUI'. append itab.
  66. itab-str = 'VALCEA'. append itab.
  67. itab-str = 'VRANCEA'. append itab.
  68. itab-str = 'BUCURESTI'. append itab.
  69. itab-str = 'BUCURESTI-S1'. append itab.
  70. itab-str = 'BUCURESTI-S2'. append itab.
  71. itab-str = 'BUCURESTI-S3'. append itab.
  72. itab-str = 'BUCURESTI-S4'. append itab.
  73. itab-str = 'BUCURESTI-S5'. append itab.
  74. itab-str = 'BUCURESTI-S6'. append itab.
  75. itab-str = 'CALARASI'. append itab.
  76. itab-str = 'GIURGIU'. append itab.
  77.  
  78.  
  79.  
  80.  
  81. DATA INTE TYPE I VALUE 1.
  82.  
  83. TYPE-POOLS: vrm.
  84.  
  85. DATA: name TYPE vrm_id,
  86.  
  87. list TYPE vrm_values,
  88.  
  89. value LIKE LINE OF list.
  90.  
  91.  
  92. PARAMETERS: ps_parm(50) AS LISTBOX VISIBLE LENGTH 52.
  93.  
  94. AT SELECTION-SCREEN OUTPUT.
  95.  
  96.   name = 'PS_PARM'.
  97.  
  98.  
  99. WHILE INTE < 53.
  100.   read table itab index INTE.
  101.   check sy-subrc = 0.
  102.     value-key = INTE.
  103.  
  104.     value-text = itab-str.
  105.  
  106.     APPEND value TO list.
  107.     INTE = INTE + 1.
  108. ENDWHILE.
  109.  
  110.  
  111. CALL FUNCTION 'VRM_SET_VALUES'
  112.  
  113. EXPORTING id = name
  114.  
  115. values = list.
  116.  
  117. START-OF-SELECTION.
  118.  
  119. WRITE: / 'Parameter:', ps_parm.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement