WAD: How-to get query name and pass to URL

Hi,
The task: In a BI 7.0 web template - get the technical query name and use that to open a URL in the format http://<MYURL>&DOCUMENTATION=<QUERYNAME>. So:
1) User clicks an icon
2) Get technical name of query
3) Open the documentation for that query using a URL
How can this be done? Do I have to use the Custom Extension web item and implement a new class using the interface IF_BICS_CONS_WEBITEM_CUST_EXIT? If so, do you have an example of how this can be done? OR even better is there an easier way to accomplish this?
Thanks in advance,
Jacob

Hi Daniel,
you could get the query name in ABAP code, also. Here is a snippet from the execute method. The Query name should be in l_sx_view at the end.
best regards
Arne
TYPE-POOLS: 
  rrx1.
DATA:
  l_string TYPE string,
  l_xml TYPE string,
  l_xml_xstring TYPE xstring,
  l_sx_view TYPE rrx1_sx_view,
* Line Feed, CR
  c_lf TYPE string,
  l_h_lf(2) TYPE x VALUE '0D0A',
  l_r_conv TYPE REF TO cl_abap_conv_in_ce.
* Get the line feed and carriage return for unicode
  l_r_conv = cl_abap_conv_in_ce=>create( input = l_h_lf ).
  l_r_conv->read( IMPORTING data = c_lf ).
  DATA:
  l_t_data_providers TYPE cl_bics_cons_webitem_util=>tn_t_data_provider,
  l_s_data_providers TYPE cl_bics_cons_webitem_util=>tn_s_data_provider,
  l_r_variable_container TYPE REF TO if_ixml_node.
  CLEAR e_xml.
  TRY.
*     All data passed to the webitem exit is hold in I_XML using XML.
*     The XML is UTF-8 encoded. You can convert the UTF-8 xstring
*     to a simple ABAP string by calling the following method:
*     ==================================================================
      CALL METHOD cl_bics_cons_webitem_util=>utf8_xstring_2_string
        EXPORTING
          i_utf8_xstring = i_xml
        RECEIVING
          r_string       = l_xml.
*     The XML includes sections about the used data provider and about the
*     variable container. The following method parses the XML and
*     provides the IF_IXML_NODE instances for data providers and for the
*     variable container.
*     ==================================================================
      CALL METHOD cl_bics_cons_webitem_util=>parse_xml
        EXPORTING
          i_xml                  = i_xml
        IMPORTING
          e_t_data_providers     = l_t_data_providers
          e_r_variable_container = l_r_variable_container.
* 01 Get name of first Data Provider
      READ TABLE l_t_data_providers INDEX 1 INTO l_s_data_providers.
      CALL TRANSFORMATION bics_cons_webitem_filter_by_dp
      PARAMETERS dataprovider = l_s_data_providers-name
      SOURCE XML i_xml
      RESULT XML l_xml_xstring.
      CALL METHOD cl_bics_cons_state_converter=>convert_xml
        EXPORTING
          i_xml     = l_xml_xstring
        IMPORTING
          e_sx_view = l_sx_view.

Similar Messages

  • How to get sequence name and pass/fail status?

    HI,
    I need your assistance in order to achieve the following goal:
    I have about 10 sub-sequence steps in the main sequence.
    For those steps only, I'd like to print out in a window the name of the sequence and the resutl.
    I meet dificulties since i have the sub-seq result, only after it ends.  It means that i can print its status only in the following step.
    is there a way around it?
    I wish to be able to write all this information in the clean up of the sub-seq step.
    Thanks
    Rafi

    Hi Rafi,
    You will not be able to print the result of a subsequence call in the same step as the subsequence call, because both post-step substeps and post-expressions are run before the status is evaluated.  As you mentioned, you can do this in the following step, or you can use the SequenceFilePostStep callback to specify some customized behavior to follow your sequence call steps.  This callback will run after every step, so you would have to put some extra logic into this callback if you are using multiple step types.
    So, are you trying to print the result of each subsequence call separately?  How do you intend to display the status?  Let me know if you have any other questions about how to implement this.
    Regards,
    Marty H.
    National Instruments

  • How to get file name and set it as static text in a dialog

    Hi,
    I m new to InDesign Programming.
    I have a menu that creates a dialog with different controls in it.
    The dialog will appear only if there is an open file. I need to display the name of the open file as a static text in the dialog. I know to get the name of the current file but don't know how to pass this each time the dialog is opened.
    Can someone help me in doing this?
    I m using InDesign CS3 in MAC OS.
    Thank You.

    those are the methods, but you can't use getCharacterEncoding(), actually, cuz it seems it's not necessarily filled in.. or at least that might be on some servers only, like Tomcat 4. As for encodings, you need to do a search for character encoding names and use the appropriate one.

  • How to get query name?

    Hi:
    There is a report 'AQFLINDIA_FA====Z_REGISTER====',I think it's created by Query.And how to get the 'User group' / 'Infoset' / 'Query name'?
    Thanksss.

    hi,
    they will not be stored in any table but we can identify by program name itself.
    if your program name is AQFLINDIA_FA====Z_REGISTER====  then your query name is Z_REGISTER.
    from sq01 you can get infoset name of that query and from sq02 you can get user group name.
    also check these tables.
    AQGIDOC
    AQGQDOC.

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to get server name and port of OSB server in a proxy service ?

    I need to get the server name and port of the OSB server inside a proxy service. How can I get this?

    You may use java callout for this purpose -
    How to get ServerName and ApplicationName in OSB (ALSB) ?
    Regards,
    Anuj

  • How to get Server Name and port. Urgent.....

    Hi,
    Please let me know how can i get the server name and port without using request object.
    I am getting it :- request.getServerName();
    But, pl. let me know how can I get it without using this request object.
    Waiting for reply..

    I don't know of any way to trivially access that, but why do you need to do this? If you need access to that information in a method that can't see your HttpServletRequest, then perhaps your architecture has a flaw, and you'll be better off in the long run restructuring it.

  • How to get Vendor name and Material text in FAGLL03 transaction?

    Hello All,
    I am executing FAGLL03 report which display Vendor No and material No in item level but I want Vendor name and Material text to be display for every vendor no. and material no.
    Please let me know any approach to do this?
    Thanks in advance.
    Regards
    Steve

    Hi Raymod,
    Again I am getting the same error after executing all reports and FM.
    Internal error in ANALYZE_ACT_FIELDCAT
    Message no. MSITEM012
    Diagnosis
    An internal error has arisen in the form routine ANALYZE_ACT_FIELDCAT for program RFITEM_INC.
    This is due to inconsistencies between table T021S (special fields) and structure RFPOSEXT.
    System Response
    During the processing of special fields in the line item list, errors and even a program termination may occur.
    Procedure
    Recreate the special fields in Customizing. If the error occurs again, contact SAP.
    Can you pls check it out in your system if you can?
    It is not working here ..
    Thanks and Regards
    Steve

  • How to get vendor name and invoice reference details in asset register

    Hi Experts,
    My client requirement is he want to see Vendor name and invoice reference filed in asset register.
    Is there any standard reports relating this requirement.
    Kindly Provide valuable information relating to this issue.
    Regards
    Madhan

    Hi Madhan,
    Let me know the t.code which you are getting asset data.
    Thanks

  • How to get Cookie Name and Value Using HttpGetterCallback - CE 7.3

    Hi All,
    We are migrating from Netweaver 7.0 to 7.3. We are facing a issue when migrating the custom login module from 7.0 to 7.3.
    Since WebCallback is deprecated and not to be used in Netweaver 7.3, we are finding difficulties in getting the cookie name and value. Please find below our coding for getting the cookie value using HttpGetterCallback. We are not getting the cookie name and value, Kindly let us know if we are implementing the HttpGetterCallback correctly.
    HttpGetterCallback httpGetCookieCallback = new HttpGetterCallback();
    httpGetCookieCallback.setType(HttpCallback.COOKIE);
    Callback] callbks = new Callback[ { httpGetUrlCallback, httpGetCookieCallback };
    callbackHandler.handle(callbks);
    requestUrl = (String) httpGetUrlCallback.getValue();
    Cookie] cookies = (Cookie [) httpGetCookieCallback.getValue();
    if (cookies != null) {
    for (int i = 0; i < cookies.length; i++) {
    location.debugT("Cookies name " + cookies.getName()
    + " - value "
    + cookies.getValue());
    Thanks and Regards,
    Saravanan

    Try This-
            Cookie cookiesArray[] = request.getCookies();
         Cookie currentCookie = null;
         String currentCookieName = "";
         String cookieValue = "dummycookie";
         int cookieArrayLength = cookiesArray.length;
         for (int i = 0; i < cookieArrayLength; i++) {
              currentCookie = cookiesArray<i>;
              currentCookieName = currentCookie.getName();
              cookieValue = currentCookie.getValue();
    Regards,
    Atul

  • How to get service name and listening host to connect to oracle DB server?

    I have successfully installed oracle db client 10g release 2 on my winXP. But when I tried to use Net Congiguration Assistance to connect to oracle db server. I do not know what is the "service name" and listening "host" I supporse to enter. Where can I get the names?
    PLEASE HELP! THANKS!

    machine name or IP = machine name or IP address of the database server
    To know the service name do the following on the server :
    $ lsnrctl services
    LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 30-DEC-2005 00:24:28
    Copyright (c) 1991, 2004, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "test10" has 1 instance(s).
      Instance "test10", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    The command completed successfully
    $The service name is test10 in my case. Of course you have to use yours.

  • How to get class name and method name within a class method?

    Hi,
    In a java class, is it possible to get its class name and the class method?
    Please advise.
    Thank you.

    I mean whether there's any built-in command that will
    return the class name instead of code it ourself, for
    easier maintenance.
    Possible?
    this.getClass().getName();

  • How to get Query Names in webi Report ??

    Hello All,
    I'm trying to pull data from different data sources like accdb,Oracle,DB2,MDB,xls files . I pulled the data successfully by merging all queries.But I was stuck with getting the query names in report ...can some one guide me in this ?? I used data provider () but getting 1 query name along with my universe name.
    thanks in advance,
    Lavanya.

    Hi Lavanya,
    Are you interested to know the data sources of the queries or just the query names?
    To know the Query Name, you can use DataProvider( ) function; however, in case you wish to know the data source, you can use Connection( ) function.
    Regards,
    Yuvraj

  • How to get Host name and port inside UDF

    Hi,
    I want to access the Host and port in UDF to pass it to a link http://host:port/AdapterFramework/ChannelAdminServlet?party=&service=&channel=*&action=status dynamically.
    How can I acieve it?
    Manisha

    Hi
    With this code. I am getting error:
    try
    java.net.InetAddress addr = java.net.InetAddress.getLocalHost();
    String host = addr.getCanonicalHostName();
    catch (UnknownHostException e){}
    if (ProcessMode.equals("P"))
    try{
    String xyz="/AdapterFramework/ChannelAdminServlet?party=&service=&channel="Name"&action=stop";
    URL server = new URL("http", host, 8XXX, xyz);
    tring userPassword =Userid + ":" + Password;
       String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
        URLConnection uc=server.openConnection();
        uc.setRequestProperty ("Authorization", "Basic " + encoding);
        BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
         while ((inputLine = br.readLine()) != null)
         output+=inputLine;
        br.close();
    catch (Exception e){}
    ERROR:
    cannot resolve symbol
    symbol : variable host location: class com.sap.xi.tf._MM_CommunicationChannel_Stop
    _ URL server = new URL("http", host, 8xxx, xyz);
    ^ 1 error
    Any other way to get host and port?
    Manisha

  • How to get the name and the path of the font used in photoshop (not textItem.font)

    I'm trying to get the real name of the font and the path, is there a "easy" way to do it ?
    i need to get the font file (*.ttf or *.otf) and copy to the same directory as the psd file, that's why textItem.font doen't work for me.
    thanks in advance

    You could try this as it looks as if you are using Windows.
    Run the VBS script to create a fontlist file on the desktop.
    Then run the javaScript on the PSD document.
    It should copy the fonts to the same folder as the document, it will also create a text file with a list of fonts.
    It didn't find all the fonts in my test psd maybe because it wasn't in the windows/font folder?
    VBS.
    Set wshShell = WScript.CreateObject("WScript.Shell")
    Set wshSysEnv = wshShell.Environment("PROCESS")
    sMyFile = "c:" & wshSysEnv("HOMEPATH") & "\Desktop\Fontlist.txt"
    Dim objFileSystem, objOutputFile
    Dim strOutputFile
    Set objFileSystem = CreateObject("Scripting.fileSystemObject")
    Set objOutputFile = objFileSystem.CreateTextFile(sMyFile, TRUE)
    Dim str
    Const HKEY_LOCAL_MACHINE = &H80000002
    strComputer = "."
    Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
    strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Fonts"
    objReg.EnumValues HKEY_LOCAL_MACHINE, _
    strKeyPath,arrEntryNames,arrEntryZZZ
    For Each entry in arrEntryNames
    str = wshshell.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts\" & entry)
           objOutputFile.WriteLine(entry & "," & str)
    Next
    objOutputFile.Close
    javaScript.
    #target photoshop;
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    try{
    var Path = activeDocument.path;
    }catch(e){
        alert("This document needs to be saved before running this script!");
        return;
    var FontFile = File(Folder.desktop + "/FontList.txt");
    if(!FontFile.exists){
        alert("You need to run the vbs script first to create the FontList file!");
        return;
    var FontList = new Array();
        FontFile.open('r') ;
    while(!FontFile.eof){  
       strInputLine =FontFile.readln();
       if (strInputLine.length > 3) inputArray  = strInputLine.split(",");
       if(inputArray.length == 2) FontList.push([[inputArray[0]],[inputArray[1]]]);
    FontFile.close();
    var PSDtextLayers = getNamesPlusIDs();
    PSDtextLayers = UniqueSortedList(PSDtextLayers);
    for(var a in PSDtextLayers){
        for(var f in FontList){
             var rex = new RegExp;
             rex = PSDtextLayers[a].toString();
            if(FontList[f][1].toString().match(rex,"i")){
                var From = new File("/c/windows/fonts/" + FontList[f][1].toString());
                var To = new File(Path + "/"+  FontList[f][1].toString());
                From.copy(To);
                break;
    var rFonts = new File(Path + "/required Fonts.txt");
    rFonts.open('w');
    rFonts.write(PSDtextLayers.join('\n'));
    rFonts.close();
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putProperty( charIDToTypeID( "Prpr" ), charIDToTypeID( 'NmbL' ));
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if (desc.hasKey(stringIDToTypeID('textKey'))){
                desc = desc.getObjectValue(stringIDToTypeID('textKey'));
                desc = desc.getList(stringIDToTypeID('textStyleRange')).getObjectValue(0).getObjectValue(stringIDToTypeID('textStyle'));
                var postScriptName = desc.getString( stringIDToTypeID('fontPostScriptName'));     
    Names.push(postScriptName);
    return Names;

Maybe you are looking for

  • Problems with createRow() method

    I have a basic problem when creating a new row in my database. what I do is the following: 1.ViewObject blobVO = (ViewObject) myAM.findViewObject ("BlobVO"); 2.BlobVORowImpl newRow = (BlobVORowImpl) blobVO.createRow(); Line 1. is ok; it finds the vie

  • How to use CRM_COPY_BADI

    Hi Experts, My Requirement is to create Service Order Contract Quotations with the creation date as Service Contract End date + 1 that mean Service Order Contract Quotations( Creation Date ) = Service Contract (End date + 1). So i am using CRM_COPY_B

  • Help with bank program

    Hi all, i have created a basic bank program that uses a database to access data etc. One of my programs is called MainMenu which is my main class and another one called AccMaster. When I call for the AccMaster in MainMenu I keep getting an error in t

  • Conditions using xpath in interface determaination

    how to write conditions using xpath in interface determaination. Please provide few examples. Regards, Suresh.

  • SAME PROBLEM OF VALIDATION AFTER HAVING RE INSTALLED WINDOWS. FORGOT TO VALIDATE. NOW IT IS EXPIRED. HELP!!!

    Diagnostic Report (1.9.0027.0): Windows Validation Data--> Validation Code: 50 Cached Online Validation Code: 0x0 Windows Product Key: *****-*****-MG8QQ-Y2RTF-J7HM2 Windows Product Key Hash: xzOwUzAr4l03PEDFWfe3rQw2kNM= Windows Product ID: 00426-383-