Required UDF to supress same lines

Hi experts,
I designed my mapping and when i display queue of my target i get:
code1
code1
code1
code1
code2
code2
code2
code3
code3
code3
code4
code4
as you can see I have several times the same value
I was wondering if its possible to delete the same lines and hence to have:
code1
code2
code3
do you know how to do that?
thanks,
Jamal

Hey
Use the following
Sender Node(use parent node of node1,node2,node3)->RemoveContext->Sort->SplitByValue(Select Value Change)->CollapseContext->Target
Thanx
Aamir

Similar Messages

  • Grand Total on the same line. See Output requirment.

    Env:Oracle 9I Report Writer
    If I have a Table with the flwg data:
    TableA
    Col1   Col2  Col3   Amt
    1                   10
    2                   20
    3                   30
    4                   40How can I get the report output in the format below:
    ....            Amt    Total
                    10
                    20
                    30
                    40     100Is this possible?

    Yes
    presumably your total is in a repeating frame above the detail. What you need to do is make your detail repeating frame shorter than the page width. Your total repating frame should extend to the page width. You an then insert your total on the same line as the detail.
    This will probably put the total at the top, rather than the bottom. I think you can get around this by using anchors

  • 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.

  • AR - Requirement to split the receivable line

    As part of implementing OrderToCash for an international shipping company, we have a unique requirement to split the receivable line with respect to the number of revenue lines.
    Due to the accounting doc having one receivable line, we are facing challenges in applying cash and disputing at the individual line item (shipment level).
    We effectively need there to be a 1:1 relationship between a Billing document line and an AR invoice line (currently the AR receivable line is a cumulation of the Billing lines).  This said, is there any configuration or user-exit on the SD or AR side to split the receivable line (at the time of releasing it to accounting) even though it is hitting the same reconciliation account?
    Thanks,
    Anthony

    Hi Anthony
    I know that when you enter FI side invoice we can use the 'Amount split' tab on FB70 or FB60 screen after entering the total amount in the 'Basic data' tab. 
    But I am not sure how to enable it when using copy control from delivery to billing to accounting.
    Assign points if useful...
    Thanks

  • How to copy the line item description to other same line items - FBL5N

    Hi All,
    I have an issue while printing the description in the script.In the final internal table there are multiple same line items but the description is comming for the only one line item but my requirement is i want to copy the description text(bseg-sgtxt) to the other same line items also. I trying to use the control break statements but i am not getting the solution.
    can any one please provide me the solution.
    FYI.. please find the attched text doc..in the document the first four lineitems are same but description is comming for only one line item. I want to display the description to all the same line items.
    Thanks in advance.
    Regards,
    koushik

    Hi Bharat,
    Can u just attach the code where populating the internal table with description.
    Regards,
    Shashikanth

  • 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

  • Sum of UDF Rows in same UDF Last Row

    Hi,
    I have created a UDF in the Marketing Documents - Rows as a Price field. The requirement is:
    I enter, suppose, three prices one after the other in the Column till the third row. In the fourth Row, I want the sum of the previous three rows to be displayed on pressing Shift + F2. Can any one help me with the query for formatted search please?
    Regards
    Sudatt

    Hi Kevin,
    You got that almost right. But the FMS is not on a different UDF, but the same UDF.
    Example:
    ROW No                  Value     
    1                                100           
    2                                200           
    3                                300           
    4                                400           
    5                                500            
                                    1500         (This value will come from FMS with a Shift + F2)
    Regards
    Sudatt

  • Radio button & select options in same line

    Hi,
       I am working in sap 3.1 version. there I required radio button and select options in same line. here begin of line is not allowing for select options.
    Thanks,
    suma

    Hi,
    Hope the below code helps you.
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT [/][pos](len)
                              {text|{[text] FOR FIELD sel}}
                              [VISIBLE LENGTH vlen]
                              [MODIF ID modid]
                              [ldb_additions].
      parameters: p1 radiobutton group 1,
                  p2 radiobutton group 1.
      select-options s_date for sy-datum.
      SELECTION-SCREEN END OF LINE.
    You can use SELECTION-SCREEN COMMENT for placing the appropriate comments at respective positions.
    Regards,
    Satya

  • How to create 3 table  in a same line prient means same row.

    Hi My Template 3 tables with a same line prient how to create my template in xml
    Earnings
    S2RN
    RvE2
    Deductions
    S3Rn1
    RV!E3
    Cumulatives

    Well there is a way by which we can actually define a "xml data source" in jasper framework and we might have to write a wrapper which can perform the job which suits your set of requirements.
    However,imn't sure if things are same now since when i personally used jasper related technologies.
    It'd be a gr8 idea if you can post your queries @ [http://www.jasperforge.org] (Jasper Suite Support forums) where you might get appropriate answers from people who have more expertise in this technology.
    REGARDS,
    RaHuL

  • Same line items

    Hi,
         While creating a sales order ,my requirement is that the system should not accept same line item two or more times.
    Eg.,   Line item 10     xyz  material           10 units
             Line item  20    xyz  material            20 units
    In the above scenario system should not accept the second line item and should propose that a line item already exists.
    Regards,
    Phani Prasad.

    But its not a good Habit as while creating a Sales Order , sometimes User put / use the Same material in different Line Items with different Quantity as you would have different Batch with the Same Material.
    Otherwise , you can maintain the same in the User Exit MV45AFZZ with POSNR & MATNR as reference fields as the system will throw an error if it checks the Same material Code in different Line Items.
    Best Regards,
    Ankur

  • Sql Query to find headers which having same lines????

    for example i have 4 purchase orders
    which are having same lines
    that means same items
    are having 4 different purchase orders how do i write a query to fine those different purchase orders which are having same lines.
    Please let me know any body how to get this desired result from select statement??.
    Thanks & Regards,
    Abdul Rahiman.

    Ramin Hashimzadeh wrote:
    Vivek L wrote:
    this?
    select      a.id,
         nvl(a.empnumber,b.empnumber) empnumber
    from tabA a, tabB b
    where a.id = b.id;
    i can't understand, if the tableB and tableA(except null values) empnumber values is same, then what is diffrence this query between yours query?
    select b.* from tabB b
    True, but your assumption is based on OP's sample data and may or may not be true for actual case.
    Read the requirement from OPs first post:
    I have to write a query that should fetch the a column value from table B if the column value is Null in Table A

  • WBS values should on same line.

    hi sap masters,
    i have a requirment with my report... curently my report produces each line item accoding to the WBS ELEMENT.
    Now if i have the parent WBS ELEMENT such as C.2111054.X.1.01.40.44 all the below WBS ELEMENT VALIUES  should on same line as like this.
    C.2111054.X.1.01.40.44   : 6950 |11,350|300|900-|386|350|300|450 like this as one column
    how can i get them on one line instead of all different lines accoding to each WBS ELEMENT?
    ex:
    C.2111054.X.1.01.40.44    : parent one
    C.2111054.X.1.01.40.44.1 : child
    C.2111054.X.1.01.40.44.2 : child
    C.2111054.X.1.01.40.44.3 : child
    C.2111054.X.1.01.40.44.4 : child
    C.2111054.X.1.01.40.44.5 : child
    C.2111054.X.1.01.40.44.6 : child
    C.2111054.X.1.01.40.44.7 : child
    C.2111054.X.1.01.40.44.8 : child
    C.2111054.X.1.01.40.44.9 : child
    The child once should be on the same column of the above PARENT one column
    Now it should show as like this:
    C.2111054.X.1.01.40.44   : 6950 |11,350|300|900-|386|350|300|450 like this as one column
    Thanks in advance,
    pasala.

    answered

  • How can I stay on the same line  when inputting values in the CLI?

    The title is a bit vague i know :) but i have this issue which isn't really a problem but it would be better if I can solve it.
    Intro)
    I've made this simple addition (and more options but thats not relevant) application for kids in my spare time so that they can train their maths in school and compare their results with other students which is saved in the database using the hypersonic DB that comes with the JBoss application server.
    Now so far so good, but i'm having an issue with the Scanner (I think, but i doubt its because of the CLI) , when i enter a number or text it works and exceptions will be catched etc but when i press the enter key without anything entered the input value wil be displayed a line below and that's not what I want. I want it to stay in the same line.
    Sample CLI output:
    bla application
    ***By: deAppel***
    Ver: 31/10/2007
    Your name:     deAppel
    Your class:     MasterClass
    How many sums you want to make? 14
    Time: 22:03:27
    1: 32 + 40 =     72
    2: 38 + 19 =     57
    3: 5 + 57 =     62
    4: 30 + 20 =     1
    5: 57 + 54 =     2
    6: 33 + 17 =     3
    7: 38 + 54 =     4
    8: 23 + 23 =     5
    9: 48 + 47 =     95
    10: 29 + 55 =     6
    11: 48 + 11 =     7
    12: 1 + 40 =     41
    13: 46 + 35 =     91
    14: 23 + 52 =     75
    Answer 1:      72     You answered:      72     (good)
    Answer 2:      57     You answered:      57     (good)
    Answer 3:      62     You answered:      62     (good)
    Answer 4:      50     You answered:      1     (wrong)
    Answer 5:      111     You answered:      2     (wrong)
    Answer 6:      50     You answered:      3     (wrong)
    Answer 7:      92     You answered:      4     (wrong)
    Answer 8:      46     You answered:      5     (wrong)
    Answer 9:      95     You answered:      95     (good)
    Answer 10:      84     You answered:      6     (wrong)
    Answer 11:      59     You answered:      7     (wrong)
    Answer 12:      41     You answered:      41     (good)
    Answer 13:      81     You answered:      91     (wrong)
    Answer 14:      75     You answered:      75     (good)
    EndTime: 22:04:18
    Total good: 6
    Total wrong: 8
    Total sums answered: 14
    Final score: 42.857143%
    Upload score? (yes/no): no
    Compare score from other users? (yes/no): no
    Want to try again? (yes/no): no
    ********Made by: deAppel @ http://www.link removed cause it doesnt matter .com*********
    ************The application will close within 5 seconds*************
    To sum it up for those that don't like to read my post:
    1: 32 + 40 = 72
    2: 38 + 19 =
    whitespace <-- this happens because of the enter
    whitespace <-- this happens because of the enter
    57
    3: 5 + 57 = 62
    I want the input to stay in the same line unless you have typed something. I feel silly for not knowing how to handle this.
    Hm.. i'll tried to solve it myself but it seems that im unable to do that.
    /me takes a quick coffee break and will look at the code again after that *

    paulcw wrote:
    It sounds like you want either a CURSES implementation (I believe there's one for Java), or just move to a GUI.I was planning to create a GUI for it eventually, but i just wanted to solve this one first and make sure everything works the way i want it too. I'll take a look at the CURSES implementation thanks.

  • FSG report not printing column values on same line but sequentially

    FSG report problem:
    We have defined 2 FSG reports 'Balance Sheet - Total' and 'Balance Sheet - Detail'. Both reports have 3 column values, namely the value in Euro (our Functional Currency), the value in MUR - Mauritian rupees (our reporting currency) and the rate of exchange.
    The report 'Balance Sheet - Total' displays these values for assets e.g.:-
    EURO MUR Rate of exchange
    Non-current assets
    1. Intangible assets ? ? ?
    2. Other investments ? ? ?
    (note: ? represents a certain value)
    The report 'Balance Sheet - Detail' displays values as follows :-
    Account EURO MUR Rate of exchange
    1. Property & Equipment
    A10101 Building Cost ? 0.00 0.0000
    A20105 Motor Veh Accum Dep ? 0.00 0.0000
    TOTAL ? 0.00 0.0000
    A10101 Building Cost 0.00 ? n/m
    A20105 Motor Veh Accum Dep 0.00 ? n/m
    (note: ? represents a certain value)
    What we don't understand s why the 'Balance Sheet - Detail' report repeats the display of column values in MUR FOLLOWING the display in EURO, instead of displaying column values for EURO and MUR on the same line, just like in the case for 'Balance Sheet - Total'.
    Is there anything in the definition of column set, row set or report set should I change?
    Can anybody help. Thanks.
    null

    The problem is related to defining the column set properly. It is OK with the first report and needs modification for the second. Formatting is also important so that they appear in the same line(row). The columns need to be linked to the fileds and assignment to set of books is also important as mentioned by Rajsekhar

  • Invoices matched to the same line on the same PO going on Hold

    Hi,
    We have started to setup some of our suppliers to use iSupplier, to automate the process of shipping and invoicing. With some suppliers, once they create the ASBN/Invoice the goods may take up to 30 days for delivery. Invoice are being automatically imported into AP to be matched to the same open PO (same line and item). When Invoice validation runs (nightly), these Invoices are going on hold as at any point in time we may not have received the total goods for which we are invoicing, even though we may have received the total matching to the first invoice. This is intended functionality that tolerance level checks are only made at the PO Shipment level and not at the Distribution level. However, the intention of introducing iSupplier was to automate the invoicing process does anyone know if there's a way of avoiding having this invoices go on hold ?
    Thanks,
    Regina.

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

Maybe you are looking for