cancel
Showing results for 
Search instead for 
Did you mean: 

PO Line Item Text AND Smartforms

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks guys!

This is solved!

Former Member
0 Kudos

Ooops...one more question...sorry...

But the TDFORMAT in both cases is "X"...there is no "=" anywhere to speak of...what now?

former_member156446
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hey guys, so no one can help?