Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help reqd on smartfrom

Hi all...

im facing a problem in PO-smartform...that i want to display a text fully as whatever given in the header detail text window.....from me23n.

it displaying the 1st line of the text only....but i want the full details whatever the user given on to do it???

will i have to give it on loop...means looping the window....???

or will i have to declare it in global definition......

Do the needful and reply <b>in detail,</b> at the earliest.

for ur ref....i've enclosed the coding below


data: gline1 like tline occurs 0 with header line,

var like THEAD-TDNAME.

select evtxt from t027b into g_evtxt where evers = g_xekpo-evers and spras = 'E' .


select tdid from stxh into gtdid where tdname = ZXEKKO-EBELN.


if sy-subrc eq 0.

var = zxekko-ebeln.




id = gtdid

language = 'E'

name = var

object = 'EKKO'


lines = gline1


loop at gline1.

gline = gline1-tdline.

if gline ne space.






thanks & regards


Former Member
Former Member replied

u have written

gline1 type gline1 occurs 0.

change it to

gline1 type gline occurs 0.

the code seems to be fine,also just debug the contents of gline1.

now the text in which ur displaying should be inside a loop (loop gline1 into gline)

dont give loop function to ur window,just the loop for the particular text in which ur displaying.

u just add a break point after the function module read_text and check the data in gline1.

i think it should work now,if u dont mind then pls just download ur smf and send me at my email id,i would be able 2 help 2 more properly

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question