If a  class method exporting a value with the generic type 'data'.

Then how can I get the information?
For exmple.
cl_my_clss->get_value( exporting ev_data = .... ) .
ev_data is a type of data.
I can not use DATA : lv_mine type data. because generic data should be used in formal parameter, however , if I use a field symbol, how to assign value with out knowing the data type?
Best regards,

Hi Blake,
As per my understanding,
You are getting the data type from the database table....
You want to use the same data type....
Lets say for example:
You have a db table x with field y having data type Z.
What you do is that, while declaring the data type for the attribute in the method use the reference as table_name-field_name(x-y).
Or....
use ANY. This will give you a chance to map any field type to this method....
Note: Using ANY will limit the syntax that you can use within the method......
Regards,
Kunjal

Similar Messages

  • Access of undefined method/property through reference with a static type Class

    I get the following error: (it's not word for word but you get the idea)
    Error: Access of undefined method getStatus through reference with a static type Class.
    Here's what's happening in the code. I'm trying to create a User class that is instantiated at the start of my app. I want the User class to have properties like mainStatus, with helper methods like setStatus etc. Pretty simple.
    so on my HardDisk I have my flash_working folder with all my flash projects. I created my class file/package under the directory com.mypackage
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function User()
                trace("User Created!");
                mainStatus = 0;
            public function setStatus(status:int):void
             mainStatus = status;
        public function getStatus():int
            return mainStatus;
    Ok, so far so good.
    now I created a new .fla file under the root of /flash_working/. The class file is in /com/mypackage/User.as
    in my .fla file I have:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = User.getStatus();
    trace(i);
    That's all the code I have. Could someone please explain why it's giving me that error?
    If I try to access the public var mainStatus through user.mainStatus that gives a similar error saying:
    Error: Access of undefined property mainStatus through reference with a static type Class.
    Thanks for any help!
    jef3189

    the public getStatus() function that you created needs to be referred to through an instance of the class.
    So:
    import com.mypackage.User;
    var myUser:User = new User();
    var i = myUser.getStatus();
    trace(i);
    Also, an aside. You can create a getter/setter for status, to avoid having to do the function as such.
    package com.mypackage
        import flash.display.*;
        public class User extends Sprite
            public var mainStatus:int;
            public function get status():int
                return mainStatus;
            public function set status(value:int):void
                 mainStatus = value as int;
              public function User()
                trace("User Created!");
                mainStatus = 0;
    And then, you can call it as:
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.status);
    EDIT
    I just noticed that you made the variable public as well, which means you can access it without getter/setter or function.
    import com.mypackage.User;
    var myUser:User = new User();
    trace(myUser.mainStatus);

  • HT3130 trying to export a 4 minute video to desktop.  Only 1:08 seconds exports.  I've tried other clips and they all cut at 1:08.  Used different exports like Quicktime with the same results.

    trying to export a 4 minute video to desktop.  Only 1:08 seconds exports.  I've tried other clips and they all cut at 1:08.  Used different exports like Quicktime with the same results.

    Good to hear that you've had some success with the import.
    I tried 3 times to do it before I finally changed it to H.264, and it worked on the first try.  The quality of the compression was terrible with those settings compared to my standard settings, but I'm just glad it worked.
    Rather than Share>Export using QuickTime and then choosing your own settings for H.264, you may get a better result if you simply use the Share>Export Movie option. Alternatively, use the Share>Media Browser option (as I mentioned in my earlier post). You will be presented with a range of sizes to choose from. Depending on your target, it's usually best to select the highest size available, such as Large, HD 720p or HD 1080p. However, for producing a DVD it's best to not go beyond the HD 720p size, as the DVD will be downscaled during encoding to Standard Definition in the appropriate size for either PAL or NTSC.
    In my experience, both these options (Export Movie or Media Browser) produce a video file of excellent quality. The files will be in H.264 format and will have the file extension .mov or .m4v depending on the size of the export. I'm assuming that your camera records HD video in AVCHD format.
    These files work well with iDVD (or other DVD authoring programs). The export process for the presets is optimised by Apple to produce high quality video files at a reasonable file size. So, selecting a preset may give you a much better result. Choosing your own H.264 settings when using the "Export using QuickTime" method could be why "the compression was terrible". You may have selected a data (bit) rate that was too low. There is always a trade-off between quality and file size when compressing video.
    So, to summarise, try one of the Apple presets using either Share>Export Movie or Share>Media Browser.
    John

  • With multiple events in a single event case, how to associate value with the correct object?

    I am playing with the template where an event structure takes note of user inputs and a main state machine is then used to respond to these inputs. When I only monitor one control I use the 'NewVal' output to read out the changed value. But when I monitor multiple objects with a single case I also have to associate the readout with the correct owner. After some tinkering I was able to extract the label property and use a case to assign them. Are there better ways of doing this? For example maybe there is a way to connect the label text directly to the 'bundle by name'?
    Also this should be easy to accomplish by simply creating local variables of the objects and read from them, but I got the impression that the use of global and local variables is now strongly discouraged?
    Thanks for any suggestions!
    Attachments:
    Untitled.png ‏39 KB

    Well, I don't really like these theroretical discussions. Can you attach a simplified version of some of your code?
    There are many other ways to identify the particular control. You could for example search an array of references for the value of the "ctlref" event data node. This would make the code much more robust (your code will fail for example if you (or some other programmer updating your code in a few years!) notices a mispelling and edits the label without also changing the case structure cases).
    LabVIEW Champion . Do more with less code and in less time .

  • LSMW using IDoc Method *Error :No partner exists with the name '', type ''*

    Hi All,
    I am a newbie. I am trying LSMW using IDoc Method.
    I got an error when i executed Start IDoc Generation step: No partner exists with the name '', type ''
    Could anyone tell what wrong I might have done,
    Thank you,
    Shiv Ram

    Hi,
    You have to setup your IDoc configuration in LSMW:
    1) Enter the menu \Settings\IDoc Inbound Processing
    2) Create a FILE port by clicking "Maintain Ports"
    3) Create a logical system (LS) partner number by clicking "Maintain Partner Numbers"
    4) Be sure your partner profile that you create is "Active" by clicking "Classification"
    5) In the end click "Activate IDoc Inbound Processing" bottom.
    Run your LSMW again. This time it shoud run wothout any problem.
    Hope it helps.
    Chang

  • Comparing the current value with the previous one in Powershell

    Hi,
    New to scripting and i was wondering how can I compare the current value with the previous value?
    I am having trouble with the loop structure, and I am not sure I am on the right track...
    I am trying to compare the record to next record in the same csv file after import-csv... My code runs fine, but is not giving the right result.
    $FilePath = Get-FileName -initialDirectory "C:\"
    #Testing for null
    If($FilePath)
    $Data = Import-csv -Path $FilePath | Sort-Object BUYER, {[int] $_.PO_NBR}, {[int] $_.LINE_NBR}
    Foreach($fData in $Data)
    $i = $fData
    Foreach($i in $fData)
    if($fData.Buyer -eq $i.Buyer)
    #save all the same buyer name to a new variable
    Write-Host "Same as previous"
    Else
    Write-Host "Variable is null"
    Remove-Item function:\Get-FileName

    Thank you. The Foreach loop is now working properly.
    Can I ask what is the purpose of "-ea 0" in the import-csv? I can't seem to find "-ea" as a parameter for import-csv in help.
    -ea is short for -ErrorAction.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Can't Export a Certificate with the Private Key

    I have downloaded a
    Symantec Enterprise Mobile Code Signing Certificate from email link. And the certificate was installed with no errors. Now
    when I'm going to export the certificate it will NOT allow me to export with private key. The option "Yes, export with private key" was grayed out. From MMC, add snap in certificate > local computer > certificate > certificatename. In this
    location "I can see the certificate image with a key on it". Is this mean that the import is successful with private key? If so, how to export correctly? Kindly help please!
    http://i1234.photobucket.com/albums/ff405/i_kiennt/Screenshot2_zpsaf770a8b.png
    http://i1234.photobucket.com/albums/ff405/i_kiennt/Screenshot3_zpsde23204d.png

    Hello MrTrungKien,
    Please share us a screenshot about The option "Yes, export with private key" was grayed out.
    Please take a look at the following article about exporting a Certificate with the Private Key.
    http://technet.microsoft.com/en-us/library/cc754329.aspx
    Yes, export the private key. (This option will appear only if the private key is marked as exportable and you have access to the private key.)
    It is marked as not exportable so users cannot export this certificate.
    Please contact Symantec to confirm if the key is exportable.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Attaching a form component value with the link

    Help! Desperate!
    How do I attach list box value with the link. This is part of my code. I am struggling with the <a href part of the code. When the user clicks one of the options from the list box, that value should be attached to the link.
    private String getWageFooter(String rate)
    StringBuffer sb1 = new StringBuffer();
    String typerate=rate;
    sb1.append("<hr size=\"3\" width=\"550\">");
    sb1.append("<table width=\"950\"><tr><td align=\"center\">");
    sb1.append(" To change the Rate Type view");
    sb1.append("<p>Click on a Rate Type in this list and click the<I><b>");
    sb1.append("<font color=\"blue\">GO</font></b></I> button");
    sb1.append("<br><select name=\"ratetype\"><option value=\"\">Select One");
    sb1.append("<option value=\"All\">All Rate Types<option value=\"Hourly\">Hourly Wage");
    sb1.append("<option value=\"Annual\">Annual Wage</select>");
    sb1.append("<a href=\"occWageReport.jsp?typerate=");
    sb1.append("<img src=\"../images/go.gif\" border=\"0\"></a>");
    return sb1.toString();
    Sue

    Anybody! Any ideas how to attach the value of the item in the list box with the link as a querystring?
    Sue

  • Consolidation deletes values with the Flow_Type property "OPENING"

    Hello all,
    We have set up journals to populate a DataSrc dimension value with the following properties:
    COPYOPENING - BLANK
    DATASRC_TYPE - M
    IS_CONSOL - BLANK
    IS_CONVERTED - BLANK
    In other words, we do not do not want values in this data source to be picked up or in any way manipulated when we execute Consolidation (Stored Prodcedures SPCOPYOPENING, SPRUNCONVERSION,SPRUNCONSO).
    However whenever we execute consolidation the system delete some values in the above mentioned datasrc. Open further investigation, it seems to only delete values where the flow dimension value has the FLOW_TYPE - OPENING.
    Have you by any chance encountered this issue? Or do you have any ideas why this could occur?
    Thank you & regards
    Raja

    When I look to the SAP BPC MS V7.0 starter kit, I find the following differences :
    - they use NETVAR to the Variation flow
    - they call the Flow_type for CTA "TRANSDIF"
    - there is no TRANSLOPE
    I hope it helps

  • In numbers 2 there was a "show search" which gave a list of all occurences of a value with the location. Does this exist in Numbers 3?

    in numbers 2 there was a "show search" which gave a list of all occurrences of a value with the location. Does this exist in Numbers 3?

    G.,
    The search results pane is gone in V3. If it's critical, stay in V2. I'm not being flippant, I have certain documents that I very carefully keep away from V3 because I don't want to give up the V2 features for those particular files. Some users have reported problems with having both versions active at the same time, so it's best to quit one before launching the other, but other than that you just need to be careful not to open your V2 documents with V3.
    Jerry

  • Premiere not exporting audio files with the footage

    Hello All, has anyone had trouble lately with Premiere not exporting audio files with the footage?

    1st, show your export screen so people may see what you are doing
    https://forums.adobe.com/thread/1070933 for screen shot instructions
    2nd, when you ask a question you need to provide more information for anyone to try and help
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • I want to export my photos with the title and info attached

    I want to export my photos with the title and info attached but cannot seem to do it with this new os.

    Are you confusing Titles and Filenames by any chance?
    When you email you're sending a file. The email client sees the Filename. The title is in the Exif metadata of the file and the email app doesn't see this - neither will the Finder or filebrowser.
    You can export (as above) and opt to use the Title as Filename - it's there at the Filename section.
    Regards
    TD

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the ACL NT Security Field is 255 characters.  The full string of data to be returned can be much longer than the 255 limit and I cannot find how to manipulate that parameter. 
    I am currently on Crystals XI and Crystal XI R2 and have applied the latest service packs but still see the issue.  My Crystal Reports Database DLL for File System data ( crdb_FileSystem.dll ) is at Product Version 11.5.10.1263.
    Is it possible to change string limits when using the File System Data driver as the Data Source?  If so, how can that be accomplished.  If not, is there another method to retrieve information with the Windows File System Data being the Data Source?  Meaning, could I reach my end game objective of reporting on the Windows ACL's with Crystal through another method?

    Hello,
    This is a known issue. Early versions you could not create folder structures longer than 255 characters. With the updates to the various OS's this is now possible but CR did not allocate the same space required.
    It's been tracked as an enhancement - ADAPT01174519 but set for a future release.
    There are likely other ways of getting the info and then putting it into an Excel file format and using that as the data source.
    I did a Google search and found this option: http://www.tomshardware.com/forum/16772-45-display-explorer-folders-tree-structure-export-excel
    There are tools out there to do this kind of thing....
    Thank you
    Don
    Note the reference to msls.exe appears to be a trojan: http://www.greatis.com/appdata/d/m/msls.exe.htm so don't install it.
    Edited by: Don Williams on Mar 19, 2010 8:45 AM

  • How to pass the value of the return type parameters in teststand sequence file programatically through c#

    I have used the method LoadProtoTypeFromMeteDataToken(tokenvalue,options).with this i cant set the value in the return parameters. How can I pass the value.with the above method it displays parameter Name,Type,In/Out. how can i set the value in the return parameters.

    Or here
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=26979
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Any way to export videos and preserve the original creation date?

    I recently shot video using an NEX-5N and AVCHD as the format. Since Aperture cannot playback this format, I converted the videos using Handbrake to mp4 (H.264), and then used A Better Finder to change the creation date of the converted file back to the same date as the original file.
    Importing this converted file into Aperture works great, and the imported file shows the correct metadata of the original creation date, not the date of the conversion.
    But when exporting this file from Aperture, it seems like Aperture does not embed the date as metadata, and thus the only date associated with the exported video is the file-system date attached to the file, which will of course be the date of the export. 
    I assume this problem applies to ANY video imported into Aperture, not just those that have been converted.
    Does anyone have a method for exporting video and having the original creation date remain?  This is obviously a problem when exporting videos one-by-one, but would be a bigger problem if I ever wanted to export my entire video library from Aperture into another program...all the video files would have the same date!
    Any feedback would be greatly appreciated!

    EXIF data and video files is even more of a gray area then EXIF data and stills.
    I don't do much video in Aperture so I'll take your word for it that the data isn;t imbedded into the file. In that case the best I can see is to create a custom export preset and  include the Image Date in the filename. Not great but you at least have the data and you might be able to have a script use the date from the filename and somehow add it back into the file.

Maybe you are looking for

  • Old mac wont boot xcpt via firewire, want to move iphoto files from old to new, where are the pics stored?

    old mac wont boot xcpt via firewire, want to move iphoto files from old to new, where are the pics stored?

  • Is CS2 free for everyone?

    I've researched and cannot find a for sure answer. I am unable to call Adobe, and unable to find an email for them. The question is; although it's possible to download and install Photoshop CS2 from Adobe's website, is it intended and legal to do so

  • ATI Radeon 5770 w 2008 MacPro 3,1

    I recently had my GeForce 8800 go bad on me. And after some research I plunked for the ATI Radeon 5770 (bought from here on the Apple Store). I have a Dell 24" 2804WP LCD monitor, and am using the DVI port. Before my 8800 went belly-up, I had ZERO pr

  • .pdf files come up as web links instead of documents

    when I send adobe standard XI produced files to a certain customer they come up as web links instead of documents.  This customer says that they are having no problem opening documents from other people. Any help with this will be appreciated.

  • Budget (FI and MM)

    hi frds, I got one issu  like this: The top management allowed this year budget amount like  50L (example).The month of mid,how many po net value used this budget amount?how much balance amount  in budget?how many invoive did above the budget? The cl