‎2007 Feb 07 10:00 AM
hi i want
table with heade line and also with unique key
so how i can do it please suggest me.
types: begin of ty_tax ,
item_no type EBELP,
per type KBETR,
amt type KWERT,
end of ty_tax.
data: l_stax type ty_tax occurs 0 with header line.
this below table with heade line and also with unique ker with <b> per</b>
<b>DATA L_STAX1 LIKE sorted TABLE OF L_STAX
WITH UNIQUE KEY per .</b>
thanks in advanced.
‎2007 Feb 07 10:06 AM
Hi
It's not good idea to have a numeric field as key, you should convert the percentage to char format.
types: begin of ty_tax ,
item_no type EBELP,
per_C(10) type c
per type KBETR,
amt type KWERT,
end of ty_tax.
DATA L_STAX1 TYPE SORTED TABLE OF TY_TAX WITH UNIQUE KEY PER_C WITH HEADER LINE .Max
‎2007 Feb 07 10:06 AM
Hi
It's not good idea to have a numeric field as key, you should convert the percentage to char format.
types: begin of ty_tax ,
item_no type EBELP,
per_C(10) type c
per type KBETR,
amt type KWERT,
end of ty_tax.
DATA L_STAX1 TYPE SORTED TABLE OF TY_TAX WITH UNIQUE KEY PER_C WITH HEADER LINE .Max