Skip to Content
avatar image
Former Member

Smartforms-Conditions

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 16, 2007 at 03:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 04:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2007 at 05:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded