Get distributiongroupmember from groups listed in a txt file

Hi,
I have a txt file with many distribution groups listed on each row. I would like to use get-distributiongroupmember command to list each DL's members and have them presented in a nice csv or just plain txt with name of the DL, its alias and the members on
separate column. Is that possible?
Thanks,
Chris

Why not, this will give you want you need...
$dls = Get-Content dls.txt
ForEach($dl in $dls)
Get-DistributionGroupMember $dl | select @{Name="DLName";expression={(Get-DistributionGroup $dl)}}, alias, displayname | Export-CSV dls.csv -append
Blog |
Get Your Exchange Powershell Tip of the Day from here
Hi Amit,
Thanks for this but when I ran the above script it complains about the parameter -Append can't be matched. If I skip -APPEND then I only get the last DL with its members in the output

Similar Messages

  • How to get data from subsites list of SharePoint 2010 in ssrs

    Hi,
    Can someone help me on this issue.
    I want to create a report using ssrs, I have some of the data in SQL and some of the data in sharepoint list.
    First I need to go to SQL and get the data from the table which contains URL for the subsite in sharepoint.
    after that I need to go to all the subsites and go to perticulat list in the subsites and get data from that list.
    for example, their is a top level site "abc"
    it contains sub site "123", "456","567", etc.. All this sub sites contain a list by name "Sample List", Now I need to go to that sub site list(Sample List) and get list-item column say "created By" which
    is created on particular date. 
    in my report, I need to print the sub site "url/Title" which comes from SQL database and list-item column  "Created By" of that sub site list "Sample List".
    I tried using subreport inside a report by using "Microsoft SharePoint List" as a datasource, but when it comes to real time we don't know how many subsites will be created, so we can't create a datasource for each subsite site.
    I guess we need to be using XML as a datasource, but how can we go to particular subsite in query while using XML, since all subsites have list with the same name ?
    I appreciate your help.
    Thank you,
    Kishore 

    Hi Kishore,
    SQL Server Reporting Services(SSRS) supports expression-based connection strings. This will help us to achieve the goal you mentioned in this case:
    Create a new report
    Create a Data Source in the report with the connection string like this:
    http://server/_vti_bin/lists.asmx (We use static connection string instead of expression-based connection string now, as it is not supported to get fields based on expression-based connection string in design time. We will change it to be expression-based
    connection string later)
    Create the data set(as you have done using XML query language). Please use list name instead of GUID in the listName parameter.
    Design the report(e.g. Add controls to the report)
    Now, let's change the connection string to be expression-based. First, please add a parameter to the report, move this parameter to top. This parameter is used to store the sub site name.
    Open the Data Source editor, set the connection string to be: ="http://server/" & Parameters!parameterCreatedInStep5.value & "_vti_bin/lists.asmx"
    In the main report, pass the sub site name to the report we created above via the parameter created in step5
    That is all.
    Anyway, this is actually a SQL Server Reporting Service(SSRS) question. You can get better support on this question from:
    http://social.technet.microsoft.com/Forums/en/sqlreportingservices/threads
    For more information about Expression-Based connection string, please see:
    http://msdn.microsoft.com/en-us/library/ms156450.aspx#Expressions
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jinchun Chen
    Jin Chen - MSFT

  • Get Items from limited list by providing username and password - C#

    I'm using the code at the following link in order to get items from SharePoint list,
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.list.getitems.aspx
    I have a SharePoint list that limited to certain users.
    How can I provide by this code (or else) a username and password and log in as a different user who has access to this SharePoint list and get its items?
    Thanks!

    Sorry, previous post didn't see you were using client object model.
    Service.Credentials = (create new credentials passing username and password)
    ICredentials credentials = new NetworkCredential("Joe",SecurelyStoredPassword,"mydomain");
                math.Credentials = credentials
    Thanks!
    Actually, my full question already posted here:
    http:  //sharepoint.stackexchange.com/questions/84917/c-why-impersonation-is-expired-while-clientcontext-executequery-is-performe
    but I was unable to post it here as a new user (images, links, lenght ...) even the link above I was need to insert spaces after "http:" to be able to post it.
    Anyway, I don't know "client object model." am I using it?
    You mentioned "Service.Credentials", What do you mean "Service"?

  • Fastest way to get data from Multiple lists across multiple site collections

    HI
    I need to get data from multiple lists which spread across 20 site collections and need to show it as list view.
    I have searched on internet about this and got some info like options would be to use search core APIs or BCS . I can't use search because I want real time data. Not sure of any other ways.
    if anybody can provide ideas it would be help.

    Might LINQ be an option for you?  Using
    LINQPad and the
    SharePoint Connector, you should be able to write a query that'll retrieve this data, from which you can tabulate it.  I'm not sure how you'd be able to automate this any further so that it's then imported in as list.
    For something more specific, I used a third party tool called the
    Lightning Tools Lightning Conductor, which is essence a powerful content roll-up tool.  In one of my solutions, I created a calculated column that gave an order / ranking on each item, so that when lists were combined, they'd still have some form of
    order.  The web part is also fairly customisable and has always proven a useful tool.
    Hope that helps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Getting Dates from Calendar List

    If I input year as 2005 and month as Feb, I need to get list of all dates available in that year and month.
    How to get it from Calendar List?

    If I input year as 2005 and month as Feb, I need to
    get list of all dates available in that year and
    month.Calculating the days in the month for the particular year is not difficult. Once that is done, the logic is simple!
    Take a look at http://www.servletsuite.com/jsp.htm. It has some tags I suppose!
    How to get it from Calendar List?Would you be clear on what you really want?

  • Get information from multiple lists

    Hi,
    Environment: - SharePoint 2013
    Question :- My client needs a get information from multiple list from the same site to be displayed on the page, 
    they would need a dropdown list with the user names , and once a user is selected all the tasks and calendar entries of the user must be filtered and displayed.
    Please suggest how this can be achieved.
    Satyam.

    Hi,
    According to your post, my understanding is that you wanted to get information from multiple lists once a user was selected.
    There is no out of the box way to accomplish this with SharePoint.
    As a workaround, I recommend to create a list to store the user names. Then you can create relationships between lists using the browser UI. Once you select the user name in the parent list, the associated items will be displayed in the child lists.
    Here are two great articles for you to take a look at:
    http://office.microsoft.com/en-in/sharepoint-server-help/create-list-relationships-by-using-unique-and-lookup-columns-HA101729901.aspx#_Toc270607416
    http://msdn.microsoft.com/en-us/library/ff394632.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Purchase Req & Standard PO - Price is not getting Defaulted from Price List

    Dear All,
    Hope you are doing good!!!
    We are implementing R12.1 for one of our client. This query is pertaining to the Advance Pricing with Purchasing. Infact client wants to default the Purchase Requisition and Standard Purchase Order Price from Price List.
    I have done entire setup and defined ASL for this reason. But still price is not getting defulted from Contract Purchase Ageerement.
    What could be the reason. Its an standard fucntionality but still its not picking up.
    I would really appreciate if someone could help me on this. Its URGENT.
    Thanks in Advance.
    Thanks & Regards,
    Aditya

    Let us go through the steps involved in integrating Advanced Pricing with Purchasing so that we know if we have missed anything.
    1. Create Price Lists in Advanced Pricing.
    2. Setup Profile Options in System Administrator responsibility:
    QP: Licensed for Product - at Application: Purchasing level = Purchasing.
    QP: Pricing Transaction Entity - at Application: Purchasing level = Procurement
    ( Site level - ‘Order Fulfillment’ )
    Profile option can be set at site, application, and user levels.
    QP: Source System Code – at Application: Purchasing level = Oracle Purchasing
    ( Site level -- ‘Oracle Pricing’ )
    Profile can be set at site and responsibility levels.
    QP: Item Validation Organization - at Application: Purchasing level = null
    ( Site level -- specified in Financial Options )
    Profile option can be set at site and responsibility levels.
    3. Add item to the Price list Advanced Pricing ->Price Lists -> Price List Setup.
    Enter the item/price/dates etc.
    4. Create Contract Purchase Agreement.
    5. Create Approved Suppliers List. In the Source Documents, select the Type as Contract and reference the Contract Agreement Number.
    Create the Sourcing Rule and add the Rule to the Assignment Set.
    6. Create the Standard Purchase Order referencing the Contract Purchase Agreement in the Reference Documents.
    The Price listed should be defaulted from the Price Lists.
    Cross-Check the following steps and let me know if it still fails and we can try to resolve from then on :)

  • I have different TXT file in single folder from that that current date TXT files need to be get loaded into local database through SSIS Package

    Hi frds,
    I have fetched the TXT files through FTP from different location.All the file got loaded in my Local drive into single folder
    And in that  Folders i will have these kind of Files
    ACTEST00001_20141028_0405_INV.TXT
    ACTEST00001_20141029_0405_SL.TXT
    ACTEST00001_20141028_0405_SV.TXT
    ACTEST00001_20141029_0405_SV_APPT.
    And i need to load these only ''20141029'' files only.
    How can i do this in SSIS packege i need to skip rest all the files.
    I have attached the Structure of my SSIS packege.
    Please go through it and suggest me the solution please.
    Arunraj Kumar

    See
    this and
    this.
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Bridge- get photos from camera... no valid files found

    I am using Photoshop CS3 on a laptop with Windows Vista and a Canon 30D camera.
    When I go to Bridge > File > Get photos from camera > select Canon EOS 30D, I get the message 'No Valid Files Found'
    What are the possible causes? There are raw files on the CF that have not been downloaded yet. This is my first attempt at downloading the photos through Bridge. I normally use the Can EOS Utility.
    Thanks for the help.
    Dale

    edit: first answer deleted because this way of copying files was stated in your original post already, sorry.
    If you are able to copy one way or an other the RAW files to a folder on your PC then point Bridge to this folder and that should be working, Try also to purge cache for that folder and renew Bridge preferences.
    I use Mac and don't know the correct way to install ACR on a PC. Have you checked the plug in info in PSCS if your ACR version is shown in the list?

  • Is there anyway to create a xml file from a list so that xml file is available like an RSS.xml

    Hello
    My objective is to have a xml file created from a list for anonymous access.  The SharePoint RSS feed is a .aspx file not xml, as shown below: 
    _layouts/listfeed.aspx?List=21c2cdaa%2D52f3%2D4057%2Db674%2D45e63ba77e31&View=535eb328%2Db5fb%2D45c5%2D8fe8%2Da130e92afc41
    Also, is there a way to do this so that the xml content has current data like the list.
    Thank you for any insight and direction.

    Hi,
    According to your post, my understanding is that you wanted to create a xml file from a SharePoint list.
    To generate a XML file, we can use the SharePoint Object Model or PowerShell to achieve it.
    Generate a hierarchical XML file from SharePoint list using Client Object Model.
    http://maxderungs.wordpress.com/2012/05/12/generate-a-hierarchical-xml-file-from-sharepoint-list/
    Get SharePoint list items and export them to XML using PowerShell
    http://www.robertkuzma.com/2012/09/get-sharepoint-list-items-and-export-them-to-xml-using-powershell/
    More reference:
    http://www.robertkuzma.com/2010/08/how-to-create-a-custom-xml-output-using-sharepoint-services-3-0/
    http://traceynolte.com/blog/convert-sharepoint-list-to-xml/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Am I the only one getting calls from 253-802-0308 about malicious file downloads after updating FIREFOX?

    After updating Firefox I start getting calls from 253-802-0308 (International Telcom in Auburn Washington, found using 411.com). The report that they are getting messages that my Windows PC is reporting the downloading of malicious files. I don't think that there is a connection with Mozilla but it only started after I ran the last 2 or 3 updates to Firefox. Searches on Google and other search engines don't show logical connections to the phone calls and the problem being reported to me. None of my anti-virus programs, Ccleaner, DEFENDER & AVG pickup and malicious files. I'm curious about who they may be because when I question them during the calls they end up hanging up on me. Just wondering if similar problems are being reported.

    That is a reported scammer set-up. Read some of the following from actual phone customers. It is not related to your Firefox updates. I have gotten a few of these types of calls on my '''''unlisted '''''home phone number over the past several years. They use a dialer, usually automatic and sequential number dialing. Get a loud whistle to blow into the phone mouth piece or one of those loud air horns from the hardware/sporting good store; this kind of trash deserves broken ear drums.
    *https://encrypted.google.com/search?q=253-802-0308&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

  • How to get listitems from different lists using Js

    Hi,
    I want to search my web for all the lists that contains a certain checkbox column (get it by name).
    Once I have this list, I want to iterate through all of them and get the list items with this column checked.
    I got the lists, but when I tried to get the fields - I got an error - the system doesn't recognizes the fields.
    To be more specific - in the code I've posted below in method onGetFieldsSuccess I'm getting an error in the first line, as I can't retrieve the enumerator.
    In the MSDN I saw how to retrieve list's fields, but there it was a specific list. Is there a way to get the lists who have a specific field?
    Any help will be appreciated
    <script> 
    ExecuteOrDelayUntilScriptLoaded(showFavorites, "sp.js"); 
    var ctx;
    var lists;
    function showFavorites()
         ctx = new SP.ClientContext.get_current();
         var web = ctx.get_site().openWeb("/legal");
         ctx.load(web);
         lists = ctx.get_site().openWeb("/legal").get_lists();
         ctx.load(lists);
         ctx.executeQueryAsync(Function.createDelegate(this, this.onGetListSuccess), Function.createDelegate(this, this.onFail));
    var list;
    var fields;
    function onGetListSuccess(sender, args) {
              var listEnumerator = lists.getEnumerator();
              while (listEnumerator.moveNext()) {
                   list = listEnumerator.get_current();
                   ctx.load(list);
                   fields = list.get_fields();
                    ctx.load(fields , 'Include(Title)');
                   ctx.executeQueryAsync(Function.createDelegate(this, this.onGetFieldsSuccess), Function.createDelegate(this, this.onFail));
    function onGetFieldsSuccess(sender, args)
          var fieldEnumerator = fields.getEnumerator();
        while (fieldEnumerator.moveNext()) {
            var field = fieldEnumerator.get_current();
            var name = field.get_staticName();
            if (name == "MyFavorite") {
                alert(list.get_title()); 
                break;
    function onFail(sender, args) {
        console.log(args.get_message());
    </script>​​​​​​​​​​​​​​​​​​​​​​​​​

    Thanks a lot Thriggle,
    I've used your advise, and other then some syntax problems (as you predicted :) everything worked just fine!
    (I had to add another executeQueryAsync to get the listItems files - but that wasn't a problem).
    The only issue that I have is that it takes FOREVER to load, and once it does load - it returns duplicates of the same results (sometimes 3, sometime up to 10).
    I only have 13 tables with about 50 list items in each table, and from that only 6 tables have the specified field - so it shouldn't have taken THAT long (sometimes I see the results after 45 seconds after the page finished loading).
    should I have used a new client context for each query? or is there a place where I'm getting unnecessary loops (I've made sure that I have only 1 list item that matches the 
    I'm resending the complete code. maybe there's something I've missed here.
    <cfheader name="X-XSS-Protection" value="0"></cfheader>​​​​​ ​​​<script>
    ExecuteOrDelayUntilScriptLoaded(showFavorites, "sp.js"); 
    function showFavorites()
         var displayTable = document.getElementById("myFavoritesTable");
         for(var i = displayTable.rows.length - 1; i > 0; i--)
                displayTable.deleteRow(i);
       var fieldToLookFor = "MyFavorite";
         var ctx = new SP.ClientContext.get_current();
         var web = ctx.get_site().openWeb("/legal");
         var lists = web.get_lists();
         ctx.load(web);
         ctx.load(lists, 'Include(Title,Fields)');
         ctx.executeQueryAsync(Function.createDelegate(this, function(){
         var matchingLists = [];
         var listEnum = lists.getEnumerator();
         while(listEnum.moveNext()){
              var currList = listEnum.get_current();
              var containsField = false;
              var fields = currList.get_fields();
              var fieldEnum = fields.getEnumerator();
              while(fieldEnum.moveNext()){
                   if(fieldEnum.get_current().get_staticName() == fieldToLookFor){ containsField = true; break;}
              if(containsField){
                  matchingLists.push(currList.get_title());            
         //alert(matchingLists);
         var i = 0;
         while(i < matchingLists.length){
              var list = lists.getByTitle(matchingLists[i]);
              i++;
              var camlQuery = new SP.CamlQuery();
              var camlString = '<View><Query><FieldRef Name=\'' + fieldToLookFor + '\' /><Value Type=\'Integer\'>1</Value></Query></View>';
              camlQuery.set_viewXml(camlString);
              var items = list.getItems(camlQuery);
              ctx.load(items);
              ctx.executeQueryAsync(Function.createDelegate(this,function(){
                   var itemEnum = items.getEnumerator();
                   while(itemEnum.moveNext()){
                        var item = itemEnum.get_current();
                        var file = item.get_file();
                        ctx.load(file);
                        ctx.executeQueryAsync(Function.createDelegate(this,function(){
                        var table = document.getElementById("myFavoritesTable");
    // Create an empty <tr> element and add it to the 1st position of the table:
    var row = table.insertRow(-1);
    // Insert new cells (<td> elements) at the 1st and 2nd position of the "new" <tr> element:
    var cell1 = row.insertCell(0);
    var cell2 = row.insertCell(1);
    var cell3 = row.insertCell(2);
    var cell4 = row.insertCell(3);
    cell1.innerHTML = "XX";
    cell2.innerHTML = item.get_id();
    cell3.innerHTML = "<a href='" + item.get_file().get_serverRelativeUrl() + "' alt=''>" + item.get_file().get_name() + "</a>" ;
    cell4.innerHTML = "";
                     }),Function.createDelegate(this,function(sender, args){
                  alert(args.get_message());
              }),Function.createDelegate(this,function(sender, args){
                  alert(args.get_message());
    }), Function.createDelegate(this, function(sender, args){ 
         alert(args.get_message()); 
    </script>​​​​​ 
    <table id="myFavoritesTable">
       <tbody> 
          <tr valign="top" class="ms-viewheadertr"> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">שם טבלה 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">ID 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">כותרת 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> </td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
             <th nowrap="nowrap" class="ms-vh"> 
                <table> 
                   <tbody> 
                      <tr> 
                         <td width="100%" nowrap="nowrap" class="ms-vb">מסמך ​ 
                            <img src="/_layouts/15/images/blank.gif" height="1" width="13" alt="" style="visibility: hidden;"/> ​​​​​​​</td> 
                      </tr> 
                   </tbody> 
                </table> 
             </th> 
          </tr>
       </tbody> 
    </table>​ 
    <p>​​​​​​​​​</p>

  • Get elements from the list

    Hi,
    I get the Session list with this statement:
    session.list();
    To get it I used:
    session.get("username");
    I want to get username, userfirstname, and userlastname into
    separate TextInput UI components.
    Only what I have so far is lastResult for all three
    components.
    Could you please help me?
    Thanks,
    Slava

    Hi,
    Can you please clarify the following
    1. what is the format of the data in the lastResult
    2. what is this session.list(). Is it on the server?
    3. how are the userFirstname and other variables available to
    the Flex client
    4. If the values are coming from web server, How are
    accessing the web server and in format are the values returned.
    Thanks

  • Hoe to get data from basic list

    Hi,
    I have a requirement that, there are records in basic list about customer,after selecting the records from the basic list. run a transaction XD06 for this records using bdc,  how to get these selected records into a internal table to run a bdc.
    Regards & Thanks
    sai

    hi,
    u need to write code in user_command.
    U using ALV?
    Than here is code.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = 'ZALV_PRDS'
         i_callback_user_command           = <b>'USER_COMMAND'</b>          
         it_fieldcat                             = t_fcat
         i_save                            = 'A'
         it_events                         = t_eve
       TABLES
          t_outtab                          = itab
    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.
    FORM user_command USING u_com LIKE sy-ucomm sel_field TYPE slis_selfield.
      CASE u_com.
        WHEN '&IC1'.
          IF sel_field-fieldname = 'MATNR'.
            READ TABLE itab INDEX sel_field-tabindex.
            IF sy-subrc = 0.
              t_mat = itab-matnr.
              SET PARAMETER ID 'MAT' FIELD t_mat.
              CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "user_command
    Here i am retrieving selected matnr into t_mat...and using it i am calling 'MM03'.
    U have to give customer no into XD06 to skip first screen.
    For this u have to find parameter ID ( Find through Technical Info), in this case it is KUN so u have to use KUN in place of MAT...
    reward me back if not clear

Maybe you are looking for

  • Display image in report from BLOB

    Hi All, i have one requirement i.e i want to display image in a report base on condition like if id =1 then firest image, id = 2 then second image and id =3 then third image i have image in database in BOLB type i need to display in report based on t

  • Create a Fancy Custom Control

    I'm trying to create a fancy Custom Control for processing Cell Counter images.  I want a Control that lets me select two image types, Fluorescent or DAB, and if I choose Fluorescent, will let me pick Red, Green, or Blue. I created two Radio Button c

  • When iPhoto '11 crashes after importing photos and videos, they are gone. How can I retrieve them?

    iPhoto '11 randomly crashes after importing/editing/organizing photos and videos. When it does, photos and videos that I've been working on are gone. Pictures taken with iOS devices can be retrieved if they are still in Photo Stream, but videos are g

  • WAS 6.40 Java Edition - problems with j2sdk-1_4_2_10

    Just for info!   Several installations without success   VMWare 5.0.0   Windows 2003 SP1   j2sdk-1_4_2_10   2GB RAM     Steps 18 or 22 errrors.   Put j2sdk-1_4_2_08 - OK   cheers!

  • Can't authorize my iphone for iMessage

    My mother-in-law has a iPhone 3G with iOS 5.x and for some reason cannot get iMessage to work.  When you turn the switch "on" for iMessage it tires to authenticate the number but it fails.  Any ideas?