2015 Dec 15 8:20 AM
Hi,
SELECT EBELN, INFNR,
MATKL,
COALESCE( s~INFNR, s~MATKL ) AS ABCD
FROM EKPO AS s
UP TO 20 ROWS
INTO TABLE @DATA(lt_result).
I am using the previous code to test.
But if s~INFNR is null and s~MATKL consists value, then also blank is displaying in ABCD column.
Need clarification.
-Sabarna
2015 Dec 15 1:02 PM
Maybe there is a difference between NULL and INITIAL values in field? Try to replace coalesce with case when s~infnr is initial then 111 else s~infnr.
2015 Dec 15 1:12 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |