How to concatenate two fields CSKS-KOSTL & CSKT-LTXT in BEx Query?

Hi,
I have a requirement to concatenate two fields CSKS-KOSTL (Cost Center) and CSKT-LTXT (Cost Center Text) and show them as one field in the BEx query.
I do not know what to do, so please help me out.
Thanks in advance.
Regards
Harman

Hi Harman,
If cost center is a masterdata, it can have its own text..i doubt why do u have 2 different fileds..
Anyways if its a masterdata object maitaining its own text, then in the query properties under Display tab select Key&Text option this give you both key and text values in the output.
If its two different fileds then its better to use concatenate in the transformation.
Regards,
Geetha

Similar Messages

  • How to concatenate two column in ALV

    dear,
    How to concatenate two ALV columns
    yatendra sharma

    dear
    I have to concatenate 3 fields
    PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'NAME2' ' ' ' ' 'Customer Address' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'STRAS' ' ' ' ' 'Street' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'ORT01' ' ' ' ' 'City'.
    how can we join them
    Yatendra

  • Concatenate Two Fields Using EQL

    I am trying to concatenate two fields my company has in Endeca and am not being able to accomplish this. I have a Call_Num field and a Task_Num field. I would like to combine these fields with a hyphen in between. In the SQL queries I have written, I've been able to do this by typing: Call_Num || '-' || Task_Num. I tried this in EQL and am told that it doesn't recognize the ||. I tried using the keyword Concat (like you do in Excel) - CONCAT(Call_Num, '-', Task_Num), and it didn't recognize that either. I spoke to someone else in my company who uses Endeca and they told me that I need to convert Call_Num and Task_Num to integers (both fields are currently formatted as text - which is what I want, because Task_Num usually starts with a 0), multiply them by 1000 and then add them together. That isn't what I'm looking for either.
    I feel like I'm banging my head against a brick wall. I've been working on this simple task for about an hour now and have not met with any success.
    Any assistance you can provide would be greatly appreciated.

    EQL is for run-time querying, whereas you want the index to contain this as a concatenated property. Either generate this property as a concatenated version in your data feed to Endeca, or add a Record Manipulator to your pipeline of:
    <EXPRESSION TYPE="VOID" NAME="CREATE">
    <EXPRNODE NAME="PROP_NAME" VALUE="_YourConcatenatedAttribute"/>
    <EXPRESSION TYPE="STRING" NAME="CONCAT">
    <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
    <EXPRNODE NAME="PROP_NAME" VALUE="Call_Num"/>
    </EXPRESSION>
    <EXPRESSION TYPE="STRING" NAME="CONST">
    <EXPRNODE NAME="VALUE" VALUE="-"/>
    </EXPRESSION>
    <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
    <EXPRNODE NAME="PROP_NAME" VALUE="Task_Num"/>
    </EXPRESSION>
    </EXPRESSION>
    </EXPRESSION>
    Define a property in your pipeline and then map "\_YourConcatenatedAttribute" to this (the "_" prefix just reminds you that the source attribute is programmatically generated rather than being the name of a property in your source data). You can then use this concatenated property for any sorting, filtering etc. you want to do.
    Michael

  • How to remove pound symbol # and preserve leading zeros in BEx Query

    Hi,
    I have two questions regarding the display in BEx Query.
    1. How can I remove the pound symbol # for blanks in BEx Query?
    2. How can I preserve leading zeros? At the moment, value "001" will be displayed as "1". But I need the leading zeros.
    Thanks.
    Joon

    Hi ,
    You can apply these settings in Bex query designer.
    If you need to remove pound symbol jsut make a new formula and use NODIM function you will find this function under data functions.
    So NODIM(Your price keyfigure) this will remove the Pound symbol.
    For # just find out against which  characterstic you are getting # then go to default values panel there you will find all your characterstic which you are using in report---Rt click -Restrict-single valuesdirect input-#-Move to selection(That forward arrow)--select that # and choose exclude from selection (That red square icon).
    And yes for leading zeros check out this thread
    Leading zeros not displaying
    Hope it helps you.
    Regards,
    AL
    Edited by: AL1112 on Jun 9, 2011 1:43 PM
    Edited by: AL1112 on Jun 9, 2011 1:47 PM

  • How the Drill down functionality works if the source is Bex Query

    Dear All,
    How the Drill down functionality works if the source is Bex Query through the query browser in Dashboard 4.1
    Please let me know process.
    Thanks
    Regards,
    Sai

    Hi sai,
    Drill down can be done by two ways.
    1. you need to bring all the data in one shot to the spreadsheet and then by using the components you can achieve it. Below given link explains in detailed about that.
    Filtering Through Combo Box
    2. you can use different set of query to pass the value from one set to another to fetch the data using the prompt. please check the below which explain them.
    Difference between "When value Becomes & When value Changes"
    Revert any clarification required on this.
    --SumanT

  • Concatenate two fields

    Hi,
      Can anyone let me know how to concatenate the following two fields and use it in the select statement::
    BKPF-AWKEY = MKPF-BELNR + MKPF-MJAHR.
    Please reply at your earliest convenience.
    Thanks,
    Amit.

    hi
    good
    check this example and use accordingly
    DATA: c1(10) TYPE c VALUE  'Sum',
          c2(3)  TYPE c VALUE  'mer',
          c3(5)  TYPE c VALUE  'holi ',
          c4(10) TYPE c VALUE  'day',
          c1 (30) TYPE c,
          sep(3) TYPE c VALUE ' - '.
    CONCATENATE c1 c2 c3 c4 INTO c5.
    WRITE c5.
    CONCATENATE c1 c2 c3 c4 INTO c5 SEPARATED BY sep.
    WRITE / c5.
    The output looks like this:
    Summerholiday
    Sum - mer - holi - day
    In c1 to c5, the trailing blanks are ignored. The separator sep retains them.
    thanks
    mrutyun^

  • How to concatenate two linked lists?

    Can anyone help me with this? I'm stuck. I'm trying to concatenate two linked lists. I've created a method that adds a node to the beginning of a list and a second method to concatenate. My first method works, but not my second...
    First method:
    public static Node insertFirst(Node head, Node node){
              Node newNode = new Node();          // declare and initialize newNode.
              newNode = node;                    // store the new item in the new node.
              newNode.link = head;               // newNode.link points to the head.
              head = newNode;                    // update head to be newNode.
              return head;
         }Here is where I have my problem:
    public static Node mergeTwoLists(Node a, Node b){
              Node heada = a;
              Node headb = b;
              if(heada == null)
                   return headb;                    //if heada is null then returns list headb.
              else if(headb == null)
                   return heada;                    //if headb is null then returns list heada.
              else if(heada == null && headb == null)     //if both lists are null, returns null.
                   return null;
              else if(heada.link == null){     //only one element in heada.
                   headb = insertFirst(b, a);               // inserts the element in heada into headb.
                   return headb;
              }//end else if(heada.link == null).
              else if(headb.link == null){     //only one element in headb.
                   heada = insertFirst(a,b);               // inserts the element in headb into heada.
                   else {
                        mergeTwoLists(heada.link, headb);
                        return heada;
                   }//end else
              return heada;
              }//end mergeTwoLists method.I think in this method I'm only adding the nodes if there is only one node in one of the lists. But if there are more than one element in a list...I'm confused as to how to code the last else statement that contains the recursive call.
    Can someone help?
    Thanks
    aiki985

    Can't you just point the tail of A to the head of B?
    I don't think I'd do this recursivly at all. Use a
    while look to find the last node in A and then link
    it to whatever the first element in B is.
    while(A.next != null){
    A = A.next;
    A.next = B;
    Java that up a bit and check for nulls and it should
    work.o.k. thanks...let me try that. It does seem awkward recursively...
    aiki985

  • How to separate two fields in Text element of Smartform??

    Hi,
    I am trying to separate two fields by a space, for example &WA_ACC-G_L_ACCT& &GV_ACCT_TXT&, but evry time I save the smartform the space disappears and output is continous like 56000Product Materials.
    The desired Output I am looking for is something like 
    56000  Product Materials.
    How do I do this ??
    Thanks

    Hi ,
      U can try what Narendra has said ,if u are not able achieve then do this :
    Create constant c_space type char1 value space
    and try printing it between ur variables, ur problem is solved this way
    Reward if u find it useful
    Regards
    Sapsurfer

  • How to concatenate two AttributedString

    Hi Everyone
    The class java.text.AttributedString looks interesting, but I would like to create one not all at once.
    I would like for example to create the AttributedString and addAttributes to it, then append some text at the end and add some attributes to this new text and so on, as I'm reading through a file for example...
    I searched a lot and could not find a way to append a string to an already existing AttributedString or to concatenate two AttributedString.
    I looked at the source and found that there is a constructor AttributedString(AttributedCharacterIterator[] iterators), that would be perfect but the problem is that this constructor is not public (it's "package"). Anyone knows why this constructor is not public or how to do it another way.
    thanks
    Adam

    If I do this, I need to store all the attributes of my text when I read it and then apply them to the text. That's my plan B actually, because I don't want to store the attributes myself somewhere and then transfer them in the AttributedString. I would prefer to store them directly in the AttributedString as I read them.
    The other way would be to read the text twice, first to get the text, then to add the attributes, but then I would have to shift the indexes if I removed some tags in the original text.
    Anyway, I appreciate your remarks, it makes me think differently on the problem and see new alternatives...

  • How to concatenate two colums into one single column

    I need some ideas to concatenate two different columns into one single column using a set of distinct values.
    For Example,
    Customer Product Number
    xyz A 1
    xyz B 2
    xyz B 1
    AAA C 7
    AAA A 1
    The result should look like this,
    Customer Value
    xyz A1 B2 B1
    AAA C7 A1
    How would I group this into once value ?
    Thanks in advance ...

    Tom's discussion of writing your own aggregate routines
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2196162600402
    starts off with a link to the 8i alternatives
    "see
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:229614022562
    for 8i methods (not aggregates)"
    Unforutnately, it's a lot more work in 8i.
    Justin

  • Trigger to concatenate two fields in a table

    Hi
    I am trying to concatenate two column in a table and add to the third column in the same table, all the columns are
    numbers, I want to write a trigger which is after insert to do that..does anyone know how its done...
    thanks a lot
    Jessica

    Hi, Jessica,
    Welcome to the forum!
    Do you really need to store this concatenation? The way you would get these results in a normalized database is to store the numbers separately, and comnbine them, when necessary, in queries and reports. You can use use a view to avoid repeating the same coiding over and over.
    If you really want to store the value, use a BEFORE INSERT OR UPDATE trigger, like this:
    CREATE OR REPLACE TRIGGER     table_x_biu
    BEFORE     INSERT OR UPDATE
    ON     table_x
    FOR EACH ROW
    BEGIN
         :NEW.column_3 := TO_CHAR (:NEW.column_1)
                    || '-'
                    || TO_CHAR (:NEW.column_2);
    END;I'm confused by your exact requirements. Concatentaion can only be done to strings.
    If column_1 and column_2 are NUMBERs, the trigger above will make string versions of those numbers, concatenate them together (with a hyphen between them), and put the results in the VARCHAR2 column column_3.
    So after this statement:
    INSERT INTO  table_x (column_1, column_2, column_3)
           VALUES          (1,     2,       '9-8');the new row will have column_3= '1-2'. (In this case, there is no point in explicitly setting column_3, because the trigger will always set the value based entirely on column_1 and column_2.)
    If you need more help, post CREATE TABLE , INSERT and UPDATE statements, and who what you want the table to contain after each INSERT or UPDATE.

  • How to subtract two fields

    Hi,
    All,
    I want to calculate balence quota. by usingdifference of  two fields.   ITAB-ANZHL and ITAB-ABWTG .
    . i have taken a variable A FOR balence Quota. in itab i have defined A TYPE C,  in field catalog i have written
    'A'    'ITAB'   'BALENCE QUOTA'. so how need to perform coding for calcualte balence quota.
    A is for balence quota.
    Thanks,
    Regards,
    Saurabh

    DATA : BEGIN OF ITAB OCCURS 0 ,
           PERNR LIKE PA2006-PERNR,
           KTART LIKE PA2006-KTART,
           KTEXT LIKE T556B-KTEXT,
           ANZHL LIKE PA2006-ANZHL, " Quota number
           BEGDA LIKE PA2006-BEGDA,
           ENDDA LIKE PA2006-ENDDA,
           KVERB LIKE PA2006-KVERB,
           AWART LIKE PA2001-AWART,
           ATEXT LIKE T554T-ATEXT,
           STDAZ LIKE PA2001-STDAZ,
           ABWTG LIKE PA2001-ABWTG,
           KALTG LIKE PA2001-KALTG,
           A TYPE I,
          END OF ITAB.
          DATA : B TYPE I.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : PERNR FOR  PA2006-PERNR NO-EXTENSION NO INTERVALS .
    SELECT-OPTIONS : BEGDA FOR  PA2006-BEGDA NO-EXTENSION NO INTERVALS.
    SELECT-OPTIONS : ENDDA FOR  PA2006-ENDDA NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN : END OF BLOCK B1.
    'PERNR'  'ITAB'  'Personnel no',
    *'GJAHR'  'ITAB'  'Year',
    'KTART'  'ITAB'  'Absence Quota type',
    'KTEXT'  'ITAB'  'Text',
    'ANZHL'  'ITAB'  'Quota Number',
    'KVERB'  'ITAB'  'Quota Deduction',
    'BEGDA'  'ITAB'  'Start',
    'ENDDA'  'ITAB'  'T0',
    'AWART'  'ITAB'  'Absence Quota Type',
    'ATEXT'  'ITAB'  'Text',
    'STDAZ'  'ITAB'  'Absence hours',
    'ABWTG'  'ITAB'  'Absence Days',
    'KALTG'  'ITAB'  'Calender Days',
    'ABWTG' 'ITAB'   'Quota Used',
    'A'      'ITAB'  'Balence Quota'.
    SELECT   M1~PERNR
             M1~KTART
             M1~ANZHL
             M1~BEGDA
             M1~ENDDA
             M1~KVERB
             M2~AWART
             M2~STDAZ
             M2~ABWTG
             M2~KALTG  INTO CORRESPONDING FIELDS OF TABLE ITAB
                       FROM PA2006 AS M1
                       INNER JOIN PA2001 AS M2
                       ON M1PERNR = M2PERNR
                         AND M1BEGDA = M2BEGDA
                         AND M1ENDDA = M2ENDDA
                       WHERE M1~PERNR IN PERNR AND
                             M1~BEGDA IN BEGDA AND
                             M1~ENDDA IN ENDDA .
         IF SY-SUBRC <> 0 .
         MESSAGE 'DATA NOT FOUND' TYPE 'W' .
         ENDIF .
    LOOP AT ITAB .
    SELECT SINGLE KTEXT FROM T556B INTO (ITAB-KTEXT)  WHERE KTART = ITAB-KTART.
    SELECT SINGLE ATEXT FROM T554T INTO (ITAB-ATEXT) WHERE AWART = ITAB-AWART.
    MODIFY ITAB INDEX SY-TABIX TRANSPORTING KTEXT ATEXT.
    ENDLOOP.

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • How to compre two fields: one whith Decimal and other without decimal?

    Hi all,
    I am doing a file to IDOC scenario.
    In file strcture I have to compare two fields.
    ActiveHSCode and Decree166HSCode where
    ActiveHSCode comes with decimal values like for eg 1234.56.789.0 and Decree166HSCode comes with values like for eg 1234567890 or 4567891230 etc.
    I have to ignore decimal point from ActiveHSCode and compare with Decree166HSCode,
    If both of them are equal I have set ActiveIndicator as'Y' else 'N' and map this field to IDOC's field.
    How to achieve this?
    Please suggest.
    Regards,
    Sachi

    Hi,
    Since all the fields in mapping comes by default as a  string ....
    you first extract the value from ActiveHSCode using the string functions.
    Then compare the
    ActiveHSCode and  Decree166HSCode.
    Since u want to check only for the equality dont convert them to numbers.
    Directly check as a string.
    The code for extracting the value without decimal value is..
        String s = "12345.6789";   
        s=s.substring(0,s.indexOf(".")) s.substring(s.indexOf(".")1);    
        System.out.println(s);
    result:123456789
    Babu.

  • How to check two fields are matching in a validator?

    I have a "Password" field and a "Conform password" field. I like to check whether these two fields are matching in the password_validate(FacesContext context, UIComponent component, Object value) method. How to do that?
    Thanks.

    The actual problem is you can't get the value of one
    component into the next component's validator
    method.I do not find this to be true. For example, in the blog that I gave the URL to, you can see this code
    public void endCalendar_validate(FacesContext context, UIComponent component, Object value) {
    Date endDate = (Date)value;
    Date startDate = startCalendar.getSelectedDate();
    Here the validator for the endCalendar component is getting the value from a different component, the startCalendar component.

Maybe you are looking for

  • Help in Setting Password Protection to a Page in DW MX2004

    I need to add password protection to a page.  How do I do this in DW MX2004? Any help would be appreciated. Dreawmweaver newbie.

  • Native Extensions + FDT 5

    I am using FDT 5 and trying to use IOS native extensions. I am pulling my hair out because every time I try running the application locally I get the following error: "Not supported native extensions profile" So I've tried scouring the web to find so

  • Vmmservice crash 2012 Sp1 Ru2

    VMMSERVICE crashes when attempting to delete a missing VM ... pretty sure this was not the case before RU2 ...  What a mess !  When using RDS in 2012 VM's get created and deleted  when creating or removing VM pools... this leaves a HUGE mess in SCVMM

  • Reducing huge file sizes

    I am making very detailed artwork in Illustrator that ultimately has to be uploaded to a website as a pdf file. This artwork takes ages to save and when converted to pdf format, even at the lowest quality pdf, the files are huge. What is the best way

  • How to find the Unfilled aggreates of all the cubes in my project

    Hi, i have a  requirement in project i need to find all the fillled and un filled aggreates in all cube in my project , as i have 350 cube in my project icant go and open all the cubes , so please tell me some tcodes are programs to check the details