How to get program attributes

Hello colleagues,
it is possible to get the program attributes in a running program? I'm especially interested in the Selection Screen Number of the logical DB. I found that the Logical Database is in the SY-DBNAM, but I didn't find the selection screen number here :/
Thank you, Petr

Hi Petr,
Use table TRDIR, we will get the program attributes by passing NAME = '<Program_name>.
"Data Declarations,
DATA: WA_TRDIR TYPE TRDIR,
            L_CPROG TYPE TRDIR-NAME.
"Assign Program Name
L_CPROG = SY-CPROG.
"Retrieve Code from Database
SELECT SINGLE * FROM TRDIR INTO WA_TRDIR WHERE NAME = L_CPROG.
Regards
Rajkumar Narasimman

Similar Messages

  • How to Get Navigational attributes of dso in Report ...

    Hi i have a dso with many fields ,
    In the report i need to get some navgational attributes which are in dso..
    How to Get Navigational attributes of dso in Report ..??
    Thanks All..

    hai naiduz,
    in the dso u find folder with navigational attributes, there select the Navigation check box the fields which u need in the report.
    and further if ur dso through multiprovider and also identify them at multi provider level.
    then u will be able to see the fields at query designer level, then u can use the nav. fields u need in the report.
    regards,
    Vj

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • How to get the attribute values out?

    Hi everyone,
    <root>
    <category name="Mens Clothing" id="0">
    <subcategory>Active/Baselayer Tops</subcategory>
    <subcategory>Active/Baselayer
    Bottoms</subcategory>
    </category>
    <category name="Womens Clothing" id="1">
    <subcategory>aaa</subcategory>
    <subcategory>bbb</subcategory>
    </category>
    </root>
    How to get the attribute values out? For example "Mens
    Clothing" and "Womens Clothing".
    // the line below returns "Active/Baselayer Tops" and
    "Active/Baselayer Bottoms"
    var myXml:XML = new XML(event.result);
    Thanks,
    May

    Here is attribute identifier operator from FB Help:
    @ attribute identifier Operator
    Usage myXML.@attributeName
    Identifies attributes of an XML or XMLList object. For
    example, myXML.@id identifies attributes named id for the myXML XML
    object. You can also use the following syntax to access attributes:
    myXML.attribute("id"), myXML["@id"], and myXML.@["id"]. The syntax
    myXML.@id is recommended. To return an XMLList object of all
    attribute names, use @*. To return an attribute with a name that
    matches an ActionScript reserved word, use the attribute() method
    instead of the @ operator.
    Operands attributeName:* — The name of the attribute.
    Example
    How to use examples
    The first example shows how to use the @ (at sign) operator
    to identify an attribute of an element:
    var myXML:XML =
    <item id = "42">
    <catalogName>Presta tube</catalogName>
    <price>3.99</price>
    </item>;
    trace(myXML.@id); // 42The next example returns all attribute
    names:
    var xml:XML =<example id='123' color='blue'/>
    var xml2:XMLList = xml.@*;
    trace(xml2 is XMLList); // true
    trace(xml2.length()); // 2
    for (var i:int = 0; i < xml2.length(); i++)
    trace(typeof(xml2
    )); // xml
    trace(xml2.nodeKind()); // attribute
    trace(xml2
    .name()); // id and color
    } The next example returns an attribute with a name that
    matches a reserved word in ActionScript. You cannot use the syntax
    xml.@class (since class is a reserved word in ActionScript). You
    need to use the syntax xml.attribute("class"):
    var xml:XML = <example class='123'/>
    trace(xml.attribute("class"));

  • How to get zclass attribute's value inside  "Execute_default" method

    Hi all,
    I am displaying a link in UD step under "Objects & Attachmnents".I am using zclass. I created a attribute in zclass and i am creating a instance (background task) before this UD step and i will be setting a attribute of the zclass inside this create instance method.
    My problem is, if i click the link, this method "BI_OBJECT~EXECUTE_DEFAULT_METHOD" is getting executed but i am not able to get the attribute value inside this method, eventhough i am setting the attribute value before the UD step.
    Pls let me know, how to get the attribute's value inside "Execute_default" method, as i need to process further using this attribute.
    P.S: I tried with both static & instance attribute. I can achieve the same using ZBO but my client needs to use only class.
    -Vinoth
    Edited by: S Vinoth on Jan 29, 2010 7:23 AM

    Lei,
    If you are concerned only about a couple of attributes, then you can manage with a separate copy of the data. But if the data is in bulk, better leave it to pl/sql side of validation.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get the Attributes of the UNIX  file Directories  ?

    Hi Guru,
    How to find of the Attributes of the UNIX  file Directories in sap  TC  :-   u2018 *ZZWT*u2019   .
    The file attribute details need to show in the report.
    I try on FM : EPS_GET_FILE_ATTRIBUTES
                       /SDF/GET_FILE_INFO
    But not getting the attributes details.
    If any idea plz. Help me.
    Regards,
    Subash

    Which basis release do you use?
    From 7.0 you have [GET DATASET|http://help.sap.com/abapdocu_70/en/ABAPGET_DATASET.htm] statement
    Before, you may only get what you see in AL11 : mimic what is in program RSWATCH0
    Or you may register and use [UNIX commands (SM69 transaction / SXPG|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm]) and get the results
    Edited by: Sandra Rossi on Aug 2, 2009 12:39 AM

  • How to get all attributes of a component

    Hi all,
    In a component I'm trying to get attributes of some primefaces components, but somehow I cannot retrieve them all.
    Here's a little bit of a table:
              <p:dataTable styleClass="ptable100" title="${msg.contractlist_title}" id="contractlistTable" var="contract" value="#{contractList.contracts}" width="100%" height="200px"
                        emptyMessage="#{msg.all_lists_no_records_found}" paginator="#{contractList.rowSize > 10}" rows="10" rowsPerPageTemplate="5,10,20,50,100"
                        paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}  #{msg.all_lists_numberOfRowsDisplayed_label}{RowsPerPageDropdown}">
                   <p:column id="column_id" resizable="true" sortBy="#{contract.id}" style="white-space:normal">
                      <f:facet name="header"><h:outputText styleClass="headerText" value="#{msg.contractlist_contract_id}" /></f:facet>
                         <h:outputLink value="#{path.dynamicUrl}contract/detail.xhtml" onclick="Richfaces.showModalPanel('busy_nav');">
                             <h:outputText value="#{contract.id}"/>
                             <f:param name="contractid" value="#{contract.id}" />
                         </h:outputLink>
                  </p:column>Then, I try to get the attributes like this (where table is the UIData component):
              String title = "";
              System.out.println("table.getAttribs.keys= " + table.getAttributes().keySet());
              System.out.println("table.getAttribs.vals= " + table.getAttributes().values());
              if (table.getAttributes().containsKey("title")) {
                   title = String.valueOf(table.getAttributes().get("title"));
              }The function getAttributes() is implemented on UIComponentBase so I believe it's independent of the component.
    This prints the following:
    table.getAttribs.keys= [com.sun.facelets.MARK_ID]
    table.getAttribs.vals= [5756abfa]When I do the same for the columns, all attributes I get is MARK_ID, style and styleClass.
    Obviously I'd like to get all attributes, in this case the "title" on the p:dataTable.
    Any thoughts why this isn't working and how I could do that?
    Thank you,
    Steven

    Hi all,
    In a component I'm trying to get attributes of some primefaces components, but somehow I cannot retrieve them all.
    Here's a little bit of a table:
              <p:dataTable styleClass="ptable100" title="${msg.contractlist_title}" id="contractlistTable" var="contract" value="#{contractList.contracts}" width="100%" height="200px"
                        emptyMessage="#{msg.all_lists_no_records_found}" paginator="#{contractList.rowSize > 10}" rows="10" rowsPerPageTemplate="5,10,20,50,100"
                        paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}  #{msg.all_lists_numberOfRowsDisplayed_label}{RowsPerPageDropdown}">
                   <p:column id="column_id" resizable="true" sortBy="#{contract.id}" style="white-space:normal">
                      <f:facet name="header"><h:outputText styleClass="headerText" value="#{msg.contractlist_contract_id}" /></f:facet>
                         <h:outputLink value="#{path.dynamicUrl}contract/detail.xhtml" onclick="Richfaces.showModalPanel('busy_nav');">
                             <h:outputText value="#{contract.id}"/>
                             <f:param name="contractid" value="#{contract.id}" />
                         </h:outputLink>
                  </p:column>Then, I try to get the attributes like this (where table is the UIData component):
              String title = "";
              System.out.println("table.getAttribs.keys= " + table.getAttributes().keySet());
              System.out.println("table.getAttribs.vals= " + table.getAttributes().values());
              if (table.getAttributes().containsKey("title")) {
                   title = String.valueOf(table.getAttributes().get("title"));
              }The function getAttributes() is implemented on UIComponentBase so I believe it's independent of the component.
    This prints the following:
    table.getAttribs.keys= [com.sun.facelets.MARK_ID]
    table.getAttribs.vals= [5756abfa]When I do the same for the columns, all attributes I get is MARK_ID, style and styleClass.
    Obviously I'd like to get all attributes, in this case the "title" on the p:dataTable.
    Any thoughts why this isn't working and how I could do that?
    Thank you,
    Steven

  • How to get the attribute...?

    well im trying to create JTable from a vector which will contain random Objects from random classes haveing random number of attributes for example:
    class x{
    int id;
    String name;
    String surname;
    class y {
    String title;
    String author;
    etc.
    like i said i have a vector of such objects and wanna make a JTable from it... i tried to make it like this:
    JTable table = new JTable(vector a, vector b)
    but i get nullpointer exception because (i supose) vector b had objects of class x and it cant be converted somehow to JTable rows...
    so im trying to make an array[][] which should contais all objects with all attributes of one of those classes
    well i dont know if u will understand what im talking about cause my english sux...
    anyway the problem is that:
    lets say i have a vector containing:
    new x(1,"a","b")
    new x(2,"x","y")
    etc
    lets say my vector is v
    how to get gor example any string from first object?
    i had something like this:
    v.get(i).getClass().getFields()[k]
    where:
    - i is the i element in vector
    - k is the attrribute which i wanna get
    i tried many combinations (after i get Field) but all i get was something like:
    java.lang.reflect.Field
    or
    java.lang.String
    and i want to get for example "a" not a type:/
    plz helkp me if u can or tell me how to do something like this in other way:/
    thx alot for all answers...

    well it is not a Swing problem...
    maybe u dont understand the problem...
    lets say i have a class
    Person{
    int id;
    String name;
    String surname;
    and the array in main:
    Person[] people;
    lets say that there is 100 people...
    and i wanna to outprint first person surname BUT without useing Person class methods...
    so i should do something like
    System.out.pintln(""+
    Person[1].getClass().... <--> and what next?
    in other words how to get and outprint a String attribute from java.lang.Class

  • How to Get view attribute of another VO

    HI OAF Guys,
    I have a query to get view attribute of another VO. I will explain the case:
    I created a separated region(consists of Advanced Table-in-Advanced Table) and i added it to the already existing page. I want to populate the master table content by passing the custacctid and contactid to the VO(Master table). Here contact id, we can get using party id. This party id view attribute is in another VO(This VO is already existed in the page). How to access that VO and view Attribute.
    If some one knows this, respond asap as it is urgent requirement.
    Kind&Regards
    U.Palakondaiah

    Hi tapash,
    thx for ur soon reply. I will explain a little bit more. In the existing page, there is a VO(IMCCustAccountRolesVO) having IMCAcctContactUpdateCO and
    IMCCustAccountContactAM controller and Application modules respectively.
    Now I added a region to this page(consists Advanced table-in-advanced table). This region has ContactPrivilegesCO and ContactPrivilegesAM conroller and Application modules respectively. I created a VO(EqxContPrvlVO) to populate the values in master table. For this one I have to pass contactid. we can get this contactid by using partyid which is view attribute of IMCCustAccountRolesVO.
    Now can I get this view attribute(PartyId) in ContactPrivilegesAM?
    I think you undetstand the situation. If you have any doubts let me know..
    Thanks & Regards
    U.Palakondaiah

  • How to get to attributes of a particular infoobject from Portal

    Hello all,
    When we create a query and have a infoobject lets say 0EMPLOYEE in free characteristics. When we open the query in  analyzer (RRMX) we can see the attributes related to that infoobject. In RRMX, 0EMPLOYEE -> right mouse click -> Properties -> general tab and attribute tab. From here we can choose the attributes we want and get populated in the report.
    How do we achieve the same thing in Portal, When i right mouse click on 0EMPLOYEE -> Properties -> characteristics -> all I see is data formatting options.
    So how do I get the attributes functionality in Portal, is it somewhere else that I am seeing or is it done some other way.
    We are working on NW2004s, SP08.
    Thanks,
    Kiran

    Hi Heike,
    Do you know which Service pack this limitation will be solved?
    I saw another issue with the attribute. In query Designer, if I drag an attribute to the row and execute in web runtime/Bex analyzer, the attribute does not appear in the report at all. Is this also a limitation?
    Please let me know if you have any information on this.
    We are on SPS 7/FEP 7.
    Thankyou,
    -Sini

  • How to Get static attributes dynamically

    Hi,
    I have to get static attributes from the context dynamically is it possible?
      DATA node     TYPE REF TO if_wd_context_node.
      DATA element  TYPE REF TO if_wd_context_element.
      node = wd_context->path_get_node( path = path_node ).
      element = node->get_element( ).
      element->set_static_attributes( static_attributes = ??? ).
    Thank you in advance.
    Miguel

    Hi ,
    i would suggest to use CL_ABAP_STRUCTDESCR
    cl_abap_typedescr=>describe_by_data

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • How to get these Attribute class in Query Statement ?

    Hi All,
    I have 2 SCCM primary site, the first one is a migrated site from SCCM 2007 to SCCM 2012 SP1 & then upgraded to SCCM 2012 R2, the second one is a newly created SCCM 2012 R2 site.
    I was trying to create a collection membership rule using the query statement on the second site & i found there are attribute classes which were missing on this site.
    Under query rule /edit query rule in the criteria tab i am trying to define a new criteria with Criteria type : Simple value & then i click the select under "Where" for chossing the attribute class & a value called "Winlogon64"
    don't exists there. There are other classes which are missing too.
    then i go to my first site & i can see the classes there, collection query rule are also defined using the attribute classes.
    Now my questions are :-
    1. Does these settings gets migrated from SCCM 2007 to SCCM 2012 on the first site?
    2. How can we get this in SCCM 2012 R2 on the second site?
    Experts please help.
    Thanks,
    Pranay.

    It sounds a lot like you where using an extension on your hardware inventory. Changes to your hardware inventory are not migrated, so you would need to recreate that change in the hardware inventory.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • How to get program which is been processed in background

    Hi Experts,
          While doing PI sheet (CO60) the document gets posted for movement type 101 in MIGO which is processed in background. I need know which standard program is processed to get the document posted in background.
      The two function modules are configured for this i.e pi02-COCM_PROCESS_RECORD
    pi05 - COCI_CONFIRM_OPERATION. I tried to debugg by setting break point in these two funtion module but it is not getting triggered.
       The reason might be because the process ia automatic or any other. How can i find out how the document is getting posted the break point is not get triggered for any cases .Please suggest.

    Hi Harshitha ,
        The FMs pi02-COCM_PROCESS_RECORD and pi05 -COCI_CONFIRM_OPERATION
      are called at multiple locations .Might be the place where u hav set the break point the FM is not getting triggered from that location but from the location where u hv not set the break point for the same FM.
        Instead set the break point in the FM definition. or set the debugging swith again where actually the posting is done.
    regards,
    ajit.

  • How to get programs out trash

    Well I cleaned out some of documents today and accidently put a few programs in the trash,but when I try to open them,it stated couldn't open as it was in the trash,so I took them out of trash on place on the desktop.How can I put them back where they are suppose to be and get the extra icon off my desktop.Thanks for any help

    pattishelbytwp wrote:
    How can I put them back where they are suppose to be and get the extra icon off my desktop.
    Just drag them back to where they had originally been. If they are programs rather than documents, they probably belong in the Applications folder, the one you see when you first open the hard drive's icon.
    However, if they are widgets or utility apps, they may need to be put in a different place.

Maybe you are looking for