‎2008 Jun 19 2:09 PM
Hi,
i have table itabwith colaman of currency and i wont to
now if in the currency colman i have more then one curr.
itab
curr
usd
usd
usd
INR
INR
euro
here in the table i have 3 different currency
i wot to now if i have more then 1 different currency.
Regards
‎2008 Jun 19 2:11 PM
Write the coding as :
sort itab by currency.
itab1[] = itab[].
delete adjacent duplicates from itab1 comparing currency.
describe table itab1 lines v_lines.
if v_lines > 1.
*U have more than 1 different currency.
endif.
‎2008 Jun 19 2:11 PM
Write the coding as :
sort itab by currency.
itab1[] = itab[].
delete adjacent duplicates from itab1 comparing currency.
describe table itab1 lines v_lines.
if v_lines > 1.
*U have more than 1 different currency.
endif.
‎2008 Jun 19 2:13 PM
SORT itab BY cirrency.
DELETE ADJACENT DUPLICATES FROM itab COMPARING currency.
DESCRIBE TABLE otab LINES sy-tfill.
IF sy-tfill GT 1.
Multiple currencies exist.
ENDIF.
Regards,
Kiran Bobbala
Edited by: kiran Bobbala on Jun 19, 2008 3:13 PM