VinceCoder
3/7/2019 - 4:45 PM

DATI BANCA - IBAN

*GET IBAN BANCA (BUKRS 2310)
*info societarie
SELECT SINGLE * FROM t012 INTO @DATA(ls_t012)
  WHERE bukrs = '2310'.
  
*Qui ci sono le eventuali info dell'istituto di credito
SELECT SINGLE * FROM bnka INTO @DATA(ls_bnka)
  WHERE banks = @ls_t012-banks
  AND   bankl = @ls_t012-bankl.
  
*qui vado a prendere l'iban
SELECT SINGLE * FROM tiban INTO @DATA(ls_tiban)
  WHERE banks = @ls_t012-banks
  AND   bankl = @ls_t012-bankl.