Advertisement
Guest User

abap_source_code

a guest
Jul 23rd, 2014
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. CLASS zbc_currency_conversion_hana DEFINITION
  2. PUBLIC
  3. FINAL
  4. CREATE PUBLIC .
  5. PUBLIC SECTION.
  6. INTERFACEs if_amdp_marker_hdb.
  7.  
  8. types: lt_amount type standard TABLE OF BAPICURR.
  9. types: ls_amount type line of lt_amount.
  10.  
  11. METHODS convert
  12. IMPORTING
  13. value(demo_prices) TYPE lt_amount
  14. value(numRows) type integer
  15. EXPORTING
  16. value(et_amount) type lt_amount.
  17.  
  18. PROTECTED SECTION.
  19. PRIVATE SECTION.
  20. ENDCLASS.
  21.  
  22. CLASS zbc_currency_conversion_hana IMPLEMENTATION.
  23. METHOD convert BY DATABASE PROCEDURE FOR HDB
  24. LANGUAGE SQLSCRIPT.
  25. PRICES = select * from demo_prices;
  26. CE_CONVERSION (
  27. :PRICES,
  28. [ family = 'currency',
  29. method = 'ERP',
  30. steps = 'shift,convert,shift_back',
  31. target_unit = 'EUR',
  32. client = '900',
  33. source_unit_column = 'BAPICURR',
  34. reference_date = '01.07.2014',
  35. output_unit_column = 'BAPICURR',
  36. error_handling = 'keep unconverted' ],
  37. [ amount AS amount ] );
  38. et_amount = select * from :prices;
  39. ENDMETHOD.
  40. ENDCLASS.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement