Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can i store * in a variable

Former Member
0 Likes
873

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
822

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

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.

4 REPLIES 4
Read only

Former Member
0 Likes
822

data: temp type string value '*'.

concatenate payr-rwbtr into temp.

Read only

Former Member
0 Likes
822

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

Read only

Former Member
0 Likes
823

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

Read only

0 Likes
822

Thanks for all.

I got solution