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

sap smartforms

DKanna
Explorer
0 Likes
1,394

how to get table records in proper alignment? ref. the image.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,273

You should try to find it yourself, look at the available format options in online help (keywords: Smart Forms Output Options for Field Contents)

5 REPLIES 5
Read only

SimoneMilesi
Active Contributor
0 Likes
1,273

Which are the not aligned information? The Description and the Code?
Check if you have in data elements for quantity and amount any empty row, check if you set (C) or (Z) options for the variables because you are printing a quantity like 10.000 (6 chars) but the field is way bigger so the system always tries to print even the empty chars.

Read only

Jelena_Perfiljeva
Active Contributor
1,273

Please be more specific when asking such questions. What exactly is not aligned?

I can only guess you mean quantity and amount being printed one line lower. Make the columns wider and see what happens. Also see simone.milesi comment and this blog before posting a question, going forward.

Read only

DoanManhQuynh
Active Contributor
0 Likes
1,273

it seem like all the numeric is in 1 alignment and text in other alignment. could you check the smart style?

Read only

keremkoseoglu
Contributor
0 Likes
1,273

Two suggestions:

1) Try outputting the numeric fields with the (CIZ) addition. Example: &LS_ITAB-AMOUNT(CIZ)&

2) Move the numeric field to a text field (left justified), and print out the text field only. Here is a pseudo-code example:

DATA: gv_amount_as_text TYPE char20.

WRITE ls_itab-amount TO gv_amount_as_text LEFT-JUSTIFIED CURRENCY ls_itab-waers.

Then, print &GV_AMOUNT_AS_TEXT& (instead of amount).

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,274

You should try to find it yourself, look at the available format options in online help (keywords: Smart Forms Output Options for Field Contents)