Report-Report Passing Values with SMOD_RSR00004

Hi,
I operated the BADI SMOD_RSR00004 which suppose to help in mapping values from a sender report to a receiver report.
I didn't succeed to see in a debug mode the sender query's time characteristic value I used.
I mean that all the rows/columns characteristics of the sender query are available on the BADI method in a debug mode, but the column time characteristic of the sender query is not.
Also, does anyone know how should I enter the values I mapped to the export parameters in the method.
I found a good documentation here:
RS_BBS_BADI documentation,
But my problems I presented here has no solution mentioned there.
Best Regards,
Shani Bashkin

Hi again,
Does anyone have any idea for solving this problem???
Thanks,
Shani Bashkin

Similar Messages

  • Calling a report and passing values!!

    Hi Experts,
    i have a requirement. I have a report [zrep1] with billing doc field and shipment field on the selection screen.
    The logic for billing document is written. Im writing logic for shipment numbers. I am finding the billing documents of delivaries for each shipment.
    I want to pass those billing documents as input to the same report program [zrep1] for the existing billing document code to get the output.
    How to call the same report and pass the values from internal table as input to it.
    Please suggest the way to proceed. i knw it is possible.
    Thanks in advance.
    Edited by: Craig Cmehil on Jul 3, 2008 3:30 PM

    Hello,
    Try this:
    The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
    Program accessed
    REPORT report1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards.

  • Navigate between 2 reports and pass values between 2 different columns

    Hello
    I have a question about navigating from 1 report to another while passing the value from column 1 to column 2 in the second report...
    In OBIEE 11G, I create action link on report 1, column 1 and this action link is navigate to BI Content and the destination is report 2. Now report 2 has column 2, which is an alias of column 1 from report 1, from user's point of view they are the same, but from OBIEE point of view they are different.
    My action link is able to navigate to report 2, however, the value in column 1 which I clicked to execute the navigation, does not get passed to column 2 in report 2..
    Is there a way around this issue?
    Let me know if I need to provide more clarification
    Thanks

    Thank you Anirban
    I think this is the best solution you just provided.The current post and the post at below looks same
    Navigate from report to dashboard and  pass values between different column
    is it not answered?
    Thanks :)
    Edited by: Srini VEERAVALLI on May 7, 2013 3:07 PM

  • How to pass values with comma to comma seperated param in sp

    hi all,
     i have one sp which has param name as cordinatorname varchar(max)
    in where condition of my sp i passed as
    coordinator=(coordinatorname in (select ltrim(rtrim(value)) from dbo.fnSPLIT(@coordinatorname,',')))
    but now my promblm is for @coordinatorname i have values as 'coorcinator1', 'coordinato2,inc'
    so when my ssrs report taking these values as multiselect, comma seperated coordinator2,inc also has comma already
    how to get this solved. please help me..
    lucky

    In the SSRS report, on the parameters tab of the query definition, set the parameter value to
    =join(Parameters!<your param name>.Value,",")
    In your query, you can then reference the value like so:
    where yourColumn in (@<your param name>)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • JSF2 : Problem passing values with f:setPropertyActionListener

    Hi,
    I'm a JSF newbie, and I'm in front of a weird problem on a JSF2 / Glassfish3 project. I'm working on GlassFish Server Open Source Edition 3.1 (build 43) with Mojarra 2.1.0 (FCS 2.1.0-b11).
    I'm using a commandLink to pass values from a page to a backing bean. This example works (here is only the relevant code) :
    user.xhtml :
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <p><a name="projects"><h:outputText value="Projects" /></a></p>
        <p><h:outputText value="#{userController.user.login} has initiated the following projects:" /></p>
        <h:dataTable value="#{userController.getProjects()}" var="p">
          <h:column>
            <h:form>
              <h:outputText value="#{p.id}: " />
              <h:commandLink action="#{projectController.doGetProject()}">
                <h:outputText value="#{p.title}" />
                <f:setPropertyActionListener value="#{p.id}" target="#{projectController.projectId}" />
              </h:commandLink>
            </h:form>
          </h:column>
        </h:dataTable>
      </ui:define>
    </ui:composition>
    </html>userController.java:
    // package, imports...
    @ManagedBean(name = "userController")
    @RequestScoped
    public class UserController {
      @EJB
      private UserServiceEJBLocal userServiceEJB;
      private FacesContext ctx = FacesContext.getCurrentInstance();
      private User user = new User();
      private long userId;
      private String password;
      private String passwordConfirmation;
      public String doGetUser() {
        try {
          user = userServiceEJB.findById(userId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "User not found" + userId, "User not found : " + e.getMessage()));
          return null;
          return "user.faces";
      public ArrayDataModel<Project> getProjects() {
        return new ArrayDataModel<Project>(user.getProjects().toArray(new Project[user.getProjects().size()]));
      // Getters and setters
    }projectController.java:
    // package, imports...
    @ManagedBean(name = "projectController")
    @RequestScoped
    public class ProjectController {
      @EJB
      private ProjectServiceEJBLocal projectServiceEJB;
      FacesContext ctx = FacesContext.getCurrentInstance();
      private Project project = new Project();
      private long projectId;
      public String doGetProject() {
        try {
          project = projectServiceEJB.findById(projectId);
        } catch (ObjectNotFoundException e) {
          ctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Project " + projectId + " was not found", e.getMessage()));
          return null;
        return "project.faces";
      // Getters and setters
    }The proble occurs on the XHTML page below :
    project.xhtml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="sublayout.xhtml">
      <ui:define name="maincontent">
        <h:form>
          <h:commandLink action="#{userController.doGetUser()}">
            <h:outputText value="#{projectController.project.author.login}" />
            <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />
          </h:commandLink>
        </h:form>
      </ui:define>
    </ui:composition>
    </html>The commandLink syntax seems to be the same as the one provided above, but when I test this for, I get an IllegalArgumentException from Glassfish. Here it is, from the Glassfish server.log :
    [#|2011-08-22T11:15:11.462+0200|WARNING|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=95;_ThreadName=Thread-1;|/project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
    javax.el.ELException: /project.xhtml @32,42 target="#{userController.userId}": Can't set property 'userId' on class 'org.creagora.server.ejb.managed.UserController' to value 'null'.
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:139)
         at com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler$SetPropertyListener.processAction(SetPropertyActionListenerHandler.java:206)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
         at javax.faces.component.UICommand.broadcast(UICommand.java:300)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
         at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.IllegalArgumentException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at javax.el.BeanELResolver.setValue(BeanELResolver.java:381)
         at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
         at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
         at com.sun.el.parser.AstValue.setValue(AstValue.java:197)
         at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:286)
         at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
         ... 35 more
    |#]So I wonder : what makes the first example work, that fails in this one ? Where does this 'null' value come from ? I tested every value (project, author, author id), everything is correct. But for some reason, the projectController.project.author.id is not passed to the userController.userId.
    If I try to replace
    <f:setPropertyActionListener value="#{projectController.project.author.id}" target="#{userController.userId}" />by this (obviously incoherent but syntically correct)
    <f:setPropertyActionListener value="#{projectController.project.id}" target="#{userController.userId}" />I don't get the IllegalArgumentException anymore, but the value is still not passed, and the value of userController.userId is never updated, and remains set to 0.
    But if I hardcode a valid value :
    <f:setPropertyActionListener value="1" target="#{userController.userId}" />It works...
    I can't understand why a 'null' value appears from who knows why, given that the only value passed are of long type.
    Can you help me ? It's getting frustrating, and I didn't find any help on Google so far...
    Thanks!
    Xavier
    Edited by: 880733 on 22 août 2011 04:04

    Ok, I have a little more time now.
    You ask how the value can be null when the property is a long. What is happening is that something in the chain is null, e.g. the author is not set on the project. (Although usually you get an exception with that kind of thing.) The EL resolver is actually not really part of JSF, it is a separate library. Furthermore it is weakly typed so it doesn't know what type of thing projectController.project.author.id is until it evaluates it. If something is null along the way, there is no way for it to know whether the end result should have been a long, a Long, a String or anything else.
    You asked how to pass values without setPropertyActionListener. It is certainly possible. In fact, I would not be surprised if my entire application did not use setPropertyActionListener. Let's start with the first case. In that situation you were using a dataTable. The customary thing to do is to bind the dataTable to a UIData property in a managed bean. Then, in your action method, you can invoke UIData.getRowData() and get the object instance associated with the row in the table that was activated by the user.
    In your second example it is a little difficult to appreciate everything going on without more context but I'll just guess at what I don't know. I'm going to assume you have a simple page here. On the request that generates this page, projectController.project.author.id is known. I imagine the problem is that this is in request scope, causing projectController.project.author.id to be forgotten on the next request. The simplest solution is to store the project somewhere in session scope. I would recommend against putting the Controller classes themselves in the session scope.  Instead create a set of beans for session scope and inject them into the Controller classes.
    There are many other ways to skin the same cat. Many people object to over-using session scope. So you could store something small like just the id in the session. Or you could pass the id using h:inputHidden. Or you could use Tomahawk's s:saveState.
    HTH

  • MSS report not passing values from portal to selection screen fields

    Hello Gurus,
    We have a problem with Sickness Absences report in MSS which is a Z copy of the standard report RPTABS20.
    The problem is when the manager defines the selection criteria and selects the other period dates and under Organizational View - selects All Organizational Units and highlights one org unit and report results, then the report displays the employees which are currently not part of same org unit as selected in selection criteria. But these employees were present in this org unit in past when they took leave, which comes under the same period as given on selection screen. So in a way it seems to be right. But the requirement is to only display the employees which are currently present in this org unit.
    The report seems to be working fine in backend where we specified the same date range and org unit on selection screen.
    On our investigation in portal we came to know that the org unit field on selection screen PNPORGEH is not getting filled with org unit number selected on portal.
    On further investigation in debugging we came across the fm HRWPC_RPT_START_REPORT which calls fm HRWPC_RPT_FCODE_EXEC which in turn calls fm HR_HIS_EXECUTE and it executes the report with following code:
        SUBMIT (repos-repid)  AND RETURN
               USING SELECTION-SET repos-varit
               WITH pnpindex IN objid_ranges
               WITH pnptimed eq ' '
               WITH pnpbegps eq act_begda
               WITH pnpendps eq act_endda
               WITH pnpbegda eq act_begda
               WITH pnpendda eq act_endda
               WITH p_super  eq space.
    Looks like the standard code is not passing the org unit to the selection screen of the report.
    Request you to kindly guide if this is a SAP standard problem or the report is not configured properly ?

    Please check steps as mentioned here
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=199820849
    and report variant, check your evaluation paths if it is being refreshed correctly, click twice to refresh.
    check tje note 1431691
    When the report is launched from
    the portal, the program is reading the table:T77eo for the object
    type-'O' , since there are no entries for the object 'O' in the table,
    the switch INREL is not set, therefore the structure pchobjid is not
    filled while calling the report as shown below. Now I know the
    rootcause, but I don;t know the reason behind the table: T77EO not
    having entries for object "O".
    ==============================================================
        SUBMIT (fcode_rec-progname)
        USING SELECTION-SET fcode_rec-variant
        AND RETURN
                       WITH pchplvar EQ act_plvar
                       WITH pchotype EQ act_otype
                       WITH pchobjid IN pchobjid
                       WITH pchsobid IN pchsobid
                       WITH pchobeg  EQ act_begda
                       WITH pchoend  EQ act_endda
                       WITH pchbegda EQ act_begda
                       WITH pchendda EQ act_endda.
    try to use PNP database for seleciton only these paramters are passed to backend!

  • Popup2 in SQL report not passing values of table fields

    Hello All,
    Can some one help me with this popup 2 case statement.
    Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
    A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
    CASE WHEN ANALYSIS IS NOT NULL THEN
    '<a href="javascript:popUp2('''
               || 'f?p=&APP_ID.:305:&SESSION.::&DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:A.METRIC_TYPE,A.MONTH'
               || ''', 890, 460);style="text-decoration:underline;color:black; font-size: 90%">'
    || '<img src="#APP_IMAGES#notes.jpg">'
    || '</a>' END "Analysis"
    Frank

    Species 5618 wrote:
    Hello All,
    Can some one help me with this popup 2 case statement.
    Instead of the values behind the fields being passed the literal text of "A.Metric" & "A.Month" is beaing passed into the new page instead.
    A.Metric has a value of 10 and A.Month has a value of '01/May/2008'
    ----------------------------------------------------------------------------------------------------------------------<font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
    '&lt;a href=&quot;javascript:popUp2('''
               || 'f?p=&amp;APP_ID.:305:&amp;SESSION.::&amp;DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
               ||  A.METRIC_TYPE,A.MONTH
               || ''', 890, 460);&quot;style=&quot;text-decoration:underline;color:black; font-size: 90%&quot;&gt;'
               || '&lt;img src=&quot;#APP_IMAGES#notes.jpg&quot;&gt;'
               || '&lt;/a&gt;' END &quot;Analysis&quot;</font>
    Franksorry did not realise that my text was being changed by this forum's application edit tool
    Here is the SQL statement again
    Frank
    Edited by: Species 5618 on Apr 15, 2009 10:03 AM
    I also Tried this with no success (&
    <font face="Arial">CASE WHEN ANALYSIS IS NOT NULL THEN
    '&lt;a href=&quot;javascript:popUp2('''
               || 'f?p=&amp;APP_ID.:305:&amp;SESSION.::&amp;DEBUG.::'
               || 'P305_METRIC_TYPE,P305_METRIC_MONTH:'
               ||  &A.METRIC_TYPE.,&A.MONTH.
               || ''', 890, 460);&quot;style=&quot;text-decoration:underline;color:black; font-size: 90%&quot;&gt;'
               || '&lt;img src=&quot;#APP_IMAGES#notes.jpg&quot;&gt;'
               || '&lt;/a&gt;' END &quot;Analysis&quot;</font>
    Edited by: Species 5618 on Apr 15, 2009 10:10 AM

  • Linking 2 WebI reports and passing values

    Hi All,
              I have an issue here.As I have 2 reports in WebI created and report1 will be a summary report and i have a object in report1   which is like a hyperlink like for eg 2001,2002,2003 and when i click on 2001  it should open up the report2 and give the Quarter,Q2,Q3,Q4.
    Regards
    Prashant

    Hi Prashant,
    U will have to use the concept of OpenDocument API.
    Following are the steps for your question/difficulty.
    1. Open a report in webi having an object year.
    2.Open another report and have the objects year and quarter.
    Type  the below link in the Formula toolbar. The syntax is as follows.
    ="<a href=http://Server Name/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sType=wid&sDocName=Name Of The Second Reprt Try save this without space&s&lsSEnterYear:="[Year]">"[Year]+"</a>"
    and in the properties window in the Read Cell Content As choose hyperlink.
    You will get exactly what your ver looking for.
    Hopefully this solves your problem.
    Regards,
    Bernard.
    Edited by: Florencio Sequeira on Jun 20, 2008 2:24 PM

  • Passing values with href.

    I am creating a report region by selecting some fields from the table. I then made one particular field a hyper link and i want to have a pop up window (to select some criteria) when you click on the hyperlink.
    My pop up window display will be different depending on which hyperlink you have clicked (depending on datatype). How can I pass a value or a set of values (separated by comma) so I can see and use those values in pop up window and can display and hide particular item/items
    Help is highly appreciated.
    pb

    Hi Prashant,
    There are a few ways of doing this - this is what I do when I need this sort of functionality
    1) in the report select the column you want to link on - or create a derived column
    2) in the link column set the target to URL
    3) in the URL field type something like:
    javascript:popup('#ST#','#STATE_NAME#');
    where the values between the hash symbols are the values you want to pass to the new window
    4) create a new window with hidden items corresponding to the values that you want to pass
    5) in the report page go the page attributes and add some javascript in the HTML header section:
    &lt;script language="javascript"&gt;
    function popup(value1,value2){
    var newWindow;
    newWindow = window.open("f?p=&APP_ID.:2:&APP_SESSION.::NO::P2_TEXT1,P2_TEXT2:"+value1+","+value2+"","myWindow","width=200,height=400");
    newWindow.focus();
    &lt;/script&gt;
    where the value1 and value2 parameters are the values passed in and the P2_TEXT1 and P2_TEXT2 are the items on the popup page you want to populate.
    If you do a general search on the internet for window.open you should be able to find the other attributes that can be used to hide scrollbars, status bar etc, if that is needed.
    hope that helps
    Adam

  • Passing values with HttpsURLconnection and reading response back

    i need to communicate with a server url using HttpsURLConnection and pass 2 strings and read the response back.
    how can i make this using HttpsURLConnection object.
    HttpsURLConnection.setDefaultSSLSocketFactory(sslcontext
                        .getSocketFactory());
    HttpsURLConnection https = null;
    https = (HttpsURLConnection) new URL(host).openConnection();// host url of the server program
    https.setRequestMethod("POST");
    https.setDoInput(true);
    https.setDoOutput(true);
    https.setRequestProperty("IP", "10.900.10.2");// i am not sure how to pass two strings.
    https.connect();
    // have to read response back from a server program
    please help,
    thanks in advance.

    You can get around this by using javascript. That way your parent document is not getting refreshed.
    Create form inputs in the parent document for each of the variables you want to gather from the popups.
    You can then fire a function in the parent window when the user clicks a button in each popup that sends the values to the parent window. Just use:opener.funcname(var1, var2, var3...);Create the function funcname() in the parent window that takes each value to be added and sets the form inputs appropriately. You may want to use a different function for each popup window, like submitPopup1, submitPopup2 and so on.
    You can then make the last popup submit the form in the parent window:
    opener.document.FORMNAME.submit();Where FORMNAME is the name of your form.

  • Passing values with each program run

    Hi ,
    I have a program which runs 6 days a week and updates a table.Now my requirement is to assign a value to a field for each day when the program runs every day in the week.
    <b>For first day - D
    second day - D-1
    sixth day - D-5.</b>
    when the program runs after D-5 it should again start from D.
    How can i achieve this please advise.
    Regards
    Pavan

    Hi kumar,
    1.
    03-Jun-06     D
    04-Jun-06     D-1
    05-Jun-06     D-2
    06-Jun-06     D-3
    07-Jun-06     D-4
    08-Jun-06     D-5
    09-Jun-06     
    10-Jun-06     D
    11-Jun-06     D-1
    12-Jun-06     D-2
    13-Jun-06     D-3
    2. this program will give output,
       based upon date input.
    3.  just copy paste
    report abc.
    data : monday type sy-datum.
    data : abc(3) type c.
    data : diff type i.
    DATA : DAYNR TYPE C.
    parameters : mydate type sy-datum default sy-datum.
    START-OF-SELECTION.
    CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
    EXPORTING
       DATE          = mydate
    IMPORTING
      WEEK          =
       MONDAY        = monday
      SUNDAY        =
    DIFF  = MYDATE - MONDAY.
    DAYNR = DIFF.
    ABC = 'D'.
    IF DIFF >= 1.
    CONCATENATE ABC '-' DAYNR INTO ABC.
    ENDIF.
    WRITE ABC.
    regards,
    amit m.

  • Pass parameter with blank space for report ver 6

    Hi,
    I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
    for example the value i key in
    with ' = ' 9'
    without ' = 9
    So how i can solve it by pass the acno without ' but the record still able to show?
    thks
    Message was edited by:
    user569740
    Message was edited by:
    user569740

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

  • Passing values to another page with %

    I have a button that redirects to another page in my application. I am passing the value of one my fields to the target page via <Set These Items> and <With These Values>. The source field has a % at the end of it. When the value gets passed to the target, the % is not passed. Is there a problem passing values with % in them?
    Here is the passing parameter list:
    Set These Items: P22_DB_NAME
    With These values: &P2_DB_NAME.
    The value of P2_DB_NAME is "ESB%". When it gets to the target page it is "ESB".

    Brian,
    you will need to encode the percent sign and use
    %25
    instead of
    Make your button an url and use this link. It will replace the percentage with the encoded value and pass the value to the specified item.
    redirect('f?p=&APP_ID:22:&SESSION.::::P22_DB_NAME:'+$x('P2_DB_NAME').value.replace(/%/, '%25'));
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Need to run the report for All Values when Null is passed in parameter

    Hi All,
    In my BIP report, I am using a parameter :asset with Type as Text, which means user will type the values for the parameter in the text box.
    Now, this parameter can take multiple comma separated values. I have a requirement to run the report for All Values when user doesn't enter any value in the parameter text box and if user enters any value(s) then the report will run for those values . The way, I tried to handle that in the query using couple of ways was :
    IMP : My Database is SQL Server
    where
    (table.asset = isnull((:asset), table.asset) or table.asset in (:asset))
    Now this works fine when I give a single asset number but when I give multiple values separated by comma like 123, 345 in the text box, then the statement fails saying 'encountered ,'
    I also tried simply
    table.asset in isnull((:asset),table.asset) -- but this doesn't work as it doesn't allow me to use in operater while using isnull and if i will use = operater then it won't work in case of multiple values
    Any suggestions on how can I handle this? Any help would be highly appreciated.
    Thanks,
    Ronny

    thanks for replying, but i tried this option too, it did not work for me, neither isnull nor coalesce. I mean, the solution work for single value but when i pass multiple values then separated by a comma then it doesn't work and shows me an error like "Incorrect Syntax ','". I am using SQL server as DB and bip is 10.1.3.4.1
    also please share the SR number, so i can also check the same.
    can there be any other work around to this?
    thanks,
    ronny

Maybe you are looking for