Add Columns to Adhoc Reports Layouts?

Are there any config or sql injections or translations to add additional columns to the custom layouts in the Adhoc Reports in RPT?
Specifically, would like to display Related Specs when running reports for Trade Specs.
Edited by: Trey on May 1, 2013 11:26 AM

You could probably technically add related items as a search result column in a ready report, but it isn't an out of the box available result column. So it will require some undocumented customization work. I don't think the results grid is the best location for this data due to performance implications and even UI display challenges. I think your best option would be to create a BI Publisher report. Your PLM4P license includes a free limited use license for BI Publisher. This would be a good topic to discuss during a dev to dev call.

Similar Messages

  • Add Columns to Updatable Report

    Hello,
    i need some help regarding an "Updatable Report".
    My goal is to have some SelectLists in comluns named "2008_05", "2008_08", ....."2010_01", "2010_04".
    The user must have the option to add more cloumns.
    My process on submit is:
    declare
      SQL_STRING varchar2(4000);
    begin
      SQL_STRING :=  'ALTER TABLE TAB_REPORTS ADD "' || :P3700_COLUMN_NAME ||  '" varchar2(100)';
      EXECUTE IMMEDIATE(SQL_STRING);  
      return;
    end;At the moment I have this code for a standard report returning a SQL query:
    declare
      q varchar2(4000);
    begin
      q := 'SELECT R_ID, PLANT_NAME, UNIT_NO, R_TSO_NO TSO_NO';
      For i in (SELECT * FROM USER_TAB_COLUMNS
      WHERE table_name = 'TAB_REPORTS'
      AND column_name like '2%')
      loop
        q := q || ', ';
        q := q || 'APEX_ITEM.SELECT_LIST_FROM_LOV (1, ';
        q := q || chr(34);
        q := q || i.column_name;
        q := q || chr(34);
        q := q || ', ';
        q := q || chr(39);
        q := q || 'LOV_QER';
        q := q || chr(39);
        q := q || ', ';
        q := q || 'null';
        q := q || ', ';
        q := q || chr(39);
        q := q || 'Y';
        q := q || chr(39);
        q := q || ') as "';
        q := q || i.column_name;
        q := q || '"';
      end loop;
      q := q || ' FROM TAB_REPORTS ';
      q := q || ', TAB_SD';
      q := q || ', TAB_CONTACT';
      q := q || ' WHERE TSO_NO = R_TSO_NO';
      q := q || ' AND CON_PLANT_NAME = TAB_SD.PLANT_NAME';
      q := q || ' AND R_TSO_NO = decode(:P3700_FILTER_PLANT_NAME, ';
      q := q || chr(39);
      q := q || 'all';
      q := q || chr(39);
      q := q || ', R_TSO_NO, :P3700_FILTER_PLANT_NAME)';
      q := q || ' ORDER by PLANT_NAME, UNIT_NO';
      return q;
    END;The function returning a SQL is not working for an updatable report.
    It has to be static i think.
    Any solutions or ideas?
    Thx & greetings
    Chris

    Problem solved. See [this post|Add columns to CV04N report;
    Regards.
    Gregory.

  • Dynamic Column Headings in Report Layout

    I am using Report Query/Report Layout for a custom report in BI publisher. My Column Headings are stored in the database. On my pages, I am using the replacement format ' &FIELD_NAME.' to have them show up correctly. How can I do that on my Report Layout?

    Hi -
    1) Add Query just for column headings under Source Query (you can obviously pass in bind variables to select the correct column values if need be).
    2) For layout, pull in the headers from data model (just like any other field) and use them to replace any existing "hard coded" headers.
    Good luck.

  • OIM report / add column to working report

    Hi,
    I need some help with OIM reports.
    Cannot add a column to a working report. What I have done is that I have changed the Stored procedure and then changed the Report XML Metadata to include that column.
    The report just turns out to be blank after the changes made.
    A snippet of the change to the Stored Procedure(added line in bold):
    -- contruct the query
    strColumnList := ' tusracc.system as "SYSTEM", ' ||
    ' vifs.ifsemp_employee_id as "EMP_ID", ' ||
    ' vusr.usr_first_name || '' '' || vusr.usr_last_name as "EMP_NAME", ' ||
    *' vusr.usr_status as "USR_STATUS", ' ||*
    ' tusracc.attribute as "ATTRIBUTE", ' ||
    ' tusracc.attrvalue1 as "ATTRVALUE" ';
    strFromClause := ' v_users vusr, v_ifsusers vifs, tmp_user_access tusracc ';
    strWhereClause := ' tusracc.usr_key = vusr.usr_key ';
    strWhereClause := strWhereClause || ' and vusr.usr_key=vifs.usr_key(+)';
    IF strsortcolumn_in IS NULL THEN
    strOrderByClause := ' 2 ' ;
    ELSE
    strOrderByClause := strsortcolumn_in ;
    END IF;
    IF strsortorder_in = 'DESC' THEN
    intSortDirection_in := 0;
    ELSE
    intSortDirection_in := 1;
    END IF;
    -- run the report query
    XL_SPG_GetPagingSql(strColumnList,
    strFromClause,
    strWhereClause,
    strOrderByClause,
    intSortDirection_in,
    intStartRow_in,
    intPageSize_in,
    select_stmt
    OPEN csrresultset_inout FOR select_stmt;
    ELSIF intdocount_in = 2 THEN
    OPEN csrresultset_inout FOR select dummy from dual;
    END IF;
    In the report XML Metadata I have added a line for the USR_STATUS column(change in bold):
    <Report layout="Tabular">
    <StoredProcedure>
    <InputParameters>
    <InputParameter name="v_resource_name" parameterType="varchar2" order="1" fieldType="LookupField" fieldLabel="report.ResourceAccessList.label.resourceName" required="true">
         <ValidValues lookupCode="Lookup.Reports.Objects"/>
    </InputParameter>
    </InputParameters>
    </StoredProcedure>
    <ReturnColumns>
    <ReturnColumn name="SYSTEM" label="customer.report.system" display="true" position="SectionHeader" primarySort="true" filterColumn="false" />
    <ReturnColumn name="EMP_ID" label="customer.report.emp_id" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    <ReturnColumn name="EMP_NAME" label="customer.report.emp_name" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    *<ReturnColumn name="USR_STATUS" label="global.label.Status" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />*
    <ReturnColumn name="ATTRIBUTE" label="customer.report.attribute" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    <ReturnColumn name="ATTRVALUE" label="customer.report.value" display="true" position="SectionHeader" primarySort="false" filterColumn="false" />
    </ReturnColumns>
    </Report>
    Anything that I have missed to do? We have restarted the app server, but it still doesn't work.
    Regards,
    Thomas

    Arghle.....
    I found the reason for the blank result page with this...
    apparently we are not allowed to name a resulting column in a stored procedure to USR_STATUS, silent fail :/
    When I renamed this to EMP_STATUS it all works as intended...
    Duh!
    I wonder in where it says not to do this...

  • Use XML stored in the DB with an Named Columns (XSL-FO) report layout

    Hi Folks.
    Here's my 'challenge' du jour.
    I have an XML document saved in the database.
    It was uploaded through APEX (form with report) into a table where the column holding the XML file is defined as "SYS"."XMLTYPE"
    I have an XSD file which I am using as the report template definition.
    my report query is
    SELECT xml_data
    FROM   xml_documents
    WHERE  filename = 'test.xml'When I run the report in APEX stating "Use Generic Report Layout" I get a PDF stating [unsupported data type]
    Does anyone have any pointers/suggestions?
    I have downloaded Apache FOP 0.95 and have succesfully converted the XML into a PDF using the XSL file. Consequently I know that the XML and XSL documents I am using are 'well formed'.
    Many thanks
    Kind regards
    Simon Gadd
    Edited by: Simon Gadd on Mar 23, 2009 6:29 PM

    Just as a follow up, I have come to the logical conclusion that the APEX report query is expecting you to pull back a regular data set from a SQL query.
    This can then be parsed with an XSL format report layout. It's not expecting you to pull complete XML out of the database.
    Am I right?
    Simon

  • How can I delete/add Columns in my Report?

    Hi everybody,
    i´ve just a silly little question...
    We´re using APEX to revise our Daily Reject-Rows and some other Dimensiontables.
    For every Table, witch is to revise we´ve got a single Page in our APEX Application.
    Also, in every Page we created a Report for our users,
    so that they can revise the Data,
    and published it in our intranet, using a Webserver.
    Now my Question...
    In one of these Pages we´ve more then 110 columns in the sql Region Source,
    placed in the Region Definition.
    But...in the Report Attributes, there are only shown 99 Columns.
    I must integrate 3 or 4 more Columns from my Source Definitioned Table in the Report.
    Where can i do this?
    I only see how i can edit the columns, make them visible or hide them,
    define their Propertys...but where can i add a new Column?
    or delete one?
    I´m very thankfull for every Awnswer :-)
    Best Regards
    LoneWolf

    Ok, i found a Solution...
    It seems to be a BUG. (?)
    The Report Attributes will be realy generated automaticly
    under using the Source Definition, but...
    - There´s a Restriction in the Sum of all Columns,
    it can be only 99 witch will be able to define and revise.
    - If you´ver got more then 99 Columns in your Source
    you have to specified them exactly, by Name
    ...AND...
    - you have to create the Source SQL new.
    It is not sufficiently if you change the Position of the Columns in the SQL Source (placed at the Region Definition).
    I copied and pasted the Source SQL three Times,
    before APEX accept the changes of the Position from the Columns.
    At least...
    In the Moment as i define the needed Column,
    (now in the Report Attribute available),
    APEX understands it an i can put the others Columns (Columns 99 till 110) back in the Source SQL, without loosing my needed Column in my Report again.

  • Add Column Delete  in report, How to delete row using this delete Option

    Hi Friends,
    i have a report ,iwant to add an option DELETE in last column.When i click on DElete then respective id sholund be deleted.
    My Table Is
    CREATE TABLE  "DUMY_FILE"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "FILE_OBJ_ID" NUMBER,
         "MIME_TYPE" CLOB,
         "DOC_SIZE" NUMBER,
         "BLOB_CONTENT" BLOB,
         "DESCRIPTION" VARCHAR2(500),
         "UPLOAD_DATE" CHAR(25)
    How can i do this.
    Thanks
    Edited by: 805629 on Nov 16, 2010 11:51 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Trent,
    Thanks for you suggestions. .. Let me explain my problem a little better ...
    I have a report that lists fields associated with a report ... I have a delete icon which deletes a row and removes it from the underlying table ... however, I am trying to implement a Before header process which runs a pl/sql process that checks if the selected field is the last field in the report ... if so, I want a confirmation dialog to pop up ... if they click cancel .. then the deletion is aborted, else the field is deleted (which triggers other status changes).
    Based on this logic if there is a way to implement this based on your suggestion I would appreciate it ...
    Here is the process I was trying to use .... but the I have a few issues with this approach
    declare
    -- cursor to check if this is the last field
    cursor fld_cnt is
    select count(*) from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID;
    num_flds number;
    msg varchar2(300);
    begin
    open fld_cnt;
    fetch fld_cnt into num_flds;
    If num_flds > 1 then
    delete from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    commit;
    :P9_DELETED_FLD := NULL;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    apex_application.g_print_success_message := msg;
    else
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("This is the last field included in this report .. \n Deleting it will Inactivate the report and remove it from schedule (if scheduled) ...\n Do you want to proceed?");
    if (r==true)
    {      delete from prm_ptnr_rpt_fields 
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    :P9_DELETED_FLD := NULL;
    commit;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    update prm_ptnr_rpts
    set report_status = 'INCOMPLETE',
    active_report = 'N'
    where report_uid = :P22_REPORT_UID;
    msg := msg || ' and Report Status changed to INCOMPLETE';
    apex_application.g_print_success_message := msg;
    htp.p('}else {
    alert("Delete Action Aborted");
    htp.p('</script>');
    End if;
    Close fld_cnt;
    end;
    a) Even if I click cancel ... the field still gets deleted ...
    b) :P9_DELETED_FLD is the id for the selected field ... I am setting it on the link attributes which places it on the URL ... I would rather user javascript (but not exactly sure how).
    Thanks,
    Gerald
    Edited by: user5459177 on Feb 22, 2011 2:45 PM

  • Add column in FBL3N (report)

    How do i insert a new field in transcation report FBL3N (G/L Account Line Item Display), that column is a sales order value.?
    Regards
    Carlos Orden

    Additional fields can be added to FBL3N layout using transaction code O7R3.  But I don't think sales order value is in the available fields that can be added in O7R3.  Go to O7R3 and check the tables that are available in table field.  Only fields from those tables can be added.

  • Customise Sap Report -- Add logo and change report layout

    Hi All,
    I have a requirement to amend sap standard report to add logo and change layout, could some one pls point me to teh right direction. Should we .1 Create a new smartfrom if yes -- how to to create smartfroms
    2. Should we create new Zreport...3. Is Adobe Interactive forms any good---- cld you please share the steps to create Adobe Ine Form 4. is sap script any good way in my situation
    Thanks
    Smith

    Changes to SAP Standard are always a bit tricky, specially if we are talking about legal reports. If the standard report uses smartform, you can change the standard form without needing a SSCR key, so no need to create a Z report or smartform even, but like every change on SAP Standard, if further changes are made by SAP through Support packages you will always have to replicate them yourself everytime this happens. I would suggest creating a new Z report by copy of standard and new Z smartform, that way you can always recurr to the standard and see what was changed and then replicate them in you Z reports.
    To create smartform, go to TCode smarforms and you can create one by copy of an existing smartform.
    Adobe Interactive forms is more complex then smartforms and unless the standard uses a print form, i would not suggest you creating one as it will envolve a bit more knowledge.

  • 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

  • Report Attributes: Add column link and derived column

    On the Report Attributes page (4000:420), under the Tasks list on the right side of the page, there are 2 links, "Add column link" and "Add derived column". This is the first time I am noticing them.
    The usage is clear, they add columns to the report to function either as a drill-thru link column or just a read-only derived field.
    Doing it this way does NOT modify the source query for the report region.
    Is there any benefit to using this feature versus adding a "null column_link" or "null derived_col" columns to my source query then setting attributes for those columns?
    Thanks

    Well, one disadvantage I can see of using the 'Add Column link' is that if I have more than 1 of such columns, they all show up as '[column link]' on the Report Attributes page with no way to tell what the underlying links are. Instead, if I were to manually add these dummy columns to my query itself, I would give them meaningful column aliases that indicated where they link to.
    Suggestion: Maybe a tooltip could be added to the Report Attributes page for such columns which indicate what the underlying link is without actually going to the Edit page for that column.
    Thanks

  • How to add columns dynamically in a classical rep deending on a parameter

    hi all,
    i have a scenario where ii have to add columns in my report depending on a certain parameter.the report should dymnamically add the columns based on the parameter.

    Hello Diego
    Revert your logic and remove or do not display columns if the corresponding parameter is missing or does not have the expected value(s).
    Using ALV lists you would accomplish this using the following coding:
    IF ( <parameter is missing or has not expected value> ).
      ls_fcat-tech = 'X'.
      MODIFY gt_fcat FROM ls_fcat
        TRANSPORTING tech
        WHERE ( fieldname = <column> ).
    ENDIF.
    The column for which this attribute is set in the fieldcatalog will appear neither in the ALV list nor in the layout.
    Now for a classical report (WRITE report ?!) you should develop a similar logic. You have to encapsulate the displaying or writing for each column and make this dependent from the parameter, e.g.:
    LOOP AT gt_data INTO ls_data.
    IF ( <parameter is missing or has not expected value> ).
    " do nothing -> skip this column
    ELSE.
      PERFORM write_column USING ...
    ENDIF.
    ENDLOOP.
    Regards
      Uwe

  • How to add a column in a report?

    Hi,
    I have 2 columns from my tables, now i want to add a column in the middle, is there any way i can type this column for each row? or do a conditional format for this new column. see below:
    case description # of items
    01 desc_1 5
    02 desc_2 10
    03 desc_3 25
    the "description" column is the one i want to add, that is not from any table, is there any way i can add this column, and do
    if case='01', display "desc_1"
    if case='02', display "desc_2"
    if case='03', display "desc_3"
    thanx.

    If this is what you are trying to achieve...
    for example:
    select col_1, 'dec_'||rownum txtfield, col_2
    from (
          select '01' col_1, '10' col_2 from dual union all
          select '02' col_1, '15' col_2 from dual union all
          select '03' col_1, '20' col_2 from dual union all
          select '04' col_1, '25' col_2 from dual union all
          select '05' col_1, '30' col_2 from dual union all
          select '06' col_1, '35' col_2 from dual union all
          select '07' col_1, '40' col_2 from dual union all
          select '08' col_1, '45' col_2 from dual
         ) test
    result:
    COL_1 TXTFIELD   COL_2
    01    dec_1      10
    02    dec_2      15
    03    dec_3      20
    04    dec_4      25
    05    dec_5      30
    06    dec_6      35
    07    dec_7      40
    08    dec_8      45Add the txtfield column in your select statement as follows:
    select <columnName1>, 
           <columnName2>,
           'dec_'||rownum txtfield
    from   <tablename>Then in your report layout, add a new field column between the two existing field colunms and have the source in the property palette = txtfield.
    Hope this helps.
    -Marilyn

  • Add field name in to Layout - Column Set

    Hello Everyone!
    When I run the report that there are three icons on
    the tool bar. Change / Select / Save layouts.
    When you press the change layout icon, a pop up appears
    displaying two columns. 1) Columns 2) Column Set
    Can anyone tell me where I can change the Column Set to
    add more fields into this. I need few more fields into "Column Set", so I can transfer that into "Column" for the display.
    As an example TCode - ih08 (zero eight) . after execution if you double click on "Equipment description" item, you will find "Num Licenses". But this column is not available in the "Column Set" of change layout. So I'm not able to see that value at first screen. I need help to add "Num Licenses" into Column Set.
    Regards,
    Deal

    Hi,
    Assume  'Var1' is the variable whose value has to be passed to the form.
    Ensure in the program VAR1 is populated with the expected value.
    like .....VAR1 = 'US'
    Once in the form, navigate to the text editor---import the program symbol
    INSERT>Symbols>program symbols-->select the appropriate option over there.......
    Or just insert the symbol----&VAR1& in the text editor.
    thsi would ensure that ur form is populated with the value US
    Thank you,
    Jose

  • How to add a new column to a report

    I want to add a new column to my existing report. I modified the using report wizard and added the new column. When I pressed 'Finish' I lost all my previous settings. Without changing the existing stuff, how can add a column to a table.
    Any help is appreciated.
    Regards
    Leena
    null

    go to the data model editor
    click on query .
    add new columns in select statement.
    add the corresponding fields in layout model
    compile it
    run it
    srini

Maybe you are looking for

  • Is it really possible to upgrade from a Treo 650 to a Treo 750?

    I am not a very happy customer at the moment, but any help would be greatly appreciated. I upgraded from my old Palm Tungsten to a Zire, then to a Cingular Treo 650, combining three devices into one. I have since discovered that the Treo 650 seems to

  • Password does not work after time machine restore and can not reset from CD

    The hard drive failed on my Power Mac G5. I replaced it and restored everything from Time Machine. The two non -admin accounts I can log into fine but my password for the admin account does not.  I tried resetting it booting from the OSX CD and using

  • Dynamic select querry in sender JDBC channel

    Hi,     We are working on a scenario where we need to read data from various database tables , we were trying to see if it is possible that the select querry can be set dynamically so that the same channel can be used to read from the various tables.

  • No Video for Wii

    I have a 40E22OU TV. Using HDMI for my BlueRay and Cable. Those work fine. I am having trouble hooking up my Wii. I get sound, no video. There is no yellow port for Video. ANy ideas how I can get video for the Wii?

  • Field SNPLC is not an entry field for resource type 02

    While transferring resource, getting the error message below; Field SNPLC is not an entry field for resource type 02 Message no. /SAPAPO/DMRES149 Is that something to do with CFC9?? Please help.