Regarding E-Mail a PO smartform

Hi SAP Gurus,
with the help of thread
link: [Regardin E-Mail from Smartform;
I have made the mailling Process from my smartform . But now it is giving error that "No connectivity from USER1 to external Mail"
I have consulted with my Basis person , can any one tell me how to configure the SAP with External  Mail .
Thanks & Regards,
Pavan.

if your using this FM CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' to sending mail you have to use
user mail id in SCOT tcode, SCOT -> INT->SMTP double click and maintain the email id ...

Similar Messages

  • Regarding my mail service, I placed all my family emails in a "family   " folder.  All of a sudden, it's gone.  How do I get it back?    e.

    Regarding my mail site, I placed all my family emails in a "family" folder.  Today it was gone.  How can I retrieve my family folder?

    you should look in your applications folder to see if mail is still there. the dock icon is pointing to mail being in your applications folder. it has probably been moved or deleted for some reason from the app folder. do a spotlight search for your mail program. if it is still on your computer, move it back to the applications folder and when you click the question mark, it should see it is back and open. The email folder in your library shouldn't have to be touched. you need mail.app itself.

  • Je n'arrive plus a regarder mes mail ...quand je clique sur icône il me demende de choisir entre icloud,google,yahoo etc... Comment faire pour retrouver mon mail?

    Je n'arrive plus a regarder mes mail ...quand je clique sur icône il me demende de choisir entre icloud,google,yahoo etc... Comment faire pour retrouver mon mail?

    Bonjour du Canada!
    Pour répondre à ta question concernant Balance, ton entreprise doit être parti d'une solution Entreprise pour activer cet service.
    J'espère que ça t'aides.
    (Excuse mon français, je suis Anglophone.)
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

  • Regarding PDF and mail attachement at SMARTFORMS

    hey jeyanthi,
    I tried the program from the link you gave to convert otf to pdf and sending pdf file as attachement.
    Everything works fine till PDF creation.
    but i did not get mail sending function works.
    while debugging i come to know that FM
    is goint to execption error
    'OTHERS 8'.
    why is it...its not working..could you pls guide me here..
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_doc_chng
    put_in_outbox = 'X'
    TABLES
    packing_list = i_objpack
    object_header = w_objhead
    contents_hex = i_objbin
    contents_txt = i_objtxt
    receivers = i_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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ambichan.

    hey jayanthi,
    Thanks for your reply.
    I am sorry, I debugged the code from starting again.
    I can see all the table fields except w_objhead gets populating values and passing to FM.
    everything is fine, even sy-subrc is 0 in this case now.
    and execution Ends normally without displaying any dialog or popup.
    but i could not see the Mail received to the mail id. could the FM be problem? I am working in 4.6C.
    could u pls look at my code.
    REPORT ZZZ_TEST2_PRG .
    DATA :i_tline TYPE TABLE OF tline WITH HEADER LINE,
    i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
    i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    *Objects to send mail.
    i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    *Work Area declarations
    w_objhead TYPE soli_tab,
    w_ctrlop TYPE ssfctrlop,
    w_compop TYPE ssfcompop,
    w_return TYPE ssfcrescl,
    w_doc_chng TYPE sodocchgi1,
    w_data TYPE sodocchgi1,
    w_buffer TYPE string,
    *Variables declarations
    v_form_name TYPE rs38l_fnam,
    v_len_in LIKE sood-objlen,
    v_len_out LIKE sood-objlen,
    v_len_outn TYPE i,
    v_lines_txt TYPE i,
    v_lines_bin TYPE i.
    parameter:      p_form   type tdsfname   default 'ZZZ_TEST2'.
    DATA:i_otf TYPE itcoo occurs 0 with HEADER LINE.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME                 = p_form
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = v_form_name
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_ctrlop-preview = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
    EXPORTING
    control_parameters = w_ctrlop
    output_options = w_compop
    user_settings = 'X'
    IMPORTING
    job_output_info = w_return
    EXCEPTIONS
    formatting_error = 1
    internal_error =2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    i_otf[] = w_return-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       FORMAT                      = 'PDF'
       MAX_LINEWIDTH               = 132
      ARCHIVE_INDEX               = ' '
    IMPORTING
       BIN_FILESIZE                = v_len_in
      TABLES
        OTF                         = i_otf
        LINES                       = i_tline
    EXCEPTIONS
       ERR_MAX_LINEWIDTH           = 1
       ERR_FORMAT                  = 2
       ERR_CONV_NOT_POSSIBLE       = 3
       OTHERS                      = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Convert PDF from 132 to 255.
    LOOP AT i_tline.
    *Replacing space by ~
    TRANSLATE i_tline USING '~'.
    CONCATENATE w_buffer i_tline INTO w_buffer.
    ENDLOOP.
    *Replacing ~ by space
    TRANSLATE w_buffer USING '~'.
    DO.
    i_record = w_buffer.
    APPENDing 255 Characters as a record
    APPEND i_record.
    SHIFT w_buffer LEFT BY 255 PLACES.
    IF w_buffer IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Refresh: i_reclist,i_objtxt,i_objbin,i_objpack.
    clear w_objhead.
    *Object with PDF.
    i_objbin[] = i_record[].
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    Object with main text of the mail.
    i_objtxt = 'Find attached the output of the smart form.'.
    APPEND i_objtxt.
    i_objtxt = 'Regards,'.
    APPEND i_objtxt.
    i_objtxt = 'chandra'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    Document information.
    w_doc_chng-obj_name = 'Smartform'.
    w_doc_chng-expiry_dat = sy-datum + 10.
    w_doc_chng-obj_descr = 'Smart form output'.
    w_doc_chng-sensitivty = 'F'. "Functional object
    w_doc_chng-doc_size = v_lines_txt * 255.
    Pack to main body as RAW.
    Obj. to be transported not in binary form
    CLEAR i_objpack-transf_bin.
    Start line of object header in transport packet
    i_objpack-head_start = 1.
    Number of lines of an object header in object packet
    i_objpack-head_num = 0.
    Start line of object contents in an object packet
    i_objpack-body_start = 1.
    Number of lines of the object contents in an object packet
    i_objpack-body_num = v_lines_txt.
    Code for document class
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Packing as PDF.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'Smartform'.
    CONCATENATE 'Smartform_output' '.pdf'
    INTO i_objpack-obj_descr.
    i_objpack-doc_size = v_lines_bin * 255.
    APPEND i_objpack.
    Document information.
    CLEAR i_reclist.
    e-mail receivers.
    i_reclist-receiver = '[email protected]'.
    i_reclist-express = 'X'.
    i_reclist-rec_type = 'U'. "Internet address
    APPEND i_reclist.
    Sending mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_doc_chng
    put_in_outbox = 'X'
    TABLES
    packing_list = i_objpack
    object_header = w_objhead
    contents_hex = i_objbin
    contents_txt = i_objtxt
    receivers = i_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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ambichan.
    Message was edited by: ambi chan

  • E-mail Template and Smartforms

    Hi,
    Can any one tell me how to create E-mail templates and Smart forms and how to configure them in IC WEB to trigger automatically.  Thanks in advance.  Enough points will be given for right answer.
    Thanks,
    Rik

    Hi Rik,
    1.Create the Actions  profile using the Wizard
    SPRO->IMG->CRM->BASIC FUNCTIONS->ACTIONS->ACTIONS IN TRANSACTION
    2.Assign actions to actions profile
         you can assign more than one action to same action profile
    3.Select the processing Time
           processing immediately
           when saving the document
           selection report
    4.Select the smartform for E-mail
    5.Select the form (created before)  T.CODE-SMARTFORMS
              Create the Template, out put form
    6.Assign the Schedule condition and Start condition
             Logic for the condition
    7.Then Assign the Action profile to your Transaction type in ic web.
    Reward points if helpful
    Regards
    Ram

  • Regarding Receiver Mail adapter.

    Hi experts,
    iam looking at one off the weblog whick  Michal Krawczyk have created.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    in this weblog michal have told to download the XSD file from service market place  and upload it in IR External definition it gives us target structure.What is the use off it, we can directly create the target structure.
    And also one more dought what is the use off checking parameter in mail Attributes use mail package.I dont have much knowledge on mail adapter please help me in this issue.
    i want to send parameters dynamically into receiver mail adapter in my project ie(TO,FROM,SUB and CONTENT) please send links and doc's on it.
    Note: Helpfull answer will be rewarded.
    Thanks & regards,
    Phani

    Hi raj,
    Once again thanks for the reply,I will explain my object,its is any 2 senarios in one object.
    1) file to proxy were i upload employee details in to infotype2010 after inserting what ever error records i will l store them in error table.
    2)ater geting error records if i get more then 25 i have to send file path and error records to receiver side. or if i get all sucess also i have 2 send sucess flag into receiver side.
    but i haveto pick data from different systems and i have to send the data into different mail ids i have to generate TO FROM CONTENT dynamically.
    onsite have prepared TS(Tecnical specs) in that spec they gave XIALL and SMTP.
    so my question is using this parameters can i post them dynamically or  not.
    if YES ? then how??
    please help me in this issue.
    if u still dont understand give me ur id  i will send my TS.
    Thanks and regards,
    phani

  • Regarding Workflow mailer error

    Hi
    Could anyone teach me how to troubleshooting these errors in log of mailer?
    My customer made mailer available through OAM and could send notification.
    However, a lot of errors were found in log of mailer.
    Quote
    [Nov 7, 2011 8:33:55 PM JST]:1320665635770:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665633553:10:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:Successfully handled component event, oracle.apps.fnd.cp.gsc.SvcComponent.start, for component 10011
    [Nov 7, 2011 8:33:54 PM JST]:1320665634490:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665634490:11:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.wf.bes.AgentListenerProcessor.read()]:10consecutive errors occurred
    [Nov 7, 2011 8:33:57 PM JST]:1320665637002:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665634490:11:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.cp.gsc.Processor.performError(ProcessorException)]:Maximum number of errors have occurred for this processing thread.
    <af type="tenured" id="106" timestamp="Nov 07 20:33:58 2011" intervalms="3796.734">
    <minimum requested_bytes="98320" />
    <time exclusiveaccessms="0.032" meanexclusiveaccessms="0.032" threads="0" lastthreadtid="0x3225CB00" />
    <refs soft="399" weak="183" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <tenured freebytes="0" totalbytes="18192896" percent="0" >
    <soa freebytes="0" totalbytes="18192896" percent="0" />
    <loa freebytes="0" totalbytes="0" percent="0" />
    </tenured>
    <gc type="global" id="106" totalid="106" intervalms="3796.788">
    <expansion type="tenured" amount="3553280" newsize="21746176" timetaken="0.000" reason="insufficient free space following gc" />
    <finalization objectsqueued="27" />
    <timesms mark="22.192" sweep="0.514" compact="0.000" total="23.115" />
    <tenured freebytes="6622496" totalbytes="21746176" percent="30" >
    <soa freebytes="6405408" totalbytes="21529088" percent="29" />
    <loa freebytes="217088" totalbytes="217088" percent="100" />
    </tenured>
    </gc>
    <tenured freebytes="6524176" totalbytes="21746176" percent="30" >
    <soa freebytes="6383376" totalbytes="21605376" percent="29" />
    <loa freebytes="140800" totalbytes="140800" percent="100" />
    </tenured>
    <refs soft="214" weak="167" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <time totalms="23.241" />
    </af>
    [Nov 7, 2011 8:34:29 PM JST]:1320665669022:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[ComponentMonitor,5,main]:10.140.102.13:73020:1320665606034:1:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.startAutomaticComponents()]:Starting automatic component 10005
    [Nov 7, 2011 8:34:36 PM JST]:1320665676474:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:(BusinessEvent{name=oracle.apps.fnd.cp.gsc.SvcComponent.start, key=SVC:07-NOV-2011, priority=50, correlationId=null, sendDate=Mon Nov 07 20:34:29 JST 2011, receiveDate=null, From Agent:  , To Agent:  , Last Subscription=  , Error Message=null, Error Stack=null, CONTAINER_TYPE=GSM, CONTAINER_PROCESS_ID=133833, COMPONENT_ID=10005, [email protected], BES_PAYLOAD_OBJECT=false})
    [Nov 7, 2011 8:34:46 PM JST]:1320665686481:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.handleComponentEvent(int, String, String)]:Successfully retrieved component details from the database
    [Nov 7, 2011 8:34:46 PM JST]:1320665686614:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[BES Dispatch Thread,5,main]:10.140.102.13:73020:1320665676474:12:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentContainer.onBusinessEvent(BusinessEvent)]:Successfully handled component event, oracle.apps.fnd.cp.gsc.SvcComponent.start, for component 10005
    [Nov 7, 2011 8:34:46 PM JST]:1320665686772:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665686772:13:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.wf.bes.AgentListenerProcessor.read()]:10consecutive errors occurred
    [Nov 7, 2011 8:34:46 PM JST]:1320665686812:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[inboundThreadGroup1,5,inboundThreadGroup]:10.140.102.13:73020:1320665686772:13:ERROR:[SVC-GSM-WFALSNRSVC-133833-10005 : oracle.apps.fnd.cp.gsc.Processor.performError(ProcessorException)]:Maximum number of errors have occurred for this processing thread.
    [Nov 7, 2011 8:35:29 PM JST]:1320665729053:-1:-1:svdbdc006:10.140.102.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[ComponentMonitor,5,main]:10.140.102.13:73020:1320665606034:1:EXCEPTION:[SVC-GSM-WFALSNRSVC-133833 : oracle.apps.fnd.cp.gsc.SvcComponentMonitor.startAutomaticComponents()]:Starting automatic component 10005
    <af type="tenured" id="107" timestamp="Nov 07 20:35:36 2011" intervalms="98237.510">
    <minimum requested_bytes="98320" />
    <time exclusiveaccessms="0.024" meanexclusiveaccessms="0.024" threads="0" lastthreadtid="0x330E6900" />
    <refs soft="483" weak="329" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <tenured freebytes="0" totalbytes="21746176" percent="0" >
    <soa freebytes="0" totalbytes="21605376" percent="0" />
    <loa freebytes="0" totalbytes="140800" percent="0" />
    </tenured>
    <gc type="global" id="107" totalid="107" intervalms="98237.593">
    <expansion type="tenured" amount="1048576" newsize="22794752" timetaken="0.000" reason="insufficient free space following gc" />
    <finalization objectsqueued="25" />
    <timesms mark="20.137" sweep="0.800" compact="0.000" total="21.178" />
    <tenured freebytes="6998816" totalbytes="22794752" percent="30" >
    <soa freebytes="6623520" totalbytes="22419456" percent="29" />
    <loa freebytes="375296" totalbytes="375296" percent="100" />
    </tenured>
    </gc>
    <tenured freebytes="6900496" totalbytes="22794752" percent="30" >
    <soa freebytes="6671632" totalbytes="22565888" percent="29" />
    <loa freebytes="228864" totalbytes="228864" percent="100" />
    </tenured>
    <refs soft="215" weak="169" phantom="0" dynamicSoftReferenceThreshold="9" maxSoftReferenceThreshold="32" />
    <time totalms="21.265" />
    </af>
    I have checked the below notes,but I'm not clear.
    761434.1 Workflow Mailer fails to star : Maximum Number Of Errors (100) Have Been Reached : WebSession.isSessionRecreated
    333017.1 OWF.G Mailer just started dumping a OutOfMemoryError
    Please teach me what's the meaning of errors and what we should deal with them.
    Best Regards
    Liying

    Please post the details of the application release, database version and OS.
    Please see these docs.
    Java.Lang.Outofmemoryerror On Large Inbound XML Message [ID 560680.1]
    Intermittently Notification Emails are not Received [ID 1315344.1]
    OWF.G Mailer just started dumping a OutOfMemoryError [ID 333017.1]
    Output Post Processor is Down With Error "Insufficient Free Space Following GC" [ID 885607.1]
    Thanks,
    Hussein

  • Regarding the text in the smartforms.

    HI EXPERTS,
    i m working on the smartforms ,i have to display the text as a column heading in the forms i.e "Amount of
    one increment granted from 01.07.95" as this text is very lengthy due to which my rows are getting heighted as i m using table for populating it in the forms,what i want that is there any way to get it condensed so that the distance between "amount    &     of " for example will be reduced.
    plz help me sort out this problem.

    hi,
    Goto SMARTSTYLES and Create a appropriate style there.
    Create a Paragraph Style with lower Font and hence the Area will be reduced.
    Apply that style to  the text of the Heading
    Regards
    Sumit Agarwal

  • Regarding Receiver Mail Adapter Attachments formats

    Hi Xians,
    when we configure Receiver Mail Adapter, we get the payload as Attachments in XML format. Does it support any other format apart from xml like text, pdf etc
    Regards,
    Varun

    Rajesh wrote:
    Yes it supports all you need to do for conversion is to use MessageTransform Bean in adapter modules
    and use parameter contentDispositon and contentDescirption things for setting different formats
    Hi Rajesh,
       Thanks for your reply. Can you please provide relevant blogs or any other docs on the same
    Regards,
    Varun

  • Re: Workflow-step type: Mail - to add smartform output as a . PDF attachmnt

    Hi All,
    I have a requirement of attaching the output of a smart form as .PDF attachment. This has to be done as part of the Mail Step-Type in the work flow.
    Could anyone please confirm whether we can send an attachment as part of the Mail Step of a work flow. If this can be done, please provide some inputs on how to proceed on this.
    Thanks & Regards,
    Goutham.

    Hi,
    Thanks for your early replies. Points are definitely awarded.
    So the main point here is we cannot attach an attachment to the Mail Step Type of the work flow. The only thing we can do is to create a method in the business object to do the same and use it in the Activity step type of the work flow.
    Please confirm if my understanding is correct.
    Thanks & Regards,
    Goutham.

  • Send e-mail with a smartform

    Hi.
    Someone knows  that field is the e-mail of the sender in the MF
    'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    Thanks.

    Hi ..
    Use the following code..
    *& Report  Z8AC_EMAIL
    REPORT  z8ac_email.
    TABLES mara.
    DATA itab LIKE mara OCCURS 0 WITH HEADER LINE.
    DATA fnam TYPE rs38l_fnam.
    Internal Table declarations
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    i_tline     TYPE TABLE OF tline WITH HEADER LINE,
    i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
    i_record    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    i_objpack LIKE sopcklsti1  OCCURS 0  WITH HEADER LINE,
    i_objtxt  LIKE solisti1    OCCURS 0  WITH HEADER LINE,
    i_objbin  LIKE solisti1    OCCURS 0  WITH HEADER LINE,
    i_reclist LIKE somlreci1   OCCURS 0  WITH HEADER LINE,
    Work Area declarations
    wa_objhead TYPE soli_tab,
    w_ctrlop TYPE ssfctrlop,
    w_compop TYPE ssfcompop,
    w_return TYPE ssfcrescl,
    wa_doc_chng TYPE sodocchgi1,
    w_data TYPE sodocchgi1,
    wa_buffer TYPE string, "To convert from 132 to 255
    Variables declarations
    v_form_name TYPE rs38l_fnam,
    v_len_in LIKE sood-objlen,
    v_len_out LIKE sood-objlen,
    v_len_outn TYPE i,
    v_lines_txt TYPE i,
    v_lines_bin TYPE i,
    v_int TYPE i,
    xdoc TYPE xstring.
    SELECT * FROM mara INTO TABLE itab.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname = 'ZTEST'
      IMPORTING
        fm_name  = fnam.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = ' '.
    w_compop-tdnoprev = ' '.
    CALL FUNCTION '/1BCDWB/SF00000262'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = w_ctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       output_options             = w_compop
       user_settings              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = w_return
      JOB_OUTPUT_OPTIONS         =
      TABLES
        itab_mara                  = itab
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
        max_linewidth         = 132
      IMPORTING
        bin_filesize          = v_len_in
      TABLES
        otf                   = i_otf
        lines                 = i_tline
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        OTHERS                = 4.
    IF sy-subrc <> 0.
    ENDIF.
    BREAK-POINT.
    LOOP AT i_tline.
      TRANSLATE i_tline USING '~'.
      CONCATENATE wa_buffer i_tline INTO wa_buffer.
    ENDLOOP.
    TRANSLATE wa_buffer USING '~'.
    DO.
      i_record = wa_buffer.
      APPEND i_record.
      SHIFT wa_buffer LEFT BY 255 PLACES.
      IF wa_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         bin_filesize                    = v_int
         filename                        = 'C:\Documents and Settings\archaudhary\Desktop\a.pdf'
         filetype                        = 'BIN'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      IMPORTING
        FILELENGTH                      = FILE_SIZE
       TABLES
         data_tab                        = i_tline
      FIELDNAMES                      =
    EXCEPTIONS
      file_write_error                = 1
      no_batch                        = 2
      gui_refuse_filetransfer         = 3
      invalid_type                    = 4
      no_authority                    = 5
      unknown_error                   = 6
      header_not_allowed              = 7
      separator_not_allowed           = 8
      filesize_not_allowed            = 9
      header_too_long                 = 10
      dp_error_create                 = 11
      dp_error_send                   = 12
      dp_error_write                  = 13
      unknown_dp_error                = 14
      access_denied                   = 15
      dp_out_of_memory                = 16
      disk_full                       = 17
      dp_timeout                      = 18
      file_not_found                  = 19
      dataprovider_exception          = 20
      control_flush_error             = 21
      OTHERS                          = 22
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Attachment
    REFRESH: i_reclist,
    i_objtxt,
    i_objbin,
    i_objpack.
    CLEAR wa_objhead.
    i_objbin[] = i_record[].
    Create Message Body Title and Description
    i_objtxt = 'test with pdf-Attachment!'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    READ TABLE i_objtxt INDEX v_lines_txt.
    wa_doc_chng-obj_name = 'smartform'.
    *WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    wa_doc_chng-obj_descr = 'smartform'.
    wa_doc_chng-sensitivty = 'F'.
    wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
    CLEAR i_objpack-transf_bin.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_txt.
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Attachment (pdf-Attachment)
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    READ TABLE i_objbin INDEX v_lines_bin.
    i_objpack-doc_size = v_lines_bin * 255 .
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'smart'.
    i_objpack-obj_descr = 'test'.
    APPEND i_objpack.
    CLEAR i_reclist.
    **i_reclist-receiver = sy-uname.
    **i_reclist-rec_type = 'B'.
    i_reclist-receiver = '[email protected]'.
    i_reclist-rec_type = 'U'.
    APPEND i_reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = wa_doc_chng
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list               = i_objpack
        object_header              = wa_objhead
        contents_bin               = i_objbin
        contents_txt               = i_objtxt
        receivers                  = i_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.
      WRITE:/ 'Error When Sending the File', sy-subrc.
    ELSE.
      WRITE:/ 'Mail sent'.
    ENDIF.
    Reward points if useful..
    Arun

  • Regarding sending mail as XLS attachment.

    Hi SAP Gurus,
    I am taken code from program "BCS_EXAMPLE_7" for sending mail with xls attachment.
    I am using following code to send as copy .
          L_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( Email_ID ).
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT = L_RECIPIENT
              I_EXPRESS   = 'X'
              I_COPY      = 'X'.
    Now my requirement is to send to many mail to more than one ID as copy. how can I get that.
    Please help.
    Regards,
    Pavan.

    Hi Pavan,
    Please use do loop and add recipient in each loop.In below sample code change w_sender in each loop.
    *do 2 times.*TRY.
    lo_email = cl_bcs=>create_persistent( ).
    lo_email_body = cl_document_bcs=>create_document(
    i_type = 'txt'
    i_text = it_message
    i_subject = 'Message from Subba' ).
    PERFORM add_attachment. " USING lo_email_body.
    lo_email->set_document( lo_email_body ).
    lo_receiver = cl_cam_address_bcs=>create_internet_address( w_sender ).
    lo_email->add_recipient( i_recipient = lo_receiver
    i_express = 'X' ).
    lo_email->set_send_immediately( 'X' ).
    lo_email->send( EXPORTING
    i_with_error_screen = 'X'
    RECEIVING
    result = lv_send_result ).
    WRITE: / 'Success flag:', lv_send_result.
    COMMIT WORK.
    CATCH cx_bcs INTO lx_exception.
    WRITE:/ 'Message sending failed:', lx_exception->error_type.
    ENDTRY.
    *enddo.*
    Thanks,
    Subba

  • Regarding Page number printing in smartform

    Hi All,
    I have a requirement wher i should print multiple PO in smartform. It is done..a small issue regarding printing of page numbers. Lets say i am printing three PO
    first PO has 20 items
    second has 2 items
    third has 1 item.
    Now the forst Po can have multiple pages it should print as
    Page 1
    page 2
    page 3.
    Now after the end of first PO second PO is printed on new page and numbered as Page 1..and so on.
    So how can i do this.....
    Thanks,
    Regards,
    Narsimha Kulkarni.

    Hi,
    Create a paragraph format with dynamic page numbers.
    Smartstyles>numbering and outline->select numbering type from list dropdown.
    use this paragraph format for displaying the page number with any code.
    and before processing your logic create a COMMAND in your smartform and in the reset paragraph numbering give your paragraph name so that it refreshes page numbers every new PO's. (you have place this according to your code).
    Thanks,
    Sree.

  • Regarding printing word file using smartforms

    Hi SAP Gurus,
    My requirement is as follows,
    I need to print an xls file or a word file from pc using smartforms. ie, uploading into internal table convert to smartforms format and print.
    Please suggest.
    Thanks & Regards,
    Pavan.

    Hi,
    Please find the below link
    http://help.sap.com/saphelp_47x200/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    Regards
    Haritha

Maybe you are looking for

  • Show hyperlink in a sql report

    All, How do you show a link in a SQL PLus report ? I want to add a link to one column. Got a suggestion saying to do, SQL> select 'oracle' from dual; When I do this and spool it to a file, the column gets big because the source code shows everything

  • 3.6.13 won't open

    I was surfing last night when I got a notice that 3.6.13 was available. Naturally, I downloaded right away. During the download, I was asked if I was sure I wanted to continue, because the source couldn't be verified. I continued, I never suspected M

  • Mail Running SLOW!

    Lately, Mail is slow slow slow. When I click on 'get mail', the wheel spins and spins. Eventually one of these things happens: -I get a message saying I'm 'offline' -I get a message saying something can't connect to some sort of smtp server -it spins

  • Stack action option request

    It occurs to me that 'stacks' are being used in two ways: * to organize sets of versions of the same shot * to organize sets of images thematically linked The first case seems to be the approach generally envisioned. In this situation it makes sense

  • N8 Update error on Nokia Suite

    After downloading Belle update I get message memory low on G: on computer dont have G drive on computer don't know what happening. and doesnt retry it.. thanks