HPOMSAP 6.1 Delivering documents to SAPconnect nodes in SAP R/3

Technical Note 81
Sample Programs
Sample report program YSALES_SC (Example 4)
send_time type so_fx_stim,
send_night type so_fx_snit,
send_immi type so_fx_simm,
rec_state type so_fx_sate,
rec_pers type so_fx_co,
rec_adrnr type adrnr,
send_sched type so_sched,
fax_form type so_faxform,
form_langu type so_formlan,
send_titel type so_fx_stit,
send_comp type so_fx_scom,
send_comp2 type so_fx_sco2,
send_anred type so_fx_sanr,
send_stret type so_fx_sstr,
send_pstl type so_fx_spst,
send_ort type so_fx_stwn,
send_c_tel type so_fx_sctl,
send_c_fax type so_fx_scfx,
rec_stades type so_fx_ldes,
end of recipient_fax.
data: recipient_int like sadrud.
data: recipient_rml like sadr7d.
* Structures and internal tables for the send data
data: objpack like sopcklsti1 occurs 0 with header line.
data: objhead like solisti1 occurs 1 with header line.
data: objbin like solisti1 occurs 0 with header line.
data: objtxt like solisti1 occurs 0 with header line.
data: doc_chng like sodocchgi1.
data: tab_lines like sy-tabix.
* Data for the status output after sending
data: user_address like sousradri1 occurs 1 with header line.
data: sent_to_all like sonv-flag.
* For delete spool
data : spool_rec like tsp01sys.
data : spool_stat like sy-subrc.
* no of lines
data : noofln type i.
data: compressed_list like soli occurs 0.
***Move list to MAIL table objbin
refresh : compressed_list, objbin.
*** Read from Spool and Delete spool after read
refresh compressed_list.
call function 'RSPO_RETURN_SPOOLJOB'
exporting
rqident = p_spool
tables