cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I use '*' in a select operation on a database?

yalcin_mete
Participant
0 Likes
481

Hi Masters,

I have multiple AUFNRs. I want to perform a join operation on the CDHDR table as *AUFNR* in the SELECT operation.

yalcin_mete_0-1722598574569.png

Method one: 
I am not allowed to concat multiple expressions.

yalcin_mete_2-1722598973707.png


Second method: 
LIKE does not work for multiple data.

yalcin_mete_3-1722599088845.png

 

How can I solve this situation? 

Thanks

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

yalcin_mete
Participant
0 Likes

Hi @Ryan-Crosby 

AUFNRs are returned as 3006597 (7 characters) in SAP PP module.
CDHDR keeps it in a different way in database. Users cannot know this shape.

Note: I wanted to write in the comment section but the page gives an error so I had to write in the "answer" section. I apologize for that.

 

yalcin_mete_0-1722601942854.png,

yalcin_mete_1-1722601965811.png

 

 

Ryan-Crosby
Active Contributor
0 Likes
I'd look into using some of the functions/class APIs for reading change documents then instead of doing it directly with SQL.