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                      
tip   SiteMap shows list of All Categories in this site.
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
How you will send mail from one SAP system to other SAP 
system?
 Question Submitted By :: Naren
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How you will send mail from one SAP system to other SAP system?
Answer
# 1
Please go through the sample code to Send mail

*********
*Data of an object which can be changed
DATA : doc_chng  LIKE sodocchgi1.

*SAPoffice: Single List with Column Length 255
DATA : objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE,
        objbin  LIKE solisti1 OCCURS 10 WITH HEADER LINE.

*SAPoffice: Description of Imported Object Components
DATA : objpack  LIKE sopcklsti1 OCCURS 2  WITH HEADER LINE.

*SAPoffice: Structure of the API Recipient List
DATA : reclist   LIKE somlreci1  OCCURS 5  WITH HEADER LINE.


FORM errors_send_mail .
* Creation of the document to be sent
  doc_chng-obj_name = 'Log report For Historical Balance 
Conversation'
.

  CONCATENATE 'Log for ' sy-repid INTO doc_chng-obj_descr
                   SEPARATED BY space.


  LOOP AT it_error. "HERE TYPE = 'A' OR TYPE = 'E'.
    objtxt = it_error-message.
    APPEND objtxt.
    CLEAR: objtxt.
  ENDLOOP.

  LOOP AT it_message.
    AT FIRST .
      WRITE : / 'List of documents created :'.
      SKIP 1.

    ENDAT.
    WRITE : / it_message-message.
    objtxt = it_message-message.
    APPEND objtxt.
    CLEAR: objtxt.

  ENDLOOP.

* Creation of the entry for the compressed document
  CLEAR objpack-transf_bin.
  objpack-head_start = 1.
  objpack-head_num = 1.
  objpack-body_start = 1.
  objpack-body_num = 9.
  objpack-doc_type = 'RAW'.
  objpack-obj_name = 'DATA'.
  objpack-doc_size = 10 * 255.
  objpack-obj_langu = 'EN'.
  APPEND objpack.
  CLEAR  objpack.

  CLEAR objpack-transf_bin.
  objpack-head_start = 0.
  objpack-head_num = 0.
  objpack-body_start = 10.
  objpack-body_num = tab_lines.
  objpack-doc_type = 'DAT'.
  objpack-obj_name = 'DATA'.
  objpack-doc_size = tab_lines  * 255.
  objpack-obj_langu = 'EN'.
  APPEND objpack.
  CLEAR  objpack.

* Completing the recipient list
*  RECLIST-RECEIVER = 'Michael.mccullough@ge.com'.
  reclist-receiver = 'Tiffany.Boyle@ge.com'.
  reclist-rec_type = 'U'.
  APPEND reclist.
  CLEAR reclist.
  reclist-receiver = 'Kalpana.tyagi2@ge.com'.
  reclist-rec_type = 'U'.
  APPEND reclist.
  CLEAR reclist.

* Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = doc_chng
      put_in_outbox              = 'X'
      commit_work                = 'X'
    TABLES
      packing_list               = objpack
      contents_txt               = objtxt
      contents_bin               = objbin
      receivers                  = reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.
  IF sy-subrc = 0.
    SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
  ENDIF.
 
Is This Answer Correct ?    2 Yes 1 No
Pramod
 

 
 
 
Other ABAP Interview Questions
 
  Question Asked @ Answers
 
in session method sy-subrc is not returned whereas in call transaction method sy-subrc is returned . what does it mean?  1
Whether Project contains enhancement or Enhancement contains Projects? Accenture2
In Function module SAP provieds Two Standard Exception, give name of that two exceptions. SAP-Labs3
what is ment by view?how many types are there ?what are they?and what is the difference between data base view and projection view?  2
what is partner profiles? TCS1
How can you see the errors displayed in IDOC? Intel1
wtat is diff. between bdc and session method Intelligroup4
How many fields(max) can be there in a transparent table? Unilogic-Software1
layout conversion?  1
How would you add fields to the sapscript without modifying the print program? IBM2
how to process the idoc? IBM2
wat is a source list? Patni1
how ro trigger a top of page in alv report? CTS3
EXPLAIN ABOUT RANGES ?  1
control break statements in ABAP? TCS3
What are the various types of BDC's? Keane-India-Ltd8
what is the various print modes available with SAP scripts?  1
What are control break statements? Keane-India-Ltd12
in scripts how to upload logo (it's saved in .bmp file ) i am asking procedure? Satyam1
1.Have you created custom table? Do you always use existing data elements and domains or create new ones? whatis the transaction code to see existing data elements and domains? 2.Performance wise inner join is better or For..ALL entries? why? 3.Where will you place data element domain and field together in an ABAP Program? 4.How will you pass the data/programs from one system to other system? 5.How will you print TOP-OF-PAGE in ALV Report?How will you make ALV Report interactive? 6.In Interactive report if i try to go to 20th list and my report has only 19 list what will be output? 7.Have you worked on Function Modules?How will you raise EXCEPTIONS in function modules? 8.Why you say Call transaction is faster than session? 9.How the business is carried out in your organisation?How did you get specs for coding ? Explain me complete step by step scenario from client deciding to switch SAP to your role of coding and after coding explain me how the object reaches back to client? Dont explain me about 5 phases like Business blueprint,realization etc? 10.To find User exit in SD module we can use development class VMOD and find out related exits. Which development class you use for MM FICO and PP Modules? IBM2
 
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