Skip to Content

How to add IF condition in sap standard task description

Hi All,

I tried to add IF - END IF condition in editor like below

/: IF &container[]& EQ &container[]&.

/: &contiainer1[]& = ' '


But it's not working...what is missing or i'm using wrong syntax.

Could you please let me know.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 18, 2018 at 04:43 PM

    it looks like you are trying to compare the entire content in one container with another container, much in the same way you'd use ABAP to try and compare content between two internal tables. The code shows container1 on the second line, but the first line appears to show the same container reference -- so you're not checking equality between contain and container1. Is that what you intended?

    Add comment
    10|10000 characters needed characters exceeded

    • I might be mistaken, but since the container is a set of referenced objects, you'd need to compare the objects specifically in a loop, rather than a typical ABAP type of table-compare.

      I would have to ask whether or not there are just a few key fields in each container, that if a value is present, would be sufficient for the compare, as opposed to every single object. I.e. just compare the few key objects in the container, instead of the entire container.

      Can you share some more on your use case scenario? Might be something that would warrant a lsightly different design approach to avoid the need for the compare.