10-11-2010 10:25 AM
hi everyone.
i want to skip the first line in INCLUDE TEXT of a smart form.
is this possible?
if not then how can i get the (enter key) in READ_TEXT. if i enter a long text and there is a enter in between lines. then when i read it by READ_TEXT or READ_TEXT_INLINE . i dont get the enter key code.
Regards,
Abdul Moied Yousuf
10-11-2010 10:32 AM
Hello,
When you read the text using READ_TEXT, the data is returned in the table LINES(structure TLINE).
If there is a new line feed(which i assume to be the ENTER key code you're talking about) you'll have TDFORMAT = '/'.
What exactly do you want to achieve, can you elaborate?
BR,
Suhas
10-11-2010 10:32 AM
Hello,
When you read the text using READ_TEXT, the data is returned in the table LINES(structure TLINE).
If there is a new line feed(which i assume to be the ENTER key code you're talking about) you'll have TDFORMAT = '/'.
What exactly do you want to achieve, can you elaborate?
BR,
Suhas
10-11-2010 11:52 AM
hi,
well i have already tried that and TDFORMAT only returns * nothing else even if i give a new line feed.
basically i have a senario that i have to skip the first line of longtext.
lets say the long text is
Appearance
this is testing long text line no 1
line no 2
line no 3
now i have to skip the first line and print remaining lines in as is its format means if there is a new line feed i have to maintian that. now i have tried INCLUDE TEXT of smart form but i cant skip line in that.
and in READ_TEXT i am not getting the new line feed. i google it and found that the hexcode for newline is 0D00 and i can search it in string using cl_abap_char_utilities=>cr_lf type of constant. but the TLINE structure that i get from READ_TEXT dosent have this code for new line.
thanks,
10-11-2010 12:51 PM
Hello,
in READ_TEXT i am not getting the new line feed. i google it and found that the hexcode for newline is 0D00 and i can search it in string using cl_abap_char_utilities=>cr_lf type of constant. but the TLINE structure that i get from READ_TEXT dosent have this code for new line
Definitely you won't get the LINE FEED in READ_TEXT.
I realised that in SO10 while defining Standard Text, hitting the "Enter" key puts a '' in the TDFORMAT. Interestingly '/' & '' behave the same! (Check in Print Preview)
BR,
Suhas
10-11-2010 1:57 PM
Thanks Suhas,
you were right / and * behaving the same here. when i hit ENTER it enter * instead of /.
Regards,
Abdul Moied Yousuf
Edited by: moied yousuf on Oct 11, 2010 2:58 PM