Need to create a MIME file to FTP to customer

Hi Experts,
I have a requirement to generate a MIME file that will consist of am XML file and 1 to many attachments.  This file will then be sent via FTP to a client.  Searching within the SCN community has proven very difficult because I am NOT looking to do anything with the MIME Repository.  I just want to create a file with a .MIME extension and having the appropriate tags.  We are not wanting to send this file via email.
I have found several queries on similar topics but they do not appear to have a solution.  Does anyone know of the proper Functions, Class methods or procedure to accomplish this within ABAP? 
Best Regards,
Terry

 $props = @{"FirstName" = '';
            'LastName' = '';
            'UID' = '';
            'Site' = '';
            'Description' = ''}
New-Object PsObject -Property $props | Export-Csv c:\powershell\myfile.csv -NoTypeInformation -Force
that's the closest i have been able to come, but it seems to put the columns in a random order..
$props=[ordered]@{
FirstName=''
LastName=''
UID=''
Site=''
Description=''
New-Object PsObject -Property $props |
Export-Csv c:\powershell\myfile.csv -NoTypeInformation
Formatting is important down the road.
¯\_(ツ)_/¯

Similar Messages

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • I need to create  .pst  ext . file using java,whi will import in ms outlook

    {color:#ff0000}*I need to create .PST extension file using java which will be able to import in ms outlook,and that .pst file will contain root folder (like Personal Folders) and inbox,sent mail*{color}
    give me some hint It is essential task .we have to implement code in  java

    I'm using the thin drivers.
    The answer to your question is no, you do not need to create a DSN to connect to Oracle. The Oracle thin driver is all that is required. Your code looks OK to me, I'm assuming that you xxx'd out the IP, and that you are using a real IP in the actual code.
    The message you got back is pretty generic, but can indicate that the Oracle database listener isn't available. Perhaps the database is on a different port, or perhaps the listerner isn't running. Perhaps you have the IP address wrong.
    So, to be very basic:
    1) Can you ping the server you are trying to connect to? This makes sure you are using a valid IP address.
    2) Can you connect to the Oracle server from an Oracle client? This makes sure the listener is running properly, and that you know the correct port number and login information (The port number could be in a local or server based TNS file, or available through an Oracle names server. You might try using the program tnsping if it is available on the client for validation.
    3) If you can do 1 and 2, then be sure you are using the same connection parameters (server, port userid and password) that worked with 2.
    4) Verify that you are using (pointing to) the correct set of Oracle classes for the thin connection. This can be tricky if you have different versions of Oracle on the client then on the server, but is documented on the Oracle website.
    5) If everything checks out, you might want to verify that you are using the most recent versions of the thin drivers, including the Oracle patches.
    Hope it helps - good luck,
    Joel

  • Why do we need to create an emergency file?

    Please see the link  http://help.sap.com/saphelp_47x200/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm
    Why do we need to create an emergency file?

    user10566312 wrote:
    Packages I know are used to group procedures together. But why do we create packages when stored proc alone is sufficient.For the same reason there are units in Pascal. Libraries in C. It allows the encapsulation of functionality as a single entity with a public interface and a private implementation.
    It is is standard as far as structured programming goes.
    And a single stored procedure is far from sufficient. It cannot have private and public static variables for keeping state. It cannot present a comprehensive and flexible call interface to the caller. It does not support polymorphism. It cannot expose constants and user types. Etc.

  • New to applescript. need to create a plist file using applescript

    Needed some help I need on creatinga plist file below using applescript and I can't make it happen needed some hand on this.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Username</key>
    <string>${localAdminUser}</string>
    <key>Password</key>
    <string>${localAdminPassword}</string>
    <key>AdditionalUsers</key>
    <array>
    <dict>
    <key>Username</key>
    <string>${userName}</string>
    <key>Password</key>
    <string>${userPassword}</string>
    </dict>
    </array>
    </dict>
    </plist>
    I have tis code but it doesn't seems to work.
    tell application "System Events"
      -- create an empty property list dictionary item
              set the parent_dictionary to make new property list item with properties {kind:record}
      -- create new property list file using the empty dictionary list item as contents
              set the plistfile_path to "~/Desktop/example.plist"
              set this_plistfile to ¬
      make new property list file with properties {contents:parent_dictionary, name:plistfile_path}
      -- add new property list items of each of the supported types
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Username", value:"${localAdminUser}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:list, name:"AdditionalUsers"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Username", value:"${localAdminUser}"}
      make new property list item at end of property list items of contents of this_plistfile ¬
                        with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
    end tell
    The result of the above code will generate a plist file below
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>AdditionalUsers</key>
              <array/>
              <key>Password</key>
              <string>${localAdminPassword}</string>
              <key>Username</key>
              <string>${localAdminUser}</string>
    </dict>
    </plist>

    Hello
    You need to create elements at correct container. Like this.
    set plist_file to (path to desktop)'s POSIX path & "example.plist"
    --set plist_file to "~/desktop/example.plist"
    tell application "System Events"
        tell (make new property list file with properties {name:plist_file})
            make new property list item at end with properties {kind:string, name:"Username", value:"${localAdminUser}"}
            make new property list item at end with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
            tell (make new property list item at end with properties {kind:list, name:"AdditionalUsers"})
                tell (make new property list item at end with properties {kind:record})
                    make new property list item at end with properties {kind:string, name:"Username", value:"${localAdminUser}"}
                    make new property list item at end with properties {kind:string, name:"Password", value:"${localAdminPassword}"}
                end tell
            end tell
        end tell
    end tell
    Or you may create a record in AppleScript and set the value of plist file at once. Like this.
    set plist_file to (path to desktop)'s POSIX path & "example.plist"
    --set plist_file to "~/desktop/example.plist"
    set dict to ¬
        {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"} & ¬
        {|AdditionalUsers|:{¬
            {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"} ¬
    --set dict to {|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}", |AdditionalUsers|:{{|Username|:"${localAdminUser}", |Password|:"${localAdminPassword}"}}}
    tell application "System Events"
        tell (make new property list file with properties {name:plist_file})
            set value to dict
        end tell
    end tell
    Regards,
    H
    Message was edited by: Hiroto (PS. Fixed second script so that it uses the original case (uppercase)  in key string)

  • Need to create a flat file source system in bi?

    Hi all,
    i need to load the data from a flat file to an ods? can anyone pls tell me the steps to create the flat file source system in bi?
    Thanks

    Hello,
    http://help.sap.com/saphelp_nw70/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6581e07211d2acb80000e829fbfe/frameset.htm
    steps:
      create source system file (if you haven't)
    - create ods
    - create update rules for ods and activate
    - create infosource
    - assign infosource with datasource (source system file)
    - maintain transfer rules - maintain infoobject in sequence as flat file to transfer structure. map infoobject in transfer rules. activate transfer rules
    - create update rules ods-infosource and activate
    - create infopackage, specify external data path (recommended file put in application server)
    hope this helps.
    Regards,

  • I need to create a MIDI file with control cues only. Is that possible?

    I need to create a stand alone MIDI file with control cues to control a non-musical device which does understand these files.
    Must I create a virtual device in MIDI Setup for Logic to talk to?
    Must I create notes in order to create regions that will export?
    Is it possible to do this in MIDI channel 0?
    Is LogicPro the tool to use to do this?
    The maker of the device uses ProTools to create his MIDI files.
    I use a MacBook Pro with OSX 10.10.2 running LogicPro 10.1.1.
    Thanks!
    Doug

    No you cannot trigger a paragraph style with a character or character style.
    But you can have a Apply Next Character Style
    Accountable for: <paragraph style name "Heading 1">
    >> Bullet1 <paragraph style name "Bullet">
    In the Heading 1 style go to "Next Style" under "General"
    and choose "Bullet"
    The select from "Accountable for:" to the last bullet in the list
    Right Click on the Heading 1 style and go to Apply Heading 1 and Next Style.
    http://creativebits.org/indesign/taking_advantage_of_indesign_s_next_style
    http://indesignsecrets.com/where-is-apply-__-then-next-style.php

  • Need help creating folders and files in Pathfinder

    Hi, I have tried the Pathfinder forum but it's a ghost town over there. I don't know if this is a PF or Finder issue yet.
    I've just installed Pathfinder 5.2.2 on an iMac running OS 10.5.8 at my new job.
    The problem is I can open files and folders from within Pathfinder but I can't create any new files or folders from within Pathfinder, and I also can't drag anything from the drop stack to a new location either. I've made sure to set permissions for read/write on my Mac HD and on the PF application itself, and I've repaired my permissions, and also run Cocktail, restarted the mac, quit PF etc. Still nothing.
    Anything that could point me in the right direction would be greatly appreciated.

    Hi Kappy,
    When I try to move a folder or file, or create one, nothing happens at all. It's as if I never did anything. I am able to open files from within Pathfinder and navigate my Hard Drive, but I cannot create or delete files.
    I posted on their forum, which is what they suggest. I've used Pathfinder for several years, I have no questions on the actual interface, but I wonder if there might be a permissions issue on this particular mac.

  • Need to create a pdf file programmatically

    Hi friends,
          I am able to read contents of a pdf file in KM repository programmatically. Now I am trying to create a pdf file programmatically. I ve tried the following solutions:
    1) <b>pdfwriter</b>. Here i endup with giving the path for the file.I ve tried giving RID and URL of the document. but in vein.
    2) <b>createresource</b>. Here i am able to create a txt file. but couldnt find how to create pdf.
    Awaiting replies specific to the questions. thanks in advance.
    Regards,
    Saravanan

    Hi Saravanan,
    In my view,the solution for this is to create a pdf file in C or any drive of the sever temporarily and get the FileInputstream from that temporary file and with the file stream upload pdf file in to KM repository and finally delete the temporary file u have created.
    Follow the code given,it will be more clear
    //Creating PDF
    Rectangle pageSize = new Rectangle(0,0,2382,3369);
    Document document = new Document(pageSize);
    try {
    PdfWriter.getInstance(document, new FileOutputStream("<b>D:\PDFfromJava.pdf</b>"));
      document.open();
      document.add(new Paragraph("Hi, this is demo PDF file from JAVA!"));
    catch(DocumentException de) {
      response.write("Document Exception");
    }catch(IOException ioe) {
    response.write("IO Exception");
    ResourceContext rContext=null;
    ICollection aCollection=null;
    IResource aResource=null;
    InputStream myIS=null;
    IUser loggedOnUser = (IUser) request.getUser().getUser(); if (loggedOnUser.isAuthenticated()) {
    rContext = new ResourceContext(loggedOnUser);
    RID aRid = RID.getRID("/documents"); // remember that the repository is case sensitive
    try {
    IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    aCollection = (ICollection) aResourceFactory.getResource(aRid, rContext);
    //Creating a File object
    File myPDF=new File("<b>D:\PDFfromJava.pdf</b>");
    //Getting the stream from temp file
    myIS=new FileInputStream(myPDF);
    IContent aContent = new Content(myIS,"byte",-1);
    if (aCollection != null)
    aResource = aCollection.createResource("<b>PDFfromJava.pdf</b>", null, aContent);
    myIS.close();
    //deleting the temp file from server
    myPDF.delete();
    }catch(Exception e){
         response.write("Exce"+e);
    <b>One more thing the file name PDFfromJava.pdf mentioned in bold should be same at all places</b>

  • Need to Create a Last 12 Months Variable for Custom Dimension

    Hi everybody
    Once again, I need your good help for an issue I'm facing. In one of our Cube, we have some Date Dimension sthat we've created ourselves (a ZCXXXXX dimension). For one Dimension, Ii need to create a variable that is giving me, automaticaly, the Last 12 Months excluding Current Month (same as the 0CML12LM provided by SAP) without any manual entry done by the user via the Variable Entry Screen.
    I don't want to use offset because I don't want to allow any Manual intervention for my users because it is a report start via RRI.
    Please let me know if you are aware on how to do this!
    Thanks
    Eric L.

    Hi Arun
    My problem is that my report is counting Incident per supplier per Month.  We have a Key Figure that is doing the Total of incident with a Vendor Variable.  So, for a given supplier, if there is no incident for the Incident Month, it won't display in the Result Page.  Also, My report is dynamic so I'can not fix a Structure.  On the other hand, I never used Strucutre, so I'm not really aware on how using this and if it will answer my need.
    If you can give me more details, maybe I'll be able if a Structure is my solution.
    Regards
    Eric L.

  • Do I need to create a recovery file for my new laptop if there is a HP recovery

    I have just bought a HP Pavilion 15 Notebook PC 15 - n219 sa
    Serial : [Edited for Personal Information]
    Product # : F9U67EA#ABU
    There is a recovery partition.
    I am a bit confused on the issue of recovery file creation. I have found instructions on youtube on the the creation of an image of the laptop but I wonder why I need to do that given there is a HP recovery manager.
    Although I do not really know what the manager does.
    Can anyone tell me what the best strategy is regarding recovery files for this laptop taking in to account the partition.
    After I have done this I wish to remove macfee and install the Norton I bought. Do I need to disable the macafee? If so how do I do this?
    Can I remove the macefee to save space on the hard drive?
    If you can help with these questions that would be much appreciate.
    I gues I just want to do the right thing with this new laptop and avoid deleting too much whilst savinbg space and having a protected machine I can restore.
    Thank you
    This question was solved.
    View Solution.

    Hi,
    You should definetely create a set of Recovery Media - this is your copy of the operating system.  An example of when you may need this would be if you had to replace the Hard Drive - details on creating this can be found on the following HP document.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03481733&lc=en&cc=us&dlc=en
    Regarding McAfee, you should uninstall this first before trying to install Norton - you can do this in the usual way by opening Windows Control Panel, open Programs and Features, right click the entry for McAfee and select Uninstall.  When the process has completed, restart the notebook before installing Norton.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Need to create new users in Office 365 with custom attributes from a csv file

    I am exporting users from an active directory environment and then deleting them from AD. They are Alumni and will no longer be in AD.
    I have a csv file with the following fields that I need to use to create new Alumni email boxes in Office 365 for. I need the CustomAttributes because my Dynamic Distribution Groups use them. I am fairly new to PowerShell and have been unable to get this
    to work. I suspect I may have to split it into two parts, but am not sure how to proceed. Any assistance would be appreciated. I was directed here from the Office 365 community.
    Import-Csv -Path c:\CSVfiles\CreateAlumni.csv | ForEach-Object {
       New-MsolUser -FirstName $_.FirstName -LastName $_.LastName
       -UserPrincipalName $_.UserPrincipalName
       -DisplayName "$($_.FirstName) $($_.LastName)"
       -Password $_.Password
       -CustomAttribute1 $_.CustomAttribute1
       -CustomAttribute3 $_.CustomAttribute3
       -CustomAttribute10 $_.CustomAttribute10
       -CustomAttribute11 $_.CustomAttribute11
       -CustomAttribute12 $_.CustomAttribute12
       -LicenseAssignment 'domaincom:EXCHANGESTANDARD_ALUMNI'
       -UsageLocation US

    Ok, it wasn't stopping after 2 iterations. What I was seeing was 2 failures. The first was the Get-Mailbox command and the second was when it tried to assign attributes. For some reason it is not looping when it fails. It just goes on and tries to assign
    the Custom Attributes. I added writes in to tell me what was happening.
    ### Check if mailbox is provisioned yet
    Write-Host "Checking if mailbox is provisioned yet..." -foregroundcolor yellow
    $found = $false
    $count = 0
    Do {
    try {
    Get-Mailbox -Identity $_.UserName -ErrorAction Stop
    $found = $true
    Write-Output 'Mailbox found. Details:'
    Get-Mailbox -Identity $_.UserName
    } catch {
    Write-Output 'Sleeping'
    $count++
    Start-Sleep -Seconds 5
    If ($count -ge 12) {
    Write-Output 'Mailbox not found. Quitting.'
    $found = $true
    } Until ($found)
    Write-Host "Adding Custom Attributes to User" -foregroundcolor yellow
    Set-Mailbox -Identity $_.UserName -CustomAttribute1 $_.CustomAttribute1 -CustomAttribute3 $_.CustomAttribute3 -CustomAttribute10 $_.CustomAttribute10 -CustomAttribute11 $_.CustomAttribute11 -CustomAttribute12 $_.CustomAttribute12
    Write-Output "User has been Provisioned in Office 365!" -foregroundcolor yellow
    Checking if mailbox is provisioned yet...
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=e1aabda1-01e4-4f68-984e-e20be0975242,TimeStamp=5/22/2014 4:23:59 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
        + PSComputerName        : pod51038psh.outlook.com
    Mailbox found. Details:
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Get-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=16a8a2bc-333a-455c-8504-e0b99c44c334,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] 2788FB48,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
        + PSComputerName       
    : pod51038psh.outlook.com
    Adding Custom Attributes to User
    The operation couldn't be performed because object 'Joe.Cool2003' couldn't be found on 'CO1PR07A002DC01.NAMPR07A002.prod.outlook.com'.
        + CategoryInfo         
    : NotSpecified: (:) [Set-Mailbox], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : [Server=CO1PR07MB125,RequestId=8319d220-b9dd-492f-8182-5083cf56e58b,TimeStamp=5/22/2014 4:24:00 AM] [FailureCategory=Cmdlet-ManagementObj
       ectNotFoundException] C7844A24,Microsoft.Exchange.Management.RecipientTasks.SetMailbox
        + PSComputerName       
    : pod51038psh.outlook.com
    User has been Provisioned in Office 365!
    Of course the user has been provisioned, but the CustomAttributes have not been assigned. :(

  • Need to create a songbook file.

    I normally use a songbook to glance at while playing guitar and would like to put all of my songs on my iPad. The documents I use were all created in Word. I would like to be able to arrange them in a particular order and be able to just tap the iPad to move to the next song, similar to reading a book in iBooks. I have all of my songs saved in Pages, Word, and PDF format. Does anyone know of an app that will fill this need or a way to create something for use on the iPad to do this?

    Thanks to everyone that replied. I am giving some of these apps a try. So far I haven't gotten one to do exactly what I want, but am still experimenting. "xearthling"..., I gave Goodreader a try and it is very easy to get my documents into and fit to the screen, but I can't seem to figure out how to just swipe or tap the ipad screen to go to the next document. I have to go back to menu and select next song. Do you know if the app is capable of doing that? "Barbara"..., I downloaded Scorcerer and worked with it some, but could never load anything but a jpeg into it. Do you know if there is a way to load a word, pages, or pdf file into it? Thanks again for all your feedback. I'm sorta new to computers and have a little trouble figureing out how to use these apps.

  • Need help creating an "insert file" to add an attachment to a form?  Is this possible?

    I am trying to add an "insert file/attachment" field to a form that I'm creating but am having trouble finding information.   Is this possible?   Please advise.
    Thank you!

    Hi,
    The form with add attachment feature on link http://eslifeline.files.wordpress.com/2009/04/addattachments.pdf
    works fine but when I copy paste objects to use 2-3 times on page 2 and 3 then after attaching different files at all 3 sections, I see only same type of files when using view attachments. I understand it is same like when making 2 fields name same act same together.
    Please help me make the javascript run differently (as new) for each add attachment function.
    Thanks

Maybe you are looking for