Concatenate out put of 2 or more columns in BEX Report in to one column

Hi,
I am working on service order report in BEX, and i would like to Concatenate out put of 2 or more columns in BEX Report in to one column.
Please share me if any scenarios.
Thank
Neni

Hi Ashutosh,
Thanks for your reply,
Actually in my report 4 different columns belongs to service orders information from different departments, i want see all 4 columns information in to single column, those four are virtual characteristics.
As per your solution concatenate in workbook using function, can you please give me the steps how to do that.
Thanks for your help.
Thanks
Neni.

Similar Messages

  • Out put file is not genrated when calling xml reports from OAF page

    Dear all
    i am calling xml reports from OAF page
    the out put file is not generated
    i am writing this code
    public int tradingrequest(String quoid, String costoder,int orgid)
    try
    OADBTransaction tx = (OADBTransaction)getOADBTransaction();
    java.sql.Connection pConncection = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(pConncection);
    String applnName =
    "XXCRM"; //Application that contains the concurrent program
    String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
    String cpDesc =
    "Trading Costsheet Report XXCRM"; // concurrent Program description
    Number orgid1=new Number(orgid);
    // Pass the Arguments using vector
    Vector cpArgs = new Vector();
    cpArgs.addElement(quoid);
    cpArgs.addElement(costoder);
    cpArgs.addElement(orgid1.toString());
    // Calling the Concurrent Program
    int requestId =
    cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
    tx.commit();
    System.out.println("Request ID is " + requestId);
    return requestId;
    } catch (RequestSubmissionException e)
    OAException oe = new OAException(e.getMessage());
    oe.setApplicationModule(this);
    throw oe;
    in controller i am writing this code
    OAMessageStyledTextBean y =
    (OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
    OAFormValueBean z =
    (OAFormValueBean)webBean.findChildRecursive("costorder");
    String quoid = y.getValue(pageContext).toString();
    String costorder = z.getValue(pageContext).toString();
    System.out.println("The quotation id and costing order are....." + quoid +
    " " + costorder);
    /*if click on run report button to run the report*/
    if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
    if (tsflag.equals("Y"))
    int requestid = am.servicerequest(quoid, costorder, orgid);
    String url =
    "OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
    requestid;
    pageContext.setForwardURL(url, null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
    null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    when i call the report from oaf page the request id is coming
    when i click on view output i am getting this message
    Error
    The concurrent request 7335031 did not create an output file.
    WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
    Regards
    Sreekanth

    java.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
    MY CO code
    if("GenerateReport".equals(event))
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
    try {
    // Hashtable hashtable = new Hashtable(1);
    // hashtable.put("TruckBookingRefNum",trucknum);
    // System.out.println("test"+trucknum);
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
    response.setHeader("Content-Disposition",contentDisposition);
    response.setContentType("application/HTML");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
    //Generate the PDF Report.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    "LFCUST",
    "XXLFCARSUM_TARGET",
    "English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    "US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_HTML,
    null,
    pdfFile);
    // hashtable);
    System.out.println(" TemplateHelper");
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    System.out.println(" byte"+b);
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    pdfFile.flush();
    pdfFile.close();
    catch(Exception e)
    System.out.println(" inside catch");
    response.setContentType("text/html");
    throw new OAException(e.getMessage(), OAException.ERROR);
    pageContext.setDocumentRendered(true);
    Edited by: user9367919 on May 13, 2010 10:31 AM

  • Query to get the data of all the columns in a table except any one column

    Can anyone please tell how to write a query to get the data of all the columns in a table except one particular column..
    For Example:
    Let us consider the EMP table.,
    From this table except the column comm all the remaining columns of the table should be listed
    For this we can write a query like this..
    Select empno, ename, job, mgr, sal, hiredate, deptno from emp;
    Just to avoid only one column, I mentioned all the remaining ( 7 ) columns of the table in the query..
    As the EMP table consists only 8 columns, it doesn't seem much difficult to mention all the columns in the query,
    but if a table have 100 columns in the table, then do we have to mention all the columns in the query..?
    Is there any other way of writing the query to get the required result..?
    Thanks..

    Your best best it to just list all the columns. Any other method will just cause more headaches and complicated code.
    If you really need to list all the columns for a table because you don't want to type them, just use something like...
    SQL> ed
    Wrote file afiedt.buf
      1  select trim(',' from sys_connect_by_path(column_name,',')) as columns
      2  from (select column_name, row_number() over (order by column_id) as column_id
      3        from user_tab_cols
      4        where column_name not in ('COMM')
      5        and   table_name = 'EMP'
      6       )
      7  where connect_by_isleaf = 1
      8  connect by column_id = prior column_id + 1
      9* start with column_id = 1
    SQL> /
    COLUMNS
    EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,DEPTNO
    SQL>

  • How to show/hide a link column in a report, depending on another column?

    Sorry, thread duplicated.
    Edited by: Andres Vilallave on 14-may-2010 15:31

    Hello,
    I had a situation similar to this. I had NULL selected in the column when I wanted to hide the link. Please find below more explenation:-
    <b>example report </b>
    Interactive Report
    Col1     col2     col3
    1          a1       a2
    2          b1       b2
    -           c1       c2
    -           d1       d2
    -------------------------------------------In the above Report <b><i>col1</i></b> is a link . Upon clicking this, user should will be directed to Page XX
    so, when data in col2 of report is c1 or d1[can be a different display condition, you may want to implement this with CASE or anyother SQL construct] , I selected NULL which will not show the link.
    so, my point is, if the SQL you have in the INTERACTIVE REPORT is creative enough to have NULL in the column, Link is not enabled.
    Hope I got your problem correct.
    Thanks,
    Chaitu.

  • Columns in BEx report

    Hello guys.
    I have quite a problem here with my key restricted key figures.
    I need to restrict for example SALES with date interval - so we have e.g. 09.2007 and 12.2007. Then I need one more key figure from the beginning of the year till first margin - 01.2007 and 09.2007. It is no problem - I get it via standard variable or user-exit variable. The problem is that when I have 0CALMONTH in columns I get my view like this:
    01.2007 02.2007...09.2007...12.2007
    SALES SALES     SALES
    but I need the sum from 01.2007 till 09.2007 as one column and sales  from 09.2007 till 12.2007 by month:
    01-09.2007 09.2007 10.2007...12.2007
    SALES*      SALES   .........................
    *sum of all sales for 8 months
    Does anyone have any ideas?
    Edited by: John  Smith on Dec 20, 2007 9:58 AM

    Hi,
    Take a new selection in the colums and restrict the sales with the 1 to 8 months. And take another selection restrict it with 8 to 12 months.
    Khaja

  • Is there a way to have autogenerated columns in SSRS Report without declaring the column defination at design time.

    I just have a procedure in which i do have a dynamic query.It has certain parameter on the basis of which different set of columns will be returned in the result set. Now I want a SSRS report which can automatically pick up the columns from the Procedure
    result.without declaring column Names at Design Time(As i don't know which columns will come in the result set)
    PS:- I can't make separate matrix/table with their respective column names and show/hide them as I don't know which columns will come from procedure.
    Thanks
    Kanwar

    Can you please give a reference.I want a matrix or table to display the result set as is returned from the procedure.(Lets just say you keep the columns fixed).How without writing the column Names in table/matrix it automatically generates
    the columns similar to resultset.
    A bit of background for Understanding scenario:
    We want to give users the column names, arithmetic operators,etc.(From UI) and then send the query to SSRS. This query will be sent to SQL procedure(which is being used in RDL).What after that ??? . SSRS is not changing the result set dynamically.So as the
    result set is not definite i want table/matrix to populate the data returned from procedure automatically (without defining columns at design - time).
    Thanks
    Kanwar

  • Dynamic columns in Bex report

    Hi Experts
    I have a requirement where i need to populate result columns based on user input.
    for Example if user inputs Fiscal year period as 001.2010,002.2010,003.2010 then report should have 3 columns based on inputs and display value of pertucular keyfigure for that perticular fiscal period.
    youser may input multiple fiscal periods here.
    Is it possible to do this?
    Regards
    Sudeep

    Hi
    when i drag fiscper in columns i see only 1 column and agreegated values for all inputs entered by user.
    Regards
    Sudeep

  • HOW TO FIX COLUMN IN BEX REPORT

    Hello Gurus,
    I have created BEX report in which user want 1st two column (Material and its describtion) to be fixed as if he want to check all relavent result related to Material the first 2 column should not be move it should be fixed and rest other results and other column should move,

    Hi Wajid,
    The VBA code i gave earlier will do this automatically for your users. Please use it. It freezest columns A and B so that columns A and B dont move even if your users scroll to the right. It just stays there.
    In your workbook after you have inserted your query, go to Tools->Macro->Visual Basic Editor. Then go to Insert Menu->Module. Double click the module that have been created (probable name is Module1) and then on the code editor paste this code:
    Public Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
       Range("C1").Select
       ActiveWindow.FreezePanes = True
    End Sub
    Everytime the users refresh your query it will freeze the first to columns. So at least you are sure that the columns A and B are frozen.

  • Dynamic comparison column in Bex report

    Hi Gurus
    I have the following request, could any of you kindly help me out?
    Content example in Cube:
    GL Act| Fiscyear| Fiscper3| Amount
    10001 |2004     |12       |100
    Report: Cross-year comparison determined by period
    Specifying fiscyear and period range is enabled as user-input, e.g. choose year 2003 to 2005 and period 01 to 03
    The following layout is our target:
    header: period 01-03
    GL Act| Y2003| Var2003-2004| Y2004|  Var2004-2005| Y2005
    10001 | 100 | 200         | 300 |  -100        | 200
    10002 | 300 | 500         | 800 |  200         |1000
    I think the point is to achieve the "variance" column which is dynamically determined by fiscyear where user inputs, since restricted key figure cannot achieve the "dynamic" solution.
    Thanks in advance!

    Hi Eric,
    My approach is somewhat not flexibible but it may suit your needs.
    Will try to describe it in more details.
    Let’s assume that this periods contain full information: a year and a period within a year and that there are 12 periods in the year. A user enters a a range of periods P1 – P2 (let’s say of 2005) and wants to compare some KF for the given time period with that for 2004, 2003 and calculate difference between periods.
    Solution:
    Create two – for P1 and P2. All vars are user entry ones. If P1 is always the first period in the year then P1 might be determined in the user exit.
    Create a structure in rows.
    New selection. Name it as Y2003. Put here your KF and Fiscal year/period. Restrict it with P1 – 24, P2 – 24.
    New selection. Name it as Y2004. Put here your KF and Fiscal year/period. Restrict it with P1 – 12, P2 – 12.
    New selection. Name it as Y2005. Put here your KF and Fiscal year/period. Restrict it with P1, P2.
    New formula for Var2003-2004. Place into formula Y2004 - Y2003.
    New formula for Var2004-2005. Place into formula Y2005 - Y2005.
    Regardless of selection’s names this query will show values for given periods of 3 years: entered, year before entered and entered -2. 
    Best regards,
    Eugene

  • Dynamic add column in Bex report

    Hi all,
             we have input parameter is month wise. For example if i have input 12.2011 - 03.2012
    Output:
    12.2011--01.2012--02.2012-----04.2012
       50kg -
    70--90--
    54
    Like above dynamically have to change column based on month input parameter. Please guide me how to design bex query.
    Thanks
    Saravanan

    hi,
    restrict calmonth with variable type manual input, and put this calmonth in columns on top of amount or quantity. It will give you your desired output.
    hope this helps,
    regards,
    ray
    Edited by: ray100 on Mar 9, 2012 2:54 PM

  • Display all columns but only unique values in one column

    My table looks like this;
    ApprovalKey (PK)
    ApprovalCCN (Links to main table)
    ApprovalName
    ApprovalDate
    ApprovalMsg
    ApprovalResult
    Typical data would look like;
    Key CCN ApprovalName ApprovalDate ApprovalMsg ApprovalResult
    1 1 John Smith 12/12/2014 16:20:22 Testing the message False
    2 1 Andy Brown 12/12/2014 16:20:27 testing the decline False
    3 1 John Smith 12/12/2014 16:20:46 More testing True
    4 1 Andy Brown 12/12/2014 16:25:13 testing True
    5 2 Andy Brown 12/12/2014 16:25:26 testing the accept True
    6 2 John Smith 12/12/2014 16:34:04 testing, 1 2 True
    When I view data from linked table (matched via ApprovalCCN) It should display data from this table but only the latest unique entry from ApprovalName.
    eg, table from above has 4 entries for ApprovalCCN=1 but should only show the following;
    Key CCN ApprovalName ApprovalDate ApprovalMsg ApprovalResult
    3 1 John Smith 12/12/2014 16:20:46 More testing True
    4 1 Andy Brown 12/12/2014 16:25:13 testing True
    Distinct ApprovalName doesn't return all values and I can't seem to get my head around Group By to view all columns
    Any help would be appreciated

    Here is my test data;
    7 30 John Smith 12/12/2014 16:20:22 Testing the message False
    8 30 Andy Brown 12/12/2014 16:20:27 testing the decline False
    9 30 John Smith 12/12/2014 16:20:46 More testing True
    10 30 Andy Brown 12/12/2014 16:25:13 testing True
    20 30 David Jones 12/12/2014 16:25:26 testing False
    21 30 David Jones 12/12/2014 16:34:04 Testing the message True
    25 30 Me 12/12/2014 16:35:05 testing the decline False
    26 28 You 12/12/2014 16:36:05 testing the decline False
    27 28 Me 12/12/2014 16:37:05 testing True
    28 28 John Smith 12/12/2014 16:38:05 testing the decline False
    29 28 David Jones 12/12/2014 16:39:05 testing the decline False
    30 30 David Jones 14/12/2014 17:39:44 True
    31 29 David Sawyer 14/12/2014 18:51:06 declining the offer False
    32 29 David Sawyer 14/12/2014 18:51:37 My message False
    33 29 David Sawyer 14/12/2014 18:52:01 another message False
    34 29 David Sawyer 14/12/2014 18:52:16 True
    35 29 David Sawyer 14/12/2014 18:52:25 True
    36 29 David Sawyer 14/12/2014 18:52:34 True
    If ApprovalCCN=30 I get the following;
    10 30 Andy Brown 2014-12-12 16:25:13.000 testing 1 1
    30 30 David Jones 2014-12-14 17:39:44.000 1 2
    9 30 John Smith 2014-12-12 16:20:46.000 More testing 1 1
    25 30 Me 2014-12-12 16:35:05.000 testing the decline 0 1
    All I need is 3 Approved, 1 Declined
    Apologies if I wasn't clear

  • SSRS 2005 - Dynamically control the width of columns in Matrix report or Hide any column

    Hi All,
    I just want to hide some column without having white space in Matrix report in SSRS 2005. Although I am aware of that perhaps this feature is not available on SSRS 2005. So, I just want to know if we can handle the width of column dynamically(using expressions)
    in matrix report?
    Please help. Thanks in Advance.
    Regards
    Kumud

    Hi Kumud,
    Based on my test, SSRS is not support column dynamically width. It has property “CanGrow” of text box. If we configure the property to True, it will wraps to next line if needed. In SSRS 2008, we can hide some columns without white space. If possible, I
    recommend you update your SSRS 2005 to SSRS 2008.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e6043f1-c458-4540-be59-d37b02feab8a/dynamic-column-width-for-a-report?forum=sqlreportingservices
    Alternatively, I recommend you that submit a wish to the Microsoft Connect at
    https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Current Date column in BEx report

    Hi,
    I need to add a column to show today's day in the report using query designer. I've been trying to add this column by adding structure in the rows section using 0DAT under the selection. But this has caused no data is displayed in the report. Can someone show me the step by step procedure how to add a column like this. Thank you in advacne.
    Sharon

    Hi,
    You create a Formula variable in Report and the wrie code in CMOD, then give that variable in Formula it will display date.
    WHEN 'ZVCURDAY'.
    ** Current Date Value
          CLEAR: l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range
    Thanks
    Reddy

  • Colour coding a report depending on one columns' data

    Hi All,
    I have no experience with CSS but i need to edit my report to show various rows in difrerent colours depending on the data in a single column ( STATUS ).
    Does anybody have a CSS file that i could just edit the table details in to acheive this ?
    Thanks

    The key is the row template:
    <tr class="#5#"><td>#1#</td><td>#2#</td><td>#3#</td><td>#4#</td></tr>
    (#5# is column 5 in your Query)
    where class sets the background color:
    tr.class1 td{background-color:#FFCCCC;}
    tr.class2 td{background-color:#CCFFCC;}
    tr.class3 td{background-color:#CCCCFF;}
    The 3 classes switch, depending on the deptno:
    decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass
    But it seems that the report source is not correct !!
    trclass is defined as Column1 but refered as Column5
    Correct report source would be:
    select ename, job, sal, comm,
    decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass
    from emp
    greetings,
    Jochen

  • Summation of column in Bex Report

    Hi All,
    I have a requirement where user wants to see that no. of Materials belongs to each vendor. And at the end of query user wants to see the over all count of material.
    I am able to get  no. of Materials belongs to each vendor but I am not able to get Overall Material count at the bottom of report.
    Please help me how to achieve this?
    Many Thanks!
    Arvind

    HI,
    I am able to get  no. of Materials belongs to each vendor but I am not able to get Overall Material count at the bottom of report. :
    For this just change kfg properties in calculations tab : Calculate result as Summation/Counter for all detailed values.
    Thanks

Maybe you are looking for

  • I'm trying to upgrade to IOS5 but I get an error 0xE8000067 and I can't update. What do I do?

    Like I said above, I am trying to update to iOS5 but I have a problem. When I try to update it says that it is backing up. But after about 5 minutes I get a 0xE8000067 error. I found someone saying to transfer purchases and if there is one app that k

  • Copy and paste, does the process slow down if...?

    What is the optimal way to copy and paste multiple tasks? My question is: Does the copy/paste slow down if I have multiple copy/paste processes at the same time? Or, should I wait until each is done to continue the next task? I have about 3 hard driv

  • Guys need some assistance!

    Hi.. before i purchased the nano i had previously had a ipod mini,the ipod mini came with a ipod udater which was "24/03/05", when it came to placing the nano updater on the comp i had loads of problems. 1)ipod would not appear in the load up part of

  • Display system error through a mail

    We have a  BPM scenario in which XI sends a msg to Backend system.If the message couldnot reach ,that displays system error at the call adapter level in SXMB_MONI.If we want this error message to be displayed in the failure mail to the concerned pers

  • Efficient way to export around 60K records

    Hi Gurus, I want to export around 60K records from Forms to Excel. Can someone please send me code for the same. The code i have written uses DDE and takes forever, it takes around 30 minutes minimum. I am pasting my code for reference. Please let me