Merging of same records in column

Hi All,
Can anyone pls tell me how to merge the same records in a column in ALV_Grid and also how to change the names of the column headings in output.
Regards,
Karthik

HI,
its not possible to merge the columns in ALV GRID. you can do it in your internal table by using the 'COLLECT' instead of 'APPEND'. then the same records will be merged.
OR
you can can take sub totals in ALV GRID on any column.
TO change the columns headings use the following.
<b>seltext_l   
seltext_m
seltext_s  </b>
Regards,
Wasim Ahmed

Similar Messages

  • Merging of same records in columns while printing

    Dear All,
    Kindly let me know how to merge same records in a column while printing.
    I used ALV_GRID_DISPLAY and merged using sort in LIST but not able to get the same while printing.
    Regards,
    Karthik

    Hi Karthik,
          Check this link which deals with printing the Report while creating Report and after execution of the Report.
    Path:
    BC ABAP PROGRAMMING->ABAP USER DIALOGS->LISTS->PRINTING LISTS.
    Link:
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/9f/dba54635c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_46c/helpdata/en/9f/dba54635c111d1829f0000e829fbfe/content.htm</a>
    Cheers,
    Prashanth

  • I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro D

    I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro DC has limitations. There is no way to define what points in columns to force break column? Nor create many columns that are useless? How does text to column in Excel, fixed size when we import text, and define where the breaks have columns?
    Google Tradutor para empresas:Google Toolkit de tradução para appsTradutor de sitesGlobal Market Finder
    Desativar tradução instantâneaSobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar feedback

    PDF does not contain columns, rows, formats, styles, or other aspects of word processing or spreadsheet file formats.
    This is because PDF is decidedly not a word processing or spreadsheet file format or something "like" one of those.
    (see ISO 32000 for what PDF "is")
    What can optimize the export of PDF page content is to start with a well-formed tagged PDF (ISO 14289-1, PDF/UA-1 compliant).
    Without that export is what it is and one performs whatever content cleanup is needed using the native application for the export file (MS Word or Excel).
    Be well...

  • Insert and update same record of table using store procedure in oracle 10g

    Hi,
    I am using oracle sql developer for this.
    I have created Store procedure which run after every 30mins of interval.
    the problem is Ii need to insert data for first time of day then later that same record should update for particular field(here its plan code).
    if new field is coming (if new plan code is generated) then it should insert data and again update same for interval.
    means for each plan individual record(i.e. plan wise summary) should be there for only a day. next day new record for same plan.

    Hi,
    You should use Merge like shown below:-
    Merge into original_table a
    using second_table b
    on (a.primary_key=b.primary_key and a.primary_key........)
    when match then
    update set column_list=b.column_list
    when not match then
    isert into (column list)
    values(a.column_list)If you dont know much about merge then follow below link..
    http://www.oracle-developer.net/display.php?id=203
    http://www.oracle-base.com/articles/10g/merge-enhancements-10g.php

  • FindByProperty Returns Same Record Twice

    I have a curious situation in which the findByProperty method is returning the same record twice. I have only two records in the file for this test, and they are both tied to the same contact ID. But, instead of bringing back both records, it brings back the first record twice. Any ideas?
    ContactNote entity
    @Entity
    @Table(name = "CONTNOTEP", schema = "CRMLIB", catalog = "S657567F", uniqueConstraints = {})
    public class ContactNote implements java.io.Serializable
         // Fields
         @Id
         @Column(name = "CONTACTID", unique = false, nullable = false, insertable = true, updatable = true, precision = 5, scale = 0)
         private Long                    contactId;
         @Temporal(TemporalType.DATE)
         @Column(name = "CNDATE", unique = false, nullable = false, insertable = true, updatable = true, length = 10)
         private Date                    lastUpdatedDate;
         @Temporal(TemporalType.TIME)
         @Column(name = "CNTIME", unique = false, nullable = false, insertable = true, updatable = true, length = 8)
         private Date                    lastUpdatedTime;
         @Column(name = "CNNOTE", unique = false, nullable = false, insertable = true, updatable = true, length = 100)
         private String                    note;
         @Column(name = "CNSALMNUM", unique = false, nullable = false, insertable = true, updatable = true, length = 2)
         private String                    salesmanNumber;
         @ManyToOne(fetch = FetchType.LAZY, cascade = {})
         @JoinColumn(name = "CONTACTID", insertable = false, updatable = false)
         private Contact                    contact;
         @Transient
         private GregorianCalendar     date;
    ContactServiceImpl
         public List<ContactNote> getContactNotes(String sessionId, Long contactId) throws AuthenticationFault
              authenticateSession(sessionId);
              List<ContactNote> contactNoteList = contactNoteDao.findByProperty("contactId", contactId);
              if (contactNoteList.size() == 0)
                   ContactNote contactNote = new ContactNote();
                   contactNoteList.add(contactNote.defaultContactNote());
              return contactNoteList;
    JUnit Test Method
         @SuppressWarnings("unchecked")
         public void runGetContactNotes() throws Exception
              UserDao userDao = (UserDao) applicationContext.getBean("userDao");
              User user = userDao.login("[email protected]", "password");
              assertNotNull(user);
              ContactService dao = (ContactService) applicationContext.getBean("contactService");
              List<ContactNote> contactNoteList =
                   dao.getContactNotes(user.getSessionId(), 1276L);
              for (ContactNote note : contactNoteList)
                   System.out.println(note.getContactNoteId() + " " + note.getNote());
    Results of Test
    [TopLink Fine]: 2007.10.02 08:50:30.988--ClientSession(7339385)--Connection(6964063)--Thread(Thread[main,5,mai
    n])--SELECT CONTACTID, CNTIME, CNNOTE, CNDATE, CNSALMNUM FROM CRMLIB.CONTNOTEP WHERE (CONTACTID = CAST (? AS B
    IGINT ))
         bind => [1276]
    1276 Jason requested to get Sinclair gift card "backs" because they have so many returned/used gift cards
    1276 Jason requested to get Sinclair gift card "backs" because they have so many returned/used gift cardsThanks for any help that can be provided. This has me stumped.
    R. Grimes
    Message was edited by:
    rdgrimes

    I was able to resolve this situation by splitting the ContactNote entity in two: ContactNoteId and ContactNote. I had combined them because it seemed kind of silly to have the id, date, time in the ContactNoteID entity, while the ContactNote entity just had two fields beyond the embedded id.
    R. Grimes

  • Unable to MERGE-Err Msg "MDM Server Failed to Merge the Selected Records"

    Hi Friends,
    I am using a Match Strategy in the Workflow. In the START Process of the workflow I CHECK OUT the records. In the step MATCH / MERGE when I try to MERGE similar records I get the Error Message "MDM Server Failed to Merge the Selected Records".
    But the same step works fine when I dont CHECK OUT (CHECK OUT = NO) the records in the START STEP. But this would not be the right way to do it, as the incoming duplicate records would be visible in the Data Manager by other users even before it is merged.
    Your inputs would be greatly appreciated to tackle this problem.
    Thanks.

    Hi Ravi,
    The workflow steps are as follows: (I am on MDM 5.5 and SP 6)
    Start (Check Out)   -
    > Process -
    > Validate -
    > Match    (Manual Merge)   -
    > Approve----
    > Stop    (Check In)
                                                                                    The Match and Merge step is a Manual step in the Workflow.
    I Check out the records when i start the Workflow and Once the entire process is complete I check in the record. What is happening is that it does not allow me to Merge the records and I get the Error message.
    If i dont Check out the Incoming records and run the workflow it Merges fine. But this would not be correct as the Incoming records(whihc could be duplicates) would be visible in the system until they are merged.
    Your Input woould be greatly appreciated.
    Thanks in Advance.

  • How to handle an update of the same record from two different user  in JSP

    how to handle an update of the same record from two different user
    how do you handle an update of the same record from two different users in JSP... if one person updates the record from one drop downs should be updated as well.. is the possible.

    Usually, if two users try to update the same row at the same time, you want the first to commit to succeed, and when the second commits, they should fail with the error that the row was being concurrently updated. They you may want to show them the new row values and give them the opportunity to merge their values with the new row values...
    How can you achieve this? Google optimistic locking.

  • Merge Data Multiple records problem (repeats data)

    I'm tring to creat some cataloge pages with 4 images, codes, dicritons etc per page.
    i have a excel sheet which I've saved to a CSV file for a data source. i have a single page with the first record at the top and enogh room to repeat the record 4 times on the page. When I do the data merge I'v selected multiple records per page and put in all the settings and spacings I want.
    Everything looks fine when i click on the multiple reports prevew but when i do the actual merge most of the merges copy the same data with only a few records using different data. It's generating the correct number of records and pages with 4 records per page but repeatiing the same record,except for 2 records which were different before going back to the repeated record. Also the record it repeats is not the first record on the list, it's about the 6 of 16.
    I'm using CS5 version of Indesign.
    Any one have any sugestions to get it working corrctly or is this a fault wiyh CS5?

    Data SourceBefore MergeDuring mergeAfter Merge Page 1After merge Page 2After merge Page 3
    Thanks John seamed to help usiing PNG also made a difference shifting fiiles from our network drive onto personal desktop. As you can see attached are the screen shots.

  • Why two remote keys are genrated in data manager when i'm syndicating the same records twice

    Hi Experts,
    Please guide me that will there be any problem if two remot keys are getting generated for the same system thougt we are expecting to update the same Business Partner Number in ECC.
    Also We are able to see two different business partner number(in ECC this is KUNNR in KNA1)
    Please guide me how to proceed so that when we syndicate the same set of records we want to get update the records in ECC for the same KUNNR.
    We don't want to get another KUNNR for the same records.
    Thanks!
    Pankaj

    "barbara" wrote in message
    news:506500000008000000FAC20000-1077587809000@exch​ange.ni.com...
    > I'm using the simulation interface toolkit V2.0 but it works only the
    > first time after the installation. When I restart again my computer it
    > doesn't work any more. Why??????????
    >
    ---snip
    I am not familiar with the different software that you mentioned but as a
    first step I would check compatibility which is done as below:
    Get original operating system CD that was used to install Windows XP on the
    machine in your post. When Windows XP is inserted into CD ROM drive it
    normally will ask you to conduct compatibility check for the current
    installation. See what it says.
    HTH
    Mohan Pawar
    ----snip

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • Return to same record on previous page after using form

    Hi,
    I have an application that contains a table with tasks and subtasks (which are linked to a task), and for every task, there is a 'add subtask' link, which links to a form where I can create new subtasks for that task.
    My problem is that when I have created a new subtask, and return to the previous page (with the overview of tasks and their subtasks) automatically by clicking the 'create'-button, that the report starts again at line 1. I would like it to go back to the same task for which I just added a subtask.
    In my search for the answer, I came across these two discussions on this forum:
    Re: navigate to previous record
    after edit, return to the table where the record is at the same position
    I tried to implement the solution they came up with in those discussions, but it didn't work for me.
    The reason of this might be:
    - It are old discussions, maybe some things have changed
    - I use a standard report with custom template, they do not
    - My link is on a field that has the same value for all records, being just a text item 'Add subtask', in the other discussions they made the link on an actual DB-field, in my case this would be for example task_id.
    When I try to implement the solution on the second forum exactly (well, not exactly, I did of course adapt this to my situation), there is one step which doesn't work for me. It's the very last step:
    "With these values: #LINK_&P2_EMPNO."
    When I put the # in there, the button deletes all the information about the link when I click 'Apply changes'. When I don't use the # (just LINK_&P2_EMPNO.) he doesn't delete the information, but the link to the same record doesn't work.
    This is how I implemented it:
    Source page (overview of tasks and subtasks):
    Link attributes: LINK_#TASK_ID#
    Target: Page in this application     Page: 4 (form)
    Item 1: Name: P4_TASK_ID, Value: #TASK_ID#
    Item 2 (not important for returning to the source page): Name: P4_YEAR, Value: #YEAR#
    Item 3 (not important for returning to the source page): Name: P4_TEAM, Value: #TEAM#
    Target (form):
    Action when button clicked: Redirect to page in this application
    Page: 3 (source page)
    With these values: LINK_&P4_TASK_ID.
    It doesn't return to the correct record, but the task_id is included in the link as follows (when I tried to create a new subtask for task 02.01.08 and returned to the source page) f?p=37080:3:5503066190863::NO:::LINK_02.01.08 which is almost the same as they say in the discussion: f?p=&APP_ID.:1:&SESSION.::&DEBUG.:2::#LINK_&P2_EMPNO. (missing the '#'-sign and 1 less ':' before the link-item though).
    Why isn't it working for me? How can I solve the problem?
    Could I get some help with this please? It would be a very useful functionality in my application as there are a lot of records.
    Thank you.
    Kind regards,
    NDG

    I'm new on Jdev, I'm Pl/sql developer learning Jdev ....
    I need to do this on the Task Flow Right? can you give me some stesp to follow?
    thank you

  • If variable name is the same as the column name in procedure ?

    If variable name is the same as the column name in procedure , What should i do?
    For Example :
    CREATE OR REPLACE PROCEDURE "TEST_PROC" (MIN_SALARY in UMBER)
    as
    begin
    INSERT INTO TEST SELECT JOB_ID,MIN_SALARY FROM JOBS WHERE MIN_SALARY = MIN_SALARY;
    end;

    You could follow a better naming convention and have the parameters to the procedures named in a way so as not to be confused with column names.
    You could prefix the variable names with the name of the procedure they appear in but then what if your have procedure names same as table names?
    SQL> create or replace procedure test_proc(sal in number) is
      2    cnt number ;
      3  begin
      4    select count(*) into cnt from scott.emp where scott.emp.sal = test_proc.sal ;
      5    dbms_output.put_line('cnt='||cnt) ;
      6  end ;
      7  /
    Procedure created.
    SQL> set serveroutput on
    SQL> exec test_proc(800) ;
    cnt=1
    PL/SQL procedure successfully completed.
    SQL>If you search you can find several posts here itself on naming convention to avoid such issues in first place.

  • Insert and delete same record from database immediately

    Hi,
    I am using Tomcat 4.1.12 and Oracle 9i. Since there is no transaction management in tomcat, except via third party tools, i have to do the following to simulate transaction management :-
    insert a particular record
    <some other problem occured so must...>
    Delete the same record (which i just inserted)
    However, my record was not deleted even though there is no error thrown out. everything seems to work perfectly. Is it because i just inserted the record and then straight away deleted that's why the delete fails to delete ? I tried to setAutoCommit(false) and then commit in the delete method, but it fails. I also tried to commit after i delete, and again, it doesn't work.
    What's the remedy ?
    Thanks!

    if i am using a datasource, is that considered as a
    connection pool ? (I dont think so ? )
    Will the code work in Tomcat since there is no
    transaction management ? Thus, without transaction
    management(explicitly have a start transaction) will
    the concept of commit and rollback still be applicable
    ?Sorry for delay - I only pop into the forums occassionally.
    It seems to me that Tomcat is not your issue with regards to transaction management. You just need to manage transactions at the application level. A more relevant question is what DBMS are you using and does it support setAutoCommit, commit, or rollback using a JDBC connection?
    A connection on a datasource (DSN) is not a pool, but just a single connection. Many different threads/clients may want to use a connection to perform a transaction. You need to manage/control concurrency on your connection(s) to avoid a situation where 2 separate clients are using the same connection to perform transactions at the same time.
    The concept of commit and rollback are totally relevant here and have nothing to do with Tomcat, but with the underlying DBMS. If a client calls setAutoCommit, commit, or rollback, it will cause the DBMS commit or rollback all statements processed by the connection since the last commit. If 2 clients are using the same connection it is possibile that 1 client can accidentially commit or rollback another client's transaction.
    The jdk 1.4 javax.sql package contains classes that provide implementations for management of connection pools, although I have not used them yet as I have previously coded my own.

  • Suggestion for not picking up the same record

    Hi All,
    I have a plsql procedure that picks up the records from the same table from multiple threads. Different threads should not pick up the same record.
    Current Logic:
    I am locking the row that has been picked up the current thread and the next thread should pick up the next row but unfortunately i have a problem here, The inner query will pick up the same record until the status of that particular row is changed since I am picking them up in a FIFO order.
    I am not able to add the lock row in the inner query since oracle does not support it. Is there any other way to do it simpler?
    XXRM_ARM_HEADER
    header_id
    service_id
    XXRM_ARM_LINES
    line_id
    header_id
    status
    Query
    SELECT dl.header_id, dl.line_id
    FROM xxrm_arm_header dh, xxrm_arm_lines dl
    WHERE dh.header_id = dl.header_id
    AND dh.service_id = 4
    AND dl.status = 'REQUEST_RECEIVED'
    AND dl.line_id = (SELECT LINE_ID
    FROM ( SELECT dl.line_id
    FROM xxrm_arm_lines dl,
    xxrm_arm_header dh
    WHERE dh.header_id = dl.header_id
    AND dl.status = 'REQUEST_RECEIVED'
    AND dh.service_id = 4
    ORDER BY dl.line_id ASC)
    WHERE ROWNUM = 1)
    FOR UPDATE OF dl.status NOWAIT SKIP LOCKED

    Robert Angel wrote:
    forgive me if I am naive, but why wouldn't each thread updating its selected rows with a nowait and if exception pick the next range mechanism work?It is not that simple. You can get race conditions between threads as they process the same rows in the same order attempting to "beat" one another by being the first to lock it. The more threads there are, the potentially worse this situation.
    There's also the issue of performance. The thread concept (aka parallel processing) in this respect has a single primary aim. Increase performance and scalability. But does it?
    How is I/O reduced when 50% or more of the reads done by the thread (to find a row to process) is wasted I/O as rows being read have already been locked by other processes/threads?
    The fact remains that if you give the same set of rows to a bunch of threads (e.g. DBMS_JOB processes) for processing, they will contend for the same rows. There will be overheads. There will be wasted I/O.
    So what I am suggesting is each thread; -
    1. Look for rows unprocessed, I usually use atribute field in e-Business suite for this purpose
    2. Attempt to update them with nowait, to INPROCESS
    3. If 2 fails, try the next range - repeat until 2 is possible or end of rangeAnd step 3 is the one that will waste I/O and waste time - as the time it spend looking for a row to process could have been spend on actually processing a row.
    4. You could also improve this by specialising each thread to have its own preferences, if there exists a mechanism that would mean fair distribution between the threads..Yes, and this is a key factor to removing contention between threads, reducing their I/O overheads and reducing their time being spend on finding unprocessed rows to lock and process.
    Then there's Oracle technical issues. On 11gr2 for example, despite using skip locked or nowait (that cannot be used together in a single clause like in 10g), I'm seeing deadlocks when threads contend for the same rows. Same code works fine in 10g without deadlocks. So the approach one chooses need careful testing on that specific Oracle version to ensure it behaves as expected and meets the performance requirements.
    Bottom line is that parallel processing is not as straight forward as simply slapping a nowait clause onto a select statement in order to skip locked rows.

  • Trying Multiple File Uploads for the same record

    Okay I"m trying to upload 3 images on a form that will go
    into my gallery. Image types are jpg,gif,eps. What I've got to work
    so far is for all three images to upload to my server which is
    great, However when I look into my table, all three images are the
    eps image. What's wrong with this code? Again I don't won't
    separate records, just the ability to load 3 different images in
    the same record in my table. See code below

    The FILE.ServerFile variable is only going to contain the
    information from the most recent <cffile> call.

Maybe you are looking for

  • Profile Manager - Why create Enrollment Profiles?

    So a similar question was asked previously: Why use an enrollment profile? I've read through it and I don't think the answers provided tell the whole story, so I'd like to ask again adding some of my own thought and clarifications on the previous thr

  • SAPScript graphic not printing

    Hi Folks I have a problem in a 3.1i system (yes that's right 3.1i - ah those were the days...I remember when..etc). I have changed a SAPScript layout (just the contents of a text element in the main window) and this works fine. However something is n

  • Regarding update statement

    Hi all, In this report when i click on update radio button and write my desk company code and code and and then press enter so all values coming on text box. now i want to update this one before its working fine but after i add at selection screen in

  • 503 Service Unavailable? unable open irj/portal and NWA for SAP CE 7.3 trial version

    Hi Experts, I am not able to open irj/portal and nwa for my recently installed SAP CE 7.3 trail version. Only start page is opening. SAP J2EE engine and data base is up and runing. 1. Time 2014 07 03 10:18:04:932 Severity Error Filename defaultTrace_

  • New 6301 Wallet & Screen saver

    I have just beeen upgraded from a 62301i, which I loved to a 6301. I'm afraid that my problems are a lot less'techy' than the ones you're used to and I hope someone can help. 1. My old phone had a wallet with a pin number, where I could store secure