How to Access Attributes of Fields in VARIANT

Hi,
Can anyone let me know how we can access Field attributes of a variant? I need to change and create these attributes dynamically.
Below are the attributes of screen field saved when creating an variant
     Required field                            O
     Switch GPA off                            L
     Save field without values          P
     Selection variable                       L
     Hide field 'BIS'                            N
     Hide field                                    I
     Protect field                               P
    Field name                   Type   P  I  N  L  P  L  O
    P_REPID                        P                               X
    SO_VNAME                  S
For Example
If 'O' is marked as u2018Xu2019 against any field in the variant then it says that this field is OBLIGATORY
I want to access this sort of information of a variant.
Thanks
Rajgopal Dara

Hi RAJ,
Although the question is not so clear, but as far as i understand you want to see the attributes associated with all the fields in your variant. if so then you can go to maintain variant. just go to se38, select variant as radio button and change it. In the variant maintenance screen you can select change attribute of your variant. you can click on that and pass dynamically values (either from some table like TVARV or from program)
Hope this information will be helpful for you.
Cheers !!
Sourabh Batwara

Similar Messages

  • How to access attribute name (xml) in Servlet ?

    Hi All,
    Anybody please tell me how to access attribute name in servlet ?
    Thanks

    Parser.java
    public class Parser
    public static String getAtt()
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              DocumentBuilder parser = factory.newDocumentBuilder();
              Document doc = parser.parse("customer.xml");
              Element root = doc.getDocumentElement();
    return root.getAttribute("name");
    public static void main(String [] argc)
    Parser p = new Parser();
    p.getAtt();
    Servlet.java
    Parser p1 = new Parser();
    String att1 = p1.getAtt();
    Hope this will help u.
    ....yogesh

  • How to access attribute in its owner method?

    var group : Group = Group{
    content: for(i in [0..10])
    for(j in [0..10])
    Rectangle{
    x:20
    onMouseClicked: function( e: MouseEvent ):Void {
    var xc = x // why can't access here x???? How to access?
    insert
    Line {
    startX: x//How to access x attribute from rectangle??
    startY: y //How to access y attribute from rectangle??
    endX: x+gap
    endY: y+gap
    strokeWidth: 1
    stroke: Color.BLACK
    into stage.scene.content
    };

    You can define global variables by using a public variable on script-level. Just make sure you define it outside of any class definition. For example if you want to define a global environment, you can create a script Environment.fx and put there your global variables:
    public var GLOBAL_VAR1 = 42;You can access this variable from anywhere with:
    Environment.GLOBAL_VAR1 = ...

  • How to access attribute

    Hi all,
       I am new to webdynpro for ABAP.  How to access the attribute which is directly under the root context.
    ex.
    Root Context
    |
       Name   ---> attribute.
    Regards,
    Gnid.

    Hi Gopi,
    Accessing a context element or a context attribute requires to first have a  reference to the related context node. The context root node can be accessed by the standard attribute WD_CONTEXT. 
    To Access a Node Element: After having accessed a context node, the reference to the element at lead selection  of this node can be obtained by calling the method get_element( ). Thismethod  returns a reference to the element instance of type IF_WD_CONTEXT_ELEMENT. Accessing the Node Element at Lead Selection  The element with index n can be accessed using the method get_element( index  = n ) .
    Once we access the element we can access the attribute by GET_ATTRIBUTE().
    Child nodes of the context root node can be identified using the get_child_node(  ) method. This method returns a reference to the node instance of type  IF_WD_CONTEXT_NODE. The get_child_node( ) method requires the name of  the node and, optionally, the index of the element in the parent node to which the  desired node instance belongs. In this case, the parent node is the context root,  which only ever has one element; therefore, the index parameter is 1 (default =  lead selection of parent element).
    Best regards,
    Suresh
    Message was edited by:
            Suresh Honnappanavar

  • Need Help Figuring Out How to Access On/Off Field in Upper Left Hand Corner

    I am hoping someone can help as I am not at all TECHNICALLY SAVVY!!  I must have hit some wrong button yestyerday because now I cannot get access to my messages on my Blackberry Curve.  I think it may be because the word OFF appears at the top of the screen on my Blackberry on the far left hand side and I cannot figure out how to access that part of the screen to change it to say ON.

    Well, give it a few minutes, and if after 15 minutes no new email messages, Do a simple reboot on the BlackBerry in this manner: With the BlackBerry device POWERED ON, remove the battery for a minute, and then reinsert the battery to reboot. A reboot in this manner is prescribed for most glitches and operating system errors, and you will lose no data on the device doing this.
    Meanwhile, if you've read or deleted any of the email sent in the interim from your PC, you won't be getting it on your BlackBerry.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to change attributes of fields ?

    hi evryone,
       I am new to  ERP HCM (HR) . I have used standard services as leave request and all. In Leave Request i want to change the attributes of the fields on user entry. Is this possible to be done? if yes , how?  how can i see the structure coming onfront ? Where can we maintain these fields at backend?
    thanks in advance.

    Hi evryone,
        Please help me for this.

  • HOW TO ACCESS ATTRIBUTES FROM DIFFERENT VIEW SET

    Hi Experts,
    How i can  access the variables declared in context class from component controller class
    and vice-versa.
    Thanks & Regards
    Ansal

    Hi Ansal
    You can bind your context node of view to component controller context node and then you can access the data.
    You can do this binding by inserting following statements in create_context_node method of your _ctxt class.
    owner->do_context_node_binding( iv_controller_type = cl_bsp_wd_controller=>co_type_component
       iv_target_node_name = 'BUILHEADER'  
       iv_node_2_bind = builheader ).
    Regards,
    Rashmi

  • How to access attribute value from another VO using groovy?

    Hello, I am using JDeveloper 11.1.2.3.0
    I read a lot of information about this but still I am missing something. I am trying to set the value of a bind variable through Groovy expression in my VO. I want this Bind variable
    to have the value from an attribute from another VO. I tried ''adf.object.MyAppModuleImpl.findViewObject('Users1').currentRow.Iduser''
    I am getting "oracle.jbo.expr.JISyntaxError: Variable MyAppModuleImpl not recognized". I tried with 'MyAppModule' only but the result is the same.
    Can anyone help please?
    Thanks

    Check out http://www.oracle.com/technetwork/developer-tools/adf/learnmore/august2011-otn-harvest-457288.pdf Page 18 'Optimized Groovy data access to view objects'
    Timo

  • How to hide dynamic selection fields in variants

    hi,
    When a selection variant is saved, we have the option to 'hide' a selection field. That field may contain a value, but it is not shown on the selection screen. There is, however, a button that will display these hidden field when required.
    Is it possible to do this also with dynamic selection fields ?
    The column 'Hide field' is shown in the variant atttributes screen, but it is not active.
    Please suggest
    MS

    Explore SHD0 T code

  • How to access attributes of an instance?

    For example, I declared an instance of a CustomNode class "workspaceRow".
         Group{
             translateX: 50
             translateY: bind (wsY * -1) + (i*25);
             content:[
                     workspaceRow{
                          lineNumber: i.toString();
                        myColor: theColor;
                        onMouseEntered: function( e: MouseEvent ): Void {
                            selectedRow = i.toString();                  
         }How do I access lineNumber? I'm trying to use it for the onMouseEntered function inside the workspaceRow (as seen above), but Eclipse says it cannot find lineNumber, because it's looking for it at the top of the hierarchy (as in, looking for lineNumber declaration on my main *.fx file, instead of inside the instance). It's because I need to be able to store some data inside, and retrieve it later on.

    For that lineNumber thing, sorry about that. I was trying to access it in the onMouseEntered function, but decided to use var "i" instead, since it was what I used to generate a loop, and I use that same variable for lineNumber, but I know it'll give me problems later on.
    Yeah, forgot about capitalized class names, and yes, WorkspaceRow is a class extending CustomNode.
    Thanks a lot, your way worked. I am just wondering though, why doesn't JavaFX want to put the declaration and instantiation of the node inside Group{}? When I move those code blocks inside, Eclipse highlights the line "Group{" and says "unexpected type required: variable found : value".
    If I proceed with initializing the instance right on the declaration inside Group{}, it says "This is the type of cyclic reference to workspaceRowNow that prevents type inference.". As in like this:
              var workspaceRowNode = WorkspaceRow{
                     lineNumber: i.toString();
                   myColor: theColor;
                   onMouseEntered: function( e: MouseEvent ): Void {
                       selectedRow = i.toString();
                       print(workspaceRowNode.lineNumber);                  
              }Can anyone explain what that means?

  • ID JS (any version): How to access "Author Title" field value through scripting.

    Good Morning:
    In the file information dialog box, there is a field for "Author Title".
    Is it possible to reference this field via scripting?
    I've tried many different field name options for it (i.e. "authorTitle", "titleAuthor", etc...), but no luck so far.
    Thanks!
    Theresa

    Interesting one.
    For some reason it's in the Photoshop namespace:
    <rdf:Description rdf:about=""
      xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
      <photoshop:AuthorsPosition>That's me!</photoshop:AuthorsPosition>
    </rdf:Description>
    You're going to need getProperty() and setProperty() for that:
    doc.metadataPreferences.getProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition");
    and
    doc.metadataPreferences.setProperty("http://ns.adobe.com/photoshop/1.0/","AuthorsPosition","All About Me!");
    Harbs

  • How to access a field of an data source w/o binding a form field to it

    Hi
      This is a query regarding ADOBE print form.
      How to access a record field (of an data source.... typical multi row records) where the record is bound to a subform.
    Data is something like
    (I have used abap parlance for understanding)
    data : begin of data_tab occurs 0,
      field1 type .....,
    field2 type .....,
    fieldm type .....,
    fieldn type .....,
    end of data_tab.
    Subform is bound to
    $.DATA_TAB.DATA[*]
    How to access field1, field2,...... etc without creating subform fields and binding them to field1, field2, .... fieldn.
    I know normal approach is to define subform fields and then bind it to $.field1, $.field2 etc
    In the calculate event of a field bound to $.fieldm I have tried the following expressions to get the value of column fieldn of the same record but none of them worked.... Note that if I bind the field using $.fieldn data is displayed properly in the print form.
    $record.data_tab.fieldn.value
    $record.data_tab.data[*].fieldn.value
    $record.data_tab.data.fieldn.value
    $record.data_tab.fieldn.value
    Otherwise I would have to define hidden fields just to use these column values in the event script even though these value are not to be displayed in the ADOBE print form.
    Regards
    Abapper

    I can't remember the exact sentence, but do a little search, as that is a common question in this forum....
    How about:
    $record.data_tab.data[1].fieldn.value
    $record.data_tab.data[2].fieldn.value
    $record.data_tab.data[2].fieldn.value
    $record.data_tab.data[N].fieldn.value
    Cheers.

  • How to access XM attribute name in servlet ?

    Hi All,
    Anybody please tell me how to access attribute name in servlet ?
    Thanks

    Hi All,
    I have modified the source code of af:showDetailItem as following:
    <af:forEach items="#{bindings.VerticalAppMenus.children}" var="globalMenu" varStatus="globalMenuVarStatus">
               <af:showDetailItem text="#{globalMenu.MenuLabel}" id="sdi1" disclosureListener="#{pageFlowScope.globalMenus.refreshLineMenus}"
                 disclosed="#{(pageFlowScope.globalMenus.currentVerticalMenuId == globalMenu.MenuId) ? true : false}">
                  <f:attribute name="currentVerticalMenuId" value="#{globalMenu.MenuId}"/>
    </af:showDetailItem>
    </af:forEach>For the code *disclosed="#{(pageFlowScope.globalMenus.currentVerticalMenuId == globalMenu.MenuId) ? true : false}"*, at runtime it is giving the following error:
    *java.lang.IllegalArgumentException: Cannot convert 32 of type class oracle.jbo.domain.Number to class java.lang.Long*.
    Is there any way to cast the long to number or number to long in EL?
    Any help will be highly appreciated
    Thanks ... Best Regards
    Bilal
    Edited by: Bilal on 04-Apr-2012 19:32

  • Accessing dynamically created fields

    Hi,
    I have a html that has an input field on it. Say we enter a number( e.g. 5) and submit the html.
    The html transfers control to 1. jsp which creates input fields based on the number entered. In the above example 5 input(text) fields are created dynamically.
    Once I submit 1.jsp, it transfers control to another 2.jsp.
    In 2.jsp, I need to access the values entered in the 5 fields on 1.jsp.
    request.getparameter() returns value only from the 1st field (out of the 5 fields). How to access the remaining fields ?
    Any help is really appreciated.
    Thanks,

    Thanks a lot. That worked!!!!
    Even the ordering seem to be ok.
    With your other suggestion, I had tried that before but that did not work.
    I created field names as field1,field2..etc on the fly and stored this in a String variable - fileName.
    <% fileName = fileName concatinated with number %>
    <input type = "text" name=fileName > Note: There are no quotes around fileName. So fileName could be fileName1, fileName2 etc
    (I don't think the quotes around name attribute really matters.)
    When I say request.getparameter("fileName") it returned only the 1st fileName. Let me know what youythink.
    Thanks again.

  • Accessing the Contact field on a Content Area Programmatically

    I'm implementing some functionality to email the owner of a content area when a new document is submitted for
    approval.
    I have not trouble accessing and manipulating the content areas, folders, regions and items programmatically,
    but when I get to the simple bit of looking up the contact for a content area to send the email I can't find the contact
    property in any view, all of my WWSBR_% views MAILTO_DISPLAY_NAME values are '0'.
    Does anyone have any idea how to access this Contact field (from Edit Folder -> Optional Properties tab) from PL/SQL
    (or Java for that matter) either through a view, table or API call?
    Regards,
    Rob Paterson

    Hi Robert,
    Ur statement states that
    "I have no trouble accessing and manipulating the content areas, folders, regions and items programmatically"
    Can u throw some light on the same by possibly sending some codes to achieve the same.Our requirements are as under:-
    1)When the content area is added with various privileges to a particular users page he needs to click on edit in order to add Item/folder or manage the same.Is it possible to show(either by customizing or programatically) the same links by doing away with the edit link and directly displaying the privileges(i.e. add item,folder properties) when he logs in.
    2)As the situation stands now when a document is uploaded for approval only Portal30 can approve the same though the relevant privileges have been provided for various users.The icon for approval doesnt appear when the content area is added as a portlet.The only way of approval seems to be for portal30 to log in and navigate to the particular content area and click on the same.The items awaiting approval appear with a approve icon wherein he can approve the same.But the same fail to appear when published as a portlet.
    Our project is under tight schedule so any help would be a gr8 help.
    Thanks in advance.
    Regds.
    Kiran.

Maybe you are looking for

  • After upgrading to Yosemite my I photo will not update

    My iPhoto will not update because of a error with a previous owners password my brother owned the iMac before me he signed out of everything.

  • SQL Performance

    I am trying to output in apex a sql-based-report based on the following query: select a."ID", a."UWI", a."BU", a."UNIT", a."PLANT", a."GROUPS", a."YEAR_MONTH", a."OWNER_NAME", c."ROUTE" as "FCC", round("INLET", 2) as "INLET", round("RESIDUE", 2) as "

  • How to track Inter Company Asset Retirements

    Hi friends, We have a unique requirement. As opposed to normal inter-company asset transfers in SAP via ABT1N, we would like to retire the asset to an external company code. This would reflect as a retirement in the asset register, and not as a trans

  • HP PSC 2175 All-in-one prints blank pages from word, chrome and notes

    My HP all-in-one printer PSC 2175 all-in-one has suddenly decided to print blank pages. So far I've tried printing from Word, Notes and Photoshop but come up with nothing.  It prints test pages and diagnostic pages without any problems and it makes

  • Evaluating actions in jsp:import Fragments

    Greetings, I'm using JSP fragments for the first time and encountered some surprises where the fragment did not evaluate as expected. The fragment evaluates fine when it is a block of JSP code, but if I put the same code into a separate JSP file and