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

80 Technical Note
Sample Programs
Sample report program YSALES_SC (Example 4)
endif.
* It will send only fax or internet without display
if p2 = 'X'.
perform print_spool.
endif.
end-of-page.
write:/2 sy-uline(120).
top-of-page.
write:/2 sy-uline(120).
write:/2 sy-vline, 5 'Digital Gloabl Soft Limited' color col_positive,
70 'Date:', sy-datum,'Time:',sy-uzeit, 120 sy-vline.
write:/2 sy-vline, 120 sy-vline .
write:/2 sy-vline, 5 'Title: Sales Order Item Details List',120
sy-vline.
write:/2 sy-vline, 120 sy-vline .
write:/2 sy-uline(120).
write:/2 sy-vline, 'Order No',13 sy-vline, 'Item No',22 sy-vline,
'Material', 44 sy-vline, 'Description',80 sy-vline,81 'Quantity' ,99
sy-vline, 120 sy-vline.
write:/2 sy-uline(120).
*&---------------------------------------------------------------------*
*& Form print
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
form print using value(p_spool).
* Structures for recipient addresses
data: begin of recipient_fax,
rec_fax type so_recfax,
rec_title type so_rec_tit,
rec_name1 type so_fx_nam1,
rec_name2 type so_fx_nam2,
rec_dep type so_fx_depm,
rec_po_box type so_fx_pbox,
rec_street type so_fx_str,
rec_town type so_fx_town,
send_cover type so_fx_cov,
send_nam type so_fx_snam,
send_dep type so_fx_sdep,
send_tel type so_fx_stel,
send_fax type so_fx_sfax,
send_date type so_fx_sdat,