Display two fields in one single cell in a BEx report.

In a BEx 7 query, we need to display 'First name' and 'Last name' in one cell/column called "Name". The 'First name' and 'Last name' are two different info objects in the multiprovider on which the query is built. These are navigational attributes for Char - Employee. The entire flow is in 7.0 version.
Any pointers to how this can be done in the query designer?
Thanks.

Hi,
Follow the following steps:
1. Create a Variable and in General Tab Set Processing By As Customer Exit.
2. Now go to CMOD & Write the following code doing some custom changes specific to your requirement:
WHEN "Variable Name"
"Here you can write a code to select the value from Infocube table and Loop it in a work area"    
Loop it_tab INTO wa
     concatenate S_date  s_tstmp into s_val_new separated by space.
      l_s_range-low = s_val_new.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'EQ'.
      APPEND l_s_range TO e_t_range.
END LOOP
Note: l_s_range is a structure and holds a single line whereas E_T_range stands for internal table and have multiple values . in customer exit (used for variable ) holds the derived value for the variable .
You can go to query and there u can drag this Characteristic on which you created this custom exit variable

Similar Messages

  • Hao to display two lines in one Graph

    Hi, I want to display two lines in one graph in different color , what should I do? Thanks.

    Hello Carlos,
    the help window for a waveform graph/chart only mentions "single plot
    with waveform datatype". To get more plots on one graph you have to
    build an 2D-array  of  points. Just look at the help window!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to get space between two values in a single cell of a table.

    hello,
            how to get space between two values in a single cell of a table.
    thanks a lot.
    kailash.

    sorry i got the answer.

  • Get value of two fields into one field

    Hellou,
    i need little help with javascript again
    Currently i'm using code below to get value from one field to other:
    getField("Text35").value = getField("Text1").valueAsString;
    Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
    Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
    I hope that u understood what i want
    Thanks for helping me!

    getField("Text35").value = getField("Text1").valueAsString + " " +
    getField("Text2").valueAsString;

  • How can I place two fields from one column side by side?

    Hello experts,
       I need your help: I have a column which has two different fields. One is Sales, the second is Sales Todate.
    My boss want me to get the difference btn them as well as the percentage. Now, here is my challenge: I can easily filter them but I want them to be side by side; but when I filter one appear on top of the other like below
    Sales                           
    Sales
    Sales
    Sales
    Sales
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    SalesTodate
    However, I want them appearing like below:    that way, I can place the difference column beside them.
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Sales
    SalesTodate
    Any help will be appreciated..  I have tried a case statement, still the problem persist
    Chuck
    On the side: Does anyone know how to place the question in such a way when one answers I can mark correct or helpful, I am still not able to.. I hate it, when I place a question I go through create then discussion, is that the right way?

    Hi
    Just drag the column to measure label area in pivot table @ columns.
    So the table has to drag and drop to column area on the top so it will get display like
    Sales     SaleToDate
    And the measure label to row side drag and drop it
    sales      saletodate
    values     values
    Regards,
    VG

  • Can I combine the out put of TWO FIELDs into One fields  in BW query

    Hi,
    For example, I have two fields ‘FIRST name’ and ‘last Name’ in the info provider and in theBW query these two are displayed in two separate field with independent drill down capability, Can I combine those and show as a single field with a single drill down capability.
    Thanks

    Hi Arunava,
    Combination of two fields can be done at Excel level where we will not get the drill down. We can rather use use an object which is compunded for the two names and then add them in the cube. we can achieve the functionality of drill down on the report level.
    Hope this will help you in resolve the issue.
    Regards,
    Phani.

  • Concatinating two fields into one..

    Hi all,
    I have a query wherin i need to concatinate two fields and display it into one.
    Query: We have two fields one of subtype 0001 and d other of subtype 0014. I have to display these two fields together.
    The fields are Pernr   Wtf08   ZAllergy   AEDTM    Zlastillness Exdat.
    Where Pernr wtf08 and zallergy Aedtm are in subtype 0001 and the pernr Aedtm Zlastillness Exdat are from the subtype 0014. I took a workarea of the type a method containing all the above fields. And now i want to show all the fields together in one field while displaying.
    Can u please help me with any pointers or any sample code.
    Thanks,
    Anita

    You can create a new Data field with character 255 or more.
    Then you use the CONCATENATE Function to combine all the field you wanted to.
    e.g.
    CONCATENATE Pernr wtf08 and zallergy Aedtm INTO L_display SEPARATED BY SPACE.
    L_display is the field to concatinate two fields.

  • Can there be two fields on one line?

    I want there to be two text fields on one line. Just as you would type and tab in a regular document? Or, does every field have to be below the previous?

    if you had powerline adapters then plug one beside the hub and connect with ethernet cable then plug the other where daughter works and then connect laptop with ethernet cable to powerline and then pair the powerline adapters.  laptop now has cable connection - no need for wifi security changes and faster connection for daughter as now cable
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Displaying two blocks in a single screen

    Hi all,
    I want to dispaly two screens in a single with as-usual properties.
    Please give your suggestions with steps.
    Thansk in advance,
    Regards,
    Balaaji.

    hi balaji ,
    create a main screen and in which  create two sub screens . like this .
    REPORT ZSUBSCREEN.
    TABLES: USR02,       "Logon data
             SSCRFIELDS.  "FIELDS ON SELECTION SCREENS
    SUBSCREEN 1
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
        SELECT-OPTIONS: USERNAME FOR USR02-BNAME.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN END OF SCREEN 100.
    SUBSCREEN 2
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
        SELECT-OPTIONS: LASTLOGI FOR USR02-TRDAT.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 200.
    SUBSCREEN 3
    SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-030.
        SELECT-OPTIONS: CLASSTYP FOR USR02-CLASS.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 300.
    STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
    SELECTION-SCREEN: FUNCTION KEY 1,
                       FUNCTION KEY 2.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK SUB FOR 15 LINES,
                       END OF BLOCK SUB.
    START-OF-SELECTION.
         SELECT * FROM USR02 WHERE BNAME IN USERNAME
                               AND ERDAT IN LASTLOGI
                               AND CLASS IN CLASSTYP.
            WRITE: / 'User ', USR02-BNAME,
                     'Last Login Date ', USR02-TRDAT,
                     'Last Login Time ', USR02-LTIME,
                     'CLASS ', USR02-CLASS.
         ENDSELECT.
    END-OF-SELECTION.
    INITIALIZATION.
    SCREEN ICON LEFT AND RIGHT
       SSCRFIELDS-FUNCTXT_01 = '@0D@'.
       SSCRFIELDS-FUNCTXT_02 = '@0E@'.
       SUB-PROG = SY-REPID.
       SUB-DYNNR = 100.
    AT SELECTION-SCREEN.
       CASE SY-DYNNR.
         WHEN 100.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 300.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 200.
           ENDIF.
         WHEN 200.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 100.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 300.
           ENDIF.
         WHEN 300.
           IF SSCRFIELDS-UCOMM = 'FC01'.
             SUB-DYNNR = 200.
           ELSEIF SSCRFIELDS-UCOMM = 'FC02'.
             SUB-DYNNR = 100.
           ENDIF.
       ENDCASE.
    regard,
    sandeep patel
    reward point if helpful

  • How to open two sockets in one single server

    May I open two sockets with different listening port numbers in a single server? For each socket, the way to deal with the inputstream and outputstream is different. May the thread be like this:
    public class twoSocketServer implements Runnable {
    public twoSocketServer() {
    try{
    SSLServerSocketFactory fact = SSLServerSocketFactory.getInstance(rand, selfPrivateKey, selfCertificate, trustEngine, null);
    serverSocket1 = (SSLServerSocket) fact.createServerSocket(ListeningPort1);
    serverSocket1.setNeedClientAuth(false);
    serverSocket2 = (SSLServerSocket) fact.createServerSocket(ListeningPort2);
    serverSocket2.setNeedClientAuth(false);
    } catch {...}
    public void run()
    while(true)
    try
    SSLSocket socket1 = (SSLSocket) serverSocket1.accept();
    new handler1(socket1).start();
    SSLSocket socket2 = (SSLSocket) serverSocket2.accept();
    new handler2(socket2).start();
    } catch {...}
    class handler1 extends Thread {...}
    class handler2 extends Thread {...}
    Is there something wrong with this idea? If yes, how can I correct it? Thanks.

    try
    SSLSocket socket1 = (SSLSocket)
    serverSocket1.accept();
    new handler1(socket1).start();
    SSLSocket socket2 = (SSLSocket)
    serverSocket2.accept();
    new handler2(socket2).start();
    Is there something wrong with this idea? If yes, how
    can I correct it? Thanks.You can do it.
    In the above code block you are going to need two threads. One for each SocketServer. The accept() method blocks until it recieves a connection. So in your above code it would first wait only for a connection on port 1. Then it would wait only for a connection on port 2. And then start over. That probably isn't what you want.

  • Displaying two pages on a single screen on iPad

    In the desktop version Adobe Reader can display two pages of a document on a single screen within the app. I hope Adobe will bring that feature on iPad which will be available if the iPad is in the landscape mode.

    In the desktop version Adobe Reader can display two pages of a document on a single screen within the app. I hope Adobe will bring that feature on iPad which will be available if the iPad is in the landscape mode.

  • How to display time difference in a single cell separately.

    Hi All,
    I have an issue where you have to calculate the Start time and End Time , Start Date and End Date for a particular Work item number
    For eg ;
    WI_ID            WI_CD                WI_CT
    000001312610        02/09/2009      09:48:4     02/09/2009      09:48:9 
    000001312610        02/09/2009      09:54:4   02/09/2009        09:54:9
    000001312610        02/09/2009      09:54:5     02/09/2009      09:54:9
    000001312610        02/09/2009      10:07:0  02/09/2009         10:07:9
    000001312610        02/09/2009      10:07:0     02/09/2009      10:07:9
    000001312610        02/09/2009       10:16:5     02/09/2009       10:16:9
    000001312610        02/09/2009     10:16:7       02/09/2009     10:16:9
    Similarly I get the Endtime and ENd dayfrom other table for same work item.so my output should have the result as ,So my requirement here is
    in the it should show the display in a single cell .as, 5secs, 5 secs,4 secs,9secs,4 secs,2 secs
    for each work item.
    Can any body help me on this issue.
    Any pionters for this are much helpful forme.
    Thanks
    Rohini

    Hi Kewin,
    Its not the question of concatenation, that can be handled later.
    But my issue is how to calculate time difference for each single step

  • 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

  • Joining Two Fields Into One Field for a View

    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;

    832667 wrote:
    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;to concatenate two string together do not use "+", but "||"
    SELECT FIRST_NAME||'.'||LAST_NAME FROM EMP;

  • Display two lines under one column in ALV

    Hello Friends,
    I have a situation... i need to display two or three lines under single column in ALV report.
    example:
    col1               col2           col3                col4
    AAA               10            456.78             TEST PURPOSE HBDFJEHBEJBE EBDF B EFH
                                                                 EDEHFKHEKFHEKJCFEKJFHKEJHFKEHFEFJK
                                                                 DJFHGCGD
    AAA               20            121.78             TEST PURPOSE HBDFJEHBEJBE EBDF B EFH
    BBB               10            11.78               TEST PURPOSE HBDFJEHBEJBE EBDF B EFH EJ
                                                                 EFKBEJF KEFHEKJFHEJ KFEHKE HFKEH
                                                                 MEFBHEJFB EFBEJ EFGJEGF JEGFEGEKJE KEFHK
                                                                 EFKEFEKLKL
    Anyone has idea?
    Thanks in advance
    Regards
    Raghu

    Hi,
      You can do this by doing some additional coding..
    Ex..
    **  Let's assume you are using the internal table t_output for displaying the ALV...
    **  and t_final contains the data..t_text which contains the multiple lines texts...for the
    ** column col4...
         DATA: s_output LIKE LINE OF t_output.
         DATA: v_flag      TYPE xfeld.
         LOOP AT t_final INTO s_final.
    * Clear the work areas.
            CLEAR: v_flag,
                         s_output.
    * Move all the data.
           MOVE ls_final TO s_output.
            LOOP AT t_text WHERE col1 = s_final-col1.
    * First time move all the columns to the output internal table...for the rest of the records
    * just populate the col4..
                IF v_flag IS INITIAL.                     " For the first time.
                   s_output-col4 = t_text-text.         " Move the text.
                   APPEND s_output TO t_output.
                   v_flag = 'X'.
                ELSE.
                   clear s_output.
                   s_output-col4 = t_text-text.         " Move the text.
                   APPEND s_output TO t_output.
                ENDIF.
            ENDLOOP.
    * IF there is no text found just append the output internal table with blank col4.
            IF sy-subrc <> 0.
                   APPEND s_output TO t_output.
            ENDIF.
         ENDLOOP.
    Hope the example is clear...
    Thanks
    Naren

Maybe you are looking for

  • Is there a way to place the Dock on the bottom of a secondary monitor?

    I use my iMac as primary monitor and a secondary display on the right. Is there a way to place the dock on the bottom of the secondary monitor(in a way that the display arrangment actually match the monitor position on my desk)? I want something like

  • Getting Error While deploying the BPEL process

    Hi All, I am getting the following error while deploying the BPELProcess. The BPEL process is simple one which is having a Recieve from client and another Recieve from FTPAdapterfor Recieve Operation. Help me in resolving this. Thankyou. Process "BPE

  • Adobe reader 9.0 + Adobe Acrobat 5.0 on Internet explorer 7.0 ?

    Hello! I possess Adobe Acrobat 5.0 to create some PDF documents I possess Adobe Reader 9.0 to read some PDF The 2 programs operate WindowsXP SP3 well. I don't manage to open a PDF file with Internet Explorer 7.0 = he looks for has open Acrobat instea

  • Dynamic xml datasource

    Post Author: ililal CA Forum: Data Connectivity and SQL This is a java web application  using:jdk 1.4.12crystal reports xi r2sun application server  8.2Here's the problem:I would like to generate a dynamic XML document as the datasource. (This XML da

  • How can use EJB local call in WLS 7.0 without EAR

    I have web application as jsp files. and I made .jar for some EJBs and I used local call for calling EJB from jsps in WLS 6.1 but in WLS 7.0 .. occured error calling EJB as Local call while JNDI lookup. So I packed all applications as EAR and deploye