on 12-22-2009 4:40 PM
Hey Guys,
Simple question,
I call the READ_TEXT function with the variables:
CLIENT: 200
ID: F03
LANGUAGE: EN
NAME: 750000183100010 (po + item)
OBJECT: EKPO
It returns me:
X this is an item text with no hard enter, I just keep keying until the line rolls#now this was a hard break#and another hard break#an
X d another hard break#got it...another one#now another line that just keeps going with no hard enter, it just keeps rolling
My problem is, in my smartforms for the PO, it also shows the line texts this way. I was hoping that it would recognize an <ENTER> being used and move to the next line.
Because when I look at the SAME po in ME22N it looks like this:
this is an item text with no hard enter, I just keep keying until the line rolls
now this was a hard break
and another hard break
an
d another hard break
got it...another one
now another line that just keeps going with no hard enter, it just keeps rolling
Any ideas?
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 23, 2009 11:48 AM
Hello,
If your PO item contains text.
There can be 2 scenarios
1. Continous line without break
2. Continous line with break
For Case 1:
Read would fetch something like this:
TDFORMAT TDLINE
text text text
text text text
For Case 2:
Read would fetch something like this:
TDFORMAT TDLINE
text tex
t text
text text text
In both the cases, you need to loop at the internal table to poplulate entries in smartform.
You can use the logic, if TDFORMAT is initial
concatenate smartform-text TDLINE separated by space.
else.
clear smartform-text.
smartform-text = TDLINE.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you loop at the internal table that returned from the Read_text FM the text element would be different for new line and continuous line.. I guess continuous line you have an element = .
Based on this elements you need to write logic to concatenate text and create a new line...
Pseudo code :
loop at itab.
case itab-TDFORMAT.
when '='.
concatenate the texts... to the same line.
when others.
append to the table to be displayed in the SF.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey guys, so no one can help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.