How does one come to know this..drop down in ALV in WD

Hello Friends,
                      I had a requirement of adding a drop down in ALV, i eventually got it but I have some questions about it
I used the following code and got the drop down
lr_column = lr_column_settings->get_column( 'BWART' ).
  CREATE OBJECT lr_input_field
    EXPORTING
      value_fieldname = 'BWART'.
  lr_column->set_cell_editor( lr_input_field ).
DATA : LR_DROPDOWN TYPE REF TO CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
CREATE OBJECT LR_DROPDOWN EXPORTING SELECTED_KEY_FIELDNAME = 'BWART'.
LR_COLUMN->SET_CELL_EDITOR( LR_DROPDOWN ).
DATA: LT_VALUESET TYPE TABLE OF WDR_CONTEXT_ATTR_VALUE,
LS_VALUESET TYPE WDR_CONTEXT_ATTR_VALUE,
LR_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
LR_NODEINFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
LR_NODE = WD_CONTEXT->GET_CHILD_NODE( 'RETURN_NODE' ).
LR_NODEINFO = LR_NODE->GET_NODE_INFO( ).
LS_VALUESET-VALUE = '973'.
LS_VALUESET-TEXT = '973'.
APPEND LS_VALUESET TO LT_VALUESET.
LS_VALUESET-VALUE = '222'.
LS_VALUESET-TEXT = '222'.
APPEND LS_VALUESET TO LT_VALUESET.
LR_NODEINFO->SET_ATTRIBUTE_VALUE_SET( EXPORTING NAME = 'BWART' VALUE_SET = LT_VALUESET ).
My question is ... how does 1 know which class to use? how to use that class... most of concepts about OOPS are clear.. but i still cant figure out how does 1 find out which class to use.. is it all by expericence..

In short: Yes, by experience. Then again, for WD4A there is a class for each UI-Element available. Once you know this, you can easily search se24 for CLWD<UI-NAME>* or the like.

Similar Messages

  • My ipod touch is being read as just a simple camera and will not let me access it, how does one go about fixing this problem

    My ipod touch is being read as just a simple camera and will not let me access it, how does one go about fixing this problem? My screen has recently cracked and i need to retrieve my music from it but cant do so when my computer is reading it as a camera and only showing me its pictures.

    Here:
    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X
    Also try another computer.

  • How does one print a huge image broken down into small sections?

    I have an image that is 20x20  and I want to print it on sections of my 13x19 transparencys. So I want this big image to be printed on two pages so that when I put the two together it equals my whole image. Thank you for your time.

    Hi. You may want to check out PS plug-in Genuine Fractals 6.  It has a Tiling Feature that divides an enlargement into smaller pieces ready for printing.

  • How does one reduce a PDF file size down from 14MB to 4MB.

    It is a 223 page resource with text and graphics... which need to stay at good resolution.
    We need to reduce the file sizes in order to upload the resource to our website media library for down load.
    any ideas?

    You will need to use either the "Save As Other..." and then choose how you want to save the file.
    - Reduced Size PDF...
    - Optimized PDF
    The "Reduced Size PDF..." option is the simplest but you may not be satisfied with the results.
    The "Optimized PDF" option allows a bit more control but you do need to make several choices about what settings you want to use.

  • How does one create LOV Map between 2 fields for custom lookup mapping

    Hi there
    In Internet Expenses, Expense Report Line Detail we have two unrelated fields; namely Expense Location & Tax Code.
    The requirement is to map a default tax code to locations; basically when a user enters Expense Location then the mapped tax code value should default into field Tax Code.
    The location-tax code mapping is stored in a custom lookup (FND_LOOKUP_VALUES).
    My question is how does one go about implementing this?  For example is it possbile to create a new (hidden) LOV based on the lookup mapping & then create a Personalization LOV Mapping between the 3 LOV...  Or is it necessary to modify the Tax Code drop down Message Choice in JDeveloper?  Of course details are appreciated!
    FYI below is the relevant Personalization Structure from "Personalize Stack Layout: (NormalDetails)".
    Message Lov Input: Expense Location
    - Lov Mappings
    -- Lov Map: (lovMap1)
    -- Lov Map: (lovMap2)
    -- Lov Map: (lovMap3)
    - Message Text Input: Expense Location
    - Message Styled Text: Transaction Location
    - Message Text Input: Merchant Name Yes
    - Message Styled Text: Description
    - Message Check Box: Original Receipt Missing Yes
    - Message Choice: Tax Code
    - Message Check Box: Amount Includes Tax
    - Message Choice: Tax Code
    Many thanks
    G

    Hello all
    The correct & supported method is this:
    Extend the location LOV in JDeveloper & add a "default tax" attribute, this could be derived from a new location DFF storing the default tax code for each location. Now simply create a location Personalization LOV Map which takes this new location lov tax attribute & target it to the tax message choice field.
    That's my 2c worth anyway, so please give comment if you feel there is a better way.
    There is just one more little problem however... The requirement has changed! Now we require the tax code to default according to not one location field, but other fields too. For example if the user selects Expense Type of Beverage & Location of Netherlands then Tax Code should be NL19%, for Expense Type of Hotel then it should be NL6%; if the user ticks "Missing Receipt" field then it should over ride all others & set the code to NL0%.
    Any ideas?
    Many thanks
    G
    Edited by: user13363208 on 11-Aug-2010 06:51

  • How does one report bugs to Apple re iOS 6?

    So many things are going wrong since the update ... How does one let Apple know?  (not feedback)

    At the feedback website (http://www.apple.com/feedback) under feedback type select "Bug Report".  That is the official way to submit a bug report.

  • Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Here is the contents of a batch file which will convert whatever raws you drop on it:
    "C:\Program Files (x86)\Adobe\Adobe DNG Converter" -cr7.1 -dng1.4 -p0 %*
    Once you download the latest converter (release candidate from adobe labs, if necessary), and save the appropriate contents of the batch file (change path to match your system, and parameters to match your druthers, if applicable), the procedure is:
    1. Drop raw files on bat file.
    2. Import as usual (the DNGs).
    Not too bad once you're set up (if DNG converter supports your raws).
    Documentation:
    http://wwwimages.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/dng_commandline.pd f
    Note: on Mac, you may need to use "$@" (with the double-quotes) instead of %* (which is dos batch syntax), and you will need to use the full path to the converter executable file, e.g.
    “/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter”
    If too much, just use the GUI instead of the bat file.
    Rob

  • How does one update Flash? I currently cannot watch videos on You Tube, it says I need to upgrade, I have no problem doing this on a PC.

    How does one update Flash? I currently cannot watch videos on You Tube, it says I need to upgrade, I have no problem doing this on a PC.

    If you're not using chrome you can just go to adobe's website (http://get.adobe.com/flashplayer/) and download the newest flash player.  You run the .dmg and then open the application, which updates flash.  With the latest version of flash there should be a preference pane within system preferences to allow you to change settings and check for updates.

  • Just brought home newly purchased MacBook Pro 15"/Maverick/Retinal Display. To my astonishment, there is NO DVD slot! No one in the store told me about this missing feature. Intolerable, How does one install software? Insert CDs to copy for iTunes?Do I ha

    Just brought home newly purchased MacBook Pro 15"/Maverick/Retinal Display. To my astonishment, there is NO DVD slot! No one in the store told me about this missing feature. Intolerable, How does one install software? Insert CDs to copy for iTunes?Do I have to purchase an external DVD drive? Is one even available? What a crock!

    I’ve owned Macs since 1990 (IICX my first), mostly desktops. Having had DVD/CD drives in all my previous laptop Macs since 2001 -  (2) G4 Powerbooks,  A 17” Mac Book Pro - and also inspecting a friend’s year-old Mac Book Pro which had the DVD slot - unless someone told me at purchase, I had no reason to know that the Retina display version of the 15” had NO DVD drive. ANYHOW, I fully intended to buy the non-Retina display version, because it was cheaper. Unfortunately by the time I got to the Apple store they were no longer selling the non-Retina display version; all versions were ONLY with the Retina display. And the fine distinction of a DVD vs. a non-DVD drive was not pointed out. So now I have to shell out an additional $80 bucks for an external SuperDrive.

  • Unable to regenerate /dev/rmt/0 drivers with cfgadm -c configure on Solaris 10 update 11 (1/13).  How does one do this for SAS HBA StorageTek Autoloader?

    How does one regenerate the /dev/rmt/0 when cfgadm -c configure <device> will not rebuild it?  Have attempted reboot -- -r, with modifing /kernel/drv/st.conf as well as /kernel/drv/sgen.conf.  Running on a SPARC T4-1 Solaris 10 updat3 11, (1/13).

    This has been resolved.  Getting the /etc/driver_aliases set correctly: # update_drv -d -i st; update_drv -d -i sgen; add_drv -m '* 0600 root sys' -i '"scsiclass,01" "scsiclass,08" wa' worked.  Making sure the st and sgen entries are in /etc/name_to_major were needed.  For the Simpana/CommVault WA drivers, in opt/simpana/WA/wa.conf with the name="wa" parent="fp" target=16 lun=0 fc-port-wwn="device's World Wide Number> added for each lun 0 to 7.  Then the touch /reconfigure; reboot worked.  First the c1::rmt/0 tape and c1::scsi/changer/<wwn> med-changer were mapped.  After modifying the minor_perm ('* 0600 root sys') and name_to_major entries, the WA CommValt entries , WA drivers showed up in cfgadm -al as c1::wa0  tape and c1::wa1  med-changer, only recognizable from CommVault.  Also had to update the SAS-2 HBA StoregTek Autoloader driver with patch 145648-05. Solaris 10 update 11 (1/13) comes with 145648-03.  In our particular case, we found cfgadm -al mapped SAS-2 HBA to c1 using the single mini-sas 6gb connector cable, where it mapped to c7 with the four tail connector.

  • How does one add tables to an existing universe using COM designer SDK.

    Morning All
    How does one add tables to an existing universe using COM designer SDK. I have tried:
    objUniverse.Tables.Add (strTable_Name)
    but get "Cannot create Table" error.
    Any ideas?
    Thanks in advance.
    Anita

    Hi Anita,
    -Use the Add method to add classes and objects to an existing universe using a VB 6 application.
    Adding a Class
    Definition: Function Add(Name As String) As Class
    Syntax: NameOfClassesVariable.Add
    Adding an Object Instance
    Definition:  Function Add(Name As String, [ClassName As String]) As Object
    Syntax: NameOfObjectsVariable.Add(name, [class])
    - name is the name of the object.
    - class is the name of the class containing the object. This parameter should be used in cases where more than one objects exist with the same name.
    Sample Visual Basic 6 Code
    Dim DesApp As Designer.Application
    'MODIFY AND EXPORT CLASSES AND OBJECTS OF AN EXISTING UNIVERSE
    Sub modify_and_export_universe()
    Dim DesUnv As Designer.Universe
    Dim DesCls As Designer.Class
    Dim DesObj As Designer.Object
    Dim DesDBCol As Designer.DBColumn
    Dim DBColName As String
    Set DesApp = New Designer.Application
    'Login to designer
    Call DesApp.LogonDialog
    'Make sure to log on with your administrator profile
    'e.g : "hostname","username", "password","Enterprise"
    'Make Designer application visible
    DesApp.Visible = True
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'to Open  locally  the universe you want to modify
    'Set DesUnv = DesApp.Universes.Open("club_uni")
    'Use OpenFromEnterprise method (Universes Class) to import a universe from the repository and opens it
    Set DesUnv = DesApp.Universes.OpenFromEnterprise("Universes", "club_uni", False)
    'Add a valid connection which already exists
    DesUnv.Connection = "club"
    'open the universe
    'Call DesApp.Universes.Open("club_universe")
    'Add the table Account and refresh the view in the main window
    Set DesTab = DesUnv.DBTables.Item("Customer").Insert
    DesUnv.ArrangeTables
    'Add a class
    Set DesCls = DesUnv.Classes.Add("Class MyCustomer")
    'Looping through all the fields of the DB Table Account
    For Each DesDBCol In DesUnv.DBTables.Item("Customer").DBColumns
    'Store name of the column
        DBColName = DesDBCol.Name 
         'Add an object to the class
        Set DesObj = DesCls.Objects.Add("Obj " & DBColName)
         'Affect a field to the object
        DesObj.Select = "Customer" & "." & DBColName
    Next
    'Save the existing universe with the same name club_uni or you can change
    DesUnv.SaveAs "club_uni"
    MsgBox "Universe created and saved Class MyCustomer has been added!!"
    'Close the universe
    UnvFullName = DesUnv.FullName
    MsgBox "The UniverseFilePath is " & UnvFullName
    'Close the universe
    DesUnv.Close
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'Export the universe to the CMS DB (to the last universe folder)
    'Make sure you save the universe before exporting it
    Call DesApp.Universes.Export("Universes", UnvFullName)
    MsgBox "This document has been exported successfully !!"
    'Close designer
    DesApp.Quit
    Set DesApp = Nothing
    End Sub
    Hope this helps.
    Regards,
    Deepti Bajpai

  • HT1600 update Apple TV via settings general update software advise Apple support.  But Airplay won't display the Apple Tv because it needs an updated compatible software. Catch 22. How does one resolve this contradiction please? Paul

    update Apple TV via settings>general>update software advise Apple support.  But Airplay won't display the Apple Tv because it needs an updated compatible software. Catch 22. How does one resolve this contradiction please? Paul

    only the following macs support airplay mirror
    http://support.apple.com/kb/ht5404

  • How does one use 'drop zones' in DVD menus?

    Hi
    I have Premiere Elements 4.0. How does one use 'drop zones' in DVD menus?
    Thanks
    NBK

    There are a number of ways, but the easiest is to swap in your video the way you swap in a DVD background -- i.e., select a menu with a drop zone and, in the DVD menus area, click on the background of the menu in the Disc Layout monitor. This will open up a screen that will allow you to browse to the video or still you want.
    Once it's in place, hold down the Shift key and, grabbing a corner handle on the Disc Layout monitor, size the image and drag it to position it in the drop zone.

  • How does one know whether or not they use "Java applets"?

    The support doc for the recent Java update (Update 8, for Snow Leopard), entitled "About Java for Mac OS X 10.6 Update 8," advises the following:
    If you do not use Java applets, it is recommended that you disable the Java web plug-in in your web browser.
    How does one know whether or not they use "Java applets"?
    Thanks.
    URL:  http://support.apple.com/kb/HT5243

    K.S. wrote:
    dymar wrote:
    Also, how would I know that a missing applet was causing some feature(s) not to work in a situation where no error mesage was returned?
    Sometimes you have to dig to find out: http://earthnow.usgs.gov/earthnow_app.html
    doesn't tell you directly, but it is mentioned in the FAQ that Java is required. If the content is appropriate, you can always ask here.
    Thanks.  According to that webpage, my "Java is out of date."  When an error message like that is returned, I guess it's clear that "it's a Java problem."  Presumably, one would then just go to java.com and download the applet if he/she wanted to view the webpage.
    I was wondering more about situation when unexplained problems that involved missing Java applets weren't noted in error messages.
    But maybe I'm worrying about something that doesn't really need to be worried about.

  • How much XML/Java does one have to know?

    I'm new to OA and I have a question. Besides Oracle and PL/SQL how much XML/Jave does one need to know in order to pick up this product. Does it get in your way if you don't know either? Can you get by with out it?
    In other words where is that knowledge inportant?

    I think this thread has been discussed so many times on this forum, always search old threads before raising new! One need core java knowledge along with pl/sql to start with OAF.
    You definately don't need knowledge of xml here as it is generated automatically by Jdeveloper. If you have some knowledge of j2ee design pattern , it would be an added advantage, but basic knowledge of core java is sufficient to start with OAF.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • IMac (late 2006) Does not boot. No matter what I do.

    Hello all, The iMac I have is the 17'' iMac from 2006 w/ 512mb of ram and OS x 10.4. I press the power button and immediately after the sound the apple logo and pinwheel come on but stay on. It never gets past that and I do not know what else to do.

  • Not able to set the context

    Hi All, I am not able set the context to an xml file in JFPREAMBLE CONTEXT file. Can any suggest me how to fix it?

  • Simulating Database Corruption

    Any one have any reliable methods of simulating database corruption? (I know, use SQL Server.) I want to test various methods of monitoring for both physical and logical corruption. I have used tried using dd but I can't see a way to just corrupt a s

  • Bridge CS5 not working properly

    Hi, I have been using Bridge for years, I have Bridge CS5 and all of a sudden I can't use the export to web/ pdf function. I also can't use the Tool>Photoshop>Image Processor. (It doesn't appear to exist anymore??!). What's going on? As far as I reme

  • Autoextend on, tablepace reached 99%,  freespace is not available on disk

    Hi , We have a oracle database with auto extendable tablespaces. Problem is one of the tablespace has reached 99% but hard disk is having very few freespace. Now what should I do. Please advise. Prabhakar