on 08-13-2007 4:23 PM
Hi All,
I need to know is it possible to get OTF data by calling FM CLOSE_FORM as well create a spool in SP01 for related script.
Regards
Dhiraj Shetty
Hi,
" after CLOSE_FORM
call function 'CONVERT_OTF_MEMORY'
exporting
format = 'ASCII'
max_linewidth = 132
tables
lines = int_tline1
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
" write the text file to spool
loop at int_tline1.
if int_tline1-tdline = space.
skip.
else.
write:/ int_tline1-tdline.
endif.
endloop.
If you look at the answer, then you will get the answer, first it will create the OTF data, then it will create the SPOOL
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Jst tell me are you using CLOSE _FORM without getting OTFdata.
and after running tht the above FM your Callling 'CONVERT_OTF_MEMORY'
But as far as i know in the data passed in Result parameter of CLOSE_FORM we have to check GETOTFDATA field as 'X' then only its possible to get OTFDATA but when i use tht i am not able to create print Spool for the corresponding script
so thats why i thought is there any field where i can check 'X' and get teh spool to print as well .
Regards
Dhiraj Shetty
Hi Sudheer,
Your solutions is notanswering my query.
I need to know in CLOSE_FORM is there any thing to get the SPOOL with OTF DATA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Manual conversion to OTF format
If there are more than 10 pages,
Tick the spool request
then click Edit -> OTF display -> No. of OTF pages
Convert SAP Script to text
Display the spool request
then click Goto -> List display
Automatic conversion to OTF format
tables: tline.
data: begin of int_tline1 occurs 100.
include structure tline.
data: end of int_tline1.
call function 'OPEN_FORM'
device = 'OTF_MEM'
.........................................
after CLOSE_FORM
call function 'CONVERT_OTF_MEMORY'
exporting
format = 'ASCII'
max_linewidth = 132
tables
lines = int_tline1
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
write the text file to spool
loop at int_tline1.
if int_tline1-tdline = space.
skip.
else.
write:/ int_tline1-tdline.
endif.
endloop.
Regards
Sudheer
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.