Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

find data itab

Former Member
0 Likes
397

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
372

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.

2 REPLIES 2
Read only

Former Member
0 Likes
373

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.

Read only

Former Member
0 Likes
372

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