cancel
Showing results for 
Search instead for 
Did you mean: 

smartform displaying fields problem

Former Member
0 Kudos

Hello gurus

I have migrated a sapscript to smartform successfully. I have done all the necessary steps to display output

Now problem is that in my output there are 3 quantity fields to be displayed

In sapscript fields are displayed like this

&vbap-kwmeng(10.2)& &vbdpr-fkimg(10.2)& and last is also like this

But in smartform when i am going to display them as it is it is giving me the formatting error in (10.2)

So . i removed it and display the fields as like

&vbap-kwmeng& &vbdpr-fkimg& and third is also like this

But the problem is that they are not displayed in the rite manner

For example :

In sapscript they are displayed in rite manner

Qty1 Qty2 Qty3 Price

1 1 1 182.34

But in smartform they are displaying like below

Qty1 Qty2 Qty3 Price

3 3

3 182.34

So , Plz help how i can display them in rite order

Thanks

Points will be rewarded

Edited by: gaurav jain on Apr 27, 2008 3:50 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gaurav,

Check the window size. Is it the same, or may be increasing it will help.

Reeta.

Answers (3)

Answers (3)

Former Member
0 Kudos

gud

Former Member
0 Kudos

Hi,

1) define the fields in the global definition as char25 qty1 ,qty2

2) create a program lines in the smartform before thy are displayed and pass all the quantity filelds as input parameters

in the source code do as follows.

write : sm-qty1 to qty1 decimals 1,

sm-qty1 to qty2 decimals 1.

3) Instead of that quantity fileds use this

Thanks,

NN

Former Member
0 Kudos

Hi,

Gaurav,

There will be two problems,

one may be window size,

second when u r printing quantity and currency field there will be leading space before the value.

so declare program lines before u r field.

input output

u r field u r field ( same which is printing in next line )

shift ( Field ) left deleting leading space..

then print u r field.

with Regards,

Kiran.G