Attribute Variables in Weblayouts

Hello,
I'd like to create a weblayout with the transaction BPS_WB. But is impossible for me, to use an attribute variable.
It's also impossible in transaction UPSPM (planningfolders) to use an attribute variable in an 'able to web' layout.
Is this a known restriction of SEM-BPS? If yes. Is there an alternative to use Attributes in selections of weblayouts?
Thank you so much.
Frank

Frank,
    Attribute variables do not work on the web. This is a known limitation, infact you
    can see that yourself by clicking F1-help in BPS_WB in the variable properties
    window.As a workaround, you can create input variables and an exit variable.
    User would input in these input variables and exit variable reads these inputs
    and uses them as filter against Master data, listing only those values that
    are valid based on user input.
    Hope this helps.
Cheers
Srini

Similar Messages

  • BW-BPS Attribute variable selections issues

    Hi Marc / Gerd,
    I am using an attribute variable on material that has a lot of filters for values on material group, material type, EANUPC, and even a date such as created date / product start date (reference 0date). 
    The function /layout has issues if the selection has no material choosen and I know we needed to create exit variables on a previous project (someone else did the ABAP and I set out the spec) to do material group / category selection based on material attribute and the material group variable. 
    Any other good options or work arounds since we cannot use variable in attribute variables?
    Thanks,
    Mary

    Hi Marc,
    1. I checked the layout configuration and the config was transported okay to QA so the field that I want to input does not have compariable checked and it should be open for input.
    2. there are no data slices yet.
    3. Validation check - that might be an issue.  The BW loads originally had some master data not loaded in BWQ and have some mapping not occuring as it should and I have been asking for them for the last 2 load cycles.  I was told all missing master data have been since loaded and I need to ask for a load of the transaction again but the BW person is waiting for some missing mapping.  Also we had to document enabled some infoobjects. 
    But the category we are using for the integration testing should have all the master data correctly set up since I checked on it end of last week.  Do I have to set up some system settings for the document server? Do I need to force it to regenerate after some transports?
    The master data we used for the 2 systems are different since the DEV has very little master data and some were manually maintained or uploaded via flat files.  The BW QA has a lot of master data since R/3 QA has been refreshed recently. 
    Thanks,
    Mary

  • Using attribute variables in the planning folders

    Hi all,
    Is there way to use attribute variables in the planning folders?
    There is a following situation. We have a number of cost centers (0COSTCENTER). Cost center has responsible person (0RESP_PERS) as attribute.
    We planning some costs for cost center.
    To select certain cost center to cost planning we created
    variable ZVAR1 as type CHAR and placed this variable in the header of planning folder.
    Now we have to restrict list of cost center for selection according to selected responsible person.
    Of course, I can add 0RESP_PERS to my cube, create variable ZVAR2 as type CHAR based on this character. Then place this variable to folder. For variable ZVAR1 use type of replacement as "User Exit" and ABAP routine will restrict list of available cost centers based on value of ZVAR2.
    But... Is there way to use variable with type of attribute and place this variable to header of folder?
    Thanks in advance!

    Hi Dmitry,
        Yes, you can use the attribute variable in your folder.
        Just create attribute variable with 0COSTCENTER as the basic char and 0RESP_PERS as attribute.then when you create your folder with UPSPM, make sure to choose notweb-enable type then under the variable category you will see the the attribute vairable you just created at BPS0, just drug it to you folder, you are done.

  • Attribute variable

    Hi Guys,
         I remember I have used the attribute variable for planning folder at my previous client who use BW 3.5 and SEM 4.0. My current cleint is only use BW 3.5. and when I in the t code UPSPM trying to configure the attribute variable, none of them can be seen under varaible category, only characterstics and Hierarch variable is available, did I miss something? Also when I tried  use the attribute variable in the WIB, no value is display in the drop down manu, while in BPS0, it works fine. Is this means that we can not use the attribute variable in web interface?

    It is indeed not possible to use attribute variables directly in a planning folder or on the web.
    The only thing you can do is to add the info-object of the attribute to the transactional cube and to your planning layout.
    Ex. if material group is attribute of material, you should add material group to the cube.
    You then create a characteristic value (and not an attribute variable) variable on material group. Flag restriction required by user.
    You then create a userexit variable on material to call the material group variable, the userexit selects the materials based on the material group and enter in the variable. Do not flag restriction required by user.
    The characteristic value variable will be visible in the wib interface, the userexit variable will not be visible.
    Material group is further not used, you never fill it or plan it.
    Please do not forget to assign points if the answer was satisfactory.
    Best Regards,
    Filip

  • Can I share Attributes/Variables between 2 different Class Driver Sessions?

    I am designing a Simulator of Instrumentation following these steps:
    1) re-programming, re-compiling, and re-building the DLLs from the advanced class simulation drivers included in IVI Driver Toolset 2.0 using LabWindows/CVI 7.0;
    2) then i create a VI in LabVIEW 7.0 which calls an IVI Class Driver obtaining the desired simulated output data.
    My problem is that I need to share variables between different DLLs in LabVIEW.
    I want to simulate a circuit which consists of a battery and a resistor. I've got 2 instruments: a DC Power Supply and a Digital Multimeter.
    The DC Power Supply acts as the battery providing a certain voltage level, and the Multimeter measures the Voltage and the Current in the resistor.
    I've designed a VI in LabVIEW which uses 2 different sessions: one which calls the class driver IviDCPwr, and the other one which calls IviDmm.
    I wish to be able to access the attributes from "nisDCPwr.c" in the file "nisDmm.c".
    For example, to write a line like this:
    Ivi_GetAttributeViReal64 (ViSession vi, ViConstString channelName, NISDCPWR_ATTR_MEASUREMENT_BASEV, 0, &reading));
    inside the source code "nisDmm.c" of the advanced class simulation driver.
    The problem is that the only ViSession accessible from nisDmm is the handle from the Digital Multimeter, but not from DC Power Supply.
    Would this be possible? Is it "legal"?
    I've tried another approach through the declaration of external variables, but unfortunately I get a run-time error in LabVIEW.
    The only solution I've found is using auxiliary files going between, through the functions included in the Low Level I/O Library .
    Nevertheless, the solution proposed above would result much more convenient, faster and safer in my application.
    I hope everyone has understood my question, and anyone can help.
    THANK YOU VERY MUCH FOR YOUR TIME!!!

    Doesn't anyone have an answer?
    Or any proposal?
    Or even a clue?
    THANKS!

  • Dynamic Name from attribute : Variable Substitution

    Hey there,
    Can I use the variable subsititution feature of the File Adapter to set the filename dynamically from the payload. The filename is to come from a attribute and NOT an element. Is there a way how I can set this in the file schema subsitition .
    Thanks is advance,
    Zubair

    Hi,
    I dont think you can use the Attributes in order to use Variable name substitituion.
    Another option would be to use Adapter Specific identifiers --> Filename  and the following code in your mapping to set the file adapters file name dynamically,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String targetFileName="FILENAME";
    conf.put(key,targetFileName);
    Also take a look at this blog,
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Regards,
    Bhavesh

  • Attributes / Variable assignment in Excel

    How do you create a variable assignment in Excel that passes the "test script coverage" report?
    We thought we were being clever when we put a list of our variable assignments in Excel. This allowed us to sort the assignments (something we could not do in Word.)
    Our process in Excel:
    We put an empty cell in the top row with the "OPM - Condition Heading" style.
    In the rows underneath that, we put our attributes with the "OPM - Conclusion Heading" style.
    To the right of the attributes, we put the assigned values with the "OPM - Conclusion" style.
    We had our nicely sortable list of variables and assignments. It looks cool and works quite well.
    However, test coverage analysis reports conclude that we have not tested the attributes since we didn't test for the "uncertain" path. Of course, our variables can never be "uncertain"! To some degree, the test coverage report is wrong, but I understand that the generated rule is an if-then-else rule and not a straight assignment...
    Thoughts? Is there a better way to do the variable assignment in Excel? Should we just live with it? Should we create a mock test with all our variables overridden to be "uncertain" or should we do something else?

    Sorry for the very late reply here, but I'm afraid the structure you have created is just not well handled by the coverage analysis because it compiles into a rule with an unreachable condition. This is normally harmless but the coverage analysis isn't smart enough to ignore it. I've raised a bug (OPAD-7096) to track this in our internal system.

  • BSP: How copy received portal event string to ABAP-Page-Attribute variable?

    Hi,
    I am able to receive and display portal events (EPCF API) with the following code:
    <SCRIPT src="epcfproxy.js"></SCRIPT>
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
       alert("event received:" + eventObj.dataObject );
    But now the received data is only stored in Javascript-"variables".
    How can I copy the received string to ABAP variables? These variables will be declared as Page Attribute (e.g. rec_event_data  TYPE STRING)
    Is my Javascript-solution a good way to handle portal events or are there better solutions?
    Thanks a lot.
    Regards,
    Henning

    Hi,
    yes I was able to do it.
    The code should be something like this. I can not test it at the moment.
    function myreceiveEvent( eventObj )
            document.form1.rec_event.value = eventObj.dataObject;
            document.form1.submit();
    <htmlb:form id="form1">
          <input type="hidden" name="rec_event" value="">
    </htmlb:form>
    Event Handler: OnInputProcessing
    rec_event_data = request->get_form_field('rec_event').
    Regrads,
    Henning

  • Attributes : Variable

    Hi,
    I have requirement line this....
    I have plant which has an display attributes region for which i would like to create a varaible.. is it possible to create a variable for display atributes....
    because i have plant which has diffrent region and user would like to enter the value manually for the region which is an display attribute..
    Any one has exp the same .. please let me know...
    thanks
    Sonu

    You cannot create a variable for a display attribute. If the attribute is data or number, we can do restriction by round-about ways by creating a formula variable and then applying a condition on that.
    However, the ideal approach would be to make the attribute a navigational attribute. This will make it available for making restrictions and for creating variables.
    ~ Arun KK

  • Attribute variable in a selection criteria

    Hello Experts,
           I have an attribute '***' under infoobject 'patient id'. I wanted to create a variable on '***' and use it in the selection criteria on a query. I need to get only two options i.e F(emale) or
    M(ale) but I get all the options of 'patient id'. Is it possible to create variables on attributes and use them as the selection criteria? It would be great if someone could refresh me.
    Thanks,
    Anjali

    Hi!
    anjali I created a simmilar  senario in my system. It works fine with me. I have following conditions
    1) maitained masterdata for this *** infoobject
    2) maitained ***  as a navigational attribute in patient attributes and activated the patient
    3) maintained the *** attribute as a navigation attribute in ods object
    4) created a query which display my data based on ***
    5)created a variable with userentry  opetion with no default values.
    6)activted master data once again after this step
    I ods object i added the person(patient) in my data part and the *** attribute in navigational attribute section is displayed as  ZIOPERS_ZGENDER and ticked as navigational attribute.
      finally it is working  with my system. it is displaying only F and M values in variale entry scrren help. try closing the Bex and then restarting it.
    hope this info helps you
    with regards
    ashwin

  • How to get all program attributes (Variables, types, tables....)

    Hello,
    i want to analyse a programe source code, so i want to get all variable declaration.
    like in SE38->utilities->display list object, but in abap code.
    can you please help me.

    Hi Yassir,
    If ur program has TOP include then all global variables declarations will exist in this include. All local variables declarations exist with in the FORM.
    Open ur program in SE80. Here u can see all objects of ur program like Fields(Variables), TYPES,Tables, Routines etc.
    Thanks,
    Vinod.

  • Adapter specific attributes - SOAP Adapter

    Hi,
    I am trying to use the adapter specific attributes of the receiver SOAP adapter. But I am not able to view the Dynamic configurations in sxi_monitor corresponding to this message. Any clue why!?
    I read through the SOAP adapter help on help.sap.com,
    <i>http://help.sap.com/saphelp_nw2004s/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm</i>
    Here it says:
    <i>If you want to use header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, XHeaderName3. The parameters are embedded in the HTTP request under the names you enter here.</i>
    But I donot find an option where I can enter the names. Am I missing something here?
    Regards,
    Smitha.

    Hi Smitha,
    I did not try to use adapter-specific attributes with SOAP-adapter, but with mail-adapter. The documentation is quite similar, so I excpect similar results...
    So as far as I understood, the parameters XHeaderName1, ... etc are for dynamic extension of the set of adapter-specific attributes. For example, if you want to add some more information in the message header, you can program an adapter module and you have now a guide how to name the additional attributes.
    Usually, the "standard" adapter-specific attributes are starting with "S" (Sender) or "T" (Receiver). You can find the names in the documentation of the SOAP-adapter.
    In order to use the adapter-specific attributes, you have to check both indicators (adapter-specific attributes, variable transport binding). If this still doesn't work, you should use OSS. In my scenario (mail adapter) this didn't work, too. The reason was, that there was a bug in the adapter metadata (Integration Repository) of SAP BASIS. There was a SAP note, where I could download the correct adapter metadata. Maybe you can find a SAP note for the SOAP Adapter.
    Although this is probably not the final solution, I hope this guides you a step further.
    Regards,
    Torsten

  • Responsable agents: What's better? Role or expression (variable)

    Friends,
    I'm thinking about make things in the better way to improve the system performance.
    I have a dialog task that are sent to reponsables by a variable or expression configured in the own task. This variable is filled in a background task before this task.
    Does anybody know what is the best way to do this in about performance ? If I change this functionality by a role if it will be better to performance.

    Ok friends,
    Each sub-wf searches by actual agents...but any sub-wf can be canceled and back to its father or can terminate both workflows.
    I think the normal way is to use all the agents and a think I can (as ... had said) populate all the agents in the begin of the wf (maybe the father)...even I don't use all agent's virtual attributes/variables during the wf's... I think that searching for all the agents in a only time is best to performance.
    I'm studying about it to the things better here....I think putting it (searching for all the agents) in the beginning of wf, will help in making the sub wf's run faster and will create each sub-wf's work items faster too, because it won't this step (searching for all the agents) before each one...
    I think it solves two problems here...because here, another problem is that some times the Ztransaction trigger some terminating events for tasks that didn't had time to process and be created and standing for this terminating events...but it is another problem that I'll try to study for improve the wf design too.
    I didn't know if both of you have recognized my problem....or design....but here each sub-wf has a step before dialog task that searches agents for its next dialog step by filling a multi-line variable that represents the agents to the dialog tasks...

  • In the *.tld,what's the use of the tag " variable "

    For the jsp taglib technology.
    In the *.tld file,accroding to the "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
    there is an optional tag "<variable>".
    In some document , i saw an example as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>map</short-name>
    <tag>
    <variable>
    <name-from-attribute>id</name-from-attribute>
    <variable-class>java.util.Map</variable-class>
    <scope>AT_BEGIN</scope>
    </variable>
    </tag>
    </taglib>
    What use of this?
    Can anybody give me an simple example to explain this?
    Thank u!

    Thank u very much?
    But i want to know, if I had set the <attribute> tag
    as the example i had given.Do you mean attribute, or variable in the example you gave?
    Here, I will give you a full example. This tag will set a new variable (given by an attribute name) a value provided by another attribute, and puts that variable into one of the four scopes (page, request, session, application)
    You would use this tag like this:
    <custom:setValue var="theVar" value="What I want" scope="page"/>
    Where var = the name of the variable that will be exported
    value = The value to assign to the variable
    scope = the scope to put the variable into.
    package tags;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.http.jsp.*;
    import javax.servlet.http.jsp.tagext.*;
    public class SetValueTag extends SimpleTagSupport
      private String varName, scope, value;
      public void setVar(String var) { varName = var; }
      public void setScope (String s) { scope = s; }
      public void setValue(String val) { value = val; }
      public void doTag() throws JspException, IOException
        PageContext context = (PageContext)getJspContext();
        if ("application".equals(scope)) context.setAttribute(varName, value, PageContext.APPLICATION_SCOPE);
        else if ("session".equals(scope)) context.setAttribute(varName, value, PageContext.SESSION_SCOPE);
        else if ("request".equals(scope)) context.setAttribute(varName, value, PageContext.REQUEST_SCOPE);
        else context.setAttribute(varName, value, PageContext.PAGE_SCOPE);
    }The tag in your tld would look like this:
      <tag>
        <description>Set the value of a scoped variable</description>
        <name>setValue</name>
        <tag-class>tags.SetValueTag</tag-class>
        <body-content>empty</body-content>
        <attribute>
          <description>The name of the exported variable</description>
          <name>var</name>
          <required>true</required>
          <rtexprvalue>false</rtexprvalue>
          <type>java.lang.String</type>
        </attribute>
        <attribute>
          <description>The value to give the exported variable</description>
          <name>value</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <type>java.lang.String</type>
        </attribute>
        <attribute>
          <description>The the scope of the exported variable</description>
          <name>scope</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <type>java.lang.String</type>
        </attribute>
        <variable>
          <name-from-attribute>var</name-from-attribute>
          <variable-class>java.lang.String</variable-class>
          <scope>AT_BEGIN</scope>
          <declare>true</declare>
        </variable>
      </tag>>
    Then what should i do in the TagHandler programme(A
    javabean handle the tag)?
    And what should i do in the JSP page ?
    Can u give me an simple example?

  • [JDev 10.1.2] Compare JSTL var attribute with sessionScoped bean attribute

    I'm new to JSTL.
    I'm looking for a way in JDev 10.1.2 to compare a sessionScope bean attribute (sessionScope.User.Username) and a JSTL attribute variable. For this purpose I've developed the following code:
    +&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%&gt;+
    +&lt;%@ page import="bean.User"%&gt;+
    +&lt;jsp:useBean id="User" class="bean.User" scope="session" /&gt;+
    +...+
    +&lt;c:forEach var="Row" items="${bindings.ReadOnlyViewObject.rangeSet}"&gt;+
    +&lt;c:choose&gt;+
    +&lt;c:when test="${Row.CreatedBy == sessionScope.User.Username}"&gt;+
    +...+
    +&lt;/c:when&gt;+
    +&lt;/c:choose&gt;+
    +&lt;/c:forEach&gt;+
    +...+
    However it doesn't work on the test line. I'm not able to compare Row.CreatedBy to sessionScope.User.Username.
    I've also tried &lt;c:when test="${Row.CreatedBy == User.Username}"&gt; without success.
    Could you help me?
    Thanks.

    The bean property will have an initial lowercase name, so try sessionScope.User.username ?
    I believe since you used the jsp:useBean, that you can also just use User.username without the "sessionScope" in there, as well.

Maybe you are looking for