How can i display a CheckBox in one of the column of ALV?

Hi All,
I want to dispaly a one  column  of CHECKBOXes in my ALV  Report.so i take attribute CHK_BOX TYPE CHECKBOX in the context.when i testing it doesn't showing any checkboxes.just i shows a ordinary column with name checkbox.
How can i resolve it?
Regards,
Ravi

Hi Ravi,
Do the following to set any alv column as Check box .
create an instance of ALV component
  DATA:
    lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage,
    lr_column_settings     TYPE REF TO if_salv_wd_column_settings,
    lr_input_field         TYPE REF TO cl_salv_wd_uie_input_field,
    lr_chk_box             TYPE REF TO cl_salv_wd_uie_checkbox,
    lr_table_settings      TYPE REF TO if_salv_wd_table_settings,
    lr_salv_wd_table       TYPE REF TO iwci_salv_wd_table,
    lr_column              TYPE REF TO cl_salv_wd_column.
  lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
  IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
    lr_salv_wd_table_usage->create_component( ).
  ENDIF.
  lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
  wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
  lr_table_settings ?= wd_this->alv_config_table.
* Set ALV as editable
  lr_table_settings->set_read_only( abap_false ).
* Get Column reference
  CALL METHOD wd_this->alv_config_table->if_salv_wd_column_settings~get_column
    EXPORTING
      id    = 'CURR_ISO'
    RECEIVING
      value = lr_column.
* Create a checkboc
  CREATE OBJECT lr_chk_box
    EXPORTING
      checked_fieldname = 'CURR_ISO'.
* Set the cell editor type to the check box.
  CALL METHOD lr_column->set_cell_editor
    EXPORTING
      value = lr_chk_box.
and to set the check box as editable, do the following.
lr_table~IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( abap_false ).
Hope this helps.
Regards,
Sravan Varagani

Similar Messages

  • How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    I like the bookmarks on the left side of the screen. I don't want to be navigating through a tree of all of my various bookmarks. How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    View > Sidebar > Bookmarks (Ctrl+B)
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *https://support.mozilla.com/kb/how-do-i-use-bookmarks

  • How to store data file name in one of the columns of staging table

    My requirement is to load data from .dat file to oracle staging table. I have done following steps:
    1. Created control file and stored in bin directory.
    2. Created data file and stored in bin directory.
    3. Registered a concurrent program with execution method as SQL*Loader.
    4. Added the concurrent program to request group.
    I am passing the file name as a parameter to concurrent program. When I am running the program, the data is getting loaded to the staging table correctly.
    Now I want to store the filename (which is passed as a parameter) in one of the columns of staging table. I tried different ways found through Google, but none of them worked. I am using the below control file:
    OPTIONS (SKIP = 1)
    LOAD DATA
    INFILE '&1'
    APPEND INTO TABLE XXCISCO_SO_INTF_STG_TB
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    COUNTRY_NAME
    ,COUNTRY_CODE
    ,ORDER_CATEGORY
    ,ORDER_NUMBER
    ,RECORD_ID "XXCISCO_SO_INTF_STG_TB_S.NEXTVAL"
    ,FILE_NAME CONSTANT "&1"
    ,REQUEST_ID "fnd_global.conc_request_id"
    ,LAST_UPDATED_BY "FND_GLOBAL.USER_ID"
    ,LAST_UPDATE_DATE SYSDATE
    ,CREATED_BY "FND_GLOBAL.USER_ID"
    ,CREATION_DATE SYSDATE
    ,INTERFACE_STATUS CONSTANT "N"
    ,RECORD_STATUS CONSTANT "N"
    I want to store file name in the column FILE_NAME stated above. I tried with and without constant using "$1", "&1", ":$1", ":&1", &1, $1..... but none of them worked. Please suggest me the solution for this.
    Thanks,
    Abhay

    Pl post details of OS, database and EBS versions. There is no easy way to achieve this.
    Pl see previous threads on this topic
    SQL*Loader to insert data file name during load
    Sql Loader with new column
    HTH
    Srini

  • How Can i display a checkbox with list of items

    Hi All,
            How can i include a check box beside the list of items in a combo box/list box
    Here is the requirement which i need to display
    i need to do above requirement. i have to display the check boxes  beside the each item.
    i can show the list of items but unable to show the check boxes.
    Can any one help me regarding this.
    Thanks in advance
    Raghu

    Hope this can help u
    <mx:ComboBox id="cmbtheme" labelField="id" width="30" dropdownWidth="100">
      <mx:itemRenderer>
       <mx:Component>
        <mx:HBox horizontalGap="0">
         <mx:CheckBox id="{data.Nid}" label="{data.label}"/>     
        </mx:HBox>
       </mx:Component>
      </mx:itemRenderer>
    </mx:ComboBox>
    Regards,
    Kapil Arora

  • How can I display a SP 2010 out of the box workflow's task assignees via powershell?

    There are days where one of the 250+ workflows at the site has attempted to send email to someone no longer at the company.
    I would like to find a way to go through the farm and display all the list URLs that have workflows, and the mail addresses associated to the workflows.
    This way I can track down the workflows that need to be updated to remove the missing users.
    I have started a bit of script to do this. In my script, I just had a site collection - I figured that if I can get that to work, then surely wrapping another loop for the rest of the farm won't be bad. 
    However, for some reason, I am not seeing the output that I expected to show the mail addresses.
    I am hoping a different set of eyes might see what I am missing. It was my understanding that the AssociationData property was XML that contained information about the assignees for tasks, the carbon copy list, etc.
    Maybe I misunderstood something that I read?
    $outLoc = "d:\temp\wfdata.txt"
    $web = Get-SPWeb -Identity "http://myfarm/sites/it/"
    foreach ($list in $web.Lists)
     $associationColl=$list.WorkflowAssociations
     foreach ($association in $associationColl)
           $association.AssociationData | Out-File $outLoc
    $web.Dispose()
    I want to thank you for the helpful tips that so often appear on this list. They help me when I am reading over old threads to figure out what to do. I am hoping that tips on this thread will likewise be helpful.

    Hi,
    With
    SPWorkflowAssociation.AssociationData property, we can get the assignees’ information. Your script can
    be able to retrieve a XML format data which contains the user name we need:
    So the next step would be getting the user name by parsing the XML data we got.
    The two links below will show how to parse XML with PowerShell:
    http://stackoverflow.com/questions/18032147/parsing-xml-using-powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/26/use-powershell-to-parse-an-xml-file-and-sort-the-data.aspx
    With the user name, we can get the
    Email property of an user with the scripts as the link below provided:
    http://davidlozzi.com/2012/03/07/using-powershell-to-access-sharepoint-sites/  
    Best regards
    Patrick Liang
    TechNet Community Support

  • In alv , how can i  display message like 'NO records in the table'in spool

    When there are no any records , i have to display a message in spool like 'No records exist'.
    how can i do this?/
    Thanks,
    Suresh.

    hi check this..
    if the final internal table is empty then you will show like this..
    if not it_final[] is initial.
    call function reuse_alv_list_display.
    elseif.
    message s000 with 'no data available for the selection'.
    endif..
    regards,
    venkat

  • How can I tell if I got one of the new updated MacBook Air models?

    Hello,
    I bought a new MacBook Air this week (6 May 2014 to be precise) after the announcement was made of a minor update to the processor which is supposed to extend battery life. When I check its serial number, however, I expected to see "Early 2014", but instead it identifies as a "Mid 2013" model. Is this correct? And if so, how do I know whether or not I got one of the updated models?
    Specs in attached screenshot.
    Thanks in advance,
    Lee

    I am having the same exact issue. I thought the reason might be because my customized version which has a 1.7 Ghz Core i7 is the same processor as the mid-2013 models. However in looking at some other posts online people with customized versions that have 8 GB of memory are having the same issue, even if their processor is the 1.4 Ghz Core i5 which is only included in the early 2014 models.
    They Early-2014 Models came out on April 29th 2014, and looking at my serial number you can see that my computer was made AFTER that date.
    There are however computers that show do Early 2014 such as the MacBook Air in this unboxing video.
    https://www.youtube.com/watch?v=hjkrv2-kwCs
    What's interesting is the computer in the video was made BEFORE mine (from the serial number) yet it shows as newer in Apple's system
    Now I have seen some posts indicating that apple will fix this issue via an update, however it is NOT just a software issue but also an issue in Apple's computer systems
    If I look my device up on https://selfsolve.apple.com/agreementWarrantyDynamic.do
    It shows as a mid-2013 Model, whereas if I look up the MBA in the YouTube unboxing it shows as an early 2014.
    I really hope Apple fixes this, I have spoken with managers at two Apple Retail stores and they offered to exchange my device within the return period, but I have yet to have gotten a chance to head over, I will likely within a day or two.

  • How can I restrict a device to one of the airport routers in my network?

    I have a time machine (1st generation) and an AirPort Extreme as a network extender. I want to restrict an Apple TV to access the Internet through the time machine only.

    Can I use Airport Utilyty 6 to block the bedroom Apple TV from the Airport Extreme router?
    As I said, you can't specify which device the Apple TV connects with.
    I was thinking of enabling access control and then adding the MAC address of the device.
    Access Control works on the entire network. When you input the access control settings on one device, they auto populate to the other device. The result would be that the Apple TV would not connect at all.
    Try powering off the Apple TV and leaving it off for a few minutes, then power it back up to see if it will pick up a signal from the Time Capsule.
    If that does not work, then reset the Apple TV back to default settings and then re-configure it again to see if that will do what you want.
    That's all you can do.

  • How can I display sort icons of an af:table column permanently

    Hello all,
    I'm using JDEV 11.1.1.5. Is there a way using skinning or any other mean to make the sort icons of a column in a af:table to be displayed permanently and not only after a mouse over on the column title?

    Can you try with skinning?
    Check the forum post:
    Column Sort image display permanent
    Thanks,
    Navaneeth

  • Numbers '09: How can I display selected data from one cell in another cell?

    Hello.
    I have a Numbers document that contains a table that looks a little like this:
    Amount;Code
    Amount
    Code
    10;12B
    12;8A
    14;16E
    16;3C
    18;5A
    I'd like to have Numbers 09 automatically separate the "Amount;Code" data in the coloumns to the right.
    Do you know the right function and/or equation to make this happen? Any help would be greatfully appreciated.
    Cameron168

    Formula for Amount:
    =LEFT(A2,FIND(";",A2,1)-1)
    Formula for Code
    =RIGHT(A2,LEN(A2)-FIND(";",A2,1))
    I just modified the equation for separting first and last names from:
    http://www.bluemoosetech.com/microsoft-excel-functions.php?jid=32
    You will have to put in your correct cell names
    Tested it and it works!
    Have fun!

  • How can you display a dynamically loaded vi to the Web Server?

    I am working with LabView 6.1 and the Web Server. I can call a subvi and have it display on a remote machine using a browser with no problem. But what I would like to do is dynamically load and run a vi and have it display on the remote computer using only a browser. I have tried a small example of a front panel that invokes the run vi method (and fp.open prop) on another vi when a button is pressed, but the invoked vi is displayed only on the local computer. Is there any way of viewing dynamically loaded vi's on a remote machine without having a copy of LabView running on it?

    If i understand your question correctly, you want to monitor vi that are dynamically loaded on a remote machine without having LabVIEW installed on the machine from witch you want the monitor. I don't think it's possible how ever a good reference book would be Internet applications in LabVIEW. You can find it on BARNES&NOBLE.
    Hope i could help

  • How can I play itunes music through one of the usb ports on my new MacBook Air?

    Greetings Everyone.
      I just purchased my first Mac product I want to be able to play music from the itunes app from one of my usb ports to the usb port on the front panel of my Yamaha CD changer. I want to utilize the buit-in DAC of the Yamaha. A friend was able to run his Ipad through it but I can't see a way to run my MacBook Air through it. When I go to System Preferences -> Hardware -> Sound the only item listed for Output is "Internal Speakers".
    Any ideas? Thanks in advance.

    Reset the SMC and PRAM
    SMC Reset:
    Shut down the MacBook Pro.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    PRAM:
    Shut down the MacBook Pro.
    Locate the following keys on the keyboard: Command, Option, P, and R.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • How can I display more than one value in Calendar ?

    Hi,
    the standard (example) script allows for the display of one value only (as I understood). How can I display two or three values, from the very same table ? Students of mine during an HTMLDB workshop in Leipzig did ask that question.
    Do we have a more detailed docum. on the use of the calendar ?
    pls kindly advise. TIA.
    Bernhard

    my solution:
    Source fo the calendar starts:
    snip>
    declare
    q varchar(32767) := null;
    begin
    q := 'select "ETA", <--- Date Field and concatination of fields as follows:
    "SCHIFFSNAME"|| "ETA_TIME"|| "TERMINAL"||''(br*)'',
    null,
    null,
    null,
    null
    from "#OWNER#"."SCHEDULE"'; . . . . . . .
    snip>
    comment on (br*) - you have to use "<" and ">" instead of "( " and ")" to have the "break/new line effect"
    brgds
    Bernhard

  • How can i display a list of all the names stored in the Mail app?

    When sending an email, the program shows a list of names according to the first and subsequent letters that I type into the To: field. There are times I cannot recall someone's email user name. How can I display a complete list of all the names Mail has stored? I know that I can go to the To: field then type in the letter A, then write down all listings under A, and then repeat for each letter of the alphabet, but there should be an easier method.
    I have perhaps dozens of names in Mail, but only five names in Address Book, so the latter does me no good.

    On the menubar, Mail > Window > Previous Recipients
    Regards,
    Captfred

  • How can I display & split the audio & video from the same digitized clip?

    I digitized a scene into iMovie that I edited on a professional system which I don't have access to anymore. The whole scene is 1 clip. Now I see a few tweaks that I want to make, so I was hoping to do them in iMovie.
    I want to "pull up" the audio in one section - meaning I want to take cut about 20 frames of audio from the end of a shot, and then move all the other audio up to fill the hole. To compensate for the missing 20 frames, I'll cut video off the head of the next shot. Some call this prelapping. Some call it an L-cut. Some call it asymmetrical trimming. Either way, I can't figure out how to do it in iMovie.
    My clip appears in the timeline as one track - a single track that contains the video and 2 audio tracks. How can I display the audio that's tied to the video on its own track? Then I think I could split audio & video wherever I wanted and trim things up - but I can't figure out how to do it.
    Am I asking too much of this software?
    BTW, I never see the option to "Split audio clip at playhead". I'm not displaying clip volume or waveforms. Choosing to display waveforms doesn't show me anything. Maybe iMovie thinks I'd only want to see waveforms of audio that isn't tied to my video-and-audio clips?
    Thanks in advance for any help...

    Jordon,
    "Am I asking too much of this software?"
    No, you're not.
    You first want to select your clip(s) and choose Advanced>Extract Audio.
    This will copy the audio from the video clip and place it on one of the two separate audio tracks while lowering the audio level to zero in the original video track.
    You can now edit and move the audio independently of the video.
    With the audio clip selected, you'll find you now have access to Edit>Split Selected Audio Clip at Playhead.
    Matt

Maybe you are looking for