Urgent!!! How to give a value to a BEx variable in the planning fuction?

Hi all,
does anybody know how can set variable's value in the palnning fuction (type exit) in IP?
The two function modules in BPS which make this job don't work in the IP.
thanks very much for any proposal.
hongwei

Hi,
Reg the first part of the question, can you please explain how do you want to capture the variable for the custom planning function? Because, when I look at standard functions delivered by SAP, in the FROM CHANGE and TO CHANGE(for example copy function), we can select the BI variables or create new variables also.
To pass the values to this variable from BEx Analyzer, we need to use the command range in BEx Analyzer and capture the values.
I have used this approach to capture the BEx variable values into a FOX function using VARV function, but Im not pretty sure how to pass it to a custom planning function.
Regarding the second part of the question can you pls look at FM :   RSPLSSE_PLSEQ_EXECUTE. I think you need to embedd your planning function into a sequence and call it with the above FM.
You can also have a look at the ABAP program that is used to trigger a planning sequence by placing a breakpoint in any of the planning functions : "RSPLS_PLSEQ_EXECUTE" wherein you can pass the sequence name in the variant.
Rgds
Shyam

Similar Messages

  • How to give different value to a static variable???

    Hi all:
    Is there any solution to set different values to a static variable???I had try two ways but all have errors!
    1.Way_1
    protected String tmp=null;
    protected void initSituation(int sayorpress)
    if (sayorpress==0)
    tmp = "string1";
    else if (sayorpress==1)
    tmp = "string2";
    protected static String RESOURCE_STRING = tmp; <---error
    Error:non-static variable tmp cannot be referenced from a static context
    2.Way_2
    protected void initSituation(int sayorpress)
    if (sayorpress==0)
    protected static String RESOURCE_STRING = "string1"; <---error
    else if (sayorpress==1)
    protected static String RESOURCE_STRING = "string2"; <---error
    Error:illegal start of expression at
    not an expression statement at
    Thank you very mich!!!

    Try this:
    protected static String RESOURCE_STRING = null;
    protected void initSituation(int sayorpress)
    if (sayorpress==0)
    yourClass.RESOURCE_STRING = "string1";
    else if (sayorpress==1)
    yourClass.RESOURCE_STRING = "string2";
    You cannot declare a static variable inside a method. But you can access a static variable thorugh your class.

  • How to Open URL value stored in a variable in JSP

    Hi all,
    I want to know how i can use value of a string variable in a JSP as url to open.
    <% String abc="some url value" ; %>
    then i want to open abc as URL in JSP
    Please suggest something on this.
    any help in advance will be highly appreciated.
    thanks,
    savdeep.

    thanks rahul but,
    I want to open the URL in
    <% String URLvariable="abc.htm" ; %>
    <% out.println("< a href=URLvariable>"+rs.getString("Some JSP value")+"</a>"); %>
    please suggest how should i open the above URL value stored in JSP variable.
    any help will be highly appreciated.
    thanks,
    savdeep.

  • DB2Exception - The value of a host variable in the EXECUTE or OPEN statemen

    I want to store a XML file into database.
    To undersdande my problem, please see the code below:
    java.sql.Connection conn = null ;
    PreparedStatement ps;
    // Here I'm calling a function to get Database Connection.
    String sXmlFile = "" ; // This variable stores a XML file as String
    String sSQL = "INSERT INTO Crs_x_xml (XML_TRAN_ID,XML_MESSAGE,SUSPENDED_FLAG ) VALUES(?,?,?)";
    try {
         ps = conn.prepareStatement(sSQL);
         ps.setLong(1,1);
         ps.setBytes(2, sXmlFile.getBytes());
         ps.setString(3,"A");
         ps.executeUpdate();
         conn.close();
    } catch (Exception e) {
         e.printStackTrace();
    The Problem:
    The table Crs_x_xml that I used has three columns, the first is a int, the second is a BLOB and third is Char(1) and its in DB2 running on AIX.
    Sometimes it execute very well. But sometimes gives following error :=
    COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/AIX64] SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use. SQLSTATE=22001
    I dont know whats going wrong. Plz help....
    ~Abhijeet

    Hi,
    I am using a CMP query in websphere, in which i am trying to execute a select query.
    The query is as follows:
    SELECT OBJECT(o) FROM HrTmmbrAct o WHERE o.tmmbrActC IN ( 1,2,3 ) AND o.effD BETWEEN '2000-02-11' AND '2008-02-22'
    The tmmbrActC is defined as a string in the Websphere CMP fields. I am not sure now to pass the value to it. Do we need to pass it as objects. pls help.
    Thanks
    - Giri

  • How to give a value an Hyper link attribute

    Hi,
    I am pulling some data from the database and displaying on a report. One of the feilds in that report is the DATA. How can I give Hyperlink to that data value and then when I click on that DATA one of the SQL or PL/SQL script needs to be triggered and then an Summery sheet needs to displayed.
    My question is
    1) how to create an hper link on that perticuler column value DATA and how to make it action according to my requirement mentioned above when user clicked on that value.
    Cheers,
    Krishna.

    Hi Rene,
    The following is a comment that I posted into the wrong thread but hopefully explains how this works:
    You can specify the value from any column for use in the link by using #columnname#.
    In the example, linked to above, the column link text is: Show employees for #ENAME#
    I have a hidden item on the page called P39_MGR. The link branches back to the same page (in this case, page 39) and sets the value of P39_MGR to #MGR# (the column that contains the manager's ID).
    The second report then has a filter:
    SELECT fieldnames
    FROM EMP
    WHERE MGR = :P39_MGR
    Regards
    Andy

  • How to give level value 'unknown'

    Hi there,
    When creating a dimension with OWB, we get for every level also a row with empty values voor de levels underneath.
    E.g.: Dimension customer: Level Total, level customer group, level customer.
    I get:
    =====================================
    Level_total customer_group customer
    Total NULL NULL
    Total Group1 NULL
    Total Group2 NULL
    =====================================
    This is generated by OWB automatically.
    Anybody any idea how to fill in 'Unknown' instead having it blank? I've looked if i can fill somewhere a property, but could not find.
    Any help is appreciated.
    Thanks
    Sandra

    hii vishal,
    this selct option i already taking from database.
    only i want to give constant value to this field ..
    u mean to write selection-screen  select-option in coding part of query/infoset?
    for this field?
    n give const value in this code/.?

  • How to give two values of same field in read Statment

    Hi,
    Please Tell me how to give the two values of same field in read statements Condition.
    i.e
      Read table it_tab with key matnr = '1' or matnr = '2'.
    With Regards
    Kesavaperumal

    Hi Kesavaperumal,
    <li>You can not use OR operator with READ TABLE statement.
    <li>You have to use different fields of the internal table in where condition.
    <li>If you want to compare with two values, you need to use LOOP statement.
    LOOP AT it_mara WHERE matnr = '1' or matnr = '2'.
    "Write code
    ENDLOOP.
    Thanks
    Venkat.O

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How to pass a value to a bind variable in a query report in oracle apex

    Hi Guys,
    I have requirement to send weekly reports via email to some users. The users should receive their own records in the report. The user details is stored in a table. What I am planning to do is to create a report query in oracle apex to generate the report and then run a function/procedure via a scheduler to email the report to respective users. Now my query is ............. is it possible to pass a value (user name) to the report query to pull records of only that user? I know we can have bind variables in the report query but I have no idea how to pass a value for bind variables from a function/procedure.
    Can anyone help me on this issue or suggest a better approach?
    Thanks,
    San

    You need to use dynamic sql
    But please keep in mind that since you're using Oracle you may be better off posting this in some Oracle forums
    This forum is specifically for SQL Server
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to pass a value from 1 mxml componet to the another mxml componet

    I have created 3 mxml components. I am using 1st component as
    a container component for other 2 components mean[ inside 1st
    component i have placed 2 other components]. now i want to pass
    selectedvalue from 1 component to another component.
    say 1st component is
    MyFirstComponent.mxml
    2nd component is
    MySecComponent.mxml
    3rd component is
    MyThirdComponent.mxml
    now i have place 2nd & 3rd component in 1st component.
    whenever i select an item from dropdown in 2nd component i want to
    set/pass that selectedvalue to 3rd component public variable. how
    can i achieve this.
    MySecondComponent.mxml
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:salesforce="
    http://www.salesforce.com/"
    creationComplete="login()">
    <mx:ComboBox x="102" y="26" id="ddlDepartmentName"
    cornerRadius="2" height="20"
    fontWeight="bold" width="148"/>
    </mx:Canvas>
    [/code]
    MyThirdComponent.mxml
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:salesforce="
    http://www.salesforce.com/"
    creationComplete="login();">
    <mx:Script>
    <![CDATA[
    import SubComponents.Department.DepartmentSummary;
    public var departmentID:String = 10;
    ]]>
    </mx:Script>
    </mx:HBox>
    [/code]
    right now i am using hardcoded departmentID in 3rd component,
    i want to remove the hardcoded value and i want to set the value
    from 2nd components' on selectionChange.
    When i select department Name from the comboBox which is
    created in 2nd component i want to get the value in 3rd component.
    how can i achive this..
    want to set the departmentID in 3rd component to the
    ddlDepartmentName.selectedValue in 2nd component. when i change the
    selected value in 2nd component i want to display the department
    information in 3rd component after setting the departmentID
    Waiting for your valuable answer.

    This code seems to work:
    ------------------ MyThirdComponent.mxml -------------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:salesforce="
    http://www.salesforce.com/">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var departmentID:String = new String();
    ]]>
    </mx:Script>
    <mx:Text text="{departmentID}"/>
    </mx:HBox>
    ------------------------- MySecondComponent.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:salesforce="
    http://www.salesforce.com/">
    <mx:Script>
    <![CDATA[
    public function changeHandler():void{
    this.parentApplication.my3rd.departmentID =
    ddlDepartmentName.selectedLabel;
    ]]>
    </mx:Script>
    <mx:ComboBox x="102" y="26" id="ddlDepartmentName"
    cornerRadius="2" height="20"
    fontWeight="bold" width="148" change="changeHandler()">
    <mx:ArrayCollection>
    <mx:String>Bananas</mx:String>
    <mx:String>Apples</mx:String>
    <mx:String>Oranges</mx:String>
    </mx:ArrayCollection>
    </mx:ComboBox>
    </mx:Canvas>
    ----------------------- Test.mxml
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:comp="components.*" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    public function init():void{
    my3rd.departmentID = my2nd.ddlDepartmentName.selectedLabel;
    ]]>
    </mx:Script>
    <comp:MyThirdComponent id="my3rd"/>
    <comp:MySecondComponent id="my2nd"/>
    </mx:Application>

  • How to get a value from file to variable in ODI?

    hi
    i created a variable and i want to assign the value of the variable from the flatfile...can v do that ?
    i will be having the value in the flatfile...i want to assign the value to the variable...
    Edited by: sai praneeth on Feb 15, 2009 10:34 PM

    I don`t know how to realize your requirement that assign variable from flatfile directly.
    But I have done this kind of assignment from database table to odi variable.
    So I think, you can transform this variable value in flatfile to database table firstly, and then assign it to odi variable which you want to use.
    Just a kind of solution :-)

  • How do I pass value to 'getURL' url variable

    Howdy,
    I`m trying to launch a popup from a flash form using MX 7
    The popup works fine but I cant for the life of me work out how to pass 'theid' value to the url variable for the popup window.
    I think somthing like this can be done with action script and maybe a cfc but I really dont know how.
    You will notice I referenced 'theid' value directly, I know this will never work but just wanted to show what i was trying to acheive. If I were using a HTML form I could use some javascrip to get the element by id and append the value to the url. Is there away to do this in action script?
    <cfform format = "flash">
    <cfsavecontent variable="ticketpopup">
        getURL("javascript:window.open('supportdetails.cfm?id=#theid#' , 'TicketDetails', 'width=900,height=630, Scrollbars=1, resizable=0'); void(0);");  </cfsavecontent>
    <cfselect name="selectbox" query="thequery" value="id" display="whatever"></select>
    <cfinput type="hidden" name="theid" bind="{selectbox.selectItem.data}">
    <cfinput type="button" name="mybutton" value="whatever" onClick="#ticketpopup#>
    </cfform>
    Any help, much appreciated :-)
    Thanks

    I answered my own question, heres is a solution if anyone is interested..
    You can add the following actionscript to the onChange attribute of the select box. Its passes the value of the selected index to the URL and opens in a new window :-)
    No there is no need for a hidden field or a button either
    <cfform format ="flash">
    <cfselect name="name" query="thequery" value="thevalue" display="whatever">
    onChange="getUrl('supportdetails.cfm?ticketnumber=' + categorysubject.dataProvider[categorysubject.selectedIndex]['data'],'_blank');
    </cfselect>
    </cfform>

  • Reg : Urgent - How to provide a calculation for a period prior to the selection.

    Hi,
         I have a requirement to create a dashboard prompt for a range of dates . such as
    from date (01/08/2012) -
    to date (10/10/2012)
    Now when I select this range in my dashboard prompt my report should be as shown
    Location
    Curent Period Sales
    Previous Period Sales
    India
    Sales between (01/08/2012) to (10/10/2012)
    Sales between (01/08/2011) to (10/10/2011)
    How do I achieve this
    Pls help
    Thanks in advance
    Reg
    Niv

    Hi Akshay,
       yup.. but the data wud b distributed wrto month having as many number of rows wrto the months though the column is hidden .
    I had tried a way to put the from_date in a presentation variable - PV1 and
                                            to_date in a presentaion variable - PV2 .
    Now i got the previous years same day and month by
    I created another 2 new presentation variable P11 AND P22
    which stores the previous period date values
    I gave this formula in the EDIT FORMULA of the column of the dashboard prompt
    VALUE OD P11 = TIMESTAMPADD(SQL_TSI_DAY,-365,@{PV1})  and
    VALUE OF P22 = TIMESTAMPADD(SQL_TSI_DAY,-365,@{PV2})
    Now I created two reports in a same criteria where
    report 1 uses presentation variables PV1 and PV2 (to get current sales)
    and
    report 2 uses presentation variables P11 and P22(to get previous period sales)
    and combined using UNION.
    When I select all the 4 dates in Dashboard prompts, I get the respected report .
    But both the sales come in the same column like
    Location               Sales
    India                414413.2231(current period)
    India                     546623.7(previous period)
    U.S                   534872.223
    U.S                     912452.23
    I want them as two diff columns and want to hide my dashboard prompts P11 and P22
    Is there any cahnges to be done or another way to achieve this scenario , pls help.
    Thanks in advance
    Reg,
    Niv

  • How to have a value survive logout and destruction of the session

    Hi,
    Currently I'm facing the following challenge:
    For a customer we are building a webcenter portal app (version 11.1.1.6). Depending on where you come from, customer wants to have different styles and template.
    I have done this by adding a URL parameter to the different URL's the user can use. The param determines where the user came from and determines which style is going to be used.
    By adding a HTTP filter class to my portal app, I'm reading this URL-param and place the value in a session attribute. I have my trinidad-config file configured so, that it takes the value for the skin from a session bean in which I read this session attribute. A similar construction is used for setting the template.
    Now, this works well. When the application is started by one of the URL's, the login page is started with the correct style and template. Logging in.....no problem there. Still the correct style and template. Loggin out....you can feel it coming......the style is lost. With logging out, my session is destroyed and with this the value for the style. Is there any way to preserve this value and pass it through to the login page which is shown after a successful logout.
    Any help would be greatly appreciated.....
    Arno

    Hey guys, thanks for your reply.
    Ideally I'm looking for a solution where everything disappears when the user eventually closes the browser window.
    Storing this value in a table or file is not really an option. suppose you have a few hunderd users creating entries that only have to be stored as long as the user session lasts. When the user performs a logout, he has to be taken to the login page. In this way he is offered a chance to log back in again. During all this, the value for the style being used has to survive. When the user closes his browser window, the session and all values should be destroyed.
    So, I'm looking for a non-persistent solution.

  • Display multiple combination of values all at a time in the planning layout

    Hi,
    we are on BW 3.0B and SEM 3.1B. We've 2 characteristics "COUNTRY" and "CONTINENT" in planning level and package.
    in the planning layout, we had placed "CONTINENT" in the lead columns and "COUNTRY" in the header are and COUNTRY is hidden.
    Now, when we execute the layout for CONTINENT values "EUROPE and AFRICA" and COUNTRY values "GERMANY and SAFRICA".
    output of the layout is as follows for country GERMANY
    CONTINENT Value
    EUROPE 123
    EUROPE 234
    EUROPE 456
    as COUNTRY is in header, we need to scroll down (use down and upper arrows) to get values for next country SAFRICA combination of CONTINENT "AFRICA" in the layout as follows
    CONTINENT value
    AFRICA 342
    AFRICA 267
    AFRICA 768
    How do we get the layout to display both AFRICA and EUROPE in the same page without a need to use arrows as follows
    CONTINENT Value
    EUROPE 123
    EUROPE 234
    EUROPE 456
    AFRICA 342
    AFRICA 267
    AFRICA 768
    the only solution, i can think of is move COUNTRY from header to lead columns. But, we have a need to keep COUNTRY in the header area. I doubt if we can achieve this, but i have some hope as COUNTRY is a hidden field in the header area which we can take advantage of.
    any help is greatly appreciated.
    thanks

    Hi Marc,
    yes. there u go. my name is hari.
    thanks for your reply. sorry to confuse you. earlier, I just took a random example. Now, I am giving my problem in a more realistic way.
    we have cube data as follows
    Code Area Group Price
    ABCD EUR 111 20USD
    ABCD USA 222 30USD
    Code, Area, Group are not attributes of each other.
    we have a planning folder with variables for "Code" and "Area" with an input layout that has "Code and Group" in the header and "Area" in the lead columns.
    after we execute folder, if we enter values "ABCD" for variable "Code" and variable range "EUR to USA" for "Area", current layout is as follows
    ======
    Header
    ======
    Code : ABCD
    Group: 111  (not visible as Group is hidden in the header area of layout)
    ======
    Layout
    ======
    Area Price
    EUR  20USD
    for next combination, if we use down arrow to scroll down to Group 222, layout is as follows
    ======
    Header
    ======
    Code : ABCD
    Group: 222  (not visible as Group is hidden in the header area of layout)
    ======
    Layout
    ======
    Area Price
    USA  30USD
    we are interested to see all "areas" for Code ABCD irrespective of "Group" as follows.
    if we enter "ABCD" for Code and "EUR to USA" for "Area" variables, we need to have layout
    ======
    Header
    ======
    Code : ABCD
    ======
    Layout
    ======
    Area Price
    EUR  20USD
    USA  30USD
    this might also work out for us.
    ======
    Header
    ======
    Code : ABCD
    ======
    Layout
    ======
    Area Price Group
    EUR  20USD 111
    USA  30USD 222
    How do i achive this? we have a need to keep Group in the header area of the layout to get data from other source.
    hope it is clear.
    Message was edited by: hari143

Maybe you are looking for