cancel
Showing results for 
Search instead for 
Did you mean: 

issue with printing of header text

Former Member
0 Kudos

hii frnds ,

my problem is i am getting the header text printed properly but the text is not getting displayed whenever the user enters a numeric value without any gaps ... i have seen while debuging that the text is properly getting fetched and the cursor is also passing through the text field but the text is not getting printed in my layout . i am using a script for this .

thanking you

rohit gupta

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

yes basha was right

Former Member
0 Kudos

Hi Rohit,

Check the window size, probably your window is not big enough to hold the text.

regards,

Bhasha

Former Member
0 Kudos

Use Below code to get your text..

data: begin of int_rtline occurs 0.

include structure tline.

data: end of int_rtline.

data : rheat type string.

data : itab_r like swastrtab occurs 0 with header line.

  • Get the Heating and Cooking Instruction

  • get material heating instructions from material master

call function 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'IVER'

language = sy-langu

name = tdname

object = 'MATERIAL'

TABLES

lines = int_rtline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8.

loop at int_rtline.

if rheat = space.

concatenate 'COOKING INSTRUCTIONS: '

rheat int_rtline-tdline

into rheat.

else.

concatenate rheat int_rtline-tdline

into rheat separated by space.

endif.

endloop.

Depends on ur Layout Width for each line print number of charcter,here i mentioned 92 char.

IF NOT rheat IS INITIAL.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING

input_string = rheat

max_component_length = 92

TABLES

string_components = itab_r

EXCEPTIONS

max_component_length_invalid = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

LOOP AT itab_r.

Print ur data.

Endloop.

Reward Points if it is helpful

Thanks

Seshu