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

smartforms alignment

Former Member
0 Likes
929

Hi,

Iam getting some data from DB to print address in the smartform.While iam displaying the data iam getting

misaligned lines like this.


commissioner of buildings,
               Building managemen 
                          dept,
          5, Maxwell Road,
#2-00,                 Tower Blk k,
         Japan.

How can i get like this?


commissioner of buildings,
Building managemen dept,
5, Maxwell Road,
#2-00,Tower Blk k,
Japan.

Reward Guaranteed

kaki

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
902

Try creating a new paragraph format and align LEFT.

Assign the paragraph format to the text.

9 REPLIES 9
Read only

Former Member
0 Likes
902

Hi Kaki,

You can allign the text.

In your Text element > Paragraph format> "L"(Avialble in SAP Standard Style "SYSTEM") Left allign

Then all the texts will be left aalligned.

IF "L" Paragraph not found the create new style and paragraph and assign that to your text element.

Please let me know why you are not using standard address Element.

Lanka

Message was edited by: Lanka Murthy

Read only

Former Member
0 Likes
903

Try creating a new paragraph format and align LEFT.

Assign the paragraph format to the text.

Read only

Former Member
0 Likes
902

Kaki,

If an address that you are printing and is stored as address in SAP, why are you not using the ADDRESS element in SMART Forms, so that formatting is already take care of.

Other wise you will have create a Style with Left alignment and take care of it for all the elements that you are trying to display.

Regards,

Ravi

Read only

0 Likes
902

Hi Ravi,

The address fields iam getting some different tables and putting into one ITAB.So iam calling this ITAB into smartforms.How can i put this itab into SAP standard address ?

kaki

Read only

0 Likes
902

Hi Kaki,

I have mentioned exactly the same in my earlier answer.

If you need "Address number" for using Address element.

In Address number enter your customer/vendor//Plant address number .

example : &KNA1-ADRNR& --For Customer

&LFA1-ADRNR& --for Vendor

Then select type of address radio button as

a) Post Box

b)Street

Then select no.of line to print Example :5.

Language : &SY-LANGU&

Lanka

Read only

0 Likes
902

Kaki,

Is this address of a customer / Vendor? If that is the case, there will be a address number in the Vendor / Cust table. You need to get that address number and pass that.

However, if you are talking about custom tables then it sis not possible.

Regards,

Ravi

Read only

0 Likes
902

Hi all,

I got it.Thanks for all the replies.

Points alloted,

cheers

kaki

Read only

0 Likes
902

Hi Kaki,

Please close the post.

Lanka

Read only

0 Likes
902

Hi again,

How can i display if i have 10 addresses in ITAB?

Kaki