cancel
Showing results for 
Search instead for 
Did you mean: 

Offset length for a field in AMDP select query?

winona86
Explorer
601

Hi I am trying to join the vbap and cdpos table for the vbeln and posnr.I am able to compare the vbeln with the object iD , however for the posnr, I am unable to compare with objectkey . Code attached below.

winona86_0-1722958726334.pngwinona86_1-1722958775046.png

 

Accepted Solutions (1)

Accepted Solutions (1)

MKreitlein
Active Contributor

Hello @winona86 

I'm not sure if you are able to do an offset comparison in a SELECT statement at all (or maybe only in the WHERE clause it would not work)?!

Based on the idea of @shashankmistry3175 ... I would include the prepared field in the upper SELECT statement already - if this works? Then you have the correct length in your lower INNER JOIN:

Idea.png

(might be the syntax is slightly different - I did not test it - but you know what I mean)

BR, Martin

winona86
Explorer
Martin, Perfect, worked as expected!

Answers (1)

Answers (1)

shashikanthM
Newcomer
0 Kudos

It worked , awesome