Application Development 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: 

Display of addition on values in smartform

Former Member
0 Kudos

Hi Experts,

There are total of 3 values (2 displayed in the screenshot). I want the values exactly one below the other. Now, the values the dynamic. In the below example if the value of the total amount is of less digits, it changes the position. How to put the values exactly below each other based on dots.

Regards

Mani

1 ACCEPTED SOLUTION

former_member187748
Active Contributor
0 Kudos

Hi Mani,

its just your setting problem, and a better solution is that create a template for 3 rows and 2 columns, and put your these data in templates, make the format as suitable.

Your problem get resolved easily, i have used this situation many times.

If not getting , please revert.

17 REPLIES 17

Former Member
0 Kudos

This is what is happening when I pass the other test data. What is the solution?

Regards

Mani

former_member187748
Active Contributor
0 Kudos

Hi Mani,

its just your setting problem, and a better solution is that create a template for 3 rows and 2 columns, and put your these data in templates, make the format as suitable.

Your problem get resolved easily, i have used this situation many times.

If not getting , please revert.

0 Kudos

Hi Sanjeev,

Thanks for the reply. Let me try with the template and let you know. Before that please have a look at the following:

gv_install type netwr_ak (curr 15 dec 2)

gv_dmshb type mhnd-dmshb (curr 13 dec 2)

f150d-sufpf P(8) DECIMALS 2

These are the values with data types I am trying to print. Do I need to change their data types as well?

Regards

Mani

0 Kudos

Hi Mani

Where are you displaying these values in MAIN window table..? If yes create a line type with two columns and keep the amount as right aligned it wont shift places

Nabheet

0 Kudos

Hi Mani,

if possible then please change the data types of each values, and if possible please keep all these data to be of one type, the reason behind is that, some data types have some precision that it follows, when you keep all these data type to be of one type, no distinct precision will occured, hence no problem will arise.

Now create a template with 3 row and 2 column, in row you may hardcore the text (if it is not dynamic), and in the columns put these variables to show respective amount, and please keep the required format, you will get your problem resolved easily.

I have used this techniques many times, so you may opt, and see once what Nabheet has sujjested, if you can get through it in easy way, do that.

Former Member
0 Kudos

Hi All,

The problem has been solved by making it right aligned.

Now the problem is that the client wants the total between 2 lines (top and bottom). I have tried to put the lines manually in text editor but it fails. I am not able to find the option in template as well. Please suggest.

Regards

Mani

0 Kudos

Mani

Just select the box and on the top you will lines

0 Kudos

Hi ,

you can use this too, the leftmost option below Template, you will get a pop up, select display

framed pattern, and choose the apprropriate one,having all side marked with lines.

0 Kudos

Hi Sanjeev,

I have asked this question after checking all this. When I select the display pattern, It puts the long line. However, I need to put only in the amount.

0 Kudos

Hi Nabhneet,

It selects the whole line. I need line only above the amount and not particulars.

Regards

Mani

0 Kudos

Mani

Please attach a screen shot highlighting the place. You can try by using smartstyle underline and you can position it also

Nabheet

0 Kudos

Ok, Mani,

just do one thing, put the cursor in the amount field and press the

, these options according to your use, the second from right

former_member206479
Participant
0 Kudos

Mani,

Why don't you use smart style for right alignment. Just create a style for right alignment and while placing the variable in select the paragraph format as you created for right alignment and dont forget to provide created smart style before selecting paragraph format.

Regards,

Venkat.

Former Member
0 Kudos

Hi Mani,

Please delete extra space for example write (C) at the end of variable

&VARIABLE(C)&

Thank you

Former Member
0 Kudos

Hi All,

This is the output I am getting. Is there any way to put the Rs. closer to the amount. Following is the technique:

Please note that when I am putting Rs. in the amount column, it does not become constant. I have used &xyz(C)& technique as well.

gv_install type zdataelement (dec 8, 2)

gv_dmshb type zdataelement (dec 8,2)

f150d-sufpf P(8) DECIMALS 2

Regards

Mani

0 Kudos

Hi Many,

the variable you have used to display amount, please hardcore Rs. there,

like shown below, please drop it from text, and write as shown below.

Rs. &your variable&


what do you mean by, i am not getting, is there any other currency than rupees

then, please do not hardcore, and use both of your variable as


&xyz(c)&&amount variable&


please write variable &xyz(C)& and press enter, again give a space and put your second variable for amount field.


0 Kudos

Hi Mani,

You can Populate Rs. and the Amount(move the amount to a character), then concatenate into a character string separating by SPACE. This will help to have Rs. closer to the amount.