Creating email body  while generating output type as email.

Hi All,
    I wanna create an email body while sending email through output type for smartform.
    I am successfully creating a mail with attachement. But requirement ned to send a body with same email..
    can any one know the same pls share. its very urgent... thx
Thanks..

Hello,
declare the following
data :
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
in the program write the below cod as following
i_objtxt = 'Find attached the output of the smart form.'. --> this is the body of the mail.
APPEND i_objtxt.
now pass this to the call function.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = w_doc_chng
        put_in_outbox              = 'X'
      IMPORTING
        sent_to_all                = v_sent_all
      TABLES
        packing_list               = i_objpack ......
This shall trigger the body.

Similar Messages

  • OCR generates error while generating output

    I have trouble finding solutions for the following issue.
    When I run OCR text recognition as a normal user, it ends up generating an Unknown Error, while generating output.
    If I do the same thing as an administrator everything goes well.
    I tried to find which steps OCR takes and in what locations, temperary content is being processed.
    I suspect there is an acces violation involved.
    Does anyone know a way around this error?
    Tobitron

    Dear,
    This might be the problem of Adobe Acrobat Reader. what is the version of Adobe you are using ?? If it 9.0, then uninstall it and reinstall 8.0 and then check .
    Could you please check your installed SAPGUI component? If component 'Engineering Client Viewer' is installed, please uninstall
    it. And try to call same transaction again.
    BR, Deepak

  • Is there a way to change the output type for Email Remittance Program?

    Hello,
    We are trying to implement Separate Remittance Program.The seeded output type is PDF( I have checked the output type for send separate remittance concurrent program) however the
    email which we receive looks like a regular email I mean with a normal text .  Is there a way to get the output in different type like excel,attachment,pdf.
    Any inputs would be highly appreciated.
    Thanks,
    Sushma

    Currently there is a bug raised
    Bug 8208646 : R12 UNABLE TO SEND SEPARATE REMITTANCE ADVICE AS EMAIL ATTACHMENT IN PDF.
    If you want to customize this process you need to create data definition,new rtf template and bursting program to send pdf as attachment.

  • Dumps while using output types

    Hi,
    We are to create a PO by giving a output type ZPO2 in the sales order. For this we have configured in NACE the ZPO2 output type with medium as 8 (special function). In NACE we have given the Z program name and the form name (Perform in the Z program).
    Now when we give the output type in the sales order and then while debugging we find that the Z program and the form given in NACE is called.
    But however when we check the sales order again in TCode VA02 there is a popup mentioning that the update was terminated. In ST22 there are 2 dumps.
    1) One with the error DYNPRO_SEND_IN_BACKGROUND and the description in the dump is
    The current ABAP program "RSNAST00" had to be terminated because one of the statements could not be executed.
    The termination occurred in line 910 of the source code of the (Include)  program "RSNAST00"
    2) The other dump mentions Too many parameters specified with PERFORM.
    In a subroutine call, there were more parameters than in the routine definition.
    Error in ABAP application program.
    The current ABAP program "RSNAST00" had to be terminated because one of the statements could not be executed.
    The termination occurred in line 910 of the source code of the (Include)  program "RSNAST00"
    In both the cases the termination occurs on:
    NAST = TEMP_NAST
    Please help me understand what is wrong and how can it be rectified.
    Thanks
    Mick

    Hi Mick James,
    About First Error..
    Check out there is an Enhancement Point there in program RSNAST00
    ENHANCEMENT-POINT OBJEKT_SPERREN SPOTS ES_RSNAST00 STATIC
    Check the code in this Enhancement Point...
    You must be executing some objects or FMs etc which can not be run in Background because it require SAP GUI
    And another You must be passing more parameters in Subroutine while calling it ... Check out the defination of Subroutine and number of parameters you are passing...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Output type External Emails to multiple recepiants in VA01

    Hi,
    I want to send External emails to multiple contact persons in VA01 whenever sales order is saved using output types.
    i have created a output type of external mail but its only sending mail to main single email id and not the contact person in it.
    Please suggest something how to do it.

    Hi Nishant,
    In standard sap there is no provision to send it to multiple recipients. The mail address which you will see by default it will go to that mail address .This is the requirement i got a long back i posted to sap but it is not possible.Please check this and post if there is any query on this.
    Regards,
    Madhu.

  • How to create an IDOC as an output type for an SAP standard transaction

    Hi ,
    How to create an outbound IDOC as an output type for an SAP standard transaction.
    Regards,
    Beena

    In NACE tcode u can create output type with medium as EDI,
    u can assign the entry sub routine as ENTRY_EDI in RNASTED

  • OIM Email notification in Provisioning Related Type in Email Template

    Hi,
    I have done the Email Notification for the RequestRelated type in the EmailTemplate where a Resource is granted to a user and the mail goes to a particular User or Group in the Assignment Tab of the Process task. Its ok.
    Now I want to do for the Provisioning related type specified in the Email Template.I tried to attach my Mail Template in the provisioning task related to a particular Resource but mail is not generating .
    Can anyone briefly tell me How to generate mail for the Provisioning Related type ?????

    Have you attached the email definition in the Notification tab of the provisioning task?
    Also, you need to be sure if the task status was reached to start the email notification.
    Regards,
    Nitto

  • Error while Generating Set Type

    Hi All,
    While adding new attribute in a Z set type for products the system generated error during generation.
    Now when I am trying to display or change that set type the system is giving error "Please enter a description for set type Z*******" and terminates.
    I tried looking the various methods, screens and tables generated but everything looked fine.
    Please suggest how to restore this set type.
    Thanks.

    Hi Gervase,
    I tried creating the relation for the settype manually in extend object Model of products but it is giving error ProdSetICM_OTH_WEAPONA01 doesn't exist.
    This is strange because this entry has been mainted in all systems and it doesn't exist in Object list.
    Any clue to this.
    Regards,
    Nitesh

  • Smartform dump when creating a PO for an output type...

    Hi.
    When changing a PO and giving the output message type for the smartform, and giving option to print on LOCAL when saving the application , its taking long time to save the PO and producing a dump with a message saying
    " TYPELOAD_NEW_VERSION" ( DATA TYPE MCEKPOB WAS FOUND IN A NEWER VERSION THAN REQUIRED )...
    Can someone help me what might be the cause of the dump...
    Thanks,
    Kanthi...

    Thanks...
    Even for mine too this is the error analys detials:
    the datatype 'MCEKPOB' was reloaded from the database while the program was running. However , the system found  a version of the type that was newer than the one required..
    Any help pleas...
    Thanks,
    Kanthi..

  • Text in the email body is going as attachment through email activity

    hi ,
    In my bpel email activity the body part is going as an attachment. Even a text like 'hi' also going as an attachment where i need to download the file and need to read the content.
    Can any one help is in solving this issue.
    Thank you
    Gayaz

    hi Jyotirmoy,
    this is the format i am using
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns3:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns3:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns3:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_2">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="concat(concat(concat('RLMS ',bpws:getVariableData('inputVariable','payload','/client:AarlmsDailyWeeklySubscriptionProcessRequest/client:input')),' Subscription Alert: Uploaded and modified files for folder'), bpws:getVariableData('folderPath'))"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Subject"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('emailIds')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:To"/>
    </copy>
    <copy>
    <from>
    <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
    <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
    </BodyPart>
    </MultiPart>
    </ContentBody>
    </Content>
    </from>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:MimeType"/>
    </copy>
    <copy>
    <from expression="string('NotificationAttachment1.html')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:BodyPartName"/>
    </copy>
    <copy>
    <from expression="string('hi')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns3:Content/ns3:ContentBody/ns3:MultiPart/ns3:BodyPart[1]/ns3:ContentBody"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService" partnerLink="NotificationService"
    portType="ns3:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    Thank you
    Gayaz

  • Delivery Note By Email -Output type LD00

    Hi All,
    We have a requirement to send delivery note by email.
    At the moment we are using output type LD00.
    I've created a similar output type  with a transmission medium '5'.
    But it is not triggering any email.Can you pelase advice what do I need to do in order to trigger an email.
    Thanks
    Venkat

    Hi Santhosh,
    I've checked in NACE transaction ,Partner function SH is already assigned to it.
    Can you pelase give me the steps to create a new output type in NACE.
    Here is how I've created:
    1.NACE->V2 Shipping->Output types->New Entries->ZLDM(New output type)
    In processing routines:
    Transm.Medium: 5
    Program           ZVADDN00
    FORM routine      ENTRY
    Form              ZRVDELNOTE00
    Partner Functions:
    External send     SH     Ship-to party
    Then I went to Procedures:
    I've added my new output type here.
    Do I need to do anything else?Please let me know.
    Thanks
    venkat

  • New Email output type:  How to make invoice 'Copy' rather than 'Original'?

    Hello SD Friends-
    FICO guy here.  I created an output type to email invoices to customers however how do I change the invoice from saying 'Original' to 'Copy' when using this output type?
    Thank you!!

    Actual logic should be first copy s Orginal and next copies as Copy or Duplicate, if you want the output alsways as copy, then ask your abaper to write logic that what ever output processing status, email output should send as Copy.
    Please let me know if any questions.
    Regards
    Ramki

  • Issues while generating the output(using VF02- header- output)

    Hi Group,
    I have issues while generating output using the tcode VF02.
    the issue is that, I have got an output type which is configured for the medium "Special Function" and the o/p program generates PDF depending on certain criteria.
    now, when I try to "repeat output" option to generate output again, I was getting errors. it works sometimes by choosing the option "Successfully processed" then selecting the record and then saving it. if I do the same thing again, the output make be running into error or success, it is varying everytime.
    I am not able to understand why the process is not working correctly, when doing the "Repeat output" option on the "Successfully processed" record, the system is giving error instead of a Successful message. it is succeeding once and sometimes not.
    Kindly let me know your inputs if you have encountered same kind of issue.
    Regards,
    Vishnu.

    hi Group,
    when I checked the configuration part of the o/p type I am currently processing, I could see that, in customizing part of this o/p type, there was a checkbox for Multiple Issuing - which is not checked.
    when it is not checked, it should not be possible to run the o/ps for multiple times, but when I tried to generate o/ps again and again, in a few attempts I could to generate the PDFs and in some cases not. I don't know why there is no relevance for this check box Multiple Issuing.
    Could you please let me know why this issuing of o/p is working in some occassions and not working work sometimes, which is  having the configuration of checkbox Multiple Issuing - not being checked.
    thanks for your help in advance.
    Regards,
    Vishnu.

  • Output type not proposed in Message Control when PO is created

    Hi,
    DETAILS
    I have set up the system to send a IDOC when a PO is created. I have done the following settings in the system to send the IDOC using the message control functionality in the PO creation screen.
    1). Created a new output type ZNEU which is an exact copy of NEU output type provided by the SAP system.
    2). Assigned the new output type to the output determination procedure.
    3). Enabled the new output type ZNEU for ALE distribution.
    4). Maintained the condition records in the system for the output type ZNEU such that for the P org, endor and Docmuent type combination the output shall be proposed.
    5). Maintained a partner profile( Logical System ) and assigned the output type ZNEU to this partner profile.
    6). Created a Distribution model for Sender ~ Receiver for ORDERS message type.
    PROBLEM
    When i create a PO the new output type is not getting proposed by the system. I am not sure why it is not getting porposed in the message control.
    I tried to manually enter the ZNEU output type in the system to see if the system is accepting. I am getting an error
    Partner % does not exist for partner function LS
    Any idea what i am missing? Am i missing any configuration or am i doing something wrong?
    cheers

    The output is not being proposed automatically is becuase you are missing "Condition Records" for the output type ZNEU.
    Go to NACE.
    Select EF - Purchase Order
    Select "Condition Records"
    Select ZNEU and select condition records
    Now, system will bring the combinations of access sequence. Maintain appopriate record.
    This will enable you to get the output type automatically in the purchase order.
    Regards,
    Naimesh Patel

  • Create output type for Quotes

    Hi all,
    I want to create new output type for quotes that will create an IDOC file at the quote level.
    It will Include all of the same segments that are currently being populated for IDOCS created for ZBA4 order confirmation output type. Also it will
    Include expiry date from quote header vbak.bnddt (segment E1EDK03, qualifier 006).
    Include S0A Reference from quotation header text remarks (segment E1EDKT1)
    How to that??
    Thanks in advance.
    Raj

    Dear Kittu,
    For your requirement needs output determination settings for the billing.
    I don't think you can have Medium PDF ,you can send the PDF file Via Medium Mail.
    To do the output determination proceed with this path
    IMG>Sales and Distribution->Basic functions>Output control>Output determination>Output Determination Using the Condition Technique-->Maintain Output Determination for Billing Documents.
    -->Maintain Condition Tables
    -->Maintain Output Types
    -->Maintain Access Sequences
    -->Assign Output Types To Partner Functios
    -->Maintain Output Determination Procedure
    -->Assign Output Determination Procedures
    You have to assign output program to your output type.You need develop the program such a way that to send the PDF file Via Mail.
    After these settings you need to maintain the condition record with Medium Mail in VV31 transaction.
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for