Checkbox and 2 Textbox in the same line

Hi,
I am having a problem trying to show one checkbox and two textboxes at the same line,
the problem is with the text (comment) I want to display for each item.
when I try to activate or run  the report , I got this error message :
Error when generating the selection screen "1000"
SELECTION-SCREEN BEGIN OF LINE.
  SELECTION-SCREEN POSITION 1.
  parameters:
  ck1 AS CHECKBOX ,
  p_u  like rlgrap-filename  default 'C:\data\',
  p_ux(9) default '500'.
  "SELECTION-SCREEN COMMENT 4(10) text-c01 for FIELD ck1.
  "SELECTION-SCREEN COMMENT 17(10) text-c02 for FIELD p_u.
  "SELECTION-SCREEN COMMENT 30(10) text-c03 for FIELD p_ux.
   SELECTION-SCREEN end OF LINE.
I think the problem is with the position of the comment ?
how to fix this?
Thanks
Misbah

Hi  Misbah ,
i had faced a similar issue some months ago, following is the solution----->>>
SELECTION-SCREEN BEGIN OF BLOCK F WITH FRAME TITLE TEXT-014.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(18) text-015.
PARAMETERS : P_DNR(10) TYPE C.
SELECTION-SCREEN COMMENT 35(14) text-016.
PARAMETERS : P_ST  AS CHECKBOX.
SELECTION-SCREEN COMMENT 56(8) text-017.
PARAMETERS : P_IC  AS CHECKBOX.
SELECTION-SCREEN COMMENT 72(14) text-018.
PARAMETERS : P_CA  AS CHECKBOX.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK F.
OUTPUT LOOK AS BELOW------>>>>>
Debit Entry Number  ___________   Stock Transfer [ ]      IC Sales [ ]       Credit Allowed [ ].
HERE,  Debit Entry Number, Stock Transfer, IC Sales, Credit Allowed are the text sysmbols saved at 015, 016,017 and 018.
see the above code , the logic is the text stored in text 15 is of length 18.
after which i print a blank input field i.e the parameter p_dnr which is of length 10.
so now the next text or field has to be printed at 18 + 10 =  28.
so 28 or any number more than 28 should be the starting position of the next text or parameter or checkbox  , etc.
similarly u have to calculate the start position and end position  for all the selection screen variables ur printing in a line .
if the calculation goes wrong and variables in a line get overlapped on each other , then u get an error message as u r getting now.....something like selection screen error.
Regards,
Akash Rana

Similar Messages

  • BEX : report with real and budget on the same line

    Hi everyone,
    I need to create a Bex report showing on the same line :
    - budget WBS element stored in a DSO  (DataSource 0CO_OM_WBS_1)
    - used amount stored in another DSO   (DataSource 0FI_GL_4)
    Data are stored in 2 different DSOs.
    If a create a multiprovided with both DSOs I will get 2 lines in my report as axes are different,no ?
    Thanks for any idea.
    Aussie

    Hi,
    You can make use of infoset.You can also do a lookup from one dso to another ant transport the values in one dso.So by doin this alll your values will be stored in one place and then you can show the values in one line in report.
    Please also give me the idea of keyfields of both dso's.
    You can also use constant selection in report if you are using multiprovider through this to some extenet you can solve the problem of values in coming in two lines.
    Also check out the below PDF for Displaying Result Row in One Line While Reporting On Multiproviderer.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70dcd7b5-6a3d-2d10-c984-e835e37071a2?quicklink=index&overridelayout=true
    Hope it helps.
    Regards,
    AL
    Edited by: AL1112 on Aug 3, 2011 11:55 AM

  • How can I write left and right in the same line of a richtextbox?

    I want to write, in the same line, text with a right aligment and other with left aligment. How can I do it?
    thanks

    I want to write, in the same line, text with a right aligment and other with left aligment. How can I do it?
    thanks
    As
    Viorel_ says "Perhaps there are other much easier solutions. For example, create two
    RichTextBoxes with no borders (if you only need two columns of text)" but the real issue would be saving the info in the RichTextBox's (RTB's) RTF or Text to two different RTF or TextFiles. Although I suppose if it was just going to
    a TextFile then you could somehow use a delimited text file so each same line number of each RTB is appended to the same line and delimited. That way you could probably load a split array with each line from the text file splitting on the delimeter per line
    and providing RTB1 with index 0 of the split array and RTB2 with index 1 of the split array. I'm not going to try that.
    This is some leftover code from a long time ago. It has three RTB's. RTB1 is there I suppose because the thread asking for this code wanted it. RTB2 is borderless as well as RTB3. The Aqua control in the top image below is the Panel used to cover RTB2's
    scrollbar. So RTB3's scrollbar is used to scroll both controls.
    I forgot to test if I typed past the scroll position in RTB2 if both would scroll as maybe RTB3 would not since it would not have anything to scroll to I suppose.
    Maybe this code can help or maybe not. The bottom two images are the app running and displaying nothing scrolled in RTB2 and RTB3 then the scroll used in the bottom image.
    Disregard the commented out code in the code below. It was there so I left it there. I suppose you should delete it. Also I didn't set the RTB's so one was left aligned and the other right aligned. I believe the Panel becomes a control in RTB2's controls
    when it is moved to cover RTB2's vertical scrollbar but don't remember although that seems the case since both RTB2 and RTB3 are brought to front so if the Panel was not one of RTB2's controls I would think it would be behind RTB2 and RTB2's vertical scrollbar
    would display but don't remember now. In fact I don't really remember how that part works. :)
    Option Strict On
    Public Class Form1
    Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As Integer, ByRef lParam As Point) As Integer
    Const WM_USER As Integer = &H400
    Const EM_GETSCROLLPOS As Integer = WM_USER + 221
    Const EM_SETSCROLLPOS As Integer = WM_USER + 222
    Dim FixTheProblem As New List(Of String)
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Me.CenterToScreen()
    Panel1.BackColor = Color.White
    Panel1.BorderStyle = BorderStyle.Fixed3D
    RichTextBox2.BorderStyle = BorderStyle.None
    RichTextBox2.ScrollBars = RichTextBoxScrollBars.Vertical
    RichTextBox3.BorderStyle = BorderStyle.None
    RichTextBox3.ScrollBars = RichTextBoxScrollBars.Vertical
    RichTextBox3.Size = RichTextBox2.Size
    RichTextBox3.Top = RichTextBox2.Top
    RichTextBox3.Left = RichTextBox2.Right - 20
    Panel1.Size = New Size(RichTextBox2.Width * 2 - 16, RichTextBox2.Height + 4)
    Panel1.Left = RichTextBox2.Left - 2
    Panel1.Top = RichTextBox2.Top - 2
    RichTextBox2.BringToFront()
    RichTextBox3.BringToFront()
    FixTheProblem.Add("Curry: £6.50")
    FixTheProblem.Add("Mineral Water: £4.50")
    FixTheProblem.Add("Crisp Packet: £3.60")
    FixTheProblem.Add("Sweat Tea: £2.23")
    FixTheProblem.Add("Motor Oil: £12.50")
    FixTheProblem.Add("Coca Cola: £.75")
    FixTheProblem.Add("Petrol Liter: £3.75")
    FixTheProblem.Add("Shaved Ice: £.50")
    FixTheProblem.Add("Marlboro: £2.20")
    FixTheProblem.Add("Newspaper: £.25")
    FixTheProblem.Add("Spice Pack: £.75")
    FixTheProblem.Add("Salt: £.50")
    FixTheProblem.Add("Pepper: £.30")
    For Each Item In FixTheProblem
    RichTextBox1.AppendText(Item & vbCrLf)
    Next
    RichTextBox1.SelectionStart = 0
    RichTextBox1.ScrollToCaret()
    Dim Fix As String = ""
    For Each Item In FixTheProblem
    Fix += Item.Replace(":", "^:") & vbCrLf
    Next
    Fix = Fix.Replace(vbCrLf, "^>")
    Dim FixSplit() As String = Fix.Split("^"c)
    For i = 0 To FixSplit.Count - 1
    If CBool(i Mod 2 = 0) = True Then
    RichTextBox2.AppendText(FixSplit(i).Replace(">"c, "") & vbCrLf)
    ElseIf CBool(i Mod 2 = 0) = False Then
    RichTextBox3.AppendText(FixSplit(i) & vbCrLf)
    End If
    Next
    End Sub
    Dim RTB2ScrollPoint As Point
    Private Sub RichTextBox2_Vscroll(sender As Object, e As EventArgs) Handles RichTextBox2.VScroll
    Dim RTB2ScrollPoint As Point
    SendMessage(RichTextBox2.Handle, EM_GETSCROLLPOS, 0, RTB2ScrollPoint)
    SendMessage(RichTextBox3.Handle, EM_SETSCROLLPOS, 0, New Point(RTB2ScrollPoint.X, RTB2ScrollPoint.Y))
    'Me.Text = RTB2ScrollPoint.X.ToString & " .. " & RTB2ScrollPoint.Y.ToString
    End Sub
    Private Sub RichTextBox3_Vscroll(sender As Object, e As EventArgs) Handles RichTextBox3.VScroll
    Dim RTB3ScrollPoint As Point
    SendMessage(RichTextBox3.Handle, EM_GETSCROLLPOS, 0, RTB3ScrollPoint)
    SendMessage(RichTextBox2.Handle, EM_SETSCROLLPOS, 0, New Point(RTB3ScrollPoint.X, RTB3ScrollPoint.Y))
    'SendMessage(RichTextBox2.Handle, EM_SETSCROLLPOS, 0, New Point(0, 10))
    End Sub
    End Class
    La vida loca

  • Text and Table in the same line (Smartform)

    Hello,
    we have a problem related with a smartform, it contains dynamic tables and we need to do a form like this:
    Text1     Wa_tab-f1[1]       Wa_tab-f2[1] 
    Text2     Wa_tab-f1[2]       Wa_tab-f2[2] 
    Text3     Wa_tab-f1[3]       Wa_tab-f2[3] 
    (As I cannot print the form well, I will try to explain it:)
    Text1, Text2, Text3 don´t need frames!!  the other fields YES. I have been testing trying a lot of solutions but I have allways the same result: When I start to print frames for Wa_tab-f1 I allways get a new line....
    Do you know a solution for this?
    Thanks.
    Fernando.
    Edited by: Fernando Luengo on Oct 29, 2010 6:49 PM

    Hello Fernando,
    why don't you simply define a table with 3 columns. In the line definition you paint a frame around the second and the third cell in the line (this might be a bit tricky. if you use the button for the frame around the cell for the 2nd and then for the 3rd cell it deletes the frame between the cells so better mark the cell sides one by one.).
    Best Regards
    Roman

  • RadioGroup and Textbox on the same page. (HTMLDB_APPLICATION.G_F0?)

    I am trying to test a case where a report based on a table has both
    a) radio groups
    b) checkboxes
    for each each record.
    The problem I see is that all the items have the standard HTMLDB_APPLICATION.G_F0X (which is limited to 50).
    Consider this table definition..that i created to explain this case..
    SQL> desc temp;
    Name              Null?    Type
    EMPNO             NOT NULL NUMBER(4)
    ENAME                      VARCHAR2(10)
    JOB                        VARCHAR2(9)
    RQR_IND                    NUMBER
    LOCK_IND                   VARCHAR2(1)The required_ind can have three options 0,1 and 2 and to implement it, say we use.. radio group function..
    The lock ind has two possible values (yes (or) No and to implement it, say we use.....checkbox function..
    Here are the two possible implementations and the problems that I see...
    1) Use an p_Id of 1 for the radio group and p_id of 2 for the checkbox...
    select empno,
           ename,
           job,
           htmldb_item.radiogroup(1,empno,
                                  'threeOptions??'
                                  ) rqr_ind,
           htmldb_item.checkbox(2,empno,
                                case when lock_ind = 'Y' then 'CHECKED'
                                     else ''
                                end
                                ) lock_ind
      from tempUI : http://www.flickr.com/photos/48119423@N06/4406620805/
    The problems with this case
    a) how do i display multiple radio buttons for each radio group.
    b) all the radio groups havethe same name (F01) so the radio group is actually vertical instead of horizantal (per row).
    2) The existing code has dynamically generated radio groups (from 1-50) .. one for each row...using code similar to this...and the update process has 50 individual updates .. one for each row...
    select empno,
           ename,
           htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  'Y',
                                  rqr_ind,
                                  'Required'
        || htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  'N',
                                  rqr_ind,
                                  'Optional'
        || htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  '3',
                                  rqr_ind,
                                  'Do Not Display'
                                  ) Required_Indicator,
         htmldb_item.checkbox(mod(rownum-1,50)+1,
                                empno,
                                case when lock_ind = 'Y' then 'CHECKED'
                                     else ''
                                end ) lock_ind
        from temp  The problem with this case is that the radio groups are rendered and the values without any problems..but when i add a different array, the values HTMLDB_APPLICATION.G_F01 refer to that of the radio group already.
    UI : http://www.flickr.com/photos/48119423@N06/4407457354/in/set-72157623555719072/.
    please advice as to how I can accommodate both of them in the same page and how I can refer to them in my process.
    Thanks,
    Rajesh.

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    http://java.sun.com/docs/books/tutorial/javabeans/index.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/
    http://java.sun.com/developer/onlineTraining/index.html
    http://java.sun.com/docs/books/tutorial/index.html
    http://developers.sun.com/events/techdays/codecamps/index.html

  • How to plot Actual and Target on the same line chart in webi

    Hi,
    We have a requirement where we need to plot a graph on webi. The data is something like:-
    Month     Regional Office     Actual      Target
    12014     Midwest               768          876
    22014     Eastern               1908          1876
    Can anyone please suggest something.
    Regards
    Shirley

    Hi Shirley Ray,
    May i know the exact requirement...
    IF you want to show the data in graph,its just simple
    you can show regional office and month on  x axis,measure on y axis like below chart.
    right click on table and convert it into column chart.
    Regards,
    Samatha B

  • My macbook internet download speed is extremely slow. I have tried other computers both windows and mac on the same line and speeds are normal. What is the problem?

    My macbook internet download speed is extremely slow. I have tried 2 other computers, another mac and windows and the download speed is over 10mb but with this macbook pro it is less than 1mb. What is causing this and how to fix?

    To find out how much space you have & what is left, open up Disk Utility/Machintosh HD/First Aid.  The info will be at the bottom of the window.
    Sluggish Finder - Bunch of icons on your desktop?  An overcrowded desktop slows down your Mac.
    Get rid of needless Finder calculations - Open a window in Finder/View/Show View Options:  ensure "Calculate All Sizes" option is unchecked.
    Internet related - It's likely that your broadband connection is the bottleneck.  You can check your speed on http://www.speedtest.net to see how fast your connection is.  If your web browser specifically performs slowly, quit and relaunch it.
       If browser remains sluggish, empty its cache.
    Safari/Empty Cache
    Firefox/Preferences - select the Network tab of the Advanced preferences and click the "Clear Now" button in the "Offline Storage" area.
    Application related - Launch "Activity Monitor" - Applications/Utilities - click the CPU heading and see what float to the top.  If an application takes up a large chunk of CPU and won't let it go, it could be dragging down your Mac's performance.  Quit it by clicking the Quit Process button at the top of the Activity Monitor window.
    Too little ram - max out your ram.
    Solution may be found if you search in the "More Like This" section over in the right column.

  • SAPscript address name1 and name2 - print on the same line

    I want to print name1 and name2 on the same line in an address on a check. Does anyone know how to do that ? I am usign the ADDRESS SAPscript command.

    The ADDRESS command allows you to format according to different countries postal formats. If you want to put two lines in one, I don't think you can use the ADDRESS command, but will have to format it yourself.
    Rob

  • Is there a way to print over the same line of text?

    Hey everyone, does anyone know if it's possible to write over the same line in a console window? I am formatting a diskette an currently it is going:
    1 percent complete
    2 percent complete
    3 percent complete
    4 percent complete
    5 percent complete
    I am currently doing:
    System.out.println(bufferedReader.readLine());
    to display this .. is there anyway to write over and over on the same line?
    Thanks again.

    I just thought of something!!! Try this:
    System.out.println("When the zeros have printed twenty times the disk has been formatted\n");
    System.out.println("|-----------------------------------|"\n)
    Then add the zeros to the line underneath it as it formats.  This will give a progress bar effect.  The zeros, when completely done, should fill up the whole |---| segment.
    Hope this helps.
    Virum                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Print different text elements on the same line

    Hi all,
    1.
    Is it possible to print different text elements on the same line ? with multiple write_form
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             element       = 'TITLE1'
             WINDOW        = 'INFO'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             element       = 'TITLE2'
             function      = 'APPEND'
             WINDOW        = 'INFO'
         EXCEPTIONS
              ELEMENT       = 1.
    How to print TITLE1 and TITLE2 on the same line ?
    TITLE2 in bold.
    2. How to print 2 text elements on the same line with include statement ?
    /: include test1 ...
    /: include test2
    Thanks
    Edited by: Moo Yac on Sep 22, 2008 8:23 AM

    To be more specific :
    I want to print the following
    Text_symbol1:$Var1$      Text_symbol:$Var2$
    on the same line.
    where Text_symbol1 and Text Symbol2 are defined in SO10 for different languages.
    Thanks.

  • Column printing on the same line in reports

    guys,
    i have a report with lets say n no. of columns. Now i want to display column 1 and 2 on the same line, i.e without giving a line break (given the fact that my report is page wise and not tabular). Can i do that? If so, then how?
    Any help will be highly appreciated. Kindly reply asap

    Hi Mike,
          Sorry, I should have realized you were using LabVIEW's HTML VIs - and it doesn't look like they provide for Table "Nesting" (at least through 7.1)!
    Here's a couple of VIs that might help you out.  Util.HTML.Table builds the HTML for a table.  SideBySide.vi uses this Util to embed two tables into an HTML Report.
    I whipped these up just for you - so they may need "polishing".  Should you need to fine-tune the table-appearance, I'm afraid you're on your own, though there's lots of help on the web.  Don't worry, HTML is pretty easy - and you'll find a nice HTML resource here. 
    Cheers!
    Message Edited by tbd on 03-05-2007 12:47 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    Util.HTML.Table.vi ‏63 KB
    SideBySide.vi ‏68 KB

  • How to get the Hardcoded text and the Standard text in the same line

    Hi,
    I have an SAP Layout. In that, it should show the Consignee name as below.
         Consignee: SAP LABS
    In this, the text 'Consignee: ' should be hardcoded in the layout itself. and the customer has requested to create a standard text for 'SAP LABS' sothat if they want to change the value in future, they would go and change the Standard text. I have created the Standard Text for SAP LABS. I am not able to get both these texts on the same line. I wrote in the layout like below and AS is the Paragraph format.
    AS     Consignee:
    /:        INCLUDE ZVRU_CONSIGNEE OBJECT TEXT ID ST LANGUAGE EN PARAGRAPH 'AS'
    But, both are coming in dofferent lines. As /: is a command line, it is coming in the next line. Is there any way of getting these two texts in the same line..? While Inserting the Standard Texts, will there be any option/command to print it in the same line..?
    Please share your thoughts. Thanks in advance.
    Thanks & Regards,
    Paddu.

    Hi Paddu,
    I have had a similar requirement. I did not use any FM or anything, simply did the following:
    In  SO10, for your standard text where u have used the text SAP LABS.
    Instead of P1/ default para, change it to =. And then Save ur Standrd text.
    Now in the SAPScript Text editor in which you want to print
    P1 'Consignee :'
    /: INCLUDE TEST OBJECT TEXT ID ST LANGUAGE EN
    the output will be
    Consignee : SAP LABS
    I have tried and tested this method. It will surely work.
    With regards,
    Niharika.

  • How to align output formatted and output text in the same line?

    Hi All,
    I want an output formatted label and a text on the same line,. I've surrounded these components wth a panel form layout and they automatically align one below the other. how do I kepe them in the same line?
    Thanks.

    Try as per the code snippet below:
    <af:document title="TestPage.jspx" id="d1">
    <af:messages id="m1" inline="true"/>
    <af:form id="f1">
    *<af:panelGroupLayout id="pgl1" layout="horizontal">*
    *<af:outputFormatted value="outputFormatted1" id="of1"/>*
    *<h:outputText value="outputText1" id="ot1"/>*
    *</af:panelGroupLayout>*
    </af:form>
    </af:document>
    Thanks,
    Navaneeth

  • How can I combine the nav bar and menu bar on the same line to save space?

    Firefox v29 seems to be a huge step backward in customization. I need to save space for content so previously I turned off tabs and combined the menu bar and nav bar on the same line. The url space is way too long anyway. Now with v29 all my customization is gone and I cannot get it back. I can no longer move items on the nav bar to combine it with the menu bar. Why was this done? It only limits my ability to customize my browser? I am very frustrated that you took a great browser and ruined it.

    I get it that Firefox has changed, but the change is for the worse. It makes it impossible to customize menus as I had before v.29.

  • Retrieve n and n-1 rows on the same line

    In a database I am trying to get the latest employee information and the previous entry. The latest entry can be determined by the fact that DATEFIN is empty and the previous entry is returned by MAX(DATEFIN). All previous entries have a DATEFIN value
    So I wrote a query which returned both the lines per employee. i.e. n and n-1
    Actually what is needed is to compare certain fields of each line, so I need to show employee n and n-1 on the same line. This time I used LEAD so emp,date,field1,Lead(field1,1) etc etc.
    As all the employee lines are returned, I used a minus function to remove all those where the DATEFIN IS NOT NULL, given that the LEAD line returned the information required BEFORE the minus removed it.
    However, I am still getting n and n-1 rows, even though the minus part run by itself removes n-1,n-2... rows.
    Question
    How can I structure the minus or LEAD query just to get the n row and n-1 LEAD information
    select trim(to_char(se.idexport,'0999'))
    || '|'
    || sa.referentiel_id
    || '|'
    || sa.idunique
    || '|'
    || sa.matricule
    || '|'
    || sr.niveau
    || '|'
    || LEAD(sr.niveau,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.echelon
    || '|'
    || sr.coefficient
    || '|'
    || fo.code
    || '|'
    || sr.salairemensuel
    || '|'
    || sr.tauxhoraire
    || '|'
    || to_CHAR(ca.datevaleurrevisions,'DD/MM/YYYY')
    || '|'
    || em.code
    || '|'
    || fi.code
    || '|'
    || cc.code
    || '|'
    || sr.datedebut
    || '|'
    || LEAD(sr.datedebut,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.datefin
    || '|'
    || LEAD(sr.datefin,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    AS Text
    from salarie sa
    inner join selection_export se on (se.IDUNIQUE = SA.IDUNIQUE AND se.idexport = 42 AND se.exporter = 1)
    inner join salarierevision sr on (SR.SALARIE_ID = se.IDUNIQUE AND SR.ACCESRESTREINT = 0)
    inner join campagne ca on CA.ISANNEEENCOURS = 1
    inner join parambranche pb on (ca.organisationlds_id = pb.organisationlds_id)
    inner join utilisateur u on (u.CODE = 'gagross' AND U.ORGANISATIONLDS_ID = CA.ORGANISATIONLDS_ID)
    left outer join fonction fo on (fo.id = sr.fonction_id)
    left outer join emploi em on (em.id = sr.emploi_id)
    left outer join filiere fi on (fi.id = sr.filiere_id)
    left outer join CONVENTIONCOLLECTIVE cc on (cc.id = sr.CONVENTIONCOLLECTIVE_ID)
    minus
    select trim(to_char(se.idexport,'0999'))
    || '|'
    || sa.referentiel_id
    || '|'
    || sa.idunique
    || '|'
    || sa.matricule
    || '|'
    || sr.niveau
    || '|'
    || LEAD(sr.niveau,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.echelon
    || '|'
    || sr.coefficient
    || '|'
    || fo.code
    || '|'
    || sr.salairemensuel
    || '|'
    || sr.tauxhoraire
    || '|'
    || to_CHAR(ca.datevaleurrevisions,'DD/MM/YYYY')
    || '|'
    || em.code
    || '|'
    || fi.code
    || '|'
    || cc.code
    || '|'
    || sr.datedebut
    || '|'
    || LEAD(sr.datedebut,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    || '|'
    || sr.datefin
    || '|'
    || LEAD(sr.datefin,1) OVER (ORDER BY sr.salarie_id,sr.datedebut desc )
    AS Text
    from salarie sa
    inner join selection_export se on (se.IDUNIQUE = SA.IDUNIQUE AND se.idexport = 42 AND se.exporter = 1)
    inner join salarierevision sr on (SR.SALARIE_ID = se.IDUNIQUE AND SR.ACCESRESTREINT = 0)
    inner join campagne ca on CA.ISANNEEENCOURS = 1
    inner join parambranche pb on (ca.organisationlds_id = pb.organisationlds_id)
    inner join utilisateur u on (u.CODE = 'gagross' AND U.ORGANISATIONLDS_ID = CA.ORGANISATIONLDS_ID)
    left outer join fonction fo on (fo.id = sr.fonction_id)
    left outer join emploi em on (em.id = sr.emploi_id)
    left outer join filiere fi on (fi.id = sr.filiere_id)
    left outer join CONVENTIONCOLLECTIVE cc on (cc.id = sr.CONVENTIONCOLLECTIVE_ID)
    where sr.datefin is not null
    Thanks and I hope this is clear
    Colin

    Assuming that the sr.salarie_id column identifies the employee I think you need to partition by it, not order by it in the analytic functio. If it does not identify the employee, then you need to partition by whatever uniquely identifies an employee. I would likely structure it something like this:
    SQL> with t as (
      2     SELECT 1 emp_id, TO_DATE('01-jul-2010', 'dd-mon-yyyy') dt, 'Jul' descr
      3     from dual union all
      4     SELECT 1, TO_DATE('01-aug-2010', 'dd-mon-yyyy'), 'Aug' from dual union all
      5     SELECT 1, TO_DATE('01-sep-2010', 'dd-mon-yyyy'), 'Sep' from dual union all
      6     SELECT 1, TO_DATE('01-oct-2010', 'dd-mon-yyyy'), 'Oct' from dual union all
      7     SELECT 1, TO_DATE(NULL), 'Current' from dual union all
      8     SELECT 2, TO_DATE('01-jan-2010', 'dd-mon-yyyy'), 'Jan' from dual union all
      9     SELECT 2, TO_DATE('01-mar-2010', 'dd-mon-yyyy'), 'Mar' from dual union all
    10     SELECT 2, TO_DATE('01-may-2010', 'dd-mon-yyyy'), 'May' from dual union all
    11     SELECT 2, TO_DATE('01-jul-2010', 'dd-mon-yyyy'), 'Jul' from dual union all
    12     SELECT 2, TO_DATE(NULL), 'Current' from dual)
    13  SELECT emp_id, curr_dt, last_dt, curr_descr, last_descr
    14  FROM (SELECT emp_id, dt curr_dt,
    15               LEAD(dt) OVER(PARTITION BY emp_id
    16                             ORDER BY dt desc nulls first) last_dt,
    17               descr curr_descr,
    18               LEAD(descr) OVER(PARTITION BY emp_id
    19                             ORDER BY dt desc nulls first) last_descr
    20        FROM t)
    21  WHERE curr_dt IS NULL
        EMP_ID CURR_DT     LAST_DT     CURR_DE LAST_DE
             1             01-OCT-2010 Current Oct
             2             01-JUL-2010 Current JulWhere my t is your set of joined tables without the where sr.datefin is not null predicate.
    John

Maybe you are looking for

  • How to find out skype user sending me sms?profile....

    Hi All. Its of high importance for me to find out the user id of an unknown person sending my wife SMS's through SKYPE. The number showing up from the sender is +442032892491. Upon googling, i found that this number is linked to Skype so if any user

  • I can't buy anything on the App Store or iTunes

    I can't purchase anything because I forgot the answers to my security questions and I don't know my rescue email. Is there a way I can change my security questions by sending an email to another email?

  • Time stamp to number function

    The Conversion VIs and Functions palette has a function that converts the number of seconds elapsed to a time stamp (To Time Stamp Function).  I need to go in the other direction, from a time stamp to a double (number of seconds elapsed since 12:00 a

  • Change the color swatch

    I was wondering if there was any way that I could either change the little color swatch next to my username or choose which color swatch would be used? Could there be something added to the My Kuler section that would allow me to choose what I wanted

  • Won't Stay Logged In - Can't Save Password

    I'm using Chrome. I can't stay logged in since the new bt log in changes. On my home pc I normally just have one bookmarked link that takes me straight to my inbox. With the new changes, I keep having to re-log in, sometimes even minutes after last l