Hii rahul i have one doubt suppose if we declare LV_month as a variable with some type then what is the use of CHAR20 .is this CHAR20 and LV_MONTH related.
How does cond and switch statement makes a difference ? Can we use switch similar to cond operator when it comes to multiple conditions in single condition?
Yes you can use, but if we have more conditions we need to prefer Switch rather than COND. The reason is same we need to prefer CASE rather than IF, if we have more conditions.
Hi Sir, what if the case conditions are different? Like instead of passing a value into same variable, if the logic is different for each case. How to approach it?
your videos are very helpful sir,the way of sharing your knowledge is awsome sir.hats off for you
Thank you very much Amrendra.
Excellent sir tq
👌
Hii rahul i have one doubt suppose if we declare LV_month as a variable with some type then what is the use of CHAR20 .is this CHAR20 and LV_MONTH related.
Hello Chitransh - just refer to the next video. You will get the answer of the same.
How does cond and switch statement makes a difference ? Can we use switch similar to cond operator when it comes to multiple conditions in single condition?
Yes you can use, but if we have more conditions we need to prefer Switch rather than COND. The reason is same we need to prefer CASE rather than IF, if we have more conditions.
Hi Sir, what if the case conditions are different? Like instead of passing a value into same variable, if the logic is different for each case. How to approach it?
We can take a field-symbol of generic data type(ANY) and assign the different results to one common field-symbol.