ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  ERP CRM  >>  SAP  >>  ABAP
 
 


 

 
 Basis interview questions  Basis Interview Questions
 ABAP interview questions  ABAP Interview Questions
 SAPScript interview questions  SAPScript Interview Questions
 SD interview questions  SD Interview Questions
 MM interview questions  MM Interview Questions
 QM interview questions  QM Interview Questions
 PP interview questions  PP Interview Questions
 PM interview questions  PM Interview Questions
 PS interview questions  PS Interview Questions
 FI CO interview questions  FI CO Interview Questions
 HR interview questions  HR Interview Questions
 SAP CRM interview questions  SAP CRM Interview Questions
 SRM interview questions  SRM Interview Questions
 APO interview questions  APO Interview Questions
 Business Warehouse interview questions  Business Warehouse Interview Questions
 Business Workflow interview questions  Business Workflow Interview Questions
 SAP Security interview questions  SAP Security Interview Questions
 SAP Interfaces interview questions  SAP Interfaces Interview Questions
 Netweaver interview questions  Netweaver Interview Questions
 SAP ALE IDocs interview questions  SAP ALE IDocs Interview Questions
 SAP B1 interview questions  SAP B1 Interview Questions
 SAP AllOther interview questions  SAP AllOther Interview Questions
Question
After preparing the SAP script.what is the procedure to send
that script to e-mail?
 Question Submitted By :: Hariprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: After preparing the SAP script.what is the procedure to send that script to e-mail?
Answer
# 1
Hi,
better option is to convert your spool request to PDF and 
send it

call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = c_no
dst_device = c_device
importing
pdf_bytecount = gd_bytecount
tables
pdf = it_pdf_output
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
check sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
loop at it_pdf_output.
translate it_pdf_output using ' ~'.
concatenate gd_buffer it_pdf_output into gd_buffer.
endloop.
translate gd_buffer using '~ '.
do.
it_mess_att = gd_buffer.
append it_mess_att.
shift gd_buffer left by 255 places.
if gd_buffer is initial.
exit.
endif.
enddo.

then call FM after populating attachment data

call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
importing
sent_to_all = w_sent_all
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3 
 
Is This Answer Correct ?    0 Yes 1 No
K.nagalakshmi
 
  Re: After preparing the SAP script.what is the procedure to send that script to e-mail?
Answer
# 2
In close_form function module there is option of getting 
output in OTF form. Go to se37 and in table tab convert 
that table to hex (BIN) format and pass it to objbin and 
send normal mail.
 
Is This Answer Correct ?    0 Yes 0 No
Vrushali
 
 
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
Some one is running a program in Foreground which has to be run in Back ground. How you are going to instruct to do in Back ground?  1
what will happen if you don't give occurs clause while creating an internal table?  4
what is the IDOC status code? Intel4
What is the difference between field string and internal table?  2
BDC Data which format? Bristle-Cone4
if u define paragraph and character formats what will be overwriting which one  1
n an internal table you want to modify content of a particular field in a row. How to do it? HP2
which table stores the online messages? Cap-Gemini1
What does an extract statement do in the ABAP program?  1
wat is the type of file processed by ABAP?  1
Tcode for enhancements? Wipro3
If s1 and s2 are different structures how will u transfer  1
Performance tuning. How can you know which line of code taking long time to execute? HP1
How to create MEDRUCK form?  1
BAPI is efficient than BDC? The question is with options, asking which of the following is true? Accenture4
how can we print both side in smartforms? what connects smartform to it's driver program? in which event validation is done?  1
what is the difference b/w database and data dictionary? Reliance1
what class is used to display the ALV grid control?  1
In a screen i have 2 radio buttons and 2 text fields,if i select the one radio button one text field has to be enable and when i select another one,other text field has to be enable,in the at selection screen output event how it was happen?this event has to effect once i press enter naa.......... how the screen knowing that? IBM2
17) How will you validate selection screen elements?  3
 
For more ABAP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com