Sending attachment form CRM system to ECC system

Hi friends,
I have a requirement.
when ever we create  a sales order in CRM it automatically flows into ECC ... This is perfect sap provides this functinality..
Now my requiremnt is i need the attachement of this created sales order which is created in CRM should flow auomatically into ECC..
How can i get the attachment of ths sales order which i created...
Can any one let me know....
Regards
Kumar

The attachement is a smartform or sapscript and those do not flow accross via middleware.
We use SAP archive link to write the document to CMS and then some programming is required to point the 2nd system (in your case ECC) to look at this document as we use the FM in the attached blog to write an entry to table TOA01.
SAP Network Blog: Using SAP ARCHIVELINK to improve ICWC document search Part 2
/people/glenn.michaels/blog/2008/10/28/using-sap-archivelink-to-improve-icwc-document-search-part-2

Similar Messages

  • Download E-Mail + Attachment from CRM System to Local Harddrive

    Hello,
    I need to download all E-Mails (incl. Attachment) from the CRM EIC Webclient System to the local
    harddrive (alternatively to the server drive). If its possible, I need the relation from the one order
    number to the mails (inlc. Attachment).
    Does anyone knows where the Mail are stored in the CRM Webclient System? Or can anyone
    give me a hint how I can realise a mass download (function module, class, method,...).
    The reason is, that the CRM System will be shutdown concerning insolvency and the Mails are
    necessary for the liquidation.
    Thanks,
    Andreas
    Edited by: Andreas Faatz on Jan 25, 2010 4:26 PM

    Hello Andreas,
    Just to clarify, I assume that you are referring to emails that arrive into the system via SAP Connect interface and are processed via the Agent Inbox (and not referring to emails that arrive via the ICI interface and are directly pushed to agents)? The ICI emails are typically stored on a third-party email server, so they would not be stored in SAP CRM. On the other hand, the SAP Connect emails are stored in the CRM system, sort of, though its rather complicated. The emails are converted into a combination of CRM workflow and SAP Office document and are broken up and stored in a variety of different tables. So there isn't really an single email that is stored and easily retrieved.
    Incoming ICI emails are first converted into an SAP workflow work item until accessed in IC and then are converted and stored as SAPoffice document in tables SOFM, SOOD  (header info) , SOC3  (for non krpo) , SOFFCONT1 (for  kpro / binary data) -- and if the document has been sent -- also in SOOS, SOST, and SOES (for externally sent documents). I'm not sure if this helps you at all
    Best regards,
    John

  • Offline Integration of Adobe Forms with CRM System using Web Service

    Hi Experts,
    I have a business requirement in which the end user us given an Application Form.
    The user can save the form locally and fill the data.
    Now the requirement is that when the end user clicks on Submit Button on the form, a web service is called and the entire data in the form is sent to CRM System.
    I want to know is it possible to capture the entire data filled in the form in a web service???
    Also the other major requirement is that i need to send the application form also to the CRM system.
    I need to store the form as attachement for a Business Partner Record.
    Is it possible to capture the data in the adobe form and still attach the form as attachement in an Offline Scenario????
    Is it possible that a Web Service can be called on click of button in the form and still be able to attach the form itself as attachment???
    Thanks and Regards
    Gaurav Kumar Raghav

    I have collected some links for WebServices for you:
    https://cw.sdn.sap.com/cw/servlet/JiveServlet/download/38-51084/saptech_webservice.pdf
    Re: Adobe forms with Web Service - nothing happens when clicking button.
    /people/rudy.clement2/blog/2010/03/10/how-to-use-the-postexecute-event-in-sap-interactive-forms-to-retrieve-a-table-from-a-webservice
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
    Usage of webservice in offline adobe scenarios
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0d0a250-ccd1-2c10-9e9f-b9d5cf259a6d?quicklink=index&overridelayout=true
    cheers Otto

  • Exception in CRM system after creating post goods issue in ECC

    Hi Folks,
    We are facing an issue in CRM system. I will tell the scenario in details so that it would be helpful to understand,
    We are creating sales order in CRM system and it got replicated to ECC correctly. We have maintained action definition to trigger email to the customer.
    Then we will be creating delivery and then post goods issue(PGI) for items replicated to ECC systems. After PGI system will update the status in CRM sales order and here configured an action definition to trigger an email to customer.
    We have created custom badi implementations for action definition execute badi to send email. Emails are triggering correctly but after PGI creation while replicating the changes from ECC to CRM we are getting an exception in standard code because PPFTTRIGG table does not have entry. We have failed entry in CRM inbound queue and then did some debug and come to know the place of issue. Help me out with some inputs here.
    Best Regards,
    Dharmakasi.

    Hi,
    I have identified one thing here, if the action definition does not have start condition system is not updating that entry in PPFTTRIGG table. Here i got 2 questions my mind
    1. Why system is not updating the table with all the action definitions available in action profile
    2. Why system is looking for the entry which was not updated in PPFTTRIGG table?
    I do not understand problem with updating table or with action profile itself. Please give some input here. If we deactivate all the definitions which does not have start condition then there is no error.
    Best Regards,
    Dharmakasi.

  • One ECC Connected to multiple CRM systems

    Hello,
    We have a scenario where we have single R/3 system (ECC) connected to multiple CRM systems. I would be obliged if someone can send me some documentation on tht.
    Also if we are creating an order in ECC, two queues are generated which I think is wrong. Can someone give me some advice on this.
    Thanks & Regards
    Priyanka

    Hello Pratik,
    I would define two different systems in ECC. In such a case, if say I create one material in R/3 (ECC) then should it generate two diffrent queues for flow to CRM.
    Also if say the CRM Release etc for the two systems connected to one R/3 are not the same, then how do i take care of the entries in the ECC Config tables for replication i.e CRMFILTAB, CRMCONSUM, CRMPAROLTP etc.
    And how does the ECC system identify what settings it has to take for what CRM system and what queues have to be generated? What are the queues to be registered in CRM and ECC in such a case.
    Would be obliged if you can give me a more detailed advice.
    Rgds
    Priyanka

  • I am looking for a CRM system that integrates with mail chimp or constant contact, hoot suite and forms stack

    I am looking for a CRM system that integrates with mail chimp or constant contact, hoot suite and forms stack

    Hi,
    I could resolve the issue since there were lot of issues after system copy.
    1. During distribued to Cenrtal system - system copy.
    You need to combine both DB and CI export copies in one folder during which one thing can happen.
    SOURCE.PROPERTIES - this file will be there in DB export JAVA folder and also CI export JAVA folder where
    DB SOURCE.PROPERTIES file doesn't have an entry of "src.ci.host". This will stop the SAPINST with error and after modifying the file "SOURCE.PROPERTIES" Traget System Copy finishes without any issue.
    Then after this stage I encountered an issue with bind hosts entry in config tool which was due to virtual host name usage in my HACMP setup due to whcih JAVA gives a startup problem.
    I eliminated this issue also.
    After JAVA started I faced an issue with XI related navigations.
    ecchangeProfile url still had an entry of Production System. This may be a bug.
    After changing that entry, exchangeProfile was downloaded but it had all the source system host entries which were manually changed.
    Now I can access all the XI related navigations.
    I need to also perfrom SGEN and Profiles import.
    Do I need to change any additional settings after this so that my production and DR can work without any issue?
    Do you have any additional checks which I can perfrom to ensure my DR systems consistency before I start the log shipping from Production?
    Regards,
    Rajkumar

  • I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. So, what are the parameters that I need to set in CRM system so that my quotation gets replicated?

    Dear Experts,
    I have created a quotation in CRM system. I want that to be downloaded into ECC, so that, I can create a sales order there with reference to that quotation. What are the parameters that I need to set in CRM system so that my quotation gets replicated without any error?
    Please help me in this regard. An early and in detail step by step guidance is highly appreciated.
    Thanks,
    SMTP

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • An Inquiry Document is to be created in ECC from CRM system

    Hi Friends,
    An Inquiry Document is to be created in ECC when an project opportunity is created and the phase of the opportunity is “Quotation Stage” in CRM system using Tcode CRMD_ORDER.
    So the scenario is when i create project opportunity and save it in the CRM,while saving at the same time i need to create Inquiry document in ECC system using BAPI "BAPI_INQUIRY_CREATEFROMDATA".
    So can any one suggest me where should i need to call the BAPI , what parameters i need to pass ,
    It would be helpful for me if any one help me out.
    Regards
    Raghavendra Prasad
    Message was edited by:
            Raghavendra Prasad

    I actually followed your blog and developed a sample application
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    Can you please explain below :
    1) I was getting an UI like this ,  but in example you provide you achieved a table like UI. May i know the reason behind this?
    How can i achieve the UI as in blog?
    my result
    example in blog result
    2) The result i achieved is not responsive. When i change the size of my browser the UI design does nt adjust itself.
    How to make this responsive?

  • Data flow from E-commerce to SAP CRM 7.0 , ECC and third party system

    Hi,
    I have a requirement like the customers are created in E-commerce website of the company. When a customer is created the data should be synch to CRM , ECC and thrid party system ( price data from CRM  for the customer ).
    How do we transfer the data from E-commerce to CRM.?.andn ECC. Is it transferred first to CRM and then to ECC. Can  we acheive all the systems synched at a time.
    Can anyone explain with some design.
    Thank you,
    Regards,
    Prashanth.

    Hi
    SAP CRM E-Commerce (called as WEB CHANNEL) works as per the below options (in CRM 7.0 and ECC 6.0)
    1. SAP CRM Web channel with CRM back end where CRM will be a leading system for order creation. From E-Commerce channel, the order is saved in the back end CRM system and then replicated to ECC (through middleware settings).
    In this scenario PRODUCT CATALOG will be created in CRM system. The use of TREX server will be used for product catalog replication.Also, the image server will be required for the display of product images in the PRODUCT CATALOG.
    2. SAP CRM Web channel with ECC back end where ECC will be a leading system for ORDER CREATION. This is a new offering in CRM 7.0 where from E-Commerce web shop the order is directly created in ECC system. Hence no middleware settings are required for order replication. 
    In this scenario also PRODUCT CATALOG will be created in CRM system. The use of TREX server will be used for product catalog replication. Also, the image server will be required for the display of product images in the PRODUCT CATALOG.
    3. For customer replication from E-Commerce > CRM > ECC, you need to maintain the middleware settings between CRM and ECC for business partner replication.
    Hope this will clarify.
    Regards

  • How to download ECC scale basis into CRM system?

    Hi All,
    Please share / suggest how to download ECC defined scale basis into CRM system (ECC to CRM)?
    We used DNL_CUST_CND & DNL_CUST_CNDALL.  Do we need to update any Tables in these Objects?
    Thanks and Regards,
    Fedor.

    Hi,
    you can create your own condition object(r3ac5), and in the new object > (tables/structures) tab change the condition table (A-)
    please be noted that the table (KONW) which pass the scales, exist by defualt
    u have to execute your object to replicate the data, and to be konwn your 2 objects which had run just for customzing not for data   
    feedback me if u have any Q.
    الحمد لله الذي علمنا
    samer shamandi

  • Customer master data replication probelm from ECC to CRM system.?

    Hi..Gurus, 
    Intial downloading was done for master data and transaction data..but after 10 days.. some changes in ECC system will not replicate to CRM system..delta down loading working or not how i can check ?  or i have again do the intial downloading for customer_main..plz  help  me..?
    Truly,
    San Rao.

    Hi,
    make sure that the Middleware is activated in R/3 table TBE11 for
    application component BC-MID as below:
    Application ID Active Text
    BC-MID         X      Middleware
    Also, in R/3 table TBE31 make sure the following even has been activated
    00001321   BC-MID      PI_BP_CUSTOMER_BTE_1321
    In R/3 table CRMRFCPAR make sure that the delta load has not been
    deactivated for the object Customer_Main....
    If this is ok check filter on the object Customer_Main in trx. R3AC1 in
    CRM to make sure they havent filtered out the relevent BP's
    If you have a BP expample use CRM trx. CRMM_BUPA_MAP  to gather the BP
    from R/3 into CRM...this will either lead to a sysfail in CRM SMQ2 or
    A short dump in ST22 if there are any errors...
    Also, after using trx. "CRMM_BUPA_MAP" check in SMw01 for Bupa_Main
    bdocs...if there are errors they will norally be on the validation of
    the BP in CRM and the bdocs will have errors...
    Regards, Gerhard

  • Send mail from SAP system to another SAP system

    Hello Xperts
    I need to send a mail from one SAP box (ECC) to another SAP box (SRM,CRM, EP etc). I know how to send mail from SAP to external address but unable to find the parameters in this case. Kindly help.
    thkx
    Prabhu
    PS: Kindly DONOT post on "How to send mail from SAP" as my questions is all abt how to send mail from one sap system to another sap system

    Hi
    To send mail Internally check this sample code it works fine this code was developed by me
    *& Report  ZMATURITYREPORT                                             *
    *&   Title - Maturity   report                                         *
    *&           ABAP/4 Consultant                                         *
    *& Name- Pavan Praveen Valluri Created on 26/07/2007                   *
    *& Module - FI                                                         *
    REPORT  ZMATURITYREPORT.
    tables: bseg.
    * SELECTION SCREEN---------------------------------------------------  *
    parameters: p_email type somlreci1-receiver default
    '@gujaratpetro.com'.
    * Data: p_email(25) type c value '[email protected]'.
    * END OF SELECTION SCREEN -------------------------------------------  *
    *----------DATA DECLARATION--------------------------------------------*
    data: it_message type standard table of solisti1 initial size 0
    with header line.
    data: it_message1 type standard table of solisti1 initial size 0
    with header line.
    data: it_message2(10) type N.
    data: it_message3 type standard table of solisti1 initial size 0
    with header line.
    data: it_message4 type standard table of solisti1 initial size 0
    with header line.
    data: it_attach type standard table of solisti1 initial size 0
    with header line.
    data: text(150).
    data: t_packing_list like sopcklsti1 occurs 0 with header line,
          t_contents like solisti1 occurs 0 with header line,
          t_receivers like somlreci1 occurs 0 with header line,
          t_attachment like solisti1 occurs 0 with header line,
          t_object_header like solisti1 occurs 0 with header line,
          w_cnt type i,
          w_sent_all(1) type c,
          w_doc_data like sodocchgi1,
          gd_error type sy-subrc,
          gd_reciever type sy-subrc.
    start-of-selection.
    data: lv_date type sy-datum.
    data: lv_date1 type sy-datum.
    data: lv_formatdate(10) type c.
    data: lv_formatdate1(10) type c.
    data: var1(4) type c,
    var2(2) type c,
    var3(2) type c.
    data: begin of int_bseg occurs 0,
        BELNR LIKE BSEG-BELNR,
        ZUONR LIKE BSEG-ZUONR,
        GJAHR LIKE BSEG-GJAHR,
        DMBTR LIKE BSEG-DMBTR,
        HKONT LIKE BSEG-HKONT,
    end of int_bseg.
    data: begin of int_SKAT occurs 0,
        TXT50 LIKE SKAT-TXT50,
        SAKNR LIKE SKAT-SAKNR,
        KTOPL LIKE SKAT-KTOPL,
    end of int_SKAT.
    data: begin of int_bkpf occurs 0,
          BELNR LIKE BKPF-BELNR,
          BUKRS LIKE BKPF-BUKRS,
          GJAHR LIKE BKPF-GJAHR,
          BUDAT  LIKE BKPF-BUDAT,
    end of int_BKPF.
    data: 2days_out type sy-datum.
    2days_out = sy-datum + 2.
    data: var4(4) type c,
    var5(2) type c,
    var6(2) type c.
    *-------- END OF DATA DECLARATION--------------------------------------*
    *--- CONCATENATING AND ARRANGING DATE ---------------------------------*
    lv_date = 2days_out.
    var1 = lv_date+(4).
    var2 = lv_date+4(2).
    var3 = lv_date+6(2).
    concatenate var3 var2 var1 into lv_formatdate separated by '.'.
    *--- END OF CONCATENATING AND ARRANGING DATE  -------------------------*
    *-------------------------SELECTION FOR BSEG---------------------------*
    select zuonr belnr bukrs GJAHR DMBTR HKONT from bseg into
    corresponding fields of  table int_bseg
    where bukrs = 'company name' and
          ZUONR = lv_formatdate.
    *--------------END OF SSELECTION FOR BSEG---------------------------   *
    *-------------------------SELECTION FOR BKPF---------------------------*
    select  BUDAT BUKRS BELNR GJAHR  from BKPF into
    corresponding fields of table int_BKPF
    where bukrs = 'company name'.
    append int_BKPF.
    *------------------END OF SELECTION FOR BKPF---------------------------*
    *-------------------------SELECTION FOR SKAT---------------------------*
    select SAKNR TXT50 from SKAT into
    corresponding fields of  table int_SKAT
    where KTOPL = 'company name'.
    *and      SAKNR = INT_BSEG-HKONT.
    APPEND INT_SKAT.
    *--------------END OF SSELECTION FOR SKAT---------------------------   *
    *-----------------POPULATING EMAIL SUBJECT ----------------------------*
    perform populate_email_message_body.
      perform send_file_as_email_attachment
      tables it_message
      it_attach
      using p_email
      'Maturity after 2 days'
      'XLS'
      'filename'
      changing gd_error
      gd_reciever.
    * Instructs mail send program for SAPCONNECT to send email(rsconn01)
      perform initiate_mail_execute_program.
    *endif.
    end-of-selection.
    *------------END OF POPULATING EMAIL SUBJECT --------------------------*
    *& Form SEND_FILE_AS_EMAIL_ATTACHMENT
    * Send email
    form send_file_as_email_attachment tables pit_message
    pit_attach
    using p_email
    p_mtitle
    p_format
    p_filename
    p_attdescription
    p_sender_address
    p_sender_addres_type
    changing p_error
    p_reciever.
      data: ld_error type sy-subrc,
      ld_reciever type sy-subrc,
      ld_mtitle like sodocchgi1-obj_descr,
      ld_email like somlreci1-receiver,
      ld_format type so_obj_tp ,
      ld_attdescription type so_obj_nam ,
      ld_attfilename type so_obj_des ,
      ld_sender_address like soextreci1-receiver,
      ld_sender_address_type like soextreci1-adr_typ,
      ld_receiver like sy-subrc.
      ld_email = p_email.
      ld_mtitle = p_mtitle.
      ld_format = p_format.
      ld_attdescription = p_attdescription.
      ld_attfilename = p_filename.
      ld_sender_address = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    ** Fill the document data and get size of attachment
      clear w_doc_data.
      read table it_attach index w_cnt.
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + strlen( it_attach ).
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      clear t_attachment.
      refresh t_attachment.
      t_attachment[] = pit_attach[].
    * Describe the body of the message
      clear t_packing_list.
      refresh t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      describe table it_message lines t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      append t_packing_list.
    * Add the recipients email address
      clear t_receivers.
      refresh t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      append t_receivers.
      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
          object_header              = t_object_header
          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
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          others                     = 8.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      loop at t_receivers.
        ld_receiver = t_receivers-retrn_code.
      endloop.
    endform.                    "send_file_as_email_attachment
    *& Form INITIATE_MAIL_EXECUTE_PROGRAM
    * Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
        submit rsconn01 with mode = 'INT'
                      with output = 'X'
                      and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *& Form POPULATE_EMAIL_MESSAGE_BODY
    * Populate message body text
    form populate_email_message_body.
      refresh it_message.
      refresh it_message1.
      refresh it_message3.
       refresh it_message4.
    *--------------- LOOP FOR BSEG -----------------------------------------
      loop at int_BSEG.
    read table int_bKPF WITH KEY BELNR = INT_BSEG-BELNR
            GJAHR = INT_BSEG-GJAHR.
    read table int_SKAT WITH KEY SAKNR = INT_BSEG-HKONT.
    *---CHANGING DATE FORMAT FOR BKPF---------------------------------------
    lv_date1 = int_bkpf-budat.
      var4 = lv_date1+(4).
      var5 = lv_date1+4(2).
      var6 = lv_date1+6(2).
    concatenate var6 var5 var4 into lv_formatdate1 separated by '.'.
    *---END OF CHANGING DATE FORMAT FOR BKPF-------------------------
    it_message =  int_bseg-belnr.
    it_message1 =  lv_formatdate1.
    it_message2 = int_bseg-dmbtr.
    it_message3 = int_bseg-hkont.
    IT_MESSAGE4 = INT_SKAT-TXT50.
    SHIFT IT_MESSAGE2 LEFT DELETING LEADING '0'.
    *-------------POPULATING EMAIL BODY WITH DATA -------------------------
    concatenate 'Maturity After 2Days' 'for'  'G/L account-' it_message3
    '--' IT_MESSAGE4  ',' 'Amount-' it_message2
        into it_message separated by space.
    append it_message.
    append it_message1.
    append it_message3.
      clear it_message.
      clear it_message1.
      clear it_message2.
      clear it_message3.
    endloop.
    *------------END OF LOOP FOR BSEG --------------------------------------
    endform. " POPULATE_EMAIL_MESSAGE_BODY
    <b><i>
    To send an mail with external attachment check this one
    </b></i>
    <i>first create a Include report with the following coding</i>
    *& Include ZPA1_INCLFOR_MAIL *
    * Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    * FORM
    FORM ml_customize USING objname objdesc.
    *----------- Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    *--------- Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    * FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    * FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    * FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    *--------- Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    * IMPORTING
    * COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    * Header Data
    * Already Done Thru FM
    * Main Text
    * Already Done Thru FM
    * Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    * Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    * Receiver List
    * Already done thru fm
    ENDFORM. "ml_prepare
    * FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    * IMPORTING
    * SENT_TO_ALL =
    * NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    * CONTENTS_HEX = objhex
    * OBJECT_PARA =
    * object_parb =
    receivers = reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    * FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    *-------------- Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    *------------- Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    * FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    *-------- Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    *------------ Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    <b>
    Then include that report in the following report and copy the same code and paste it there
    </b>
    *& Report ZPA_TEMP147 *
    REPORT ZPA_TEMP147 .
    INCLUDE zpa1_inclfor_mail.
    * DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    * SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    * AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    * START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    * FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    EXTENSION = extension
    NAME = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    <b>These are the FM for sending external email :-</b>
    SO_DOCUMENT_SEND_API1
    SAPoffice: Send new document with attachments via RFC
    SO_NEW_DOCUMENT_ATT_SEND_API1
    (In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
    SAPoffice: Send new document with attachments via RFC
    Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.
    SO_NEW_DOCUMENT_SEND_API1
    SAPoffice: Send new document
    <b>Check this sample report</b>
    DATA : BEGIN OF ITAB OCCURS 0,
    PERNR LIKE PA0001-PERNR,
    ENAME LIKE PA0001-ENAME,
    END OF ITAB.
    DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
    receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
    packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
    listobject LIKE abaplist OCCURS 10,
    compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
    w_object_hd_change LIKE sood1,
    compressed_size LIKE sy-index.
    START-OF-SELECTION.
    SELECT PERNR ENAME
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM PA0001
    WHERE PERNR < 50.
    LOOP AT ITAB.
    WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
    SY-VLINE.
    ENDLOOP.
    * Receivers
    receiver_list-recextnam = '[email protected]'. "-->
    * EMAIL ADDRESS
    RECEIVER_list-RECESC = 'E'. "<-
    RECEIVER_list-SNDART = 'INT'."<-
    RECEIVER_list-SNDPRI = '1'."<-
    APPEND receiver_list.
    * General data
    w_object_hd_change-objla = sy-langu.
    w_object_hd_change-objnam = 'Object name'.
    w_object_hd_change-objsns = 'P'.
    * Mail subject
    w_object_hd_change-objdes = 'Message subject'.
    * Mail body
    APPEND 'Message content' TO message_content.
    * Attachment
    CALL FUNCTION 'SAVE_LIST'
    EXPORTING
    list_index = '0'
    TABLES
    listobject = listobject.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    compressed_size = compressed_size
    TABLES
    in = listobject
    out = compressed_attachment.
    DESCRIBE TABLE compressed_attachment.
    CLEAR packing_list.
    packing_list-transf_bin = 'X'.
    packing_list-head_start = 0.
    packing_list-head_num = 0.
    packing_list-body_start = 1.
    packing_list-body_num = sy-tfill.
    packing_list-objtp = 'ALI'.
    packing_list-objnam = 'Object name'.
    packing_list-objdes = 'Attachment description'.
    packing_list-objlen = compressed_size.
    APPEND packing_list.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = w_object_hd_change
    object_type = 'RAW'
    owner = sy-uname
    TABLES
    objcont = message_content
    receivers = receiver_list
    packing_list = packing_list
    att_cont = compressed_attachment.
    <b>Settings for sending mail</b>
    Configuring SAP 4.6x Internet mail Gateway
    SAP can be configured to send and receive emails from different sources.This section explains how to integrate SAPOffice with an external emailsystem. Your Internet email must be configured and running prior to this.Email from SAP is forwarded to the users external email system..
    You can configure inbound and outbound forwarding. Outbound flow forwardsa SAP message (eg: update termination) via UNIX sendmail to the intended recepient. Inbound accepts a message from sendmail and places it in the users SAPOffice inbox. Many companies prefer to configure outbound only.
    Configuring outbound forwarding
    SAP configuration
    1. Create your RFC destination for outbound email using transaction SM59
    RFC Destination : SAP_INTERNET_GATEWAY
    Connection Type : T
    Description : SAP internet mail gateway
    Click on 'Explicit Host' if you wanton demand gateway dameon invocation.
    Program : /sapmnt/SID/exe/mlunxsnd
    Target Host : Enter hostname that runs your central instance.
    Click 'Test Connection' and you should seea successfull message.
    2. Shared Office Settings transaction SO16-> Send -> Settings or
    directly via transaction SCOT- SAPconnect Administation
    Nodes - Create
    Node : IMAIL
    Description : SAP internet mail gateway
    RFC Destination : SAP_INTERNET_GATEWAY
    Tick : Internet
    Address Area : *
    Tick : All formats
    Dev. type : Choose an approciate Printer Device
    Set further addresstype : N
    Maximum waiting timefor repeat send attempt procedure : Blank or decide for yourself
    Tick : Node is ready for use
    Setting
    - DefaultDomain : <your company domain>.com
    - Conversionrule : require if your communication device only support one format.
    e.g. if you email system only support the format RAW (ASCII text format)
    Format To Format Ranking Function module
    ALI RAW 1 SX_OBJECT_CONVERT_ALI_RAW (convert APAP List)
    Referto note 171698 - SAPconnect: Formats, conversion, device type
    UNIX configuration
    1 .. cd /sapmnt/SID/exe
    2 ..csh
    ..mlsomadm mailgw.ini
    System Name [C11] :
    Client [000] :
    Username : MAILADM
    Password : MAILADM
    Language : E
    Load Balancing :
    Hostname : <hostname>
    System number : <instance_number>
    Gateway hostname: <central_instance_hostname>
    Gateway Service : <instance number>
    Use SAP Router :
    Trace level :
    Sendmail Command [/usr/lib/sendmail -i -f<SENDER_ADDRESS>]:
    Codepage [ISO-8859-1] :
    Trace Level (Outbound) [0] :
    Update file sapmailsid.cfg? [Y]
    Testing whether your configuration is successful
    1. Logon to SAP
    2. Execute transaction SO01
    3. Write a message and send it to <your_internet_email_address>
    4. If you don't see the mail in your internet mailbox, go back and review steps 1-12
    Schedule the SAP Internet Mail Gateway Jobs to start every 5 minutes
    1. Create
    2. Position your cursor at INT
    3. Click Schedule and supply the date and time
    4. Click Schedule periodically and tick Minutes and type in 5
    5. Click Create and you are done
    6. Click Show Scheduling to check
    Problems that you might encounter :-
    If you have set up a node in SCOT and it tests out well but recieve the reply.
    "Cannot process message in node, parameterscannot be converted".
    Make sure the RFC connection is working, and that SapConnect has been installed on the Unix Server or the Microsoft Exchange Server. Originally, I had the same error, and found that nothing had been installed on Unixor Exchange, to support SapConnect.
    In SCOT (View -> System Status), your mail remains at the Intransit column.
    Check you sendmail.cf files (e.g.Sun Solaris /etc/mail/sendmail.cf). Try using the sendmail command to send a test file at the Unix level. You must be able to send mail at theUnix level before you can send mail at the SAP level.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/700b405bacdd5fe10000000a155106/content.htm
    http://www.tamboly.com/SAPEmailConfiguration.html
    Check my previous links
    Mail Send
    sending mails from abap program
    Mail Sending to external email id's
    settings needed for sending emails
    Regards
    Pavan

  • Error while downloading Contacts from R/3 to CRM system

    Hi All,
    I am trying to download Contacts from R/3 to CRM system.
    Through Initial Download. For this i have set filters through Tcode: R3AC1
    as on KNVP and KNVV for the field VKORG.
    As we have our requirement to download contacts based on or differentiating
    on 'Sales Org".
    We have downloaded our Accounts properly without any errors.
    But for Contacts we are facing issues such as one or more extra
    relationships are getting created between Contacts and Accounts other than
    its original Contacts.
    Means already existing contacts are creating more relationships after
    download.
    But a unique feature is visible for all, All those with false
    contact-account relationships.
    Contact has field value for 'Address type' missing while the same address
    type field is properly added for correct relationships. ( please find attached the screenshot of the same)
    Any pointers in which direction we should proceed for the solution would be
    appreciated.
    Thanks in advance.
    Cheers,
    Sharad

    Dear Vimal,
    Sorry not sure then...
    Sometimes the RFC connection is refused and use to give that particular error messgae due to:
    The old RFC library having version 6.20 automatically converted the
    password into uppercase with a size limit of 8 characters before sending it to the SAP system.
    The RFC library version 6.40 does not perform this conversion any more, because mixed case passwords upto 40 characters are now supported by SAP Basis version 7.00 (eg. NW2004s) and above. 
    So need to use upper case passwords when connecting to an SAP system having version less than 7.00. 
    But this is not valid in this scenario.
    Thanks,
    Atin

  • Setting up portal for CRM system

    Hi,
    I am working on a POC for one of our customers which need portal integration with CRM server, please let me know the procedure for the same and it will be of great help if some one can send me a step by step procedure of setting up a portal screen and integrating CRM system with Portal. So that transactions can be done in portal.
    Thank you in advancd,
    Regards
    KBK

    Hello,
    As you are in SP20 you should check the components version according to SAP note 1274287.
    Have you checked that all the components are meeting the requirements(including JAVA components)?
    About your doubt #3, please check whether you have configured the system according to the SAP Solution Manager Landscape Setup Guide:
    service.sap.com/diagnostics
    -> Media Library
      -> SAP Solution Manager Landscape Setup Guide
    or check SAP note 987835.
    As you say that you have performed the Initial and Basic configurations I assume you have implemented the solution manager basic functions note (1334252).
    Afterwards you can check the Workload analysis and check if data is shown there. For further troubleshooting you can use the "Troubleshooting Guide" attached to note 1332428.

  • CRM Survey Responses not coming back into the CRM system - WHY????

    Hey guys,
    I am trying to implement the campaign automation. My problem now is, that I am not getting the survey responses back into the CRM System so the next campaign element cannot start.
    We do not use a BW; and in terms of the .xml for the URL generation I used bsp and not for example mailto. When I tested the URL it worked fine. I as well checked the workflows, they also seem fine. When I created the mailform and inserted the hyperlink I choosed the option no tracking as I said before, we do not use a BW.
    Can you tell me if I missed any configuration steps? I also started the internal CatServer, as mentionend in many notes.
    I highly appreciate your help.
    Best regards,
    Janine

    Hi,
    we are using campaign automation with Surveys and we are able to see responses. Maybe try these steps:
    - generate a survey like in Create, run and analyze an E-Mail Campaign with a Survey (Part 1)
    - generate the url for your survey and insert it inside a mail form,activating the option "tracking via target site" (since you need to track responses and your survey is on the CRM domain)
    -create a simple campaign that sends a mail using your mail form and pass some BP in the target group, then make them answer the survey: under "contact statistics" you should see the number of outbound mails and the number of inbound contacts with the number of BPs that answered to your survey
    Once you are sure that this scenario is working, you can set conditions in campaign automation on the type of response received in the survey, etc... (like in http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20283126-36ca-2d10-6983-92ed18d36644?QuickLink=index&overridelayout=true )
    Hope this helps,
    regards,
    laura

Maybe you are looking for