cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms-Conditions

Former Member
0 Kudos

Dear ABAPers,

I have a problem with smartforms. I want certain fields to be displayed only if the tax code does not start with 'U'. In the conditions tab using Excluding pattern U did not work.

Is there anyway I can check if the taxcode does not start with 'U'?

Thanks, will be happy to award points if I am helped out..

Best Regards

Veena

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Condition will work, try to re-check your condition...

anyhow to asked for other way.. try to create a program lines and inside program lines check tax code .

Ex: IF tax code EQ 'U'.

Make the fields empty that you are planning to display.

ENDIF.

So, if it is not equal to "U' it will have values and it will be displayed...

My suggestion is try with conditions it will work.

Regards,

SaiRam

Former Member
0 Kudos

Hi ,

Declare a variable in global declarations of character type say

Chek type c .

In program lines store the first character of the tax field in newly declared filed chek .

Before displaying the text create a conditions tab and chek for the condition that

chek <> 'u' .

In true side of condition tab display the text .

Regards

Former Member
0 Kudos

Hi,

if that doesnt work, maybe u can try doing the logic inside a flow logic (program lines).

declare a flag in your global definitions for your input and output parameters in the flow logic. inside this logic, if if the tax code does not start with 'U', flag = ' ', else flag = 'X'.

for the fields that need this condition check, under the condition tab, u can make of the the flag to determine which fields need to be displayed.

this is how i did for my smartform.

hope it helps.