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

WRITE text FULL-JUSTIFIED.

Former Member
0 Likes
4,831

Hello,

I want to do justification of text. In SAP I found options to do LET-JUSTIFIED, CENTER-JUSTIFIED, RIGHT-JUSTIFIED text but it is not a solution. I want to align text to left and right at the same time. It should look like "text in block" not text to the left, right or centered.

Do you know any option to do it ?. Is there in ABAP any FULL-JUSTIFIED ?.

If you know how to do it give me an advice please.

Piotr Nowinowski.

17 REPLIES 17
Read only

Former Member
0 Likes
3,442

Hi,

We do not have option called 'FULL-JUSTIFIED' ; we are having only three LET-JUSTIFIED, CENTER-JUSTIFIED, RIGHT-JUSTIFIED .

Please refer the below link which will be used to get the overall concept of Formating options.

[http://help.sap.com/search/highlightContent.jsp]

Thanks,

Renuka

Read only

Former Member
0 Likes
3,442

ok ... now I'm working with smartforms. I yesterday I added component named "loop" where I get data "line afrer line". In Format I declarated my own format justify text.

Tell me why when the text there is STATIC everything is FINE !. When I try to get data from the database justification does not work correctly.

More over in my issue I get data from &TEXTS_PO_N-TDLINE&. When I leave this value on area text would not be justificated. If i put this variable &TEXTS_PO_N-TDLINE& with some STATIC text

ex. "&TEXTS_PO_N-TDLINE& static stacit - text will be justifiled. It is not a sap mistake ?.

Do you know any solution for the putting white space as STATIC text (like &nbsp in php) ? how to put it there ?.

Read only

0 Likes
3,442

Can you please elaborate your requirement completely. What is the issue you are facing.

Nabhet

Read only

Former Member
0 Likes
3,442

I try to generate PDF with smartforms.

I have header, main, footer. Header and footer are printed correctly (there is static text inputed in smartform).

In main text is not printed like justified (there is dynamic text from database).

I do not understand where is difference between static and dynamic text. It should work correctly.

Link to sample screen:

http://wrzuc.net.pl/images/screen.png

Read only

0 Likes
3,442

Please create a paragraph style and try to play with the size it will work that what i believe

Nabheet

Read only

0 Likes
3,442

Hello / Witaj Piotrze!

I checked my smartforms with BLOCK paragraph format and it works fine - both with static and dynamic text.

In Your attachment there is * as a default paragraph format - is it correct?

Create new format and assign it explicitly.

Regards,

--

Przemysław

Read only

Former Member
0 Likes
3,442

I did not put any * character in this section, my task is: correct pdf (justification is the last correction).

My new format:

http://wrzuc.net.pl/images/a2.jpg

My debbug output for the tab:

http://wrzuc.net.pl/images/a3.jpg

Read only

0 Likes
3,442

How are you reading this text...? can please paste the code here..

Nabheet

Read only

0 Likes
3,442

Hi,

here http://wrzuc.net.pl/images/screen.png is "*" as paragraph format - change it to X1.

Regards,

--

Przemysław

Read only

0 Likes
3,442

Hi,

You do the output line by line (beginning property set to "L" = new line) - change the property to "A".

In connection with X1 format You should get correct result.

Regards,

--

Przemysław

Read only

Former Member
0 Likes
3,442

Re: here http://wrzuc.net.pl/images/screen.png is "*" as paragraph format - change it to X1. ?? how ?

.How can it be paragraph changing it to X1 not for the all lines ?.

I debbuged this program and it id character putted there when there is "new line"

Read only

0 Likes
3,442

Hi,

this is correct for me: http://wrzuc.net.pl/?v=block.jpg

If You do not want one paragraph format for all lines, then You should code it

- consider checking teksty_po-tdformat.

Regards,

--

Przemysław

Read only

Former Member
0 Likes
3,442

Re: Przemyslaw P. I changed * <-> X1, id doesn't work .

Moreover when you do it http://wrzuc.net.pl/?v=block.jpg (poczatek: dolaczanie bezposrednio) all lines from collumn row after row will be scalled in one long string ! it is not a good solution when you want to put newline.

Edited by: Nowinowski on Jan 4, 2012 1:37 PM

Read only

0 Likes
3,442

Hi,

yes, You are right, but in Your smartforms every line is displayed in new line - that is why You do not have block formatting. Maybe consider changing text type to I - Include text, that You could do both formatting and new lines.

Regards,

--

Przemysław

Read only

Former Member
0 Likes
3,442

I think that your idea is very close to solution ! but I do not know how to change it. Do you have any prompts ?.

I saw it yesterday in this issue that every line is in newline in tab (row after row). But I thoutht that I can put variable to column with text_format to make block_justification.

In SAP is tab named TLINE (with 2columns: TDFORMAT, TDLINE).

My text is in TDLINE row after row ... what to do with TDFORMAT I tried put there X1, * ....

Edited by: Nowinowski on Jan 4, 2012 2:07 PM

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
3,442

Have you tried include text option

Nabheet

Read only

0 Likes
3,442

No, I haven't... how can I do it and where ?

This is very strange because everything works good when I go to preview ! But When I try to do it with transport... this text does not work correctly.

Edited by: Nowinowski on Jan 5, 2012 9:20 AM