Sap Records Management: how to get attributes of record?

Hi everybody who has had an experience in SAP Records Management programming.
Tell me please how can i get a list of attributes of certain record or document? I have an instance of CL_SRM_POID class and I also can get an instance of CL_SRM_SP_RECORD clas. But i haven't found out exactly what method gets attributes.
Thanks a lot.

Finally i have sorted it out. Following procedure gets properties of record or document.
form get_record_attributes using    uif_poid   type ref to IF_SRM_POID
                           changing ct_properties  type SRM_LIST_ATTRIBUTE_VALUE.
  data: lif_srm                   type ref to if_srm,
        lif_srm_service           type ref to IF_SRM_SRM_SERVICE,
        lif_prop_service          TYPE REF TO IF_SRM_SRM_SERVICE_PROP,
        lif_repository            type ref to IF_SRM_SRM_PROP_REPOSITORY,       
        lif_attribute             type ref to IF_SRM_ATTRIBUTE_VALUE,
        lif_context               type ref to IF_SRM_PROP_CONTEXT.
  refresh ct_properties.
  try.
    lif_srm         ?= uif_poid.
    lif_srm_service  = LIF_SRM->GET_SRM_SERVICE( ).
    lif_prop_service = lif_srm_service->get_property_service( ).
    lif_context      = LIF_PROP_SERVICE->GET_CONTEXT( ).
    lif_repository   = lif_prop_service->GET_REPOSITORY( uif_poid ).
    ct_properties    = LIF_REPOSITORY->GET( lif_context ).
    CATCH CX_SRM_INITIALIZATION .
    CATCH CX_SRM_POID .
    CATCH CX_SRM_REGISTRATION_DATA .
    CATCH CX_SRM_SRM_PROP_REPOSITORY .
  endtry.
Edited by: Petr.Plenkov on Mar 4, 2010 1:43 PM

Similar Messages

  • How to get attribute value from standard page ?

    Hi,
    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:
    vo.reset();
    vo.next();
    Regards
    Sumit

  • ADF dynamic ViewObject based on query. how to get attributes?

    hi.
    i have an read-only view object based on query like this:
    SELECT :func(:paramm) as EMP_SAL from dual
    and set :func & :paramm parameter by vo.setNamedWhereClauseParam(..) function.
    but i couldn`t get EMP_SAL attribute after executeQuery command.
    in another case i would set new whole Query by vo.setQuery(..) but the problem exists.
    please help me. how to get attribute in such vo objects!
    thanks!
    Morena!

    thanks to Quick reply!
    i seek into code and found a uninitialized Parameter in view object. error has gone after correct the problem!
    and now could get the attribute value.
    thanks so much!
    /\/\ o r e n a!

  • How To Get Attribute Names for a Particular VO

    Hi ,
    How To Get Attribute Names Of a Vo where I can Set Viewattributname To the Table RN Columns Where I am Adding Extra Columns Based on Some Condn..
    So wen i am creating new Column to existing Table RN and we Need to add Attribute Name Also...Rt..
    And How To get RelationShip Between Database Column Name and Java Vo Attribute Name
    Ex: PlanId is the Java VO Attribute Name for the Database Column PLAN_ID
    In The Same way Hw We Get the Relation ship for All other columns In the Controller Cllass ..
    Can Any One Reply as It is urgent Req...
    Thanks ,,
    Jithen

    Instead of using the VO attribute names to set and get values, best to go to the VO definition, click on Java, and generate the View Row Class with the accessors.
    In the class where you're trying to set attributes, instead of a Row class, use the View Row class of your VO (eg ViewObjectName's class would be ViewObjectNameRowImpl), and when retrieving a row from the VO, cast the row to the previously mentioned View Row Class.
    At that point you can use the View Row Class's methods that would perform sets and gets of each column.
    To get attribute names, I don't know off the top of my head, but there might be a method mentioned in the Javadoc for the ViewRowImpl or ViewObject or ViewObjectDefinition classes to get the attribute/column mapping, or perhaps you can somehow read the XML definition of the VO which has that mapping.
    Assuming business components were built automatically and no attribute names were overridden, intuitively the attribute name is a camelcase version of the column name, removing understores and capitalizing the character following the removed underscore - but that's not a fool proof approach. Just a general observation.
    Hope this helps.
    Edited by: user6631964 on Sep 16, 2010 12:31 PM

  • How to get attribute value from an object inside an object in Xpress

    Does anyone know how to get an attribute value from an object in Xpress in a workflow? I have an object structured as follows:
    <ResourceInfo accountId='mj628' tempId='3483372b787ce7dd:-5d99a0c5:130cb238483:-3600'>
    <ObjectRef type='Resource' name='Google Apps'/>
    </ResourceInfo>
    I need if possible to get the name='Google Apps', which is inside the ObjectRef, so I guess its an attribute value of an object inside an object.

    If the ResourceInfo object is accessible in a variable, i.e. named "myResInfo", you just have to check the Java API and call the relevant method:
    <invoke name='getResourceName'>
      <ref>myResInfo</ref>
    </invoke>

  • SAP Treasury Management-How to Config Tax codes for Business Partner

    Hi SAP Gurus,
    Please suggest me how to configure specific Tax Code and Tax relevant data for Business Partner in SAP Treasury Management while posting transactions with reference to any specific GL A/c. Kindly help me .
    Thanks and advance
    Regards
    Shivan

    Hi Appalas,
    Check this link
    Re: Linking of default taxes and discounts to BP
    Tax Code
    /people/arshdeep.singh/blog/2008/10/20/defining-a-new-tax-code-in-sap-business-one-2005-b-and-2007-b
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Jun 22, 2009 12:39 PM
    Edited by: Jambulingam P on Jun 22, 2009 1:20 PM
    Edited by: Jambulingam P on Jun 22, 2009 1:21 PM

  • How to get attribute from xml file

    I managed to grab all the info from xml, except the "url" attribute in <image type="poster" url="" size="mid" .../>. Any ideas?
    import java.io.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.net.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class XmlParser {
         ArrayList<Movie> myMovies;
         Document dom;
         public XmlParser(){
              //create a list to hold the movie objects
              myMovies = new ArrayList<Movie>();
         public void runExample(String adr, String tagName) {
              parseXmlFile(adr);
              parseDocument(tagName);
              printData();          
         private void parseXmlFile(String adr){
              //get the factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {               
                   //Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   URL xmlUrl = new URL(adr);
                   InputStream in = xmlUrl.openStream();
                   dom = db.parse(in);               
              }catch(ParserConfigurationException pce) {
                   pce.printStackTrace();
              }catch(SAXException se) {
                   se.printStackTrace();
              }catch(IOException ioe) {
                   ioe.printStackTrace();
         private void parseDocument(String tagName){
              //get the root elememt
              Element docEle = dom.getDocumentElement();
              //get a nodelist of <movie> elements
              NodeList nl = docEle.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   for(int i = 0 ; i < nl.getLength();i++) {
                        //get the movie element
                        Element el = (Element)nl.item(i);
                        //get the Movie object
                        Movie mov = getMovie(el);
                        //add it to list
                        myMovies.add(mov);
          * I take an movie element and read the values in, create
          * an Movie object and return it
          * @param movE
          * @return
         private Movie getMovie(Element movE) {
              String title = getTextValue(movE, "original_name");
              String year = getTextValue(movE, "released");
              String imdbId = getTextValue(movE, "imdb_id");
              double score = getDoubleValue(movE, "score");
              String overview = getTextValue(movE, "overview");
              String poster = movE.getAttribute("url");
              Movie mov = new Movie(title, year, imdbId, score, overview, poster);
              return mov;
         private String getTextValue(Element ele, String tagName) {
              String textVal = null;
              NodeList nl = ele.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   Element el = (Element)nl.item(0);
                   textVal = el.getFirstChild().getNodeValue();
              return textVal;
          * Calls getTextValue and returns a int value
          * @param ele
          * @param tagName
          * @return int
         private int getIntValue(Element ele, String tagName) {
              //in production application you would catch the exception
              return Integer.parseInt(getTextValue(ele, tagName));
          * Calls getTextValue and returns a double value
          * @param ele
          * @param tagName
          * @return double
         private double getDoubleValue(Element ele, String tagName) {
              return Double.parseDouble(getTextValue(ele, tagName));
          * Iterate through the list and print the
          * content to console
         private void printData(){
              System.out.println("Total Movies: " + myMovies.size());
              Iterator it = myMovies.iterator();
              while(it.hasNext()) {
                   System.out.println(it.next().toString());
         public static void main(String[] args){
              //create an instance
              XmlParser xp = new XmlParser();
              //call run example
              xp.runExample("http://api.themoviedb.org/2.1/Movie.search/en/xml/apikey/Fight+Club+1999", "movie");
    }Here is the example xml file I used
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
      <opensearch:Query searchTerms="Fight Club 1999"/>
      <opensearch:totalResults>1</opensearch:totalResults>
      <movies>
        <movie>
          <score>8.383284</score>
          <popularity>3</popularity>
          <translated>true</translated>
          <adult>false</adult>
          <language>en</language>
          <original_name>Fight Club</original_name>
          <name>Fight Club</name>
          <alternative_name>El Club de la Lucha</alternative_name>
          <type>movie</type>
          <id>550</id>
          <imdb_id>tt0137523</imdb_id>
          <url>http://www.themoviedb.org/movie/550</url>
          <votes>62</votes>
          <rating>8.4</rating>
          <certification></certification>
          <overview>A lonely, isolated thirty-something young professional seeks an escape from his mundane existence with the help of a devious soap salesman. They find their release from the prison of reality through underground fight clubs, where men can be what the world now denies them. Their boxing matches and harmless pranks soon lead to an out-of-control spiral towards oblivion.</overview>
          <released>1999-09-16</released>
          <images>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-original.jpg" size="original" width="1000" height="1500" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-mid.jpg" size="mid" width="500" height="750" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-cover.jpg" size="cover" width="185" height="278" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-thumb.jpg" size="thumb" width="92" height="138" id="4bc908ab017a3c57fe002f75"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-original.jpg" size="original" width="1280" height="720" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-poster.jpg" size="poster" width="780" height="439" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-thumb.jpg" size="thumb" width="300" height="169" id="4bc908ab017a3c57fe002f71"/>
          </images>
          <version>73</version>
          <last_modified_at>2010-09-11 14:33:06</last_modified_at>
        </movie>
      </movies>
    </OpenSearchDescription>

    pvujic wrote:
    Thanks, but how can I "fetch" the url from the image element?You've got to first get to the image element. But based on what you've posted though, with a little more coding, you should be able to succeed. Just give it a try! :)

  • How to get attribute values from one view to another

    HI all,
    Thx in Advance..
    I have 2 view like v1,v2.In v1 i used one attribute values from "get single attribute" method.And i need the same values in v2 screen.For this i did in v1 outbound plugs , i mentioned the parameter name . How can i get the same values in  v2.

    Hi chandru ,
    you said you declare the parameters in the Outbound Plug of V1.  now go to view V2 inbound plug Tab and creat one inbound plug
    double click on the plug name .it will navigate you to the event handeler method . Now add the outbound parameter variables in the
    parameters
    For example : V1firing the navigation plug
    a type string " defined in parameter
      wd_this->fire_out_to_view2_plg(
        a =      'ABCD'                           " string
    you can retrive the value freely in v2 inbound event handeler
    a type string " defined in parameter
    *   set single attribute
        lo_el_context->set_attribute(
          name =  `TEXT`
          value =  a )." here you will get the 'ABCD'.
    regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 23, 2010 7:12 PM

  • How to get attribute value of a node

    Hi experts
    I have a mapped node in my view context from component controller context. This node consists of 2 value attributes inside
    Example:
    NODE1             -
    > Cardinality 1..1, seleciton 1..1
       -- x_date         -
    > type DATS
       -- x_years        -
    > dec3
    How do I get the attribute value attr1 and attr2 ??
    Here is my code in my view method
      DATA: lr_node_info TYPE REF TO if_wd_context_node_info,
            l_date       TYPE dats,
            l_xyears     TYPE i.
      lr_node_info = wd_context->get_node_info( ).
      lr_node_info = lr_node_info->get_child_node('NODE1').
       l_date       = lr_node_info->get_attribute( name = 'X_DATE' ).
       l_xyears     = lr_node_info->get_attribute( name = 'X_YEARS' ).
    It does not seems to work since it says < the result type of the function method can not be converted into the result type L_DATE>
    I try to understand why but not sucessful, please help and thank you for your kindness

    Hi Dean,
    Regading uour problem of reading the attributes value of the context node, you have to  use the code wizard. that ia avaliable on the top toolbar when you are inside the View Method
    There is option to read context  select that radio button option and then thru F4 help
    if you can select the node then Code is automatically generated with variable declaration.!!
    Like this :
      DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
        DATA lo_el_node1 TYPE REF TO if_wd_context_element.
        DATA ls_node1 TYPE wd_this->element_node1.
        DATA lv_x_date LIKE ls_node1-x_date.
        DATA lv_x_year LIKE ls_node1-x_year.   
      navigate from <CONTEXT> to <NODE1> via lead selection
        lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
      get element via lead selection
        lo_el_node1 = lo_nd_node1->get_element(  ).
      get all declared attributes
        lo_el_node1->get_static_attributes(
          IMPORTING
            static_attributes = ls_node1 ).
        lv_x_date = ls_node1-x_date.
        lv_x_date = ls_noe1-x_year.
    if you can select the attribute then Code is automatically generated with variable declaration.!!
    DATA lo_nd_node1 TYPE REF TO if_wd_context_node.
      DATA lo_el_node1 TYPE REF TO if_wd_context_element.
      DATA ls_node1 TYPE wd_this->element_node1.
      DATA lv_x_date LIKE ls_node1-x_date.
    navigate from <CONTEXT> to <NODE1> via lead selection
      lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).
    get element via lead selection
      lo_el_node1 = lo_nd_node1->get_element(  ).
    get single attribute
      lo_el_node1->get_attribute(
        EXPORTING
          name =  `X_DATE`
        IMPORTING
          value = lv_x_date ).
    Hopes this will helps you.
    Regard
    Manoj Kumar

  • How to get attributes through List Of Values

    Hi,
    I have two view objects, 'Customer' and 'CustomerDetails'.
    The 'Customer' view, has 'CustomerId' attribute that I defined as LOV with the 'CustomerDetails' view.
    like this:
    <ListBinding
        Name="LOV_CustomerId"
        ListVOName="CustomerDetailsView1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="CustomerId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Name"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>I dragged it as soc on my page
    <af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}"
          required="#{bindings.CustomerId.hints.mandatory}"
           shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true">
    <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/>
    </af:selectOneChoice>In the 'CustomerDetails' view there is also 'adress' attribute.
    I would like to get the adress according to the id.
    How could I get it through bindings?
    or in another way.
    Thanks!!

    Hi
    to get the value:
    String tmp;
    BindingContainer bindingsLOV = getBindings();
    JUCtrlListBinding listBinding = null;
    listBinding = (JUCtrlListBinding)bindingsLOV.get("CustomerId");
    ViewRowImpl selectedListRow = null;
    selectedListRow = (ViewRowImpl)listBinding.getSelectedValue();
    tmp = selectedListRow.getAttribute("CustomerId").toString();
    also check these:
    http://stackoverflow.com/questions/9920110/get-the-selected-value-from-selectonechoice-in-adf-and-not-the-index
    https://blogs.oracle.com/jdevotnharvest/entry/how-to_get_the_selected_afselectonechoicelabel
    Habib
    Edited by: Habib Eslami on Apr 15, 2013 1:03 AM

  • How to get attribute, such as Title, of Documents stored in WWDOC_DOCUMENT$

    Hi,
    I've created a portlet which reads from the WWDOC_DOCUMENT$ table and creates links to certain documents. However only the original filename and the Portal assigned numerical filename are stored within this table. I would like to be able to display the item title to users which was specified when the file was originally uploaded.
    Presumably somewhere there is another table which holds other attributes such as an items title, which is linked to WWDOC_DOCUMENT$ via a primary/foreign key.
    Can anyone help as to where this is?
    Thanks in advance.
    Dan

    pvujic wrote:
    Thanks, but how can I "fetch" the url from the image element?You've got to first get to the image element. But based on what you've posted though, with a little more coding, you should be able to succeed. Just give it a try! :)

  • SAP Associate Certification - How to get S-ID and Logo?

    Hi,
    I have completed my C_BOE_30 SAP Application Associate - Business Objects 3.1 Certification.
    And, i have received my certificate also.
    How do I get my S-ID?
    How do I get my Certification Logo?
    Kindly help me on this.
    Regards,
    Senthil.

    Congratulations on your Certification,
    Your S-ID should be in your Certificate, as per the logo please look at the Sticky posts like 4 rows before your post and you will find the answer.
    As I can see you are new user on SDN and strongly suggest you to do first a search before posting questions like this so we won´t get filled with the same question over and over and over again!!
    Regards,

  • Power Manager: How to get rid of the explanation mark

    Hi,
    How do i get rid of the white/black explanation mark right of the Power Manager icon?
    Thanks, Jan
    --- Lenovo Thinkpad t440p (20AN-CT01WW) + SAMSUNG MZ7TD512HAGM-000L1 SSD + 16G SDRAM + 14.0FHD 1920x1080 ---

    Hello mate,
    Untick periodically show messages about battery charge capacity in the battery maintenance.
    Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it.
    ThinkPad T510 4313-CTO Windows 8 x64 - Intel Core i7-620M - NVIDIA NVS 3100M - 8GB RAM - 240GB SSD- Intel Centrino Ultimate-N 6300 - Gobi 2000.
    ThinkPad Helix 3697-CTO Windows 8.1 x64 - Intel Core i7-3667U - Intel HD Graphics 4000 - 8GB RAM- 256GB SSD - Intel Centrino Advanced-N 6205 - Ericsson C5621gw

  • Can anyone help me: How to check or update my status as SAP Certified Consultant / How to get my SAP Certificate ID Validated. - Reg.

    Dear Concern / All,
    Greetings of the day !!!
    I am an Indian. I have applied / booked for SAP Certification examination through PearsonVUE and the test centre was in Dubai.
    I have appeared and cleared SAP Certification Exam in the month of March, 2014 and received my SAP Global Certification which certifies me as "SAP Certified Application Associate" along with the Certificate ID after 4 weeks.
    I am seeking support / information / help for the below mentioned:
    How or where can I verify my SAP Certification details?
    How or where can I validate / update my SAP Certification details?
    How or where can I update my status as SAP Certified Consultant?
    Where or how can I get SAP Logo?
    I would be very thankful for extending your kind support / information / help in this regard.
    With Regards and Thanks in Advance
    Abhiman Surineni

    HI abhiman,
    How or where can I verify my SAP Certification details?
    Pearson VUE - Authenticate Score Report  --- go to this link and give your details and for
    How or where can I validate / update my SAP Certification details?
    Pearson VUE - Authenticate Score Report --- go to this link and give your details same link
    How or where can I update my status as SAP Certified Consultant?
    Pearson VUE - Authenticate Score Report --- go to this link and check once .... after 1 month the address which you have for pearson vue  and address details of you all your SAP certificates will reach you in 1 month to your postal address.
    Where or how can I get SAP Logo?
    Previously there is one person names Kenneth , he will issuing the SAP LOGO for certified consultants but now you can contact [email protected] they will issue you the logo if possible
    you will get all your documents and certification within short time , so no need to worry ...All the best and Good luck for your SAP carrer.
    Thank you.

  • How to get attributes of file

    Hi,
    How to retrieve the attributes of file(creation date) stored in server using ABAP Program.
    Which Unix command is used to retrieve creation date with year?
    Plz do needful.

    Hi,
    How to retrieve the attributes of file(creation date) stored in server using ABAP Program.
    Which Unix command is used to retrieve creation date with year?
    Plz do needful.

Maybe you are looking for

  • How to specify special permissions in Oracle BI EE 11g

    Hi everybody, I am trying to create a new role in Oracle BI EE 11g which users and groups by this role can access only to create report(preferably within particular folders) and not be able to change settings such as creating new connections in Oracl

  • Windows 8 installation

    I  have a 15" MBP 4,1 running OS 10.2.2. I started Bootcamp 5.1.3 to install Windows 8. But BC appears only to support Windows 7, so I have not gone past the Select Tasks screen.   Is it not possible to install Windows 8 on my MBP?

  • Document number is not opening in My Requested Products application.

    Dear All, We are using SAP ECC 6.0 and EHP 6. we are using standard SSP.In NWBC, the  application My requested Products (/SRMERP/WDA_I_SC_FS_ESS ) -> in shopping cart number there is one tab Follow on documents that has a Document number link. If we

  • I installed Windows 7 on one of my HP Computer (Pavilion a1240n Desktop PC). After inst

    after that my pc losse the sound, can sombody healt me.

  • Conversion of zero

    Hi, I want the function module which can convert the field leading zero. The data type is CURR of the field. For example I have one internal table itab_mara in which VERBR field I have to convrt this field. suppose this is 100.79. Then the output sho