Application Development 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: 

problem in joining.

former_member841898
Participant
0 Kudos

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

Former Member
0 Kudos

loop at it to wa.

move that field 24 char v_24.

endloop.

here write select query

6 REPLIES 6

Former Member
0 Kudos

loop at it to wa.

move that field 24 char v_24.

endloop.

here write select query

0 Kudos

hi sir ,

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

rewarded

thanks pankaj

Former Member
0 Kudos

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

0 Kudos

thanks kaveri maam,

problem is solved, rewarded

pankaj

SantoshKallem
Active Contributor
0 Kudos

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

regards.

santhosh

0 Kudos

thanks sir,

problem is solved .rewarded.

pankaj