I referred lots of posts in SDN and implemented the following code but no fax output is seen in SOST. what could be wrong ? I am not able to debug even after putting break-point in the print program. Any way I can debug this ? This print program is triggered when a PO is saved.
Also even if the fax number is not correct, still I will be able to see an entry in SOST, right ? After that faxing might fail, but still I should be able to see a line in SOST ??
I go to PO in ME22N and then repeat output on NEU ..But the medium is external send... bcos if i set it as fax it is popping a dialog asking the fax num. I basically want to pull the fax num from adr3 based on my logic and to all numbers as found in t_vendor_faxnums, I want to send the PO smartform output.
If t_vendor_faxnums is not initial.
w_faxoptions-tdotftype = 'ASC'.
w_faxoptions-faxformat = 'ASC'.
w_faxoptions-tddevice = 'TELEFAX'.
w_faxoptions-tdteleland = 'IT'.
w_faxoptions-tdsenddate = sy-datum.
w_faxoptions-tdsendtime = sy-uzeit.
w_faxoptions-tdtitle = 'Purchase Order'.
loop at t_vendor_faxnums into w_faxnum.
w_faxoptions-tdtelenum = w_faxnum.
CALL FUNCTION 'CONVERT_OTF_AND_FAX'
faxoptions = w_faxoptions
user = sy-uname
otf = i_otf.
submit RSCONN01 with MODE = 'FAX' and return.