Characteristic values as hyperlinks in a web report

Hi All
I have a web report with only one characteristic and some key figures. And the number of values for that characteristics are 5 and they are always fixed (structure). In my report I need to make each of that characteristic value a hyper link. I have 5 separate reports which should  be linked to these 5 characteristic values.
I think this can be achieved by using a table interface. If yes, could any one please provide me with the code for the method CHARACTERISTIC_CELL in the ABAP class?
Or, is there any other better solution?
Points will be assigned!
Thank you

Its very simple! Check this out
[http://sap.ittoolbox.com/groups/technical-functional/sap-bw/web-based-reporting-jump-target-to-another-query-by-one-click-489775]
Regarding modifying the existing methods, in the 'Methods' tab select a method you want to redefine and click on the 'Redefine' button. And then double click on the method name, it takes you to the editor screen where you write your code.
[Screen shot!|http://img139.imageshack.us/img139/5796/tableinterfacexc8.jpg]
Use the 'CHARACTERISITC_CELL' method to adjust the contents of cells containing values for characteristics.
'STRUCTURE_CELL'  to adjust the contents of structural components. i.e. if you are using a structure in your query.
'DATA_CELL' to adjust the contents of data cells (cells where key figure values are displayed).
Sample code:
method CHARACTERISTIC_CELL.
*CALL METHOD SUPER->CHARACTERISTIC_CELL
*  EXPORTING
*    I_X              =
*    I_Y              =
*    I_IOBJNM         =
*    I_AXIS           =
*    I_CHAVL_EXT      =
*    I_CHAVL          =
*    I_NODE_IOBJNM    =
*    I_TEXT           =
*    I_HRY_ACTIVE     =
*    I_DRILLSTATE     =
*    I_DISPLAY_LEVEL  =
*    I_USE_TEXT       =
*    I_IS_SUM         =
*    I_IS_REPETITION  =
**    I_FIRST_CELL     = RS_C_FALSE
**    I_LAST_CELL      = RS_C_FALSE
*    I_CELLSPAN       =
*    I_CELLSPAN_ORT   =
*  CHANGING
*    C_CELL_ID        =
*    C_CELL_CONTENT   =
*    C_CELL_STYLE     =
*    C_CELL_TD_EXTEND =
* URL to another web template
if I_IOBJNM = '0PLANT'.
if I_USE_TEXT = 'X'.
concatenate
'<A href='
'BEx?sap-language=EN'
'&CMD=LDOC'
'&TEMPLATE_ID=Technical name of Your TARGET Template'
'>' I_TEXT '</a>'
INTO c_cell_content.
endif.
* URL to another web template with variable passing:
if I_USE_TEXT = 'X'.
concatenate
'<A href='
'BEx?sap-language=EN'
'&CMD=LDOC'
'&TEMPLATE_ID=Your TARGET Template'
'&CMD=PROCESS_VARIABLES'
'&REQUEST_NO=0'
'&CMD=PROCESS_VARIABLES'
'&SUBCMD=VAR_SUBMIT'
'&VAR_NAME_1=Variable in the query of your Target template'
'&VAR_VALUE_EXT_1='
I_CHAVL
'>' I_TEXT '</a>'
INTO c_cell_content.
endif.
end method.
method STRUCTURE_CELL.
*CALL METHOD SUPER->STRUCTURE_CELL
*  EXPORTING
*    I_X                 =
*    I_Y                 =
*    I_IOBJNM            =
*    I_AXIS              =
*    I_STRUCTUR_MEMBER   =
*    I_STRUCTUR_MEMBER_2 =
*    I_TEXT              =
*    I_IS_SUM            =
*    I_IS_REPETITION     =
*    I_CELLSPAN          =
*    I_CELLSPAN_ORT      =
*    I_HRY_ACTIVE        =
*    I_DRILLSTATE        =
*    I_DISPLAY_LEVEL     =
*  CHANGING
*    C_CELL_ID           =
*    C_CELL_CONTENT      =
*    C_CELL_STYLE        =
*    C_CELL_TD_EXTEND    =
IF I_IOBJNM = '3AG5XBEXL78XSSA311CAJHVFD'. "UID of your structure
CASE I_TEXT.
WHEN 'Display Text of a selection in your structure' .
concatenate
'<A href='
'BEx?sap-language=EN'
'&CMD=LDOC'
'&TEMPLATE_ID=Z************'
'&SET_DATA_PROVIDER_1=DP1'
'&INFOCUBE_1=Z******'
'&QUERY_1=Z************'
'&SET_DATA_PROVIDER_2=DP2'
'&INFOCUBE_2=Z***********'
'&QUERY_2=Z***************'
'>' I_text '</a>'
INTO c_cell_content.
WHEN...
END CASE.
ENDIF.
end method.
method DATA_CELL.
*CALL METHOD SUPER->DATA_CELL
*  EXPORTING
*    I_X                   =
*    I_Y                   =
*    I_VALUE               =
*    I_DISPLAY_VALUE       =
*    I_NUMERICAL_SCALE     =
*    I_NUMERICAL_PRECISION =
*    I_CURRENCY            =
*    I_UNIT                =
*    I_ALERTLEVEL          =
*    I_IS_SUM              =
*  CHANGING
*    C_CELL_ID             =
*    C_CELL_CONTENT        =
*    C_CELL_STYLE          =
*    C_CELL_TD_EXTEND      =
*Make data in 8th Column as Hyperlink with Variable Passing
if i_x = 8.
concatenate
'<A href='
'BEx?sap-language=EN'
'&CMD=LDOC'
'&TEMPLATE_ID=Z*********'
'&CMD=PROCESS_VARIABLES'
'&REQUEST_NO=0'
'&CMD=PROCESS_VARIABLES'
'&SUBCMD=VAR_SUBMIT'
'&var_name_1=Z***************'
'&var_operator_1=BT'
'&var_sign_1=I'
'&var_value_low_ext_1='
c_cell_content
'&var_value_high_ext_1='
end_date
'&VAR_NAME_2=Z**********'
'&VAR_VALUE_EXT_2='
filter
'>'
c_cell_content
'</a>'
INTO c_cell_content.
endif.
endmethod.
Also check this out... this link has a whole bunch of information about table interfaces..
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238
Hope this helps!
Thanks

Similar Messages

  • Showing all Characteristic values from Master Data in WebI report

    I want to show master data when there is no data in Cube, I have created constant variable with 1 value in Bex and I am using that in the crystal report but it's still not showing master data. Can anybody help me on this.
    Thanks,
    Ravi

    Hi Ingo,
    Thanks for your quick reply, I have created formula with constant value 1. Do I need to put that formula in rows or columns or as Free Char?
    Thanks,
    Ravi

  • How exclude values based on text in web report

    hi ,
    i wanted some clarifications
    how to exclude values based on text in web report.

    hi ,
    we had following  requirement.
    in web reprot we had sales group as a drill down.
    now our client wants we can restict sales group values  based on text.
    like  11 -  XXXX.
    here 11 key value and xxxx is the text.
    as of now we can restrict values based on key values.
    but client wants we can restrict values based on text.
    if you have any ideas on that plz let me know.
    Regards,
    Murali

  • Values not getting refreshed in web report.

    Hello Friends,
    Currently i am running an web report. The scenerio is i have check box with 5 options For Ex: IMS , IMR, IMN,IMM,IMP.
    IMS is the combination of all divisions and IMR is the combination of only three divisions.
    In BEx we runthe report with divisions . For ex : divisions are Ind1, ind2,ind3,ind4,ind 5.
    Instead of displaying divisions in the select options like Ind1,ind2....etc., we have created a structure in the report
    and using new selection we have restricted the divisions with IMS,IMN,etc.,
    IMS->combination of all divisions. IMR is combination of ind1,ind2,ind3.
    IMN... all are with single divisions
    Now we have assigned the query in the data provider for select options in hte web report,
    But when we select any options the values of the remaining queries are not getting refreshed.
    If we use the divisons directly with out using the structures the values are getting refreshed.
    Can any one give me the solutions for this?
    Regards
    Srinivas

    Hi Mansi,
    Check the Prompt properties in the Edit Query window of the webI. In the query filters section of window, click on the blue icon which says Prompt Properties. Deselect Keep Last values select and run the webI again.
    If the solution is not related to your question, please provide more details.
    Thanks,
    Rajesh

  • Missing values in F4-help in web reporting

    Hallo everybody,
    we have a problem with our F4-value help. When we open this value help in web reporting of bw 7 we only see in the value help a few entries and not all the contents of the master data table. We have checked the infoObject and query settings. Are somewhere in the system a hidden configuration which we haven't checked? The query is 7.x.
    Thanks and regards!

    Check the properties of your infoobject in advanced tab., in query designer
    Currently you can see the values only posted and that is the default option.
    If your requirement is to see all the values stored in master data then change the option in your query and as well as in Bex properties tab of your info object.
    Hope this helps.
    Regards,
    Reddy
    Edited by: Reddybl on Apr 1, 2010 7:40 PM

  • Characteristic Values are not updated in COPA Report

    Dear Gurus
    I have created one characteristics  and derive the value out of derivation rule but the same is not appearing in the COPA Report even though I mapped that Characteristics in my COPA Report.  Please advice and help.
    Sivakumar Subramanian

    Dear Jayaram
    While creating the Derivation Rules I checked the derivation is working fine or not by giving the inputs and it is working and no error in deriving the characteristcis.
    Please help.
    Sivakumar Subramanian

  • How to get the last sub folder value from the string in Webi report

    I have an object coming from universe, this object will contain string e.g. \\Users\Public\Pictures\Sample\
    or    \\Users\Doc\BI\BO\Webi\
    I need the last sub folder from this path to be displayed i.e. Sample and Webi.
    I would like to know how it can be done.
    I tried using formulas like POS, SubStr and Length. however the issue is that the length of the the sting is not fixed and the number of "\" are also not fixed.
    I would appreciate any help regarding this.
    Regards,
    Yogesh

    Hi,
    What is the formula you have written though?.
    =length(right([folderpath]);pos([folderpath];"\")+1)
    Thanks,
    Jothi

  • SAP BusinessObject Mobile WebI Report Prompt Issue

    Hi,
    I have problem to view the Prompt value in Long Text for WebI report in my iPad. The SAP BusinessObject Mobile application is on version 5.1.12.
    We are using BI Platform 4.1, and the WebI report is connected to Bex Query using BICS connection.
    Below are the settings that I had done:
    Setting of Characteristic in BW:
    Setting of Characteristic – ZBPARTNER in BEx Query Designer:
    Below are the report Prompt result in BI LaunchPad and BI Mobile:
    Example data:
    Business Partner ID 123 has description in Long Text (DO NOT USE - KOC ALLIANZ SIGORTA A.S) and Short Text (DO NOT USE - KOC).
    Business Partner (on top of ZBPARTNER) in WebI is showing Long Text as expected.
    For example, you can see the long text "DO NOT USE - KOC ALLIANZ SIGORTA A.S".
    Business Partner (on top of ZBPARTNER) in Mobile Apps is showing Short Text:
    For example, you can see the long text "DO NOT USE - KOC".
    I need the Prompt value is the BusinessObject Mobile to be display with Long Text, but I cannot find any configuration to achieve this.
    Is anyone encounter similar issue and can provide me some suggestion?
    Thank you in advance.
    Regards,
    Edison Wang

    Hi,
    Just like to follow up whether is there anyone encounter similar issue like above which can give me some advise?
    Thank you.
    Regards,
    Edison Wang

  • What to set authorization on characteristic value

    HI team I want to set a authorization on characteristic value, to be displayed in Bex report depending on user accessing that report
    Say : I have one report which show data about company code. I want to set authorization on characteristic value of Company code , for eg for USER 1 - he should see ony C001 and C002, and USER2 should see C003 , C004 etc.
    Please guide me in step by step approch ....
    Which authorization objetc should be used.
    Regards
    Ashutosh D

    Hi,
    First step towards authorization is to make your InfoObject (Company Code) as authorization relevant in the tab Business Explorer.
    Once this is done, create Analysis Authorizations in transaction RSECADMIN with the following variables.
    0TCAACTVT - *( or you can give the activities to be restricted)
    0TCAIPROV - *
    0TCAVALID - *
    0COMP_CODE - C001 & C002
    Now assign the analysis auth in the role under the Auth object S_RS_AUTH.
    Now assign this role for user1.
    Similarly create another Analysis auth for company code C003 & C004 and assign that role to user2
    Regards,
    Gaurav

  • "Batch" Web Report

    Is it possible to produce a "batch" web report that repeats a section for the selection of a given characteristic? I.e. running a web report that would ideally produce the same tables for every cost center within the selection - has anyone tried something like this?

    Dear
    Could you, please, tell us what you've done to solve this issue? We're facing the same problem, and until now we couldn't figure out what is exactly happening.
    Thanks in advance for any help.

  • Whole row coloured corresponding to characteristic value

    hello friends,
    We have a requirement where our client want to see all the data to be displayed RED corresponding to a particular characteristic value
    for example:
    we have a report based on 4 characteristics and 3 keyfigures
    <b>Characteristics</b>
    1. Purchasing document
    2. Reversal Indicator
    3. Material
    4. Vendor
    <b>Key figures</b>
    1. PO quantity
    2. PR quantity
    3. Material Price
    Now our customer wants to see all the entries in the report as RED whenever characteristic 'Reversal Indicator' = R.
    ie we want the whole row to be RED coloured w.r.t characteristic value = R.
    I know I can do this for particular key figure but how can i do this for all the values (Kfs and characteristics) whenever reversal indicator = R.
    Pls suggest.
    Thanks
    Jagpreet

    hi,
    If u r working with a worbook then u can write a macro.
    Ex:
    If the "Reversal Indicator" is displayed in column 4.
    for j = 1 to worksheet(" A").usedrange.rows.count
         if  cells(j,4).value ="R" then
         rows(J).interior.colorindex = 3
       end if
    next j.
    If u r working with the webreports then u do refer the table API.
    venku

  • Webi Reports Hyperlinks on top of OLAP Universe

    Hi Webi Gurus,
    my BoBJ version 3.1 sp3
    BW-OLAP universe.
    I checked below Link for the solution, but couldn't
    get answer, as these are based on relational universes.
    /people/erika.atencio2/blog/2011/04/14/creating-hyperlinks-between-webi-reports-in-infoview
    I have a OLAP universe. On top of it, there are two reports
    One parent report and one child report.
    Question: I have a column called Auction Id on parent report.
    Now, when I click on any of the Auction Id values, child report
    should only bring data for that Auction Id alone and not other Auction Ids.
    In the child report, I have Auction Id as query filter.
    Now while in Webi's Interactive Mode, I chose the option
    Select Column--> Create Hyperlink --> Link to a document -->
    Document prompts: Prompt User in runtime.
    This option works fine.
    However, when I change the Document Prompt to:
             Select Object (or) Build Formula
    report throws MDX error, during run-time,
    Please suggest.
    MDX error:
    ========================================================================
    The query failed to execute with the error Value for the Characteristic.....WIS 10901
    ==================================================================================
    Regards,
    AK

    Still getting error...I tried this
    >> 1. In the detail webi report, create a query filter for AuctionID and use Equal operator. Give the prompt text as ActionID.
    AK: Done
    >> 3. In the column properties, in the display section select display cell content as HTML.
    AK: Done
    When I provide the URL and Parse it throws following error.
    "Invalid identifier a at position 15. (WIS 10022) "
    I gave following URL and parsed it.
    ="<a href="http://sapbojdev:8080/OpenDocument/opendoc/openDocument.jsp?
    iDocID=18774&lsSAuction ID="URLEncode([Auction ID])"&sRefresh=Y
    Q: Is there any problem with syntax?
    Q: Secondly, for OLAP universe based webi report , can't we use the hyperlink option:
    Link to  Document
    Thanks,
    AK

  • How can we hyperlink a WEBI report to a .PDF or .DOC in any location?

    Hi All,
         I have a WEBI report which has a column called Country(Values US, UK). I have some .pdf files in my local machine and BOE server. Could anyone let me know how can I hyperlink the report to the .pdf in my local machine and in the server. There are two cases as below as questions to be answered.
    Case 1
    When I click on country column, a single .pdf file should open irrespective of the column values in my local machine/server
    Case 2
    When I click on country column, a .pdf file should open with respect to the column values in my local machine/server
    I would be grateful if it is answered asap.
    Thanks and Regrads
    Ram

    Ram,
    Go through these links. They may help you.
    How to Add Document links in SAP Business Objects Web Intelligence
    Add a hyperlink to a document: Web Intelligence 4.x - YouTube

  • Images as Hyperlinks in webi reports

    Hi,
    I’m trying to link two webi reports (summary through Details) through Open doc syntax using Images in a cell.
    We have a requirement to link two webi reports (summary through Detail) using buttons (like Back & email) as images which will be embedded in to the cell and made hyperlink.
    I found many articles on "Hyper linking on the images" between 2 webi reports (summary to detail) using open doc syntax which did not help much. So I am starting a new thread. 
    I’ve 2 scenarios happening, after the images being placed on the server - (…/usr/bobj/<installation Directory>/enterprise/images) –
    1st Scenario – Right click on the cell contents, make it read as “hyperlink” and set appearance to “boimg://image-name.png”
    Result: Image appears and there is no link. Cursor does not changes or no place to click.
    2nd Scenario – Read the image directly into Ahref tag as - <img src=\” boimg://image-name.png\”>
    Result: The link works perfectly fine. But, in the image place holder, a big “RED X” appears.
    The steps -
    - Placed a blank cell
    - Right click -> Appearance -> Image from Address:  boimg://image-name.png
    - Read contents as "Hyperlink" (at this point, tested the cell, image appears fine, but no link appears!)
    - Right Click on the same cell -> Document Link -> pass the values of the related objects -> Parse
    - Also Include the <img src=\” boimg://image-name.png\”> in the AHref tag generated by the system after open doc call
    - In the cell, both the image and the big RED X appears - image does not have a link and the big red X has link but no image. So basically nothing works!
    We are on BO 4.1 SP1.
    Experts please help!

    Hi Fahid,
    You can try the below steps which are pretty simple. It worked fine for me. For this I used an image object placed in ROOT directory of a web application server.
    1.
    Add a blank cell
    2.
    Right-click on the blank cell and select “Format cell”
    3.
    Under “General” specify Read content as “Hyperlink”
    4.
    Apply >> OK
    5.
    Right click on the cell >> "Edit Formula" >> Use the following formula
    ="<html><a href='http://localhost:8080' target='_blank'><img src = 'http://localhost:8080/sample.png' /></a></html>"
    Hope this helps.
    Regards,
    Niraj

  • Web report - return drilldown state & filter values using Javasript

    I am customising a BW web report using Javascript.
    Can anyone tell me how I can read whether a particular characteristic is drilled down and the filter values applied using Javascript?
    thanks,
    Hans

    Hi,
    for the drilldown state use:
    SAPBWGetDataProviderDimensions
    http://help.sap.com/saphelp_nw04/helpdata/en/af/00453c3ff4110ee10000000a11405a/frameset.htm
    for example:
    var dim = SAPBWGetDataProviderDimensions("DATAPROVIDER_1");
    if (dim != null){
      for(m=0;m<dim.length;m++){
        if (dim[m][4]=='X')
               alert(dim[m][0] + ' is in Columns');
        elseif (dim[m][4]=='Y')
               alert(dim[m][0] + ' is in Rows');
    As for the applied filters: You need to use the web item filter with generate_caption= and only_values=X inside a <span>-tag with an id. then use document.getElementById('YourId').innerHTML to get the applied filters.
    Heike

Maybe you are looking for