Skip to Content
avatar image
Former Member

How can i store * in a variable

Hi friends,

data: v_test type char14.

i want to add the value of '*' and payr-rwbtr.

Ex: payr-rwbtr contain 4568.24.

rwbtr field length-13.

my reqrmnt is *4568.24.

in smartforms how can i add the * with payr rwbtr

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 22, 2010 at 05:40 AM

    Hi,

    In smartforms you can edit the field as &'*'payr-rwbtr(CIZ)&.

    By putting the * there, you will get the desired format, like *4568.24.

    Thanks&Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2010 at 05:05 AM

    data: temp type string value '*'.

    concatenate payr-rwbtr into temp.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2010 at 05:37 AM

    Hi,

    DATA:TEMP TYPE C VALUE '*',
               V_VALUE TYPE STRING.
    
    CONCATENATE TEMP PAYR-RWBTR INTO V_VALUE.

    Use v_value to display that data wherever necessary in smartforms.

    If you need to display this inside table then create PROGRAM LINES , write the concatenate code over there and display wherever u need to.

    Declare those two variables in GLOBAL DATA tab.

    Regards,

    Vanitha P

    Add comment
    10|10000 characters needed characters exceeded