Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Send Ssf Mail PDF Attached

Send Ssf Mail PDF Attached

Ratings: (0)|Views: 173|Likes:
Published by kattak2k

More info:

Published by: kattak2k on Jul 22, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

05/26/2014

pdf

text

original

 
DATA: w_returnl TYPE ssfcrescl,w_returnp TYPE ssfcresop,w_returnd TYPE ssfcrespd.DATA : i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,i_tline TYPE TABLE OF tline WITH HEADER LINE. " make each line 132charactersDATA:v_len_in LIKE sood-objlen.DATA : zdata LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE,zreceivers TYPE TABLE OF somlreci1 WITH HEADER LINE.*** make each line 255 charactersDATA : BEGIN OF i_tline2 OCCURS 0,tline TYPE char255,END OF i_tline2.CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'EXPORTINGformname = lf_formnameIMPORTINGfm_name = lf_fm_nameEXCEPTIONSno_form = 1no_function_module = 2OTHERS = 3.IF sy-subrc <> 0.* error handlingent_retco = sy-subrc.IF sy-subrc = 1.MESSAGE e001(/smb40/ssfcomposer).ENDIF.IF sy-subrc = 2.MESSAGE e002(/smb40/ssfcomposer) WITH tnapr-sform.ENDIF.PERFORM protocol_update_i.ENDIF.* if it is faxed, changed its title to PO numberIF ls_control_param-device = 'TELEFAX'.ls_composer_param-tdtitle = l_doc-xekko-ebeln.ENDIF.* if it is mail, changed its title to PO numberIF ls_control_param-device = 'MAIL'.ls_composer_param-tdtitle = l_doc-xekko-ebeln.ENDIF.IF NOT lf_fm_name IS INITIAL.ls_control_param-no_dialog = ''.ls_control_param-preview = ''.ls_control_param-getotf = 'X'.ENDIF.*>>>>> Change of Parameters <<<<<<<<<<<<<<<<<<<<<<<
 
* CALL FUNCTION '/1BCDWB/SF00000066'CALL FUNCTION lf_fm_nameEXPORTINGarchive_index = toa_dara* ARCHIVE_INDEX_TAB =archive_parameters = arc_paramscontrol_parameters = ls_control_param* MAIL_APPL_OBJ =mail_recipient = ls_recipientmail_sender = ls_senderoutput_options = ls_composer_paramuser_settings = ' ' "Disable User Printeris_ekko = l_doc-xekkois_pekko = l_doc-xpekkois_nast = l_nastiv_from_mem = l_from_memoryiv_druvo = iv_druvoIMPORTINGdocument_output_info = w_returndjob_output_info = w_returnljob_output_options = w_returnpTABLESit_ekpo = l_doc-xekpo[]it_ekpa = l_doc-xekpa[]it_pekpo = l_doc-xpekpo[]it_eket = l_doc-xeket[]it_tkomv = l_doc-xtkomv[]it_ekkn = l_doc-xekkn[]it_ekek = l_doc-xekek[]it_komk = l_xkomk[]EXCEPTIONSformatting_error = 1internal_error = 2send_error = 3user_canceled = 4OTHERS = 5.IF sy-subrc <> 0.ent_retco = sy-subrc.PERFORM protocol_update_i.* get SmartForm protocoll and store it in the NAST protocollPERFORM add_smfrm_prot.ENDIF.i_otf[] = w_returnl-otfdata[].CALL FUNCTION 'CONVERT_OTF'EXPORTINGformat = 'PDF'max_linewidth = 132* ARCHIVE_INDEX = ' '* COPYNUMBER = 0* ASCII_BIDI_VIS2LOG = ' '* PDF_DELETE_OTFTAB = ' 'IMPORTINGbin_filesize = v_len_in* BIN_FILE =
 
TABLESotf = i_otflines = i_tlineEXCEPTIONSerr_max_linewidth = 1err_format = 2err_conv_not_possible = 3err_bad_otf = 4OTHERS = 5.*SX_TABLE_LINE_WIDTH_CHANGE use :- make each line 255 charactersCALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'* EXPORTING* LINE_WIDTH_SRC =* LINE_WIDTH_DST =* TRANSFER_BIN = ' 'TABLEScontent_in = i_tlinecontent_out = i_tline2* EXCEPTIONS* ERR_LINE_WIDTH_SRC_TOO_LONG = 1* ERR_LINE_WIDTH_DST_TOO_LONG = 2* ERR_CONV_FAILED = 3* OTHERS = 4.CLEAR zdata.zdata-obj_name = 'PO Document'.zdata-obj_descr = 'SUBJECT for PO Document'.zdata-obj_langu = 'EN'.APPEND zdata.CLEAR zreceivers.zreceivers-receiver = 'ravikiran.katta@lpcgroup.co.uk' . " RECEIVER mail addresszreceivers-rec_type = 'U'. " B -> FOR SAP USER . PLEASE CHECK THE TABLE'TBCS_RECIP'zreceivers-com_type = 'INT'.zreceivers-notif_del = 'X'.zreceivers-notif_ndel = 'X'.APPEND zreceivers.CLEAR zreceivers.zreceivers-receiver = 'rajendar.gangisetti@lpcgroup.co.uk' . " RECEIVER mailaddresszreceivers-rec_type = 'U'. " B -> FOR SAP USER . PLEASE CHECK THE TABLE'TBCS_RECIP'zreceivers-com_type = 'INT'.zreceivers-notif_del = 'X'.zreceivers-notif_ndel = 'X'.APPEND zreceivers.* zreceivers-rec_id = 'ABAP2' . " receiver mail address********end of subject lineCALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'EXPORTINGdocument_data = zdatadocument_type = 'PDF'

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->