on 03-11-2023 4:43 AM
Hello guys,
I am new in learning ABAP and trying to write a logic in field routine where I want to look up product hierarchy text from text table.
I have written the following statement but getting an error
SELECT SINGLE * FROM /BIC/TZPRODH1
INTO @DATA(W_PDH1) WHERE
Prod.Hier. = @SOURCE_FIELDS-PRDHA <<<< Error is in this line)
AND LANGU = 'E'.
RESULT = W_PDH1-TXTSH.
Error: Boolean expression is required in positions starting with PROD
Can someone please help and explain how Boolean expression will work in my logic.
Thanks
Are you sure, that you want to filter on TXTSH?
SELECT SINGLE * FROM /BIC/TZPRODH1
INTO @DATA(W_PHDTXT) WHERE
TXTSH = @SOURCE_FIELDS-PRDHA
AND LANGU = 'E'.
What this statement does, it reads a record from the table /BIC/TZPRODH1 whgre the value of the field TXTSH is the value in PRDHA. Is this really what you want to do? Did you tried using the key field of /BIC/TZPRODH1 instead of TXTSH?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.