cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Alignment in smartform

Former Member
0 Kudos

Hi All,

I have to display a quantity feild of 20 char legth along with a field of 3 char.

Problem is that my quantity feild also have decimal values.But the value in this field is presently having having only 5 char like 66.704.No i have display a another feild along with like

66.704 Kg.But when i try to display in smartform it diplay with space like 66.704 kg.But i have to display like 66.704 kg.

Please sugest how will i remove this space and my value should be print from left side(Left align).I mean there should not be any space at left side.

Plz let me know the solution it quite urgent.

Regards,

Mohit

mohit.sap1@gmail.com

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Use

CONDENSE

Or

shift LEFT deleting leading SPACE.

DATA: l_var TYPE char20.

l_var = ' 12.345'.

WRITE / l_var.

CONDENSE l_var.

WRITE / l_var.

thanks

Former Member
0 Kudos

Hi Mohit,

You can use CONDENSE statement to remove the space. Just concatenate the Kg with quantity and condense that.

Reward if it helps!!

Thanks,

Sudha

Former Member
0 Kudos

Hi Sudha,

Can you plz send me the code.

Regards,

Mohit