I need to read a reference inside of a data object

Hi Developers,
I need to read some data that is nested deep inside a method. My situation looks like this:
data object
     IREF_MDO_DATA       Type    Reference
          v
         OREF_MDO_HANDLER   Type    Reference
              v
             STR_DOF_FILTER_VALS   Type   Deep Structure(232)
                  v
               ASSIGNMENT_TYPE
               SALES_AREA
               DOC_NUMBER
               SALESORG
My question is how do i access  OREF_MDO_HANDLER  and then access STR_DOF_FILTER_VALS  ?
Please let me know if you need more information? I will do my best to explain better?
Thanks,
Patrick

Hi Adrian,
I forgot to mention that the second Reference Variable (OREF_MDO_HANDLER) is a TYPE REF TO. I believe this is my problem. I can not use the statement GET REFERENCE OF IREF_MDO_DATA-> OREF_MDO_HANDLER. because OREF_MDO_HANDLER is a TYPE REF TO. Is there way i can access the reference TYPE REF TO?
Thanks,

Similar Messages

  • Read attribute value of a master data object's master data object

    Hi Guys,
    I have a peculiar condition where I need to read attribute value of a master data object's master data.
    Requisition (ZREQUI) is linked to Candidacy (ZCDCY) by object called Recquisition.
    Candidacy  (ZCDCY) is linked to Candidacy Activity (0CDCY_ACT) by object called Candidacy.
    I want to populate attribute called due date in ZREQUI by reading lowest value of due date value of 0CDCY_ACT. There can be multiple hits.
    If I can get the code to do this, I would really appreciate it.

    Here is the outline of the code ,as per my understanding..chk if it can help u
    In start routine write a select statement to pick all the data from 0cdcy_act.
    select 0CDcY_ACT ZCDCY  DuE_DATE from /BiC/P0CDCY_ACT
    into table itab1
    for all entries in source_package
    where ZCDCY = source_package-ZCDCY.
    as you need the lowest due date, sort the iTAB1
    sort itab1 by due_date  ZCDCY.   (default is acending order)
    In the field routine of your due date
    Read table itab1tnto wa_itab1 where
    ZCDCy = source_fields -ZcDcY.
    now duedate = wa_itab1-duedate.

  • Need help about Financials Operating Unit Level Setup data object transforming

    Hi All,
    We met some issues while using iSetup to create new OU from existing one via 'Financials Operating Unit Level Setup’ template and need your help.
    We can perform Extracting successfully, but when we’re tring to proceed Transform, it seems iSetup can’t meet our expectation.
    Firstly, after succesful creation of the Transform for 'Financials Operating Unit Level Setup’.
    We clicked the transform icon and it led us to the Details page.
    However, we can’t search out any result on that page, is it a bug?
    If we didn’t performed ‘Transform All’, then there’s no row shows on Transform Details page so we can't make any transform, as below:
    But after performing a ‘Transform All’ task, revisite the Details page and unfreeze, Operating Units and Inventory Organizations became transformable, as shown in below screenshots.
    Secondly, we found the transformable data objects are so limited, even the whole Payable Options and Finacial Options doesn’t support, as well as the Operating Unit short code.
    Is there any documents indicating which data objects are transform supported? Or if there’s any sql query for it?
    Will be very appreciated if anyone can help.
    Regards,
    Genghua Guo

    Hi,
    According to your description, my understanding is that machines failed to ping the server name, and successfully to ping its IP address.
    First check to see if DNS related port 53 is opened on the DC, or disable any anti-various software temporally, then ping the DC’s
    FQDN and confirm that if the name would be resolved.
    >The host 7acf7675-12f6-4280-84ff-ca225bc99373._msdcs.REGENCYVILLAGE.LOCAL could not be resolved to an IP address.
    You domain name is REGENCYVILLAGE.LOCAL. It seems that the DNS server failed to resolve your DC’s name. check the zone named REGENCYVILLAGE.LOCAL to see if an A record is corresponding to your DC.
    >75.75.75.75 (<name unavailable>) [Invalid], 75.75.76.76 (<name unavailable>) [Invalid]
    It seems that invalid IP address of DNS server on the TCP/IP properties of DC. 
    I want to confirm with you that if you have installed the DNS with installing AD DS. Just the DC’s name can’t be resolved? Or any other device also has the same question?
    =======
    You may use AD DS Best Practices Analyzer (BPA), which is a server management tool that can help you implement best practices in the configuration of your Active Directory environment. Detailed information reference:
    https://technet.microsoft.com/en-us/library/dd391875(v=ws.10).aspx
    besides, suggestion about Active Directory Best practices, just for you reference:
    https://technet.microsoft.com/en-us/library/cc778219%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Need to read data from a jsp and insert in other jsp

    Hi,
    I have a jsp where i need to read from another jsp(which has data " header ---insert -----footer") and find a string "insert" in it and replace that string with a some value in the current jsp.
    Thanx in Advance.
    Sridhar.

    I have a jsp
    which needs to take headers and footers dynamically and insert them into my jsp.
    currently what i am doing is, using a script to get these header and footer and using document.write
    MYJSP.jsp looks this way
    <script src="/../Headerfooter.jsp"/>
    <script language="javascript">
    document.write(header); -->defined in -> /HeaderFooter.jsp
    document.write("<table>...</table>");
    document.write(footer);-->defined in -> /HeaderFooter.jsp
    </script>
    /HeaderFooter.jsp looks this way
    header = "<html>...<table width=\"100\">....";
    footer ="....</html">
    i dont want to use script bcoz i am getting problems in nestcape...

  • Need to delete local references in unknown calling context

    Hi,
    I was looking for the need to delete local references and came across this documentation,
    What does unknown caller context mean? and how does it cause local references to remain allocated in reference table although the native function returns?
    http://java.sun.com/docs/books/jni/html/refs.html
    5.2.1 Freeing Local References
    You want to write a utility function that is called from unknown contexts. The MyNewString example shown in Section 4.3 illustrates the use of Delete-LocalRef to delete promptly local references in a utility function. Otherwise there will be two local references that remains allocated after each call to the MyNewString function.

    how does it cause local references to remain allocated in reference table although the native function returns?Because it doesn't return to the JVM where it gets deallocated, it returns to the unknown caller context, i.e. some other piece of native code in your JNI layer. So the references remain until the unknown caller context returns to the JVM.

  • I need to make some references on a photo

    I need to make some references on a photo like  circle around a particular area w/ arrows & stuff like that.  Anybody??? how do I do that?

    Look at Custom Shapes in the Photoshop toolbox.
    Hold the mouse down over the Rectangle tool to reveal it (Not the rectangular Marquee!)
    Put them on a copy of the original!

  • I need to load the reference/check table data in to MDM Server - help

    Hi,
      I need to load the referece table/check table data from ECC50 into FTP server/Ports. I am intrested only in Material and vendor extraction. Is this is possible with MDMGX or I need to use old zreports to extract reference table data? Any help on this is appreciated.
    Thanks,
    Daniel.LA

    Hi Daniel,
    U have to use generic extratctor MDMGX to extract reference data(customizing data) from R/3.
    Prerequisite:
    MDMGX to be installed.
    Procedure to use it.
    A)Setup Execution.
    1) Define Object type as per ur requirement (drop down list standard objects are provided like customer,vendor,products etc.).
    2)Define Repository and ftp server name.
    3)Upload ports and check table.
    4)Maintain ports and check table.
    B)Execute Generation and Extraction.
    1)Generate XSD.
    2) Starrt Execution.
    For each check table u have to create a separate port in MDM Repository.
    zreport is a older version ,it can be but neednot contain latest updates in check table .
    Reward Points if helpful.
    Regards,
    Neethu Joy.

  • Do I need to close ActiveX references?

    Hi,
    I am developing a library of VIs that use ActiveX to control APWin (for Audio Precision System Two) with LabVIEW where both are running on the same PC and I am wondering if I need to close ActiveX refnums when I'm finished along a particular heirarchy level. The context help says that LV closes references when they're no longer needed but is it bad practice to leave them open? Can not closing refnums potentially cause problems? See attached picture for an example.
    Thanks,
    Sara
    Attachments:
    close_ref.JPG ‏46 KB

    Sara2004 wrote:
    > Thanks for your response. This is good to know. I'm assuming the same
    > is true for MSWord and MSExcel report refnums...is this a correct
    > assumption?
    You should generally close any refnum. LabVIEW 7 does have improvements
    to its own refnums (App and VI refnums, Control refnums) which does not
    require to close them anymore but doing so will definitly not hurt.
    For Active X refnums, in the best case they just use up memory until you
    close the entire application or the LabVIEW development system. In the
    worst case the system can crash when you close the executable or LabVIEW
    due to the Active X component stumbling over left open object references
    when Windows forces those objects to be closed on behalve of the leaving
    execu
    table.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9alredy

    Error message says need Adobe reader 8 or 9 installed to open pdfs from web pages yet Reader 9 is alredy installed on computer. Is this a 64 bit ossue although I am sure I did not have this problem prior to a replacement hard drive being installed.

    What is your operating system, browser?
    What is the exact message you are getting?

  • Need to read text from FM 'BBP_PD_CONF_GETDETAIL' in a single line of ALV output

    s
    Hello Gurus,          I have to read the attached text in which TDID and TDLINE need to read.Here i need to write logic like that in ALV output text of TDLINE related to TDID Htxt come in single line if there is more than 1 line used , same for NOTE and Itxt. Please help me out with some ogic to show data in alv output. I have used FM 'BBP_PD_CONF_GETDETAIL'. Thanks Sankil
    TDID TDLINE HTXT Supplier  Text HTXT Supplier  Text NOTE Note NOTE Note ITXT Supplier  Text ITXT Supplier  Text NOTE Note NOTE Note

    Hello Sankil
    This can be achieved by using event AFTER_LINE_OUTPUT and also search with keyword AFTER_LINE_OUTPUT to get more examples
    Please go through the below tutorial.
    http://www.****************/Tutorials/ALV/Wordwrap/Index.htm
    Thanks

  • Need to read Unicode in a file

    Hi,
    My need to read Unicode from a file (on a Windows box) is due to the fact my software is used in different countries and on different keyboard naturally. All the users are not computer literate but, like me, they are all lazy and want to put their username and password in a config file my application reads. If their username or password contain Unicode characters I have a problem reading.
    They are simple users that I would like to advise them to open the config file using Windows Notepad, then type in their username and password, and save the file as Unicode. Notepad has four ways to save a file, ANSI, Unicode, Unicode big endian, and UTF-8 (I've tried them all except ANSI of course). Saving a file in a different format is as complicated as I would like it to get for them, some will have trouble even with this.
    I read the file like so:
    BufferedReader rdr =
        new BufferedReader(
            new InputStreamReader(new FileInputStream(file_name), "UTF-16"));
    String line;
    while ((line = rdr.readLine()) != null) {
        String[] pieces = line.split("[=:]");
        if (pieces.length == 2) {
            if (pieces[0].equals("PASSWORD")) {
                byte[] possibleUnicode = pieces[1].getBytes("various encodings");
                pieces[1] = new String(possibleUnicode, "various encodings");
            propertyTable.setProperty(pieces[0], pieces[1]);
    }All reading is perfect except for a username or password which can contain a real multi-byte character. I have used many variations of converting the string I get into a byte[] using string_in.getBytes("various encodings tried") and then back to a string but nothing has worked.
    I tried a regular FileReader to a BufferedReader and that didn't work. I tried a FileInputStreamto a DataInputStream and that didn't work. I accomplished the most with what I described above, FileInputStream to InputStreamReader to BufferedReader.
    Does anyone know how to read Unicode in a file on a Windows file system?
    hopi

    I have used the byte conversion technique before
    successfully when I loaded a set of properties
    from a URL openStream(). The properties load()
    method takes an InputStream and assumes ISO-8859-1
    so I converted the bytes from ISO-8859-1 to UTF-8.
    Garbage characters were cleared up perfectly.I think you just got lucky that time. For characters up to U+007F, the UTF-8 encoding is the same as ISO-8859-1 (and most other encodings, for that matter). Characters in the range U+0080 to U+00FF will be encoded with one byte in ISO-8859-1, and with two bytes in UTF-8. In most cases, each of the two bytes in the UTF-8 representation will have values that are valid in ISO-8859-1. The decoded characters will be incorrect (and there will be too many of them), but they effectively preserve the original byte values, making it possible for you to re-encode the characters and then decode them correctly. But there's a big gap in the middle where the UTF-8 bytes produce garbage when decoded as IS)-8859-1. Run the included program to see what I mean.
    I don't know what's going wrong with your application, but I do know that changing the encoding retroactively is not the solution. I also think you're right about asking users save files in a certain encoding. Considering how much trouble programmers have with this stuff, it's definitely too much to ask of users.
    import java.awt.Font;
    import javax.swing.*;
    public class Test
      public static void main(String... args) throws Exception
        JTextArea ta = new JTextArea();
        ta.setFont(new Font("monospaced", Font.PLAIN, 14));
        JFrame frame = new JFrame();
        frame.add(new JScrollPane(ta));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        StringBuilder sb = new StringBuilder();
        for (int i = 0xA0; i <= 0xFF; i++)
          sb.append((char)i);
        String str1 = sb.toString();
        byte[] utfBytes = str1.getBytes("UTF-8");
        String str2 = new String(utfBytes, "ISO-8859-1");
        for (int i = 0, j = 0; i < str1.length(); i++, j += 2)
          char ch = str1.charAt(i);
          byte b1 = utfBytes[j];
          byte b2 = utfBytes[j+1];
          String s1 = Integer.toBinaryString(b1 & 0xFF);
          String s2 = Integer.toBinaryString(b2 & 0xFF);
          char ch1 = str2.charAt(j);
          char ch2 = str2.charAt(j+1);
          ta.append(String.format("%2c%10s%10s%3x%3x%3c%3c\n",
              ch, s1, s2, b1, b2, ch1, ch2));
        frame.setSize(400, 700);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl
    i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
    how can this  be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
    please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex... 
    thanks.....  

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need to read data from a text file

    I need to read data from a text file and create my own hash table out of it. I'm not allowed to use the built in Java class, so how would I go implementing my own reading method and hash table class?

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • When I try to download an app it says I need to read and agree to the new iTunes terms when I do so I am told my session has timed out

    I Cannot download apps
    wwhen I try i am told I need to read and agree to iTunes new terms
    wwhen I agree I am told my session has timed out

    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers.

  • How to Read all files inside resource Folder inside Jar?

    I have a Jar file,,,, The program reads for resource files in the resource folder inside the Jar. I want my program to read all files inside this folder without knowing the names or the number of files in the folder.
    I am using this to make an Applet easy to be updated with spicific files. I just want to add a file inside the resource folder and Jar the program and automatically the program reads what ever is in there!!
    I used the File class to get all file names inside the resource folder. it works fine before Jarring the program. After I jar I recieve a URI not Herarichy Exception!!
    File fold=new java.io.File(getClass().getResource(folder).toURI());
    String[] files=fold.list();
    I hope the question is clear!!

    How to get the directory and jar file that you class resides in:
    // returns path and jarfile (ex: /home/mydir/my.jar)
    public String getJarfileName()
            // Get the location of the jar file and the jar file name
            java.net.URL outputURL = YourClass.class.getProtectionDomain().getCodeSource().getLocation();
            String outputString = outputURL.toString();
            String[] parseString;
            int index1 = outputString.indexOf(":");
            int index2 = outputString.lastIndexOf(":");
            if (index1!=index2) // Windows/DOS uses C: naming convention
               parseString = outputString.split("file:/");
            else
               parseString = outputString.split("file:");
            String jarFilename = parseString[1];
           return jarFilename;
    }If your my.jar was in /home/mydir, it will store "/home/mydir/my.jar" in jarFilename.
    note: getLocation returns "file:/C:/home/mydir/my.jar" for Windows/DOS and "file:/home/mydir/my.jar" for windows, thus why I look for the first and last index of the colon so I can correctly split the string.
    If you want to grab a file in the jar file and get an InputStream, do the following:
    import java.io.*;
    import java.util.Enumeration;
    // jar stuff
    import java.util.jar.*;
    import java.util.zip.ZipEntry;
    public class Jaris
       private JarFile jf;
       public Jaris(String jarFilename) throws Exception
           try
                           jf = new JarFile(jarFilename);
           catch (Exception e)
                jf=null;
                throw(e);
       public InputStream getInputStream(String matchString) throws Exception
           ZipEntry ze=null;
           try
              Enumeration resources = jf.entries();
              while ( resources.hasMoreElements() )
                 JarEntry je = (JarEntry) resources.nextElement();
                 // find a file that matches this string from anywhere in my jar file
                 if ( je.getName().matches(".*\\"+matchString) )
                    String filename=je.getName();
                    ze=jf.getEntry(filename);
          catch (Exception e)
             throw(e);
          InputStream is = jf.getInputStream(ze);
          return is;
       // for testing the Jaris methods
       public static void main(String[] args)
          try
               String jarFilename=getJarfileName();
               Jaris jis = new Jaris(jarFilename); // this is the string we got from the other method listed above
               InputStream is=jis.getInputStream("myfile.txt"); // can be used for xml, xsl, etc
          catch (Exception e)
             // this is just a test, so we'll ignore the exception
    }Happy coding! :)
    Doc

Maybe you are looking for