Variables in URL

Hi Sarvanan,
As per your suggestion, opened a new thread
How can we pass variables instead of hard coded  values in below url,
http:/xxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZHR_PAY_SLIP PNPXABKR=01;PNPTIMRA=X;PNPPABRP=01;PNPPABRJ=2011;PNPPERNR-LOW=4
am calling this url in external window, as this url placed in quotes, so it wont takes variable values.
Thanks and Regards
Srinivas

Yes exactly, but let me explain in a bit detail.
For example i have one field PNPPERNR and its values stored in variable in V_PERNR ( it will contain value as 1005 ),
So in URL if i pass value of PNPPERNR as V_PERNR, it dont take the internal value (1005 ), it will just take V_Pernr as text.
So here i am unable to pass variables.how can we?
For example
http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=4,
iF YOU EXCUTE ABOVE , IT WILL OPEN PA30 AND IN PERNR PLACE IT WILL TAKE 4.
say v_pernr = 4.
http:/XXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*PA30 RP50G-PERNR=V_PERNR
IF you excute above, it wil open PA30 and and in pERNR place it will take just V_PERNR.  not 4.
Hope you understand my query.so how can we pass variable in urls?
Regards
Srinivas

Similar Messages

  • Using variables in url

    I have created a php storing values in a mysql database.  I animate I call this php using window.open:
    window.open("http://localhost/send_and_update.php?Tid=26&dBA=78 ", "_self");
    This works fine, the dataset 26 78 is saved in the database.  But now I want to send values from variables in  i animate.  I try this:
    Var time=22
    window.open("http://localhost/send_and_update.php?Tid=time&dBA=78 ", "_self");
    This won't work.  Any suggestion?
    Svein-Tore

    Hi Darell!
    Now I have tried it, unfortunately it won't work.....  The browser gives me
    the followoing error:
    Unknown column 'time' in 'field list'
    This is in fact an error from php, not from animate.....  Maybe  I have to
    do this in a totally different way? Anyone who know how to write data from
    animate to a mysql database?
    Svein-Tore
    2014-02-20 1:39 GMT+01:00 heathrowe <[email protected]>:
        Re: Using variables in url  created by heathrowe<http://forums.adobe.com/people/heathrowe>in *Edge
    Animate CC* - View the full discussion<http://forums.adobe.com/message/6137980#6137980

  • Problem passing Session variable as URL parameter?

    Hi,
    I am trying to create a multiple page entry form using
    coldfusion session. But I am having some problem when passing the
    session variable to url parameter. For test purpose I have created
    the following code:
    <cfif Not IsDefined("SESSION.AE")>
    <!--- If structure undefined, create/initialize it
    --->
    <cfset SESSION.AE = StructNew()>
    <!--- Represent current form srep; start at one --->
    <cfset SESSION.AE.StepNum = 1>
    </cfif>
    <cfif IsDefined("Form.GoBack")>
    <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    <cfelseif IsDefined("Form.Next")>
    <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    </cfif>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    <input type="submit" name="GoBack" value="Back">
    <input type="submit" name="Next" value="Next">
    </form>
    </body>
    </html>
    When run it I get the following error:
    The value "" cannot be converted to a number
    The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
    11
    9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    10 : <cfelseif IsDefined("Form.Next")>
    11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
    1>--->
    13 : </cfif>
    I couldn't figure out where is the problem. Any help is
    really appreciated.
    Thanks in advance.

    You are mixing up your gets and posts aren't you?
    You have your form method set to post which creates form
    variables not
    url variables. So when you try to use the url variable to set
    your
    session it does not exist.
    Change your SESSION.AE.StepNum = #url.StepNum# to
    Session.AE.StepNum =
    form.StepNum, note there is no need for the #'s.
    OR
    change your form method="post" to form method="get"
    Nagelia wrote:
    > Hi,
    >
    > I am trying to create a multiple page entry form using
    coldfusion session. But
    > I am having some problem when passing the session
    counter to url parameter. For
    > test purpose I have created the following code:
    >
    > <cfif Not IsDefined("SESSION.AE")>
    > <!--- If structure undefined, create/initialize it
    --->
    > <cfset SESSION.AE = StructNew()>
    > <!--- Represent current form srep; start at one
    --->
    > <cfset SESSION.AE.StepNum = 1>
    > </cfif>
    > <cfif IsDefined("Form.GoBack")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > <cfelseif IsDefined("Form.Next")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    > </cfif>
    >
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > </head>
    > <body>
    > <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    > <input type="submit" name="GoBack" value="Back">
    > <input type="submit" name="Next" value="Next">
    > </form>
    > </body>
    > </html>
    >
    > When run it I get the following error:
    >
    > The value "" cannot be converted to a number
    >
    >
    > The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
    line 11
    >
    > 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > 10 : <cfelseif IsDefined("Form.Next")>
    > 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
    1>
    > 12 : <!---<cfset SESSION.AE.StepNum =
    #url.StepNum# + 1>--->
    > 13 : </cfif>
    >
    > I couldn't figure out where is the problem. Any help is
    really appreciated.
    >
    > Thanks in advance.
    >
    >
    >
    >

  • Variables in URL iview

    Hi.
    We are going to create URL iview in Portal 60 SP15.
    When we create URL iview, We want to use variable for URL parameter. (For example <User.UserID>)
    Any idea ?
    Regards, Arnold.

    hi,
    under configuring url parameters you can see that
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/98dc60ad8243139402836e11abb2ba/frameset.htm
    If you set the parameter as a variable that can be personalizable by end users , then this value will be the parameter’s default value. However, if you set the parameter as not personalizable, then this value is the fixed value of the parameter.
    Regards,
    Ganesh N

  • Passing Hierarchy Variable from URL to Template

    Hi
    How do I pass a Hierarchy Variable from URL Query String to the Web Template.
    I am on NW04s SP11. Could anyone please help me out as it is urgent and we need to show case BI capabillities to Client.
    Thank You
    With Wishes
    Krish

    This link might be useful...
    http://help.sap.com/saphelp_nw04/helpdata/en/72/726b11561e6b4fafc43d692c4e27ab/content.htm

  • How to fill two variables from url parameter?

    Hello friends,
    the following case should be discussed:
    The URL restricts the values for 0CALMONTH (e.g. FILTER_IOBJNM=u20190CALMONTHu2019 FILTER_VALUE_LOW_EXT=u20191u2019 FILTER_VALUE_HIGH_EXT='2').
    Is ist possible to fill variable VAR01 with the LOW-value and VAR02 with the HIGH-value ?
    In our case we want to show in column 1 the value of the actual month, the column 2 the value of the month before. The selection must be given by URL - it is externally generated. 
    We think about customer-exit solutions (CMOD EXIT_SAPLRRS0_001 for variables), but found not yet any working solution.
    Any ideas?

    Hi Durgesh,
    we talk about a portal solution, where SAP ERP and SAP BW broadcast data. In this case the URL is generated by SAP ERP for SAP BW query.
    But the URL restricts the data for the complete SAP BW query, so we cannot restrict in the URL for the actual month only - then the month before is not in the BW-query result (the month before would be completely out of range).
    If we restrict in the URL two months, we need to "break" the URL-values into two variables.
    Regards,
    Matthias
    Edited by: Matthias Krause on Oct 25, 2011 9:30 AM
    Edited by: Matthias Krause on Oct 25, 2011 9:32 AM

  • Business Connector  : get querystring variables in url

    Hi;
    I have a server service in Business Connector .
    a client post a url like this
    http://10.10.10.10:5555/invoke/MM/mm2sms?drug_code=905913&drug_desc=aaaaa
    I have to get these variables drug_code,drung_desc and assing to a recordList..
    Firstly Which methods do i have to use and how?
    stringToDocument , documentToRecord?
    Thanks.

    Just declare these parameter names as input variables of type String in the Business Connector service. Then you will have them in your pipeline automatically.
    CSY

  • Loading variable into URL

    I have a php file that holds a certain variable (the name of
    an image). Then I have a SWF that shows the location of the file
    and then shows the actual picture itself.
    Here is a snippet from the PHP file:
    quote:
    print("&location=$image");
    Below is my action script:
    What am I doing wrong? How do I get the variable inside of
    the URL? Thanks
    ----------Action
    Script------------------------------------------------------------------

    Ah nevermind, I can do what I want outside of flash in php.
    Doh!

  • Passing variable thru url

    I hope someone can help. I'm stumped. This is the first time
    I've ever used flash to build forms. I've been attempting to use
    the form builder to build a simple form, first name, last name,
    age. One the Submit button, I want to capture those 3 variables and
    tack them onto a url ex.
    myname.com?firstname=john&lastname=doe&age=33.
    My confusion with the form builder is that I don't know how
    to set individual variables for each field and the button.
    Does this make sense to anyone, and can anyone point me the
    right direction?
    Thanks a million in advance!
    J

    What are you sending to? And it's not any harder in Flash
    than it is in
    HTML, it's just different... but it's really quite easy once
    you get the
    hang of it.
    As a simple example, say I want to send my Flash form data to
    form.php:
    var sv = new LoadVars();
    var rv = new LoadVars();
    rv.onLoad = function(success){
    trace(this['ok']); //will trace '1'
    sv.firstname = firstname.text;
    sv.lastname = lastname.text;
    etc...
    sv.sendAndLoad("form.php", rv);
    Your form.php would then look something like this:
    <?PHP
    $fn = $_POST['firstname'];
    $ln = $_POST['lastname'];
    //do stuff with the data
    echo("&ok=1");
    ?>
    HTH
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Variable as url

    Hi guys,
    I've got a problem and could really use some help
    . I'm trying to use loadMovie, but instead of
    entering a static URL I'm trying to get a variable I created to be
    used as the URL. The variable is a relative reference, eg.
    picture.gif (I can provide more code if this isn't clear enough)
    I've posted and searched trying to find an answer, so if
    anyone knows, please please help...
    PS, I'm new to AS so I hope it's ok me posting here, I wasn't
    sure if this is for pros or what, so my apologies if it is.
    Josh

    wow, thank you so much kglad. I remove the parenthesis and it
    worked fine
    anyway, thanks again--I've been trying to figure that out for
    days
    BTW, to anyone reading this, I accidently made a mistake when
    I wrote out the code, in the section of code that didn't work I
    wrote
    quote:
    loadMovie("picsrc", "MV");
    when in my actual code it was
    quote:
    loadMovie("picturesrc", "MV");
    --just in case it didn't make sense

  • Using a variable as URL

    I am trying to pass w path from an XML file to a URL path so that Flash will load in an image.    I have it reading into Flash from the XML file but I dont know how to convert it to a URL.
    This loads the XML into a varialbe.
    var imageList:XMLList = organInput.organ.(@name==organName).imagePath;
    var imagePath:String = imageList;
    Then I want to use it as a relative url.
    var request:URLRequest = new URLRequest(imagePath);
    But it throws an errror.  If i put the relative path in manual it works.  Anyone know what I am doing wrong?
    Thanks.

    ok I am going to post the code I am using and hope it helps because I am still having trouble.  Thank you for looking at this.
    import flash.display.MovieClip;
    //Button Listeners//
    organtrak.esophagus_btn.addEventListener(MouseEvent.CLICK, esophagusButtonCLICK);
    organtrak.esophagus_btn.addEventListener(MouseEvent.ROLL_OVER, esohpagusMouseOver);
    organtrak.esophagus_btn.addEventListener(MouseEvent.ROLL_OUT, esohpagusMouseOut);
    function closewindow(e:MouseEvent):void
         trace("Close Activity Window");
         questions.gotoAndStop("empty");
    function esophagusButtonCLICK(e:MouseEvent):void
         trace("esophagus_btn CLICKED!");
         questions.gotoAndStop("esophagus");
         questions.curtain.play();
         organName = "esophagus";
         ParseBooks(organList);
         imageloader(organName);
         questions.close_btn.addEventListener(MouseEvent.CLICK,closewindow);
    function esohpagusMouseOver(e:MouseEvent):void
         trace("MouseOver Esophagus");
         organtrak.esophagus.scaleX = 2;
         organtrak.esophagus.scaleY = 2;
         organtrak.esophagus.alpha = 1.0; //100% Alpha
         organtrak.setChildIndex(organtrak.esophagus, 3);
    function esohpagusMouseOut(e:MouseEvent):void
         trace("MouseOut Esophagus");
         organtrak.esophagus.scaleX = 1;
         organtrak.esophagus.scaleY = 1;
         organtrak.esophagus.alpha = .5; //50% Alpha
    //Image loader function
    function imageloader(organName):void
         questions.image_window.status_txt.visible = true;
         var request:URLRequest = new URLRequest(imagePath);
         questions.image_window.UILoader.scaleContent = true;
         questions.image_window.UILoader.addEventListener(Event.COMPLETE, completeHandler);
         questions.image_window.UILoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
         questions.image_window.UILoader.load(request);
    function progressHandler(event:ProgressEvent):void
         questions.image_window.status_txt.text = "Percentage Loaded: " + Math.round(event.target.percentLoaded);
         //trace("Loading");
    function completeHandler(event:Event):void
         questions.image_window.status_txt.text = "Image is loaded";
         //trace("Loading Done");
         questions.image_window.status_txt.visible = false;
    //XMLLoader Script//
    import flash.net.URLVariables;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("XML/organtext.xml"));
    //organName = "esophogas";
    function LoadXML(e:Event):void
         XML.ignoreWhitespace = true;
         var organList:XML = new XML(e.target.data);
    function ParseBooks(organInput:XML):void
         trace("XML Output");
         trace("------------------------");
         var organList:XMLList = organInput.organ.(@name==organName).name;
         var descriptionList:XMLList = organInput.organ.(@name==organName).descriptions;
         var imageList:XMLList = organInput.organ.(@name==organName).imagePath;
         var image2List:XMLList = organInput.organ.(@name==organName).imagePath2;
         var videoList:XMLList = organInput.organ.(@name==organName).videoPath;
         var imagePath:String = imageList;
         trace(imagePath);

  • Passing variable into url

    Am sure am missing something but why doesnt this work???
    If I hardcode the string value it works fine...
    <cfset Str_Order =#rsorder.order_id#>
    <cfoutput> #Str_Order# </cfoutput>
    <p><a href="MyAccount.cfm?view=customsinvoice&amp;OrderID=' #Str_Order# ' "> test</a></p>

    Lose the single quotes.
    Saurav's idea should work as well.
    In either case, you should also encode for url.
    <cfoutput>
    <p><a href="MyAccount.cfm?view=customsinvoice&OrderID=#URLEncodedFormat(Str_Order)#"> test</a></p>
    </cfoutput>
    jason

  • Adding variable to url

    Hi
    I have a list of website links which user can click on.. On click, I want to call a JSP (http://localhost:8080/abc/faces/urlprofile.jsp) which can display data related to the website.
    To do this, I want the website's url to be appended to my url i.e. (http://localhost:8080/URLtopia/faces/urlprofile.jsp) so that I can fetch data related to that website from database.
    For example : if the website is google.com, I want the call to be http://localhost:8080/URLtopia/faces/urlprofile.jsp?google.com
    How can I do this ?
    Thanks
    Mudit

    This gives out error : Body of scriptlet element must not contain any XML elements
    <jsp:scriptlet>
    try {
    String k=(#{param.desti});
    Result Set rs;
    String q="select * from url where url.title=k;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Variable Address-URL in Job Scheduler

    Hi
    I am using OATS 9.0 and cant solve this problem:
    Its possible to insert a parameter for the address-value (Looks like this: <<url>>) in eTester from an .csv-File. When i wants to change the URL i only have to chance the csv file.
    But how can i get this in JobScheduler? I have an job including 2 Scripts. first Script has the <<url>>-parameter.
    Second script in the Job, should use the same <<url>> parameter like the first script. But i don't want to include the <<url>>-parameter in the address-value-field of second script.
    Is it possible that the second script use the url oder easily "overtake" the url from first script?
    thanks for help

    Hi Eric,
    This may be a question for one of the ABAP forums.
    The table is TBTCO. And the field is RECOBJKEY. You may need to do some debugging to figure out how to convert it back to an email address.
    Cheers,
    Ramki Maley.

  • Using loaded variables in url

    I have a text file from which I load a variable XML_path
    using:
    loadVariablesNum ("get_xml_path.lasso", 0, "POST");
    A dynamic text field on the stage with var set to XML_path
    displays the variable: 90ZESJAN06
    However, when I try:
    var my_url = ("
    http://myurl.com/flash/" +
    XML_path + ".xml");
    trace (my_url);
    I get:
    http://myurl.com/flash/.xml
    What am I doing wrong?
    Thanks

    if you've a dynamic text field called XML_Path, try
    var my_url = ("
    http://myurl.com/flash/" +
    XML_path.text + ".xml");

Maybe you are looking for