Skip to Content
0

How to write if and if then else in Dataservices in the field level validation

Apr 11 at 07:21 AM

18

avatar image

Hi Experts,

Any suggestions how to write the field Validation

if (Table.fieldname is not null and Table.fieldname <>'U')

if (table.fieldname is not null then EKKN.KNTTP

elseif(Table.fieldname is not null then

EKKN.GSEBR,'')

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Rajan Burad Apr 11 at 09:08 AM
0

Hello Ram,

Your requirement is not clear but still I tried to comprehend it.

Please try below code, using decode:

decode (Table.fieldname is not null and Table.fieldname <>'U', EKKN.GSEBR,

table.fieldname is not null, EKKN.KNTTP,

'' )

Let us know if it helps to achieve the requirement!

Thanks :)

Share
10 |10000 characters needed characters left characters exceeded