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

help me

laxman_sankhla3
Participant
0 Likes
320

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
296

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

1 REPLY 1
Read only

Former Member
0 Likes
297

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