on 05-07-2007 5:05 PM
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
yes basha was right
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Check the window size, probably your window is not big enough to hold the text.
regards,
Bhasha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.