cancel
Showing results for 
Search instead for 
Did you mean: 

What parameters should i give in Global Definition or in code

Former Member
0 Kudos

Hi all,

the below program is the sample code,was done by my col...and we getting output correctly in se38...but the same if i give in smartform...its not coming out in the print/output form.....

in global definition...i've given as

itab like tline.

in my text window(after the coding tree)....i mentioned as &text&

i.e,im moving the itab-tdline(field) to text.(in my coding)(c the below code...for reference)

***************************************

data text(100).

data itab like tline occurs 0 with header line.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • * CLIENT = SY-MANDT

id = '0001'

language = 'E'

name = '0080000055'

object = 'VBBK'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = itab.

*LOOP AT ITAB.

**write: itab-tdline.

*text = ITAB-TDLINE.

*WRITE:text.

*ENDLOOP.

read table itab index 1.

move itab-tdline to text.

write:/ text.

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

If guess you have written this code in your program lines, don't forget to pass input and output parameters. Note : your variable text should be passed to the output parameter in program lines. Declare this variable text in GLOBAL PARAMETERS

If that is not the case let me know whether itab is getting populated or not... if not goto SE37, use read_text and give the below data and see it contains any header text for your selection or not.

Regards,

SaiRam

Answers (1)

Answers (1)

Former Member
0 Kudos

Use include text for FM. check the box not to show errors.