Multiple records one column separated by comma BUT!

Gurus,
I'm trying to write a SQL statement to insert multiple records in one column. I'm aware of the multiple String Aggregation Techniques out there BUT ...
This works like a champ!!!
select wm_concat(bnuinfc) as emp_id
from bnu,agr,baz
where bnunamc = bazbnunamc and
agrkeyi = bazagrkeyi and
agrkeyi = 21;
emp_id
70348,70111
But I get errors if I add multiple columns and joins
select distinct
katinac ,
prsvf2c ,
prsvf18c,
prsvf19c,
prsvf20c,
kvtbezc ,
artvf9c ,
artanrc ,
artvf6c ,
artbnrc ,
dokvf3c ,
prokeyi ,
probezc ,
doksnei ,
pagpags ,
wm_concat(bnuinfc) as emp_id,
dokkeyi,
dokdlad ,
agrbezc,
stabezc,
prsnums,
systimestamp
from art,aez,pro,dok,wob,sta,kat,prs,srz,bnu,agr,baz,pag,kvt,kav
where
artkeyi = aezartkeyi and
prokeyi = aezprokeyi and
aezkavkeyi = artkavkeyi and
aezkavkeyi = katkavkeyi and
prokatkeyi = katkeyi and
kavkvtkeyi = kvtkeyi and
katkeyi = kavkatkeyi and
prokavkeyi = katkavkeyi and
prskavkeyi = artkavkeyi and
dokkatkeyi = katkeyi and
wobobjkeyi=dokkeyi and
pagdokkeyi = dokkeyi and
prosnei = doksnei and
prosnli = doksnei and
UPPER(DOKNLBC) = bnunamc and
bazagrkeyi = agrkeyi and
agrkeyi = 21 and
prokatkeyi = dokkatkeyi and
probezc <> '---Page element---' and
wobvarkeyi=dokkavkeyi and
stakeys=srzstakeys and
srzrolkeyi = 70 and
wobstakeys=stakeys and
prsartkeyi = artkeyi;
ORA-00937: not a single-group group function - Not really sure how this needs to be done!
How do I get this to work with mulltiple columns and joins on the bnuinfc column??? Is there a better method?

Hi,
Don't use wm_concat. It's undocumented, so it could disappear in the next version of Oracle, or it could do something slightly different, which you might not notice until you've gotten wrong results for months.
If you like wm_concat, then install and use STRAGG, which you can copy from
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2196162600402
Stragg seems to do the same thing as wm_concat. (Since wm_concat is undocumented, we can only guess at what it actually does. We can be sure what stragg dioes, and that it will keep doing exactly the same thing if we change versions.)
Either way, you're calling an aggregate fucntion, so everyhting in your SELECT clause has to be one of the GROUP BY expressions or an aggregate.
You could make a really big GROUP BY clause, but if you're joining tables, it may be simpler and more efficient to compute stragg in a sub-query, which just uses one table, and then join the results to the other tables.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Simplify the question as much as possible. I'll be you could get a good example of your problem using no more than 5 columns from 2 tables. (If you used scott.emp and scott.dept to illustrate the problem, you wouldn't even have to post sample data.)
Always say which version of Oracle you're using.

Similar Messages

  • Data Merge, multiple records, one text box, one page

    I need to my data to merge in one text box on multiple lines.
    Example:
    My TXT file:
    Name
    Mary
    Bob
    Paul
    I want my InDesign file to look like this: (one text box, one page)
    Mary
    Bob
    Paul
    I don't want multiple pages or multiple text boxes. I hope this makes sense.
    TIA

    Sorry, that's not how it works in Data Merge.
    Your list will require multiple records per page, or a restucturing of the data (a better choice, in this case) so you have Name1, Name2, Name3 or something similar.
    Have you considered just placing the text file?
    How many records are you really using?

  • CS4 Data merge: Multiple records One template Multiple docs

    I have 112 BCs to data merge, I'd like to import 10 records at a  time, into one business card template, and end up with 10 documents.  Then I can name them and go on my merry way to the next 10. Is this  possible? If I import them all at once I'll have 112 open docs and  that's just wrong on a myriad of levels..
    Thanks for any help!

    Take a look at the Data Merge Panel menu for the Content Placement Options, and enable and set the number desired in the Record Limit per Document field.
    This makes the assumption that all your BC data is in one source file for the merge.

  • Dual sourced part with multiple vendors - one vend no inspec required but

    inspection lot still being created, what is setup incorrectly?

    Hi
    In addition to above setup remember that Quality Info record is Vendor ,Material ,plant & rev level combination.
    That means the PO created must be  of the same revision with which info record is created,.
    Also Maintain Info record for the vendor-materila combination for which you don't need inspection & maintain "No Inspection"
    This will automatically put material to unrestricted after GR is created.
    Regards
    Sujit.

  • Sending multiple records one by one

    Hello friends,
    the source file data :
    +abcd
    ++item
    +++000|ZCQ|0000100013|0000100013|0000100013|
    +++001|12345||1|45DB011B-CC|45DB011B-CC||100|
    +++002|12345||1|45DB011B-CC|45DB0|11B-CC||100|
    the target side data should be
    +RFC
    ++<seg1>
    +++<item>
    ++++data
    ++<seg2>
    +++<item>
    ++++000|ZCQ|0000100013|0000100013|0000100013|
    ++<seg2>
    +++<item>
    ++++001|12345||1|45DB011B-CC|45DB011B-CC||100|
    ++<seg2>
    +++<item>
    ++++002|12345||1|45DB011B-CC|45DB0|11B-CC||100|
    FCC parameters given :
    ignoreRecordset:true
    endseperator : nl
    please help me how do I do this?

    Hi,
    In FCC Parameters u will to give recordsetPermesage value 1.If u give it is * then it will pick all the messages at atime.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Check Above links for FCC.
    Regards,
    Phani
    Reward points if Helpful

  • Music disappearing to cloud/multiples of one song/entire album gone but one song and not in cloud

    I noticed yesterday that some of my music has disappeared into the cloud and it shows 9 copies of that one song when I only have one and another entire album is gone except for one song and the rest of the album that disappeared is not in he cloud. How can I get this fixed?? does anyone know why it's doing this? Can I get the album back that has disappeared? Is anyone else having this issue??

    Could be a corrupt download of that Song...
    If you live in a Region that allows re-downloading Music...
    Delete the Song(s) and re-download...
    See Here  >  Download Past Purchases
    http://support.apple.com/kb/HT2519
    If not... Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • Collecting data from multiple rows into one column

    I'd like to run a query and put a collection of items into one output column instead of multiple rows. See the example below:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Prod
    PL/SQL Release 10.2.0.5.0 - Production
    "CORE     10.2.0.5.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.5.0 - Production
    NLSRTL Version 10.2.0.5.0 - Production
         CREATE TABLE "SKIP"."INGREDIENTS"
       (     "INGRED_ID" NUMBER,
         "INGRED_NAME" VARCHAR2(20 BYTE),
         "STORES" VARCHAR2(20 BYTE)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.INGREDIENTS
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (1,'SEA SALT','Food lion');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (2,'TABLE SALT','Food lion');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (3,'FLOUR','Piggly Wiggly');
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (4,'YEAST',null);
    Insert into SKIP.INGREDIENTS (INGRED_ID,INGRED_NAME,STORES) values (5,'BEER','ABC Store');
      CREATE TABLE "SKIP"."PRETZELS"
       (     "PRETZEL_ID" NUMBER,
         "PRETZEL_NAME" VARCHAR2(20 BYTE),
         "PRETZEL_DESC" VARCHAR2(100 BYTE)
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.PRETZELS
    Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (1,'CLASSIC','Classic knot pretzel');
    Insert into SKIP.PRETZELS (PRETZEL_ID,PRETZEL_NAME,PRETZEL_DESC) values (2,'THICK STICK','Straight pretzel, abt 1/2" in dia');
      CREATE TABLE "SKIP"."INGRED_XREF"
       (     "PRETZEL_ID" NUMBER,
         "INGRED_ID" NUMBER
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS" ;
    REM INSERTING into SKIP.INGRED_XREF
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,1);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,2);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (1,4);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,2);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,3);
    Insert into SKIP.INGRED_XREF (PRETZEL_ID,INGRED_ID) values (2,5);
    --  Constraints for Table INGRED_XREF
      ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("PRETZEL_ID" NOT NULL ENABLE);
      ALTER TABLE "SKIP"."INGRED_XREF" MODIFY ("INGRED_ID" NOT NULL ENABLE);
    {code}
    Desired output (note how the ingredients are all listed in one column, separated by commas):
    {code}
    PRETZEL_ID PRETZEL_NAME     PRETZEL_DESC                        INGREDIENTS
    1          CLASSIC          Classic knot pretzel                SEA SALT, TABLE SALT, YEAST
    2          THICK STICK      Straight pretzel, abt 1/2" in dia   TABLE_SALT, FLOUR, BEER

    See the FAQ : {message:id=9360005}
    Especially links concerning string aggregation.

  • Multiple parameters one row for each record

    I have this query I want the user to be able to allow the user to enter multiple MATL_CODE_MOD as a parameters, the problem is that the GURMAIL table have multiple records one for each GURMAIL_MATL_CODE_MOD, so it will give me duplicates.. How I can code this, so I can allow the user to enter multiple MATL_CODE_MOD codes, and have only one row for each record...
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    select
    spriden_id,        
    spbpers_name_suffix   name_suffix,
    spbpers_name_prefix   name_prefix,
    spriden_last_name     last_name,
    spriden_first_name    first_name,
    spriden_mi            mi,
    srbrecr_term_code,
    srbrecr_majr_code,
    srbrecr_program_1,
    saturn_midd.utlq.f_matl_code_type(srbrecr_pidm)
    FROM
    saturn.srbrecr,
    saturn.spriden,
    saturn.spbpers,
    SATURN.SPRADDR,
    general.gurmail
    WHERE
    spriden_pidm = srbrecr_pidm
    and gurmail_pidm = spriden_pidm
    AND spriden_pidm = spraddr_pidm 
    --and srbrecr_term_code = decode(p_term  ,'%',SRBRECR_TERM_CODE,p_term)
    and spbpers_pidm = spriden_pidm
    and spriden_change_ind is null
    --and gurmail_matl_code_mod
    and SRBRECR_PROGRAM_1 = 'CMQ'
    and GURMAIL_MATL_CODE_MOD in ('8IBC','8IBD')
    --AND SPRADDR_ATYP_CODE = 'CM'
    AND SPRADDR_STREET_LINE1 IS NOT NULL;

    Hi,
    SELECT DISTINCT ...will keep duplicate rows out of the result set.
    Depending on your data, another possibility might be to not join the table that contains GURMAIL_MATL_CODE_MOD. Do an EXISTS sub-query on that table instead.
    If you need more help, post some sample data from all the tables, and the results you want from that data.
    Simplify, if possible, You can probably post a problem with 2 or 3 tables, each with 2 or 3 columns, that will have the same answer.
    Edited by: Frank Kulash on Apr 22, 2009 2:28 PM

  • Multiple records in one row

    Hi all,
    I want to display all the party codes which have same party name,
    and I want to display all the party codes in one row separated by comma. is it possible?

    You can either use analytic functions + hierarchy or stragg (listagg if you are on 11.2) or undocumentd wm_concat. There are plenty examples on this forum. For example:
    select  deptno,
            ltrim(sys_connect_by_path(job,','),',') job_list
      from  (
             select  deptno,
                     job,
                     row_number() over(partition by deptno order by job) rn
               from  emp
      where connect_by_isleaf = 1
      start with rn = 1
      connect by deptno = prior deptno
             and rn = prior rn + 1
        DEPTNO JOB_LIST
            10 CLERK,MANAGER,PRESIDENT
            20 ANALYST,ANALYST,CLERK,CLERK,MANAGER
            30 CLERK,MANAGER,SALESMAN,SALESMAN,SALESMAN,SALESMAN
    select  deptno,
            rtrim(stragg(job || ','),',') job_list
      from  emp
      group by deptno
        DEPTNO JOB_LIST
            10 MANAGER,PRESIDENT,CLERK
            20 CLERK,ANALYST,CLERK,ANALYST,MANAGER
            30 SALESMAN,MANAGER,SALESMAN,SALESMAN,CLERK,SALESMAN
    select  deptno,
            wm_concat(job) job_list
      from  emp
      group by deptno
        DEPTNO JOB_LIST
            10 MANAGER,PRESIDENT,CLERK
            20 CLERK,ANALYST,CLERK,ANALYST,MANAGER
            30 SALESMAN,MANAGER,SALESMAN,SALESMAN,CLERK,SALESMANSY.

  • Data merge CS5, will not create multiple records.

    I have my base elements on the master page and two text boxes on page 1 on of a single page document. I am creating raffle tickets so there is box on the left side of the page and the right side of the page. I need this step 3 times down the sheet.
    I've tried using a comma delimited and tab delimited file. These files have two columns with numbers 1-500 and each with a different heading. Ticket 1 and Ticket 2.
    When I turn on multiple records nothing step and repeats. It looks exactly the same as a single record. I make raffle tickets like these quite often but the template I've used for the last few years is 1 up, built to the size of the ticket, and everything works great. I end up with 500 pages, send through our impositioning software then print.
    In this case, my client wants to print the files themselves and have them stepped up 4 per sheet.
    Does anyone know what I might be doing wrong?
    Thanks!

    When I read the third line of Kimberli's email, I thought of this article from my blog which might help if the artwork was set up as it was in previous years (i.e. 1up)
    http://colecandoo.wordpress.com/2011/10/28/theres-more-than-one-way-to-cut-and-stack/
    It takes the 1-up PDF and allows it to be placed into InDesign as it it were prepared in an n-up imposition.
    It isn't a fix to the multiple record issue that the OP has, but rather a workaround.

  • Inserting multiple records into a database from a table

    I have a dynamic table with rows upto 10. i am trying to insert all the records in these rows into a database ( msaccess)
    table name: Table1 ( in my form )
    Database table : movies_comments ( as posted in stefan's forums ).
    table columns: username, movieid, comments
    i am using the following code.
    Database.ExecSQL() function is as posted in stefcamerons forums.
    var tlength = xfa.resolveNode("form1.#subform[0].Table1.Row1[*]").length;
    xfa.host.messageBox("tlength is :" +tlength);
    for ( var i = 1; i <= tlength; i++)
    var username = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].user_name").rawValue;
    var movieID = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].movie_id").rawValue;
    var commentS = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].comment_").rawValue;
    Database.ExecSQL("INSERT INTO movie_comments (username, movieId, comment) VALUES ('username','movieID', 'commentS');");
    i am trying to insert multiple records using the code above. But i am getting error
    GeneralError: Operation failed.
    XFAObject.resolveNode:1:XFA:form1[0]:#subform[0]:Button1[0]:click
    SOM expression returned list when single result was expected
    suggest me an alternate way to insert multiple records from a table into a database.
    thank Q

    figured it out. I changed the ...OR (alternative names = colname) in the recordset to ...OR (alternative names LIKE %colname%). Works like a charm now- the result of a good night's sleep.

  • File Adapter - Multiple Record Types to same Target

    I am currently reading in a fixed length file and loading into a table.
    The issue is, some of the lines in my file differ by two spaces at the end. See example below.
    For example,
    Record 1 might look like :
    DD/MM/YY - length of 8
    Record 2 might look like:
    DD/MM/YY{space}{space} - length of 10
    and they both go into the same date column of my target
    Question 1) Is there a way for BPEL to skip the two spaces at the end of each line for Record 2
    Queston 2) I have currently created multiple record types for the two types but it won't allow me in my transformation to map them both to the "date" column in the target table. It says multiple nodes cannot be mapped to the target
    Any help would be appreciated.

    Hi,
    Unfortunately the IKM SQLDR doesn't have the "when" condition to be wrote at ctl file.
    If you wish a simple solution, just add an option (drop me a email if you want a LKM with this)
    The point is:
    With a single option, you will control the when ctl clause and, for instance, can define:
    1) create 2 datastores (1 for each file)
    2) the first position will be a column at each datastore
    3) write the when condition to this first column at the LKM in the interface.
    Does it help you?

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • How to get keep one column as a key and the other columns as a array list

    Hello,
    I am really new to Java...I am trying to read a text file containing different columns separated by comma and then create a hash map for the first column (key) and then rest as a array list for the key.I am not able to create the hash map and the corresponding key.Could someone help me in this regard.
    The text document is :
    AcctNo,AcctMngr,AcctType,ProdList,Volume,AcctPrice,Returns
    12345,Vikram,2,MSFS:IBM:XYZ:MAN,28000,4500,1.25
    53278,Anand,1,PLYS:AIX:YET:WON,85000,8500,2.32
    94005,Vincent,3,UTIL:FLY:YEL:WIN,67000,5600,3.21
    45000,Abhishek,2,WENS:KYL:MEN:ABS,34000,9800,4.21
    76000,Chris,3,MENS:IBM:ROC:QUE,25000,2500,2.15
    67000,Kiran,4,FORS:ITI:MOC:REM,32000,3500,1.54
    87000,Rohit,2,MSNF:IIT:HOT:ROC,54000,5400,4,23
    45600,Sathyan,3,HELP:FOR:PRO:GRA,65000,3400,2,1.98
    84600,Vinay,4,PLZE:TES:ROC:WEN,76000,7300,3,4.32
    65000,Venkat,2,HETT:WEL:SEE:RED,89000,9800,1,3.23
    and the code which i have so far is
    import java.io.*;
    import java.util.*;
    class SearchHash {
    public static void main (String args[]) {
    int i=0;
    int j=0;
    Object newKey = new Object();
    Object newValue = new Object();
    Map map1 = new HashMap();
    ArrayList a1 = new ArrayList();
    String val;
    try {
    BufferedReader br1 = new BufferedReader ( new FileReader ( new File ("progress.txt")));
    String s="";
    s = br1.readLine();
    while (s!=null) {
    StringTokenizer st = new StringTokenizer (s ,",");
    int k=0;
    while (st.hasMoreTokens()) {
    while (k<=6) {
    val= st.nextToken();
    if (k==0) {
    newKey = val;
    else{
    newValue = val;
    a1.add(newValue);
    k = k+ 1;
    map1.put(newKey,a1);
    map1.put(newKey,a1);
    a1.clear();
    s = br1.readLine();
    // System.out.println(map1);
    }catch (Exception e) {
    System.out.println("Exception Raised : " + e);
    Thanks.,...

    Array? Don't live in object denial. Define a class (Account?) and parse each line as an Account object. Then you put them into a Map<Integer, Account> by their account number.

  • Fields separated by comma using GUI_DOWNLOAD

    Hi All,
      I want to download internal table data separated by comma.
    I am using GUI_DOWNLOAD function module.
    I am using separator as comma,but still the data is getting downloaded as Tab delimited.
    Please let me know what needs to be done.
    Thanks,
    SP
    <thread moved, has nothing to do with ABAP Objects. Please choose your forums more carefully in future>
    Edited by: Mike Pokraka on Aug 18, 2008 3:09 PM

    Hi,
    Check this sample code,
    TYPES:
      BEGIN OF type_itab1,
        string TYPE string,
      END OF type_itab1.
    DATA:
      BEGIN OF itab OCCURS 0,
        vbeln  LIKE vbap-vbeln,
        posnr  LIKE vbap-posnr,
      END OF itab.
    DATA:
       wa_itab TYPE type_itab1,
       itab1   TYPE STANDARD TABLE OF type_itab1.
    SELECT vbeln
           posnr
        UP TO 5 ROWS
      FROM vbap
      INTO TABLE itab.
    SORT itab.
    DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS.
    LOOP AT itab.
      CONCATENATE itab-vbeln
                  itab-posnr
             INTO wa_itab-string
             SEPARATED BY ','.
      APPEND wa_itab TO itab1.
    ENDLOOP.
    CHECK sy-subrc EQ 0.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
    EXPORTING
    FILENAME = 'D:\temp\test.txt'
    WRITE_FIELD_SEPARATOR = ','
    FILETYPE = 'ASC'
    CHANGING
    DATA_TAB = itab1.
    Regards
    Adil

Maybe you are looking for

  • No audio via Mini-DisplayPort. MBP 5,5

    Hello, I have the MBP 5,5 and I am trying to connect it to my TV via the Mini-DisplayPort HDMI adpater. I am getting video but not audio any idea? Any help is appreciated. Thanks,

  • Why is the bookmark toolbar only visible in my original window?

    A typical example: I click on a link and a new page/site opens in a different window--I wasn't paying enough attention to click & press command so I could get a new tab instead. Except the bookmarks bar, everything looks the same--even "bookmarks too

  • Sapinst import support package 19

    Hi, While I am doing import support package 19 though sapinst below error is occuring: ERROR 2007-06-15 03:34:44 MUT-03025  Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined. ERROR 2007-06-15 03:34:44 MUT-02041  SDM call

  • T420 Displaypor​t - do I have to enable it?

    Hi, do I have to enable the Displayport in my T420 somehow? I am using W7 32-bit and cannot find any reference to the displayport anywhere to know whether it is on and working. Thank you for your help.

  • Re: How to display single I / P Frames with Dripfeed

    Thanx Steve and Jean Luc! I did use single MPEG-2 files to feed to the Player, but I couldn't save single P-Frames as they always need an I-Frame in a GOP (I used TMPEGenc to build I-Frames). If you know a Tool to do that, I would be grateful if tell