Export distribution list / csv

hello,
Does anyone know how to export distribution list users and their email addresses to a csv? I tried formativ but somehow it did not work. We use Groupwise 7.0.2 . Thanks.

On 9/21/2011 5:37 AM, Jakub Gorecki wrote:
> hello,
> Does anyone know how to export distribution list users and their email
> addresses to a csv? I tried formativ but somehow it did not work. We use
> Groupwise 7.0.2 . Thanks.
Well Admin API could do that, but you'd have to write your own code....

Similar Messages

  • Distribution list export

    Hello Guys
    Distribution lists in shared folder's SBWP had been deleted by a user!
    Could I export distribution List from another environement?
    Thank you for answers.
    Christophe

    Unfortunatelly no, you can copy and paste the receivers from the other environment to create a new one.
    Regards,
    Felipe
    Edited by: fsimionatto on Dec 20, 2011 5:07 PM

  • Querying SQL db based off of values in a CSV and exporting filtered list to a new CSV

    Hello, we use Office365 for our student e-mail accounts and are trying to appropriately license those accounts based on if they are currently enrolled or not (currently enrolled get the full license with OneDrive, SharePoint, Lync, Office download etc. while
    non-currently enrolled get e-mail only).  I have exported a list of UserPrincipalNames from Office365 to a CSV that have a particular license applied.  I want to compare that list against a SQL view that will identify if those UserPrincipalNames
    (found under the "Email" column in the SQL database) are currently registered for classes or not (we have a "CurrentlyRegistered" column populated with a "0" for not registered and a "1" for registered"). 
    I then need to export the filtered list of UserPrincipalNames to a different CSV so that I can use that second CSV to change the license in Office365.
    For example, I export a list of accounts from Office 365 that have the e-mail only license applied to a CSV named "Exchange.csv" that has a single column of data with a header of "UserPrincipalName".  I want to compare the accounts
    in the "Exchange.csv" to our SQL view (which among other columns, has one named "Email" that matches the values of "UserPrincipalName" and a "CurrentlyRegistered" column) to see if any have changed status to being currently
    enrolled so that I can flip their license to the full license. I would know this by returning any accounts that have a "1" in the "CurrentlyRegistered" column and saving those to a CSV named "Full.csv" that would have two columns
    with headers "Email" and "CurrentlyRegistered".
    I need to know how to connect to SQL from PowerShell and return the filtered list of accounts that have changed status.  I am hoping for something like:
    $constring = "Server=MyServer\Instance;Database=StudentEmails;Trusted_Connection=True"
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = $constring
    $SqlCommand = New-Object System.Data.SqlClient.SqlCommand
    $SqlCommand.CommandText = $query
    $SqlCommand.Connection = $SqlConnection
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCommand
    $DataSet = New-Object System.Data.DataSet
    $SqlConnection.Open()
    $SqlAdapter.Fill($DataSet)
    $SqlConnection.Close()
    $DataSet.Tables[0]
    Remove-Item C:\O365Operations\CSVs\Full.csv
    $query = Import-Csv C:\O365Operations\CSVs\Exchange.csv | ForEach-Object {Invoke-Sqlcmd -Query "SELECT [Email],[CurrentlyRegistered] FROM [StudentEmails].[dbo].[v_StudentEmailAccounts] WHERE CurrentlyRegistered = '1'"} | Export-Csv C:\O365Operations\CSVs\Full.csv
    -Append}
    Am I anywhere close with this?
    Thanks,
    Jeremy Hawks
    Systems Administrator @ Green River College

    My CSV has a single column with a the #Type in the first line, the header of "UserPrincipalName" in the second line and the rest of the lines having a single e-mail address, similar to:
    #TYPE Selected.Microsoft.Online.Administration.User
    UserPrincipalName
    [email protected]
    [email protected]
    [email protected]
    The "Email" column in SQL will have some matching values to the "UserPrincipalName" column in the CSV. 
    So if any of the (UserPrincipalName in CSV) values match the values found in the column (Email in SQL) then I want to export those e-mail addresses to a CSV so that I can use the new CSV to change the licenses in Office 365.
    When I run your modified code I get the following:
    PS C:\Windows\system32> $csv=Import-Csv C:\O365Operations\CSVs\Test.csv
    $csv|select email
    foreach($User in $csv){
         # find user
         if($DataTable|?{$_.Email -eq $user.Email}){
             Write-Host "User found: $($user.email)" -fore green
             #Select Email,CurrentlyRegistered | Export-Csv C:\O365Operations\CSVs\IW2.csv -Append
         }else{
            Write-Host "User NOT found: $($user.email)" -fore red
    email
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    User NOT found:
    PS C:\Windows\system32>
    If I change the command from
    $csv|select email
    to
    $csv|select UserPrincipalName
    Then I get a full listing of the e-mails in the CSV with none filtered out (so it is not comparing it to the returned data from the SQL table.
    Suggestions?
    Jeremy Hawks Systems Administrator @ GRC

  • Enabling the Export function for a distribution list in 'Private folders'

    Dears,
    Could someone please guide to the appropriate authorization that would allow the 'Export...' function for a distribution list created in a folder under 'Private folders' - Transaction : SBWP
    The option is dimmed, although the user used has the SAP_ALL profile.
    Thanks.
    Reda

    click file/publish settings/flash/actionscript settings and make sure frame 1 is set as the export frame.
    if that's already set, don't use test scene.

  • Script to export a list of notes from Evernote to a CSV file

    Hi,
    I am wondering if anyone knows of a script that would export a list of all the notes currently selected in Evernote (or alternatively all of the notes in a particular notebook) to a CSV file.
    I am hoping that I could adapt such a script to my needs, which are as follows:
    Generate a CSV file with 4 values per row (1 row per note), namely 'Date,Price,Item,Tag"
    Each of my notes has a title in the format: "20110801 10.00 Note1" (i.e. date,price,item)
    So the first three values in the CSV file would be constructed from the title of the note with the date converted from the form 20110801 to 01/08/2011.
    The tag in the note would become the fourth value in the CSV file.
    I'd be grateful for any help in writing such a script.
    Thanks,
    Nick

    What is the version you are using?
    Try this:
    exp userid=scott/password@orcl parfile=parfile1.txt
    and the contents of parfile1.txt would be:
    BUFFER=10000
    FILE=test.dmp
    FULL=n
    OWNER=scott
    GRANTS=y
    TABLES=SBEDIAUD,CE090001,CE091002,CE091004,CE091006,.........
    But yes you should be using expdp by now.
    regards

  • Export Multiple Distribution List

    Hello, Is there a way to Export Multiple Distribution List and send them to users to Import into Office 2007\2013 easily?
    Thank for any help.
    Michael

    Hi,
    Do you want to export multiple Distribution List at the same time?
    A simple way to do this I can figure out is as follows:
    (Outlook 2013 for example)
    1. Click New Email button to create a new email. Restore Down the New Email window.
    2. Switch to People in Navigation bar. Change Current View to List view. Restore Down the mail Outlook window.
    3. Hold CTRL key and select all Distribution Lists that you want to share with other users.
    4. Drag the selected Distribution Lists and drop them to the email body field in the New Email window. Now, you will see all the distribution lists are added as attachment in the new mail window.
    5. Fill the To box with users' email address that you want to share the distribution lists with.
    6. Click Send.
    On the recipients side, please do these:
    1. Open the email containing the distribution list attachments. Restore Down the message window.
    2. Switch to People in Navigation bar. Restore Down the mail Outlook window.
    3. Go to the received email window, hold CTRL key and select all distribution list attachments. Then drag the distribution list
    attachments from the email message onto the desired Contacts folder.
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Script for Member Count in list of Distribution List

    Hi All,
    Would like to see your help in some powershell scripting. I am still a newbie in scripting for Exchange 2010 (Office 365). I am tasked to write a script that will count how many members in a list of distribution list. I have manage to come up with most of
    the task, but I am not able to get the count. The error says Object not found. Below is my simple script. Hope someone can help me to see where are my mistakes in the script. This is how my script works, 
    1. Generates a TXT file for the list of DLs
    2. Get reads the TXT file and generates the user counts for each DL in the TXT file.
    3. Output the results into a CSV file.
    Get-DistributionGroup -Identity DL-ATD* | Select-Object DisplayName > DL.txt
    $data = @()
    $dls = get-content DL.txt
    foreach ($dl in $dls) {
     $data += New-Object -TypeName PSObject -Property @{
      DisplayName = $dl
      Count = (Get-DistributionGroupMember -Identity  $dl  | Measure-Object).Count
    $data | Export-Csv -Path mydllist.csv -NoTypeInformation
    Thanks in advance.

    Hi,
    Thanks for the scripts, but the scripts mentioned are searching for all the DL which are available in the server. Is there a way I can look for like selected ones, for example any DL that starts with DL-ATD.xxxxx.
    Thanks.

  • Help please - Contacts freezes when I try to edit distribution lists

    When I try to edit the addresses distribution list for a group, Contacts freezes with a spinning beachball. I've tried exporting the group as a CSV file, trashing the entire Address Book folder in Library > Application Support, launching Contacts and importing the CSV file, but this hasn't helped.
    Editing distribution lists in Address Book / Contacts has been problematic since at least Lion. Seems like Contacts development was foisted off on a handful of green interns a long time ago.
    Can anyone suggest an iCloud- & iPhone-compatible third-party contacts manager with some back-end muscle? Cobook is a nice front-end, but it doesn't solve my problem.

    Well, I found that it doesn't actually freeze - it just takes 20 minutes or so to respond. This with a database of about 3,700 contacts. It also takes 5 minutes or so to accept the renaming of a smart group.
    Who in **** built this thing? And, why are they spending more time on simulating fake leather and taking away and then restoring 3-panel view than on making this a halfway decent database?
    Sadly, the only contacts app I can find that seems to have a robust back end is made by - Microsoft. Sad.

  • Generating outlook distribution list

    has anyone tried to create a list by pulling data from a
    database and generating a list and passing that list to outlook as
    a distribution list so that the user does not have to create these
    lists manually?

    You may try to export a CSV file from Outlook and see the
    default exported file.
    After having an idea about document format, you can generate
    same kind of document from CF and use it as required.
    If you think that generating vCard and attaching them into
    the mail would be helpful, try to check the following tutorial.
    http://www.coldfusioncookbook.com/entry/95/How-do-I-create-a-vCard/-vCalender-link-and-hav e-it-download-to-MS-Outlook

  • Import Distribution list from Outlook

    Hello,
    I would like to import Outlook distribution lists in Mac Address Book.
    I have about 40 distribution lists and the time it take to manually import is very large.
    So i need a way to do it automatically.
    Can you help me? I tried with a vcf and csv export, but it export only address and not the distribution list.
    Many Thanks
    Andrea

    Hello Maria,
    This should do it...
    http://email.about.com/od/macosxmailtips/qt/et_import_ol_c.htm

  • How to send spool to Distribution List using JOB_CLOSE

    Please help on sending Distribution list when job defined using JOB_OPEN, JOB_Submit and JOB_CLOSE
    Thanks.

    Hi, this is code:
    DATA  WA_RECIPIENT LIKE swotobjid.
    CONSTANTS:  gc_objname  TYPE oj_name    VALUE 'RECIPIENT'.
    PERFORM get_distribucion_list USING    'NAME_LIST'   " name of List of distribution
                                  CHANGING WA_RECIPIENT.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
          jobcount                          = l_jobcount
          jobname                           = l_jobname
          strtimmed                         = 'X'
        recipient_obj                     = wa_recipient
    IMPORTING
       job_was_released                  = l_libero
    EXCEPTIONS
       cant_start_immediate              = 1
       invalid_startdate                 = 2
       jobname_missing                   = 3
       job_close_failed                  = 4
       job_nosteps                       = 5
       job_notex                         = 6
       lock_failed                       = 7
       OTHERS                            = 8.
    FORM get_distribucion_list USING    p_objnam       TYPE so_obj_nam
                               CHANGING p_wa_recipient LIKE swotobjid.
      DATA: it_tab LIKE STANDARD TABLE OF soxdl
                   INITIAL SIZE 0 WITH HEADER LINE.
      CHECK NOT p_objnam IS INITIAL.
      CALL FUNCTION 'SO_DLI_LIST_READ_XDL'
        EXPORTING
          dli_generic_name            = p_objnam
          public                      = 'X'
          subscript                   = 'X'
        TABLES
          dli_display_tab             = it_tab
        EXCEPTIONS
          communication_failure       = 1
          dl_list_no_entries          = 2
          owner_not_exist             = 3
          system_failure              = 4
          x_error                     = 5
          parameter_error             = 6
          OTHERS                      = 7
      IF sy-subrc = 0.
        READ TABLE it_tab INDEX 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
            IMPORTING
              own_logical_system             = p_wa_recipient-logsys
            EXCEPTIONS
              own_logical_system_not_defined = 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.
          MOVE gc_objname TO p_wa_recipient-objtype.
          CONCATENATE it_tab-dlitp it_tab-dliyr it_tab-dlino
                      INTO p_wa_recipient-objkey.
        ENDIF.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.

  • How to send mail to all the receipients in distribution list

    Hi All,
    As per my requirement I need to send error log in doc format.
    I am using the help of following code suggested by someone in sdn.
    Mehr Beispile unter BCS_EXAMPLE_* mit se38
    Mehr Beispile unter BCS_TEST*     mit se38
    DATA: SEND_REQUEST       TYPE REF TO CL_BCS.
    DATA: SUBJECT            TYPE SO_OBJ_DES.
    DATA: ATT_TYPE           TYPE SOODK-OBJTP.
    DATA: IT_TEXT            TYPE BCSY_TEXT.
    DATA: WA_TEXT            LIKE SOLI.
    DATA: IT_BIN             TYPE SOLIX_TAB.
    DATA: WA_BIN             TYPE SOLIX.
    DATA: DOCUMENT           TYPE REF TO CL_DOCUMENT_BCS.
    DATA: SENDER             TYPE REF TO CL_SAPUSER_BCS.
    DATA: RECIPIENT          TYPE REF TO IF_RECIPIENT_BCS.
    DATA: BCS_EXCEPTION      TYPE REF TO CX_BCS.
    DATA: SENT_TO_ALL        TYPE OS_BOOLEAN.
    Bytes der Datei
    DATA: IT_LENGHT          TYPE SO_OBJ_LEN.
    DATA: N10(10)            TYPE N.
    START-OF-SELECTION.
      PERFORM MAIN.
      PERFORM RSCONN01_EXECUTE.
    END-OF-SELECTION.
    FORM MAIN.
      TRY.
    Dokument erstellen (mit Anhang)
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
          PERFORM HEAD_CONT.
          PERFORM RAW_ATT.
    Dokument (mit Anhang) setzen
          CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    Absender setzen
          SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
          CALL METHOD SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = SENDER.
    Empfänger setzen
          RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
                                            'email@address' ).
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT = RECIPIENT
              I_EXPRESS   = 'X'.
    Dokument senden
          CALL METHOD SEND_REQUEST->SEND(
            EXPORTING
              I_WITH_ERROR_SCREEN = 'X'
            RECEIVING
              RESULT              = SENT_TO_ALL ).
          COMMIT WORK.
    Sende-Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "main
    FORM HEAD_CONT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Betreffzeile'.
      WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                    I_TYPE    = ATT_TYPE
                    I_TEXT    = IT_TEXT
                    I_LENGTH  = IT_LENGHT
                    I_SUBJECT = SUBJECT ).
    Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "HEAD_CONT
    *&      Form  RAW_ATT
          text
    FORM RAW_ATT.
      CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
      ATT_TYPE = 'RAW'.
      SUBJECT = 'Text Anhang'.
      WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
      WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    Lenght of Att_Text
      DESCRIBE TABLE IT_TEXT LINES N10.
      N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
      IT_LENGHT = N10.
      TRY.
          CALL METHOD DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = ATT_TYPE
              I_ATT_CONTENT_TEXT   = IT_TEXT
              I_ATTACHMENT_SIZE    = IT_LENGHT
              I_ATTACHMENT_SUBJECT = SUBJECT.
    Error abfangen
        CATCH CX_BCS INTO BCS_EXCEPTION.
          WRITE: 'Fehler aufgetreten.'(001).
          WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
          EXIT.
      ENDTRY.
    ENDFORM.                    "ATT_RAW
    But From this method I am not able to send the mail to the distribution list created.
    Please suggest How this can be done.
    I dont want to chang

    Hi Smriti,
    You can make changes like shown below. The changes are shown in the code format for your easy reference. You can remove the code in bold. This will work.
    Mehr Beispile unter BCS_EXAMPLE_* mit se38
    Mehr Beispile unter BCS_TEST* mit se38
    DATA: SEND_REQUEST TYPE REF TO CL_BCS.
    DATA: SUBJECT TYPE SO_OBJ_DES.
    DATA: ATT_TYPE TYPE SOODK-OBJTP.
    DATA: IT_TEXT TYPE BCSY_TEXT.
    DATA: WA_TEXT LIKE SOLI.
    DATA: IT_BIN TYPE SOLIX_TAB.
    DATA: WA_BIN TYPE SOLIX.
    DATA: DOCUMENT TYPE REF TO CL_DOCUMENT_BCS.
    DATA: SENDER TYPE REF TO CL_SAPUSER_BCS.
    DATA: RECIPIENT TYPE REF TO IF_RECIPIENT_BCS.
    DATA: BCS_EXCEPTION TYPE REF TO CX_BCS.
    DATA: SENT_TO_ALL TYPE OS_BOOLEAN.
    Bytes der Datei
    DATA: IT_LENGHT TYPE SO_OBJ_LEN.
    DATA: N10(10) TYPE N.
    data: it_recipients type standard table of ad_smtpadr.
    data: w_recipients type ad_smtpadr.
    START-OF-SELECTION.
    PERFORM MAIN.
    PERFORM RSCONN01_EXECUTE.
    END-OF-SELECTION.
    FORM MAIN.
    TRY.
    Dokument erstellen (mit Anhang)
    SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    PERFORM HEAD_CONT.
    PERFORM RAW_ATT.
    Dokument (mit Anhang) setzen
    CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    Absender setzen
    SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ).
    CALL METHOD SEND_REQUEST->SET_SENDER
    EXPORTING
    I_SENDER = SENDER.
    Empfänger setzen
    LOOP AT it_recipients into w_recipients.
    RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(w_recipients).
    CALL METHOD SEND_REQUEST->ADD_RECIPIENT
    EXPORTING
    I_RECIPIENT = RECIPIENT
    I_EXPRESS = 'X'.
    ENDLOOP.
    RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS('email@address' ).
    CALL METHOD SEND_REQUEST->ADD_RECIPIENT
    EXPORTING
    I_RECIPIENT = RECIPIENT
    I_EXPRESS = 'X'.
    Dokument senden
    CALL METHOD SEND_REQUEST->SEND(
    EXPORTING
    I_WITH_ERROR_SCREEN = 'X'
    RECEIVING
    RESULT = SENT_TO_ALL ).
    COMMIT WORK.
    Sende-Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "main
    FORM HEAD_CONT.
    CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
    ATT_TYPE = 'RAW'.
    SUBJECT = 'Betreffzeile'.
    WA_TEXT = 'First Line'. APPEND WA_TEXT TO IT_TEXT.
    WA_TEXT = 'Second Line'. APPEND WA_TEXT TO IT_TEXT.
    DESCRIBE TABLE IT_TEXT LINES N10.
    N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
    IT_LENGHT = N10.
    TRY.
    DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
    I_TYPE = ATT_TYPE
    I_TEXT = IT_TEXT
    I_LENGTH = IT_LENGHT
    I_SUBJECT = SUBJECT ).
    Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "HEAD_CONT
    *& Form RAW_ATT
    text
    FORM RAW_ATT.
    CLEAR: IT_TEXT[], WA_TEXT, SUBJECT.
    ATT_TYPE = 'RAW'.
    SUBJECT = 'Text Anhang'.
    WA_TEXT = 'First Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    WA_TEXT = 'Second Line in ATT'. APPEND WA_TEXT TO IT_TEXT.
    Lenght of Att_Text
    DESCRIBE TABLE IT_TEXT LINES N10.
    N10 = ( N10 - 1 ) * 255 + STRLEN( WA_TEXT ).
    IT_LENGHT = N10.
    TRY.
    CALL METHOD DOCUMENT->ADD_ATTACHMENT
    EXPORTING
    I_ATTACHMENT_TYPE = ATT_TYPE
    I_ATT_CONTENT_TEXT = IT_TEXT
    I_ATTACHMENT_SIZE = IT_LENGHT
    I_ATTACHMENT_SUBJECT = SUBJECT.
    Error abfangen
    CATCH CX_BCS INTO BCS_EXCEPTION.
    WRITE: 'Fehler aufgetreten.'(001).
    WRITE: 'Fehlertyp:'(002), BCS_EXCEPTION->ERROR_TYPE.
    EXIT.
    ENDTRY.
    ENDFORM. "ATT_RAW
    where the internal table "it_recipients" contains all the e-mail addresses.

  • How to send mail to distribution list ?

    Hi Everybody,
    Pls let me know how to send mail to distributed list???
    Thanks & Regards,
    raju<b></b>

    Hi ,
      Use Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
      U need to pass Distribution list to Receiver and 'C' to receiver type refer the below code for clarification.
    Determine the Distribution List.
            gv_rec_list-receiver = gv_distribution.
            gv_rec_list-rec_type = 'C'.
            APPEND gv_rec_list.
    Check if Distribution List is deleted.
            SELECT SINGLE objnam
                     FROM soid
                     INTO lc_objnam
                     WHERE objnam = gv_rec_list AND
                           dlitp  = lc_dli.
            IF sy-subrc = 0.
              CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
                EXPORTING
                  document_data              = gv_doc_data
                  document_type              = 'RAW'
                  put_in_outbox              = 'X'
                TABLES
                  object_content             = gv_obj_cont
                  receivers                  = gv_rec_list
                EXCEPTIONS
                  too_many_receivers         = 1
                  document_not_sent          = 2
                  document_type_not_exist    = 3
                  operation_no_authorization = 4.
              CASE sy-subrc.
                WHEN '1'.
                 message i001(as) with 'TOO MANY RECEIVERS'.
                  EXIT.
                WHEN '2'.
                 message i001(as) with 'DOCUMENT NOT SENT'.
                  EXIT.
                WHEN '3'.
                 message i001(as) with 'DOCUMENT TYPE DOES NOT EXIST'.
                  EXIT.
                WHEN '4'.
                 message i001(as) with 'OPERATION NO AUTHORIZATION'.
                  EXIT.
              ENDCASE.
              Hope this might have helped you.
    Thanks,
    Prashanth

  • How do I export a LIST of "Media Duration" from Premiere CC?

    I have over 100 clips in Adobe Premiere. I can easily read their "Media Duration" within the project, but I have to log the media duration to an excel doc and typing out each file's individual media duration would be very timely since I have over 100 files. So I want to export a batch list that includes a "media duration" column. So I select all of my footage, and I press export -> Batch List. And it gives me some CSV files with NO "media duration" column in the document. It only gives me IN and OUT metadata in the CSV file. I want "media duration" metadata in the CSV Batch List. Final Cut Pro 6 and 7 had this feature, but I don't use FCP any more. How can I get Premiere to do this? It doesn't seem like a wild request. Is this something that Adobe Bridge or Adobe Prelude could do? (could they export a batch list with metadata of Media Durations?)  I've searched for the answer to this question maybe a year ago and never found an answer. PLEASE HELP!
    Adobe, please add this feature if it doesn't exist already. If it does exist, please tell me how to get Premiere to generate a list of Media Durations for me.

    Jerry this did not solve the problem for me. I have Media Duration listed in my metadata WITHIN Premiere. I exported the CSV file from Adobe Premiere, and opened it in Open Source. Open source prompted to me to choose some settings, so I made sure to choose Unicode and comma like you said. And the results did NOT give me media duration at all. The only metadata that showed up on my CSV file was IN and OUT points.... What am I doing wrong??? If you look carefully at the last screenshot I provided, columns A through D are the ONLY things that showed up. Those are In and Out points. I don't see media duration at all. PLEASE HELP!

  • How to export report IN CSV format through JAVA.

    how to export report in csv format.when try to export in csv format.its exporting into csv but report not containing column heading , report heading and it showing all the data in a single line.we have integrated the reports with java.

    Use a Java API which can create PDF files based on some collection of plain vanilla Java objects (List, String, Number, etc).
    Google can find them all. Just feed it with something like "Java PDF API" or so. A commonly used one is iText.
    That said, when talking about this in JSP context, ensure that you do NOT write raw Java code in JSP files using scriptlets. Raw Java code belongs in Java classes. In such case you need a Servlet. In JSP just use taglibs and EL to interact with backend Java code and data. Scriptlets are discouraged since over a decade.

Maybe you are looking for

  • After backing up , After backing up

    After backing up & syncing my iphone comes up with the following message "1740 items could not be synced. See iTunes for more information'  I got an iphone 5S 3 weeks ago, I've haven't used it as not everything on my current phone has been backed up.

  • Cisco WLC 2500 - 802.1x with Vasco Radius SMS OTP

    Hello folks, I have what seems to be a complex implementation with many things that need to be done on a customers network and I wanted to be pointed in the right direction. The current scenario is such, the customer has a Cisco WLC 2500 device that

  • Message type from Logical system

    Dear All, I need develop an inbound where the info is coming from HR system. I found Message Type HRMD_A can be utilized for the development, however im not so sure if the message type HRMD_A is originally exist in my R/3 4.7 or it was being distribu

  • T CODES for special requirements in Physical Inventory

    Hi experts:   Does the SAP provide the T CODES for physical inventory which can meet the following requirements separately or collectivelly:   1.it can display the current book quantity when we input the right physical quantity as what we do in Mi04.

  • Synchoronize two database at day End

    Hi, I have two databases one is live and other is the previous copy of live database(both have same structure), I want to synchronize both databases at day end(say one time a day), how Can I do this, Where I get information for this, Thanx, Khawar.