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 with where join condition

Former Member
0 Likes
930

Hi,

how to match in the where condition of different data types of different length.

I have problem here,vbuk-vbeln(10) and cdhdr-objectid(90).I need to check in where condition for joining

to get the information for username date time for the particular sales document.(vbak-vbeln).

regards,

nag.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
801

put that field in another variable with the required length

move the value in that variable

and then compare..

hope this helps.

5 REPLIES 5
Read only

Former Member
0 Likes
802

put that field in another variable with the required length

move the value in that variable

and then compare..

hope this helps.

Read only

Former Member
0 Likes
801

take the values of VBUK-VBELN.....put these into CDPOS...where objectid = vbuk-vbeln & tabname = 'VBUK'.....to get the change in item level.....now take those OBJECTID.......go to table CDHDR......and take the value that you require...

Read only

Former Member
0 Likes
801

Hi ,

I think rather than using JOIN you can go for FOR ALL ENTRIES.

Firstly fetch all the resperctive values form VABK and put in a table that has a structure that is compatible with the next table of fetch CDHDR. ( as VBELN of length 90).

Then use this table to fetch the values from CDHDR.

Regards,

Radhika,

Read only

0 Likes
801

>

> I think rather than using JOIN you can go for FOR ALL ENTRIES.

Hi radhika,

Performance wise joins are far better than for all entries specially when the number opf entries is large, so better to use joins as much as possible.

кu03B1ятu03B9к

Read only

Former Member
0 Likes
801

Hi,

Can you try as below

vbuk-vbeln = cdhdr-objectid+(10).

Means it will check first 10 characters of object id with VBUK-VBELN.

But make sure that first 10 characters of object id is equal to VBELN.

Thanks,