XSQL & Calling a URL

I need to call an xsql page from an xsql page. What I have is an insert xsql page. After the insert, I want to redisplay the page with the new data (queried as triggers can change stuff the web is unaware of). Right now, I'm embedding a copy of the query I had in the original XSQL file.
What I would like to do, is just call the original XSQL url, pass it a parameter, and have it behave as normal.
I tried xsql:include-xsql but that gives me the generated html embedded in my normal structure.
Example (getting rid of the line like xml, etc):
My original query xsql file:
<datapage connection="demo" xmlns:xsql="urn:oracle-xsql">
<info>
<data .....
</info>
</datapage>
This, using xsl, creates an html web page.
My insert xsql file:
<datapage connection="demo" xmlns:xsql="urn:oracle-xsql">
<xsql:dml>
insert into tab1 ('{@parm1}'}
</xsql:dml>
<xsql:include-xsql href="smmmquery.xsql?menu_mode=edit" xmlns:xsql="urn:oracle-xsql"/>
</datapage>
What I get back is in the form:
<datapage>
<xsql-status action="xsql:dml" rows="1"/>
<request/>
<html/>
</datapage>
The html tag is the beginning of the xsl document of the original query xsql file. I can't use that.
What I would like is to call an xsql file and get back the same canonical format as the original document (basically recall the original doc). Is there anyway to do this?
null

<xsql:include-xsql href="smmmquery.xsql?menu_mode=edit&;amp;xml-stylesheet=none"/>
An even cleaner way would be to factor the smmmquery.xsql page into a page that contains the "reusable" query, and a page that aggegates that data and applies the stylesheet.
So, assume that smmmquery.xsql looks like this right now:
<?xml version="1.0"?>
<!-- smmmquery.xsql -->
<?xml-stylesheet type="text/xsl" href="somestyle.xsl"?>
<xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
select * from dual
</xsql:query>You can factor this into the two pages smmquerybase.xsql and smmquery.xsql that look like this:
<?xml version="1.0"?>
<!-- smmmquery.xsql -->
<?xml-stylesheet type="text/xsl" href="somestyle.xsl"?>
<xsql:include-xsql connection="demo" xmlns:xsql="urn:oracle-xsql" href="smmquerybase.xsql"/>
<?xml version="1.0"?>
<!-- smmmquerybase.xsql -->
<xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
select * from dual
</xsql:query>Then your new page can simply use:
<xsql:include-xsql href="smmquerybase.xsql"/>
to aggregate only the data (without the style applied to it).

Similar Messages

  • I need to use a reserved word as parameter name in proc called from URL

    Let me preface this post by saying I already know this is terrible to attempt, but it's short term fix only.
    Ok, so I have to create a procedure that will be called by a vendors application via a API that calls our URL to send data over. The terrible part is
    that the API they have uses the parameter FROM=vendor_data A change is on the way so in the future the API won't use FROM as a paramter, so this isn't something I want to do, but it's a workaround.
    So the nastiness is this..., I can create a procedure that'll compile when I enclose FROM in double quotes "FROM" as my input parameter
    but if I try to call my procedure via URL (as their application will do) the procedure isn't working. I searched for someway to do an inline
    replace of the FROM parameter to something else, but no luck. I'm open to all positive comments. I cannot go outside of Oracle
    to do this, so I can't call a shell script and replace. Basically I need some way to use a reserved word as a parameter name, and then be able to call
    that proc from a URL, or someway to change the FROM in the URL inline. Any help on this admittedly whacky situation would be appreciated much.
    I tried ...\myproc?from=text
    ...\myproc?"from"=text
    ...\myproc?'from'=text
    proc is simple test procedure
    create or replace procedure myproc
    ("from" in varchar2 default 0)
    is
    v_from varchar2(30);
    begin
    v_from:="FROM";
    insert into test(col1) values(v_from);
    end;
    **** Update
    I didn't get any more replies but came to a solution that I thought I'd post. It's much better, more elegant and maybe can help others.
    So instead of using FROM as the parameter name I did some research and decided I can use flexible parameters. Basically you end up having
    2 input parameters for a procedure, one holds a parameter name the other holds the parameter value. They get loaded into arrays
    and you access the values with regular name_array(1), value_array(1), etc. ?v=parameter&v2=value
    Once I figued I could use flexible parameter it took me tons of research to find out the actual syntax. I'll post some examples for others
    later, but was suprised with the lack of resources consideriing how "flexible" they are.
    Thanks again for the replies. Cheers.
    Edited by: Mitz on Jul 29, 2009 11:37 PM

    Scott,
    Thanks for the reply. I'm not familiar with the wwv_flow_epg_include_mod_local, however I know that the
    myproc is available via URL. I passed the my procedure name(myproc) on to the dba a while back to make it "accessible" so, I'm assuming that he
    added it to this the www_flow_epg_mod_local (assuming this has something to do with access control).
    If I modify myproc procedure and remove "FROM" as the input variable, and replace with say,
    IN_FROM I can then call the procedure via the URL ./myproc?in_from=test without any problems.
    I'm pretty confident that it's the "FROM" that is the hurdle and not a security or setup issue. The proc is fine to call from the URL until I got the curveball that the only available parameter was FROM. How the URL should be when inputing to that parameter?
    Edited by: Mitz on Jul 25, 2009 7:36 PM
    Edited by: Mitz on Jul 25, 2009 9:16 PM

  • Is it possible to call  a URL from a table entry

    Hi Abap Experts,
    Is it possible to call a URL when we double click on the record of a table
    for  example I have a table zmanifest in which if i double click on the tracking number(table field)
    it should go to UPS website
    Thanks & Regards,
    Tharun.P

    Hi
    It depends on what you mean to do a doubleclick, i.e. where you want to do it?
    If you mean a program created ad hoc, yes you can else I don't think
    Max

  • Call http url in Abap - Should not open Browser

    Hi Friends,
       I have a requirement where i need to check whether a perticular http service is running or not. For that i need a some code to call http url from abap and it should not open the browser. If that perticular url is not found or time out then i should know that in program...
    Is there any way to do that..

    just run the following url (after changing the values for host,etc) from browser
    http://<abaphost>.<domain>.com:<port>/sap/public/ping
    to get the values for http://<abaphost>.<domain>.com:<port> just go to transaction se80 and choose bsp application option and choose any existing bsp application and then doubl click on a page. on the right side click on the attributes tab and at the end you can find the url
    Regards
    Raja

  • Call an URL with ABAP program (Method POST)

    Hi everyone,
      I need to call an URL for example "www.google.com?q=hello" with ABAP using POST method.
      Like the FM "Call_Browser", but my variable q=hello need to be passed with POST method.
    Any idea ?
    Thanks.

    here is one example I use from abap to call a web browser ITS solution with a project number, I guess you can adapt the it for your purpose?
          check <data>-pspid is not initial.
          concatenate gv_pfs_link
                      'zpfs2?~okcode=PROJ_SEL&zpspid=<###>&sel_action=X'
          into lv_url.
          replace '<###>' with <data>-pspid into lv_url.
          condense lv_url no-gaps.
          cl_gui_frontend_services=>execute(
            exporting document = lv_url ).

  • ABAP WebDynpro: Call a URL with POST-parameters?

    Hi all,
    I want to call a URL from an ABAP WD method with additional data. I know that this is simply possible via the Window Manager, passing a URL. Adding additional parameters inside the URL is of course also possible using "&" and "?" separators.
    Is it somehow possible to call such a URL out of WebDynpro with additional POST data (e.g. an XML datastream)?
    Best regards.
    Alexander

    Hi Alex.,
    As u said that u know how to call URL and pass parameters using window manager., and i am not sure about XML data stream.!!
    I can advise u to post ur thread here: [Web Dynpro ABAP Forum|Web Dynpro ABAP;
    U will get some useful inputs..
    Thanks & Regards
    Kiran

  • Updating HTML code dynamically and calling a URL

    Hi All,
    I have the following requirement -
    Consider the below HTML code:
    In the above code, the URL >>
    https://secure3.i-doxs.net/nytimes/BillaccessView.asp has to be called and this should PICK UP the values from the above code - For example: Client and ABCCO. In other words, the page that is going to be displayed by specifying the URL should use the values that are dynamically generated and specified in the above code. 
    Please let me know if you have any inputs on how to achieve this.
    Best Regards,
    Rajeev

    Hi there ,
    i have a solution for your problem as follows :
    Do not mention the action in form tag ; do it as follows .
    if you have a submit button then use following code in onclick even of submit as onClick="do_this()"  else use onsubmit="do_this()" in <form > tag .
    Include the following <script> </script> in Head element .
    the JS function do_this should be as follows :
    <Script language="JavaScript">
    function do_this()
       var w_ele;
       w_ele = document.getElementById('CLIENT') ;
       w_client = w_ele.value ; // this will give u the name entered in client text field ie. ABCCO in this case.
    var w_url = "https://secure3.i-doxs.net/nytimes/BillaccessView.asp?w_clien="+ w_client ;
      w_form = document.getElementByID('FRM_MAIN');
      w_form.action = w_url ;
    /*this will call the url as "https://secure3.i-doxs.net/nytimes/BillaccessView.asp?w_client=ABCCO" */
    </script>
    NOTE :
    you need to define ID property for form and text element . currently you have used juse name property .
    in the w_url , before' ? ' the name of the parameter in which you want to capture the dynamic client value in target should appear ( i have used w_client just as an example)
    so modifications needed in ur HTML as :
    <FORM name="frmMain"  id="FRM_MAIN" method="POST">
    and
    <TD> First Name: </TD><TD><INPUT type="text" id="CLIENT" name="Client" value="ABCCO" size="50" maxlength="32"></TD>
    I am sure this will solve ur problem as i have done the same thing. if not then feel free to mail me at [email protected]
    do reward me points if found useful.

  • Calling a url from a pl/sql proc

    HI!
    I was wondering if anybody has code that they can share calling a url from a pl/sql proc.
    Thanks!!

    Thanks - tell me if I am wrong but it does not seem to be what I need. does this package have the capabilities of doing the following... I want to call a pl/sql procedure - I am not in any browser window and by calling this proc it will bring up a browser window with the given url.

  • RRI?  How to call ITS URL and pass field value from Bex Query.

    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • Calling a URL from WD for ABAP 2004s

    Hi,
    In our scenario we would like to call workflow items from a web dynpro for abap application. We do not use a portal.
    I have build an alv from where the user can select his workflow tasks. A button then calls a method to trigger workflow. Within the method I have te workitem and the correct url available.
    Please let me know how to call the url and if possible let the url start the session in the current browser window (the window from where I started the url).
    Message was edited by: Raymond Does
    Solved it. Solution can be found in the Quiz example.
    Message was edited by: Raymond Does

    Hi Yash,
    There is the code :-)
    <Field name='fieldname'>
    <Display class='Link'>
    <Property name='name' value='link to launch jsp'/>
    <Property name='URL' value='http://localhost:8080/idm/output?param="hello"'/>
    </Display>
    </Field>
    thanx
    Shant

  • How to encrypt Password while calling Portal URL from Abap

    Hi all,
    My requirement is to call portal from R/3 4.6C.  As part of it I'm calling Portal URL along with user id & Password by using the FM CALL_BROWSER. The problem here is User ID & Password are visible everyone in the URL.
    Is there any way that I can encrypt sothat it doesn't become a security issue?
    I really appreaciate for your help.
    Thanks
    Seshu

    can you please mention the abap code  by which you are sending the username and password to a portal via url.....
    are you able to log on to the portal...please share your code ......
    Edited by: Ashutosh Shukla on Apr 18, 2008 9:17 AM

  • How to call Web URL's as values of an BW InfoObject via BEx Web

    Hi experts,
    I want to call Web URL´s as values of an BW InfoObject via BEx Web.
    Is there any option to convert the character into a direct URL link to call the Web adress directly?
    Example:
    no direct URL (e.g. http://help.sap.com) to call the Web address per left click...
    Any ideas?
    Thanks in advance and best regards,
    Michael

    Hi Michael,
    Have you ever tried using generic module properties of analysis item. There are implementations such as com.sap.ip.bi.rig.format, maybe you can ctach up something trying that. I didn't try it myself yet though there can be solution through using modules.
    Regards
    Yasemin...

  • How to call a URL in jsp without direct the page to the URL

    Hi,
    I have a jsp page, which when user come in to the page, the page will call a URL without direct the current jap page the URL. This URL will only help me to do on something in the backend. Anyone know any method that i can use to call the URL?
    Thanks a lot

    Doeas AJAX rings a bell? ;-)
    https://blueprints.dev.java.net/bpcatalog/ee5/ajax/usingAJAXwithoutJSF.html

  • Calling external URL with POST data

    Hi:
    In my action bean I have to call and external URL (outside my domain), and along with this URL 'POST' data. I have tried the following code:
    try {
    FacesContext lclFC = FacesContext.getCurrentInstance().getFacesContext();
    lclFC.getExternalContext().getRequestMap().put("x_loc_zip","94804");
    lclFC.getExternalContext().redirect("http://www.mysite.com/personals/search/search.html");
    } catch (IOException e) {
    throw new FacesException(e);
    finally {
    lclFC.responseComplete();
    This works fine in calling the other URL, but no data is sent thru the post protocol. I have no control to the site I am calling....
    I have also tried
    ExternalContext ectx = FacesContext.getInstance().getFacesContext().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest();
    HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
    RequestDispatcher dispatcher = request.getRequestDispatcher("http://www.mysite.com/personals/search/search.html");
                   dispatcher.forward(request, response);
    But this tends to put a "/" at the front of the called URL. Can someone please recoomed the coorect way to call a URL from yr action bean and sending it data thru post protocol. I also wish that this new URL should now be displayed within the browser. This is urgent, yr quick reply is appreciated

    Myfaces sandbox form gives the ability to change its action url and port. Look here:
    http://myfaces.apache.org/sandbox/form.html

  • Call external URL from ABAP userexit, capture data and return it to SAP?

    My apologies if this question has been asked before, but I've searched for a few hours today and haven't found anything directly related to my question.  Thank you in advance for any help you may be able to provide!
    I would like to be able to make a call from an SAP userexit during Sales Order Entry in the VA01 transaction in the SD module to an external website, allow the user to capture some data in the external site and then pass that data back into the userexit where I can use it to populate internal tables, etc.
    I'm completely unfamiliar with Web Dynpro programming, but this seems like a good place to start my search for a solution. 
    Does this sound like a problem that can be solved with Web Dynpro and what documentation or code examples should I reference to go about building such a solution.
    I should also note that I'm hoping to build a solution that could be called from any userexit in R/3, SAP ERP, SAP CRM, etc. and would obviously need to learn about what dependencies to consider (ex: SAP GUI version, SAP product release number, Web AS release, etc.).
    Eric

    Thank you for the response.  Let me provide some additional information.
    The external application will be a Hosted Web page.  It is not an SAP system. 
    The external application will be a web page served by a separate system outside of the company domain(shouldn't matter what the technology is I would think - but the web page will be hosted by a different company than the one calling the URL) that would appear as a web page in which the user will enter data, logic will be performed on that data and then some or all of the data would need to be passed back to the calling point in SAP.
    For practical discussions it doesn't matter to me if the call in ABAP occurs in an SD userexit, in a custom report, in an HR screen or in a CRM business partner screen.  There will be many places where this external application may be called from and I'm just trying to figure out how to call an external HTTPS URL and return data from that web page to the calling point in ABAP.
    I hope that clarifies my question.
    Thanks!
    Eric

Maybe you are looking for