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
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
 
what is use of tcp/ip in real time for abaper?? TCS2
Hi All, Can u tell me the difference between RFC and BAPI. I know Both are remote enabled. IBM2
could u plz provide me the details of blue printing? Role of an abapper in implementation project? Details steps of implementation? Regards, Rahul TCS1
How do we debug sap script? IBM2
What is Internal Table? Atos-Origin12
in a loop of an internal table, what is the use of at first & at last statements?  2
How to insert data in ternal table? HCL3
How do you see the data in a table? FutureSoft2
In selection screen I have three fields- Plant, Material No, and Material group.If i insert plant how do i get the material no and material group based on plant dynamically? DataMetrix2
How to put checkbox against a row in ALV display? IBM1
How do you monitor sessions? HP2
What is the significance of keyword " H I D E"  4
How to fetch all the data from the Internal table?  1
WHAT IS DIFFERENCE BETWEEN BATCH INPUT MEHTOD AND DIRECT INPUT IBM1
What is the purpose of buffering? How many types of buffering? Axon1
how to creat a table with out primary key  8
what is the use of 'split' in BDC? Is it related to some tab adjustment to the flat file during BDC?  1
1) If the scripts are client dependent, what above driver program ? (client dependent / independent)   2. I have two pages, In one page I want address, Header, Main & footer. In the second page I want only Main. How to do it?   3) Will 50,000 records be uploaded directly into APP's Server?   4) What is the button to change the variant in ALV ?   5) If your project is support project ? when is your implementation has completed ?   6)In start of selection, if we perform validation, what happens ?   7)How to join 3 tallies & looping. We have developed a program in a client say (200- client) and 210 has test data. No developing rights. How to test data?   8)How to transfer data which is coming from are report as output to another report 9)How to create standard text and how do u transfer it ? 10)What are the views when we are creating Material ? Deloitte1
In module pool, when table controls are used the command that is written in both PBO and PAI is Accenture4
What are the select-option fields?  5
 
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