How to Attach Layout Created Using DME engine to program

Hi Friends,
I have created my own layout using DMEE tcode but i don't know how to attach that layout with my account payable program so that this layout will show it's effect after execution ,
please tell me if any one know about this,
Thanks & Regards,
Yogesh

This works for me. I see the text file "test.cvs" as an attachment in my email program (Outlook Express) and is not inline. Maybe this is dependent on the email program. What email program do you use?
DECLARE
conn utl_smtp.connection;
BEGIN
conn := demo_mail.begin_mail(
sender => 'Me <[email protected]>',
recipients => 'Someone <[email protected]>',
subject => 'Attachment Test',
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.begin_attachment(
conn => conn,
inline => FALSE,
filename => 'test.csv');
demo_mail.write_text(
conn => conn,
message => 'title 1,title 2,title 3'||UTL_TCP.CRLF);
demo_mail.write_text(
conn => conn,
message => 'vale 1,value 2,value 3');
demo_mail.end_attachment(conn, TRUE);
demo_mail.end_mail( conn => conn );
END;

Similar Messages

  • How to attach a document using the Send mail component

    Hello,
    I would like to know how to attach a document in a email using the Send mail component.
    There are these nodes into the atom but I don't know how to use it.
    <attachment doc="/ds/grp/doc" pltype="xml">
              <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='S']/vpf:Msg/vpf:Body"/>
            </attachment>
    Does anyone know ?
    Thank you.

    Hello All,
    Regarding to the mail adapter, here are some updates:
    1. B1i will support sending HTML attachemnt via "Send Email" atom in B1 882 PL09. An example here:
    <attachment doc="test.htm" pltype="htm">
    <![CDATA[<html>
      <head>
        <title>Enter the title of your HTML document here</title>
      </head>
      <body>
        <p>Enter the body text of your HTML document here</p>
      </body>
    </html>]]>
    </attachment>
    2. In addition, B1i will support sending binary attachment and sending html content in Q1,2013.
    Thanks & Best Regards,
    Qiaoli

  • How to increment GL Period using Oracle Application concurrent program scheduler

    Hi All,
    In R12, I came to know that we can increment GL Period also using Oracle Application Concurrent Program scheduler.
    We have a requirement to schedule 'Account Analysis Report' for different legal entities. We would need to increment GL Periof for each department.
    In 11i, we can not increment GL Period.
    Is there a way, to increment GL Period to schedule 'Account Analysis Report'
    Please advise.
    Appreciate your time and help.
    Oracle Application Version: R12.1.2
    thanks in advance,
    Ganesh

    Hi,
    could you please help me?
    thanks.

  • How to show UI created using  CS Extension Builder into our menu.

    hi,
    I have created a UI that includes a text box and a button using "CS Extension Builder"  and running as  AI- CS5.
    I am getting this into window-> Extension.
    But I want appear this into my menu.
    so I  just want to know how can I do this? Does any API support this ?
    thanks

    Hi,
    You could try taking a look at the sample extensions that come with Extension Builder - you can go to File > Import... > Adobe Creative Suite Extension Builder > Remote Creative Suite SDK Samples to get them.
    CSXS Extensions can do a lot more than just act as UI for native plug-ins, they can also hook into the applications' scripting DOMs, and do anything else that an Air app can do. Extension Builder is primarily designed to let you create fully fledged standalone flash panels, so when you create a new extension it may well include stuff that you, as a native plug-in developer who only wants to use Extension builder to create a simple front end, might not want.
    For the .as files - when I'm writing extensions (or any flash/air app) I prefer to write as much of my code as possible in ActionScript (so the .as files) and as little as possible in MXML. I think the sample extensions that come with the Illustrator SDK are so simple that they only contain one MXML file with ActionScript embedded in script tags. Either approach is fine, one is a little cleaner and allows you to structure your code in a nicer way, the other is simpler, you can use either approach.
    Note that when you create a new extension Extension Builder generates boiler plate code for you (including the .as file you talked about). Feel free to delete that if you don't want it. It is only there as a guide, some basic code to start with, not something that you have to keep. You can structure your code however you like, you just need a .swf at the end of the day (well, and the manifest file discussed above). You can also remove the actionscript libraries if you aren't using them (e.g. the Illustrator CSAW library) by right clicking the project and going to Properties > CS Extension Builder Libraries. These libraries are for interacting with the Illustrator scripting DOM (there are InDesign, Photoshop, Bridge, ... equivalents too), and you probably don't need that here.
    Let me know if you have any more questions,
    Louis

  • How to attach a document (using Pages) to a Gmail account?

    I am using Gmail and trying to attach a document ( Mac Pages) but it wont attach, keeps telling me that its failed to attach.

    If a person uses Apple's native Mail App that came on the Mac or iOS device...then is will send attachments of the newest "Mavericks" versions of Pages, Numbers and Keynote. If a person tries to do this from within a Web Browser it doesn't seem to work (as I've recently tested from information from of our churches staff who only use the Web Interface). So, I'm not sure if Google changed something with thier Web Browser version recently or not, since I've always used the native Mail App on all my Macs and iOS devices.
    So, there used to be a problem sending attachments from within the Mail App several months ago...but that was fixed by Apple (again several months ago).
    Hope that helps...
    I highly recommend using the built in Mail App (Email Client).
    Multiple Email Accounts:
    An Email Client allows multiple email accounts from different email providers to all be used simultaneous in one simple to use interface without any problematic POP forwarding settings or delayed delivery problems. i.e. It will gather and display email from Yahoo, Gmail, iCloud, AOL, Microsoft Exchange or any other email provider.
    Accounts can still be viewed separately or all together:
    All email accounts can still be viewed separately or all together with a click of the mouse or a tap of the screen, again without any forwarding settings. i.e. It's great for keeping personal and/or work accounts separate, and it also allows multiple signatures which helps relay professionalism, consistency and saves a little typing, too.
    Select Multiple Messages:
    A person can select multiple messages (even from different email accounts or email providers), and move, copy, delete, or even forward them all at the same time with a single action.
    Work Offline:
    It allows a person to continue working offline. i.e. no matter if Wi-Fi or the internet goes down or is unavailable in a certain area.
    Advanced Rules and Filtering Based on Multiple Factors:
    A person can set rules or advanced rules and filtering based on multiple factors (words, senders, subjects, headers, etc.)
    Quick Look:
    And, if you’re on a Mac, you can used features like "Quick Look" to view full Microsoft Office or Apple iWorks (Pages, Numbers, or Keynote) documents right inside your Mail App.
    No Extra Apps to Download:
    As it's already pre-installed on all Apple computers and iOS devices, so it's one less App to download or maintain.
    Mac and iOS Versions Both Work Similarly:
    Both the desktop and mobile versions work very similarly.
    Easy to Maintain:
    Apple automatically maintains it with each System Update, which is great for security, too.
    Attachments are Easy (with less importing/exporting):
    Working with attachments is super easy without any external importing or exporting (for example: items can be imported and exported directly to and from iPhoto, Contacts, Calendars etc. without any duplication).
    It takes full advantage of the built in systemwide OS X / iOS features that popup:
    Spell Checker
    User Learned Spell Checker
    Dictation and Speak Selection
    Full Thesaurus (no internet required)
    Full built in Oxford Dictionary (no internet required)
    Wikipedia (on demand with an internet or data plan connection)

  • How to capture the calculated (using pricing engine ) quote line price

    Hi everyone,
    Need some help.
    Can anybody explain me:
    How to capture the quote line price on run time when the pricing engine is invoked and at the same time this calculated quote line price should not get updated in the base table(Quoting module in CRM).
    Please help me.
    Thanks,
    Srinivas
    Edited by: user0232 on Aug 26, 2011 8:21 AM

    Hi,
    Which cost to capture is depends on Costing and valuation varients
    Got to OKP6 or OKP8
    Select valuation varient >>> Maintain strategy sequence under MATERIAL VALUATION
    Which system can take first Variable or standard.
    Kapil

  • How do i delete rarely used search engines in safari?

    My safari comes with 4 search engines in default. But only one is my favour, the others I want them deleted FOREVER!
    Could you guys help me out?
    Thanks alot.

    Hello:
    Out of curiosity, why?  Since the one you have as a default is the only one that ever appears.
    I suggest you let it alone.
    Barry

  • How to attach PLD layout for my custom form.

    How to attach PLD layout for my custom form.
    Or
    How to enable print functinality for my custorm form - purchase indent etc
    Is the only option is Query print layout or any other option?

    Hi,
    Unfortunately, you cannot create your own PLD layouts for your addons. Instead, most developers opt for a third party report writer such as Crystal Reports or SQL Reporting Services to provide reports.
    If you search this forum you'll find a lot of useful information on how to integrate Crystal with your addon.
    Kind Regards,
    Owen

  • Sending PDF forms (created using SFP) as Email Attachment

    Hi,
         I have created bunch of ADOBE forms using SFP. They are not interactive forms. created using ADOBE Live cycle designer.
    I have the Function module and by executing I can view the PDF form in print preview mode. But I have to save this in backend and attach to email.
    I have a program that have to send one of the forms created in SFP as email attachment to outside SAP.
    Please advice how to achieve this.
    Thanks,
    Sanjeev

    Hi ,
    Please find below a code sample for your requirement
    *& Report  ZENVOI_PDF_MAIL
    REPORT  zenvoi_pdf_mail MESSAGE-ID ad.
    TYPE-POOLS : abap .
    DATA : data_for_update TYPE zdemopdf ,
           hexa            TYPE solix_tab.
    DATA : fm_name   TYPE funcname ,
           param     TYPE sfpoutputparams,
           doc_param TYPE sfpdocparams ,
           output    TYPE fpformoutput .
    param-nodialog = abap_true. " suppress printer dialog popup
    param-getpdf = abap_true.
    doc_param-langu = sy-langu.
    doc_param-country = 'FR'.
    doc_param-fillable = abap_true.
    doc_param-dynamic = abap_true.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'ZDEMO_PDF'
      IMPORTING
        e_funcname = fm_name.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = param
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4.
    CHECK sy-subrc EQ 0.
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams  = doc_param
        data_for_update    = data_for_update
      IMPORTING
        /1bcdwb/formoutput = output
      EXCEPTIONS
        usage_error        = 1
        system_error       = 2
        internal_error     = 3.
    CALL FUNCTION 'FP_JOB_CLOSE'
      EXCEPTIONS
        usage_error    = 1
        system_error   = 2
        internal_error = 3
        OTHERS         = 4.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    * Envoi du mail
    ** CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    *DATA: sender             TYPE REF TO cl_sapuser_bcs.
    data: sender            TYPE REF TO if_sender_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    ** INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    ** VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    * Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    att_subject = 'Template du PDF'.
    TRY.
    * Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    * Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    *    sender =
    *      cl_cam_address_bcs=>create_internet_address( '[email protected]' ) .
    * Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    * Read the E-Mail address for the user
    *    CALL FUNCTION 'BAPI_USER_GET_DETAIL'
    *      EXPORTING
    *        username = sy-uname
    *      TABLES
    *        return   = ireturn
    *        addsmtp  = iaddsmtp.
    *    LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
    *      CLEAR bapiadsmtp.
    *      MOVE <smtp> TO bapiadsmtp.
    *    ENDLOOP.
    *    CASE bapiadsmtp-e_mail.
    *      WHEN space.
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
    *      WHEN OTHERS.
    *        recipient =
    *     cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
    *    ENDCASE.
    * Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    * Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    * set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
    *     add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    * Add document to send request
        CALL METHOD send_request->set_document( document ).
    * Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.
    Hope this help you .
    Best regards

  • How to output header info. by using DMEE?

    Hi,
    When I am using DMEE to output payment file, I need to put a header info. before the itemlized transactions. For bank like Citibank, only need each transaction lines, so no header need to put. But some bank, need a header info. in front of the itemlized transactions. So could you guide if how I could set a header?
    I tried to use level and change the repetition, but did not succeed.
    Thank you very much!

    I've find out the solution. Just create another segment as the header, and set this segment as level 1, the same level as the father segment group. And this will just only output once.
    > Hi,
    >
    > When I am using DMEE to output payment file, I need
    > to put a header info. before the itemlized
    > transactions. For bank like Citibank, only need each
    > transaction lines, so no header need to put. But some
    > bank, need a header info. in front of the itemlized
    > transactions. So could you guide if how I could set a
    > header?
    >
    > I tried to use level and change the repetition, but
    > did not succeed.
    >
    > Thank you very much!

  • How to change a folder layout set using KM api?

    Hello,
    I'm developing a program using KM api that creates different folders with properties, permissions, ... I want to use a different layout set depending on the folder that i am browsing, but these folders are created dinamically, so I cant set a different layouts set for each one manually (Details > Display > ...).
    Does anybody know how I could do it using KM api? I mean, that every time I create a folder using KM api I should assaing dinamically the default layout set for this folder. I searched in the api and examples and I didn't find anything.
    Thanks in advance and best regards,
    JC

    Hi all,
    Problem solved... I decompiled standard code and I did what SAP do when they want to change a folder layout set:
    IResourceContext context = ResourceFactory.getInstance().getServiceContext("cmadmin_service");
    com.sapportals.portal.security.usermanagement.IUser puser = context.getUser();
    ICollection collection = (ICollection)ResourceFactory.getInstance().getResource(RID.getRID("folder_path"),context);
    IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
    ILayoutService layoutService = (ILayoutService)factory.getRepositoryService(collection, "LayoutRepositoryService");
    ILayoutContext userContext = layoutService.getContextForUser(puser, "");
    ContextProperties commonProperties = new ContextProperties(layoutService, collection, userContext.getAnonymousContext(), layoutService.getProfiles(), new HashMap());
    commonProperties.initFromPersistence();
    commonProperties.setSelectedProfileID("LayoutSetProfile");
    commonProperties.setSelectedLayoutsetID("ID_of_my_layout_set");
    ArrayList errormsg = new ArrayList();
    commonProperties.save(null, errormsg, false);
    Thanks and regards,
    jc!

  • How to attach the layouts or variants to the alv report

    hi all,
    i have seen that using FM  REUSE_ALV_VARIANT_F4 for some reports iam
    getting the layouts
    for some reports its giving message that NO LAYOUTS FOUND.
    is there any way to define new layouts or else how can i use existing layouts.
    any help will be greatly appreciated,
    thanks and regards,
    cnu.

    Hi cnu,
         First set <b>I_SAVE = 'A'</b> in the alv  grid or list display FM. You can create new layouts by using 'change layout' button.but to save those layouts you have to set the save attribute. see below ex code.So that you can create some layout sets
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = V_REPID
                IS_LAYOUT          = WA_LAYOUT
                IT_FIELDCAT        = IT_FIELDCAT[]
                IT_SORT            = IT_SORT[]
                IT_EVENTS          = IT_EVENTS[]
                I_SAVE             = 'A'
           TABLES
                T_OUTTAB           = IT_MLGT[]
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    plz reward points if helpful
    thanks,
    Suma.

  • How to Attach permit automatically to an work order using abap

    how to Attach permit automatically to an work order using abap
    Moderator message : Not enough re-search before posting, show the work you have already done, thread locked.
    Edited by: Vinod Kumar on Jan 30, 2012 2:16 PM

    At least make sure that you have a default method 'browse' in your class. I mean that make a method for "displaying" or "browsing" or whatever you want to happen when you click the object, and make it default. OR actually if I remember correctly there is a default method existing already, but put your code to there.
    Also try this:
    -Create a container element of type 'sales order' into your task
    -Bind the sales order object from workflow to the the task
    Regards,
    Karri

  • How do you create a search engine in Dreamweaver?

    I will like to know how to create a search engine in Dreamweaver?  I am using the following PHP and MAMP for my testing server.  I am looking for a link or information to point me in the right direction.
    Thank You!

    Or use a commercially available search on your website.
    http://Freefind.com
    http://www.wrensoft.com/zoom/
    http://www.google.com/sitesearch/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How to attach that object_library to a form using jdapi?

    Hi!
    I am doing a migration process from Forms 6i to Forms 10g, and I need to attach an object_library object to a specific form using jdapi. The object_library that I want to attach is the web_util object_library.
    How to attach that object_library to a form using jdapi?
    Thanks.

    I had never used JDAPI before reading your post, but the attached code creates a minimal WebUtil-enabled form from scratch -- adapting it to update an existing form should be fairly straightforward. I've only been coding in Java for about a year, so consider this only as a starting point -- there may be better, easier ways of doing this.
    import oracle.forms.jdapi.*;
    public class Driver {
      public Driver() {
        /* create a minimal form */
        FormModule frm = new FormModule("JDAPI_DEMO");
        Block dummyBlock = new Block(frm, "BLK_DUMMY");
        Canvas dummyCanvas = new Canvas(frm, "CVS_DUMMY");
        Item textItem = new Item(dummyBlock, "TXT_DUMMY");
        textItem.setCanvasObject(dummyCanvas);
        /* open WebUtil object library */
        ObjectLibrary olWebUtil = ObjectLibrary.open("c:/ora10g/forms/webutil.olb");
        /* attach WebUtil PL/SQL library */
        AttachedLibrary alWebUtil = new AttachedLibrary(frm, "c:/ora10g/forms/webutil.pll");
        /* loop through each tab in object library */
        for (JdapiIterator it=olWebUtil.getObjectLibraryTabs(); it.hasNext();) {
          ObjectLibraryTab olt = (ObjectLibraryTab) it.next();
          /* loop through each object in tab */
          for (JdapiIterator it2=olt.getOwnedObjects(); it2.hasNext();) {
            JdapiObject obj = (JdapiObject)(it2.next());
            String className = obj.getClassName();
            /* handle module parameters */
            if (className.equals("ModuleParameter")) {
              ModuleParameter mp =
                new ModuleParameter(frm, obj.getName(), (ModuleParameter) obj);
            /* handle object groups */
            if (className.equals("ObjectGroup")) {
              ObjectGroup og = new ObjectGroup(frm, obj.getName(), (ObjectGroup) obj);
        frm.compile();
        frm.save("c:/jdapi_demo.fmb");
      public static void main(String[] args) {
        Driver drv = new Driver();
    }

Maybe you are looking for

  • Use of Table Valued Parameter to restore databases

    I'm a noob with table valued parameters.  Not sure if I can use TVP for what I need to do.  I want to restore/refresh multiple databases from arbitrary number of .BAK files.  I can successfully populate a TVP with the needed source information which

  • Invalid Format

    I am trying to connect my G4 FW with Radeon 9700pro to a 26" HD TV. The TV has PC (VGA) slot and I have tried connecting from DVI to VGA adapter from G4 to VGA port on TV. This results in a black screen after the apple screen. The TV tells me there i

  • How to make the backlight stay on when charging? N...

    Hi How to make the backlight stay on when charging?  or it is not possible? Thanks  

  • Lost contacts and all calendar dates

    My iPhone has no contacts listed.  And all my calendar dates are no longer available.  I can type in a name and the contact will cme up to send a text to. But it then shows only the telephone number.  I'm afraid to check my photos, as last night it w

  • ERROR: Unable to detect fingerprint device

    Pavilion dm4 laptop worked fine yesterday. Booted up this morning and the option to sign in with a finger swipe was missing. PC has ""HP SimplePass Identity Protection" with a "Validity Sensors, Inc" fingerprint scanning device. Clicking SimplePass i