‎2012 Jan 03 8:55 AM
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.
‎2012 Jan 03 10:01 AM
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
‎2012 Jan 03 10:28 AM
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   in php) ? how to put it there ?.
‎2012 Jan 03 10:39 AM
Can you please elaborate your requirement completely. What is the issue you are facing.
Nabhet
‎2012 Jan 03 10:54 AM
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:
‎2012 Jan 03 11:07 AM
Please create a paragraph style and try to play with the size it will work that what i believe
Nabheet
‎2012 Jan 03 2:33 PM
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
‎2012 Jan 04 9:12 AM
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:
‎2012 Jan 04 9:15 AM
How are you reading this text...? can please paste the code here..
Nabheet
‎2012 Jan 04 9:25 AM
Hi,
here http://wrzuc.net.pl/images/screen.png is "*" as paragraph format - change it to X1.
Regards,
--
Przemysław
‎2012 Jan 04 9:34 AM
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
‎2012 Jan 04 10:44 AM
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"
‎2012 Jan 04 11:16 AM
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
‎2012 Jan 04 12:18 PM
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
‎2012 Jan 04 12:51 PM
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
‎2012 Jan 04 1:04 PM
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
‎2012 Jan 04 1:48 PM
‎2012 Jan 04 2:09 PM
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