Ver Mensaje Individual
  #2  
Viejo 08/05/13, 17:38:56
Adriana Anestoso Adriana Anestoso is offline
Junior Member
 
Fecha de Ingreso: abr 2012
Mensajes: 18
Para quienes les sirva:

tuve el mismo problema lo solucione asi:
mandar a spool el sapscript ,


DATA: lw_fax TYPE itcpp, l_faxok,
li_buffer_pdf LIKE tline OCCURS 100 .

* Capture receiver data
lw_fax-tdimmed = c_x.
lw_fax-tdteleland = w_fax2-country."Country
lw_fax-tdtelenum = w_fax2-faxnr_long.
lw_fax-tddevice = 'TELEFAX'.
lw_fax-tdcover = space.
lw_fax-tdgetotf = c_x.


*Get data spool number
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = v_id_spool"numero de spool
desired_type = 'OTF'
TABLES
buffer = li_buffer_pdf
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
OTHERS = 8.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid
TYPE sy-msgty
NUMBER sy-msgno
WITH sy-msgv1
sy-msgv2
sy-msgv3
sy-msgv4.
ENDIF.

* Send fax
CALL FUNCTION 'CONVERT_OTF_AND_FAX'
EXPORTING
faxoptions = lw_fax
user = sy-uname
IMPORTING
fax_ok = l_faxok
TABLES
otf = li_buffer_pdf.
COMMIT WORK.

IF sy-subrc EQ 0.

MESSAGE s208(00)
WITH text-001 .

ENDIF.


desafortunadamente yo no tuve como probar, pero cuando alfin jalo, fue cuando en la sost(o scot) lo visualize tal como se imprimia el sapscript.

espero les ayude saludos!!
Responder Con Cita