2023 Feb 06 5:30 PM
Hello,
For the case statement i need two true cases.
Ex:
CASE lv_tcode.
When 'VF31'
FLAG_MAIL = ' '
WHEN 'VF02'
FLAG_MAIL = ' '
WHEN 'ZDRT'
FLAG_MAIL = 'X'
FOR ZDPT ALSO I NEED FLAG MAIL AS 'X'.SO I WROTE AS
WHEN 'ZDPT'
FLAG_MAIL = 'X'.
This wasn't working.
Also I tried, WHEN 'ZDRT' OR 'ZDPT'
FLAG_MAIL = 'X'.
This was also not working ..pls help me on this
CASE is as simple as IF.
You can find yourself the reason why "it doesn't work" (no idea what you mean), by using the debugger.
2023 Feb 06 5:51 PM
CASE is as simple as IF.
You can find yourself the reason why "it doesn't work" (no idea what you mean), by using the debugger.
2023 Feb 07 5:05 AM
flag_mail = SWITCH #( lv_tcode WHEN 'ZDRT' OR 'ZDPT' THEN abap_true ).
2023 Feb 07 9:41 AM
Could you elaborate on 'This wasn't working.'
2023 Feb 07 1:22 PM
This wasn't working
and
This was also not working
are not recognisable error messages.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |