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

problem in joining.

former_member841898
Participant
0 Likes
802

hi all,

i m selecting hkont (gl no) ,gsber ( business area) from table bseg.

e.g. select hkont gsber from bseg into table ibseg.

now i m selecting subclass(orgz unit) , set name (set id) , valfrom (from value)

from table setleaf.

eg. select subclass setname valfrom from setleaf into table iset for all entries in ibseg where valfrom = ibseg-hkont .

now the data type of valfrom is 'C' and <b>length is 24</b> , but that of hkont is 'C' and <b>length is 10</b> , so it is gving syntax error . how to resolve this.

thanks

pankaj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
766

loop at it to wa.

move that field 24 char v_24.

endloop.

here write select query

6 REPLIES 6
Read only

Former Member
0 Likes
767

loop at it to wa.

move that field 24 char v_24.

endloop.

here write select query

Read only

0 Likes
766

hi sir ,

thanks for ur code........

rewarded

thanks pankaj

Read only

Former Member
0 Likes
766

Hi Pankaj,

Try this...

take one more inttemp table for ur field wid field length 24 of type char.

inttemp[] = int[].

select subclass setname valfrom from setleaf into table iset for all entries in inttemp where valfrom = ibseg-hkont .

Regards,

Kaveri

Read only

0 Likes
766

thanks kaveri maam,

problem is solved, rewarded

pankaj

Read only

SantoshKallem
Active Contributor
0 Likes
766

while declaration of HKONT in internal table, Give the length of 24 of type c and check

regards.

santhosh

Read only

0 Likes
766

thanks sir,

problem is solved .rewarded.

pankaj