Reading the record and displaying when u select it using checkbox

hi,
       how to read the particilar record and display it in a popup screen when u select it using checkbox and then press 'DISP' button in alv(normal alv not with oops concepts).
like i select a row which is checked (checkbox) it and i have to read that particular record and display (value of keyfield say vbeln) details in a popup screen.

hi,
go through the faloowing code.
this for normal popup.
*& Report  ZGS_ALV_POPUP_2_SELECT
REPORT  ZGS_ALV_POPUP_2_SELECT.
TYPE-POOLS: slis.
PARAMETERS: p_title TYPE sy-title default 'Sales Document:item data'.
DATA: itab TYPE vbap OCCURS 0 WITH HEADER LINE,
      selfield TYPE slis_selfield.
START-OF-SELECTION.
  SELECT *
    FROM vbap
    INTO TABLE itab
    UP TO 20 ROWS.
  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_title                 = p_title
*           I_SELECTION             = 'X'
           I_ZEBRA                 = 'X '
*           I_SCREEN_START_COLUMN   = 0
*           I_SCREEN_START_LINE     = 0
*           I_SCREEN_END_COLUMN     = 0
*           I_SCREEN_END_LINE       = 0
*           I_CHECKBOX_FIELDNAME    =
*           I_LINEMARK_FIELDNAME    =
*           I_SCROLL_TO_SEL_LINE    = 'X'
            i_tabname               = 'ITAB'
            i_structure_name        = 'VBAP'
*           IT_FIELDCAT             =
*           IT_EXCLUDING            =
*           I_CALLBACK_PROGRAM      =
*           I_CALLBACK_USER_COMMAND =
*            is_private              =
     IMPORTING
            es_selfield             = selfield
*            e_exit                  =
       TABLES
            t_outtab                = itab
       EXCEPTIONS
            program_error           = 1
            OTHERS                  = 2.
  IF sy-subrc <> 0.
    MESSAGE i000(8I) WITH sy-subrc.
  ENDIF.
  WRITE:
         /  'Table Index : ', 20 selfield-tabindex,
        /  'Table Name  : ', 15 selfield-tabname,
        /  'Field Name  : ', 15 selfield-fieldname,
        /  'Table-Field : ', 15 selfield-sel_tab_field,
        /  'Field Value : ', 15 selfield-value.
the falowing code is for how to put checkbox and how to display the selected recods.you combine both codes.
*& Report  ZRP_SALES
REPORT  ZRP_SALES NO STANDARD PAGE HEADING.
DATA: TEMP_DATE_STR TYPE STRING.
*DATA: TEMP_NETP LIKE VBAK-NETWR.
DATA: TEMP_NETWR(10).
*DATA: TEMP_VBELN LIKE VBAK-VBELN.
DATA: CHECK TYPE C VALUE ' '.
*DATA: WA_VBELN LIKE VBAK-VBELN.
DATA: TEMP_DATE LIKE VBAK-ERDAT.
*DATA: TEMP_NETP_STR TYPE STRING.
DATA:FNAM(20), FVAL(20).
TYPES: BEGIN OF MY_VBAK,
       VTWEG TYPE VTWEG,
       VKORG TYPE VKORG,
       SPART TYPE SPART,
       NETWR TYPE NETWR_AK,
       VBELN TYPE VBELN_VA,
       ERDAT TYPE ERDAT,
       END OF MY_VBAK.
DATA: IT_VBAK TYPE MY_VBAK OCCURS 0 WITH HEADER LINE.
DATA: WA_VBAK TYPE MY_VBAK.
DATA: V_VBELN TYPE VBELN,
      V_ERDAT TYPE ERDAT.
SELECT-OPTIONS:S_VBELN FOR V_VBELN,
               S_ERDAT FOR V_ERDAT.
AT SELECTION-SCREEN.
*Check for Sales Order number to be non-initial.
  IF  S_VBELN IS INITIAL.
*Checking for Date to be non-nitial.
    IF  S_ERDAT IS INITIAL.
      MESSAGE E003(ZRP_MSG). " Please enter either SO number or Date.
    ELSE.
*Validating the right low values for Date select option
      SELECT SINGLE ERDAT
             FROM VBAK INTO TEMP_DATE
             WHERE VBELN EQ S_VBELN-LOW OR ERDAT EQ S_ERDAT-LOW.
      IF SY-SUBRC NE 0.
        MESSAGE E004(ZRP_MSG).
      ENDIF.
*Validating the right high values for Date select option
      SELECT SINGLE ERDAT
              FROM VBAK INTO TEMP_DATE
              WHERE ERDAT EQ S_ERDAT-HIGH OR VBELN EQ S_VBELN-HIGH.
      IF SY-SUBRC NE 0.
        MESSAGE E005(ZRP_MSG).
      ENDIF.
    ENDIF.
  ELSE.
*Checking for Date to be non-nitial.
    IF  S_ERDAT IS NOT INITIAL.
      MESSAGE E003(ZRP_MSG). " Please enter either SO number or Date.
    ENDIF.
*Validating the right low values
    SELECT SINGLE VBELN
           FROM VBAK INTO S_VBELN
           WHERE VBELN EQ S_VBELN-LOW.
    IF SY-SUBRC NE 0.
      MESSAGE E001(ZRP_MSG).
    ENDIF.
*Validating the right high values
    IF S_VBELN-HIGH IS NOT INITIAL.
      SELECT SINGLE VBELN
              FROM VBAK INTO S_VBELN
              WHERE VBELN EQ S_VBELN-HIGH.
      IF SY-SUBRC NE 0.
        MESSAGE E002(ZRP_MSG).
      ENDIF.
    ENDIF.
  ENDIF.
START-OF-SELECTION.
*First Screen.
  SET PF-STATUS 'DISP'.
  IF S_VBELN IS NOT INITIAL.
    SELECT   VTWEG VKORG SPART NETWR VBELN ERDAT
           FROM VBAK
           INTO TABLE IT_VBAK
           WHERE VBELN IN S_VBELN.
  ENDIF.
  IF S_ERDAT IS NOT INITIAL.
    SELECT  VTWEG VKORG SPART NETWR VBELN ERDAT
           FROM VBAK
           INTO TABLE IT_VBAK
           WHERE ERDAT IN S_ERDAT.
  ENDIF.
  SORT IT_VBAK BY VKORG VTWEG SPART.
END-OF-SELECTION.
  LOOP AT IT_VBAK.
    MOVE IT_VBAK-NETWR TO TEMP_NETWR.
    MOVE IT_VBAK-ERDAT TO TEMP_DATE.
    WRITE:/6 CHECK AS CHECKBOX.
    FORMAT COLOR 1.
    WRITE: IT_VBAK-VBELN UNDER 'SALES ORDER NO.' .
    WRITE: IT_VBAK-ERDAT UNDER 'DATE'.
    FORMAT COLOR OFF.
    FORMAT COLOR 2.
    WRITE: TEMP_NETWR UNDER 'NET PRICE'.
    FORMAT COLOR OFF."TEMP_NETWR,
    FORMAT COLOR 3.
    WRITE:IT_VBAK-VKORG UNDER 'SALES ORG',
          IT_VBAK-VTWEG UNDER 'DIST CHANNEL',
          IT_VBAK-SPART UNDER 'DIVISION'.
    FORMAT COLOR OFF.
    SKIP 1.
*FOR SUBTOTALS
    AT END OF SPART.
      SUM.
      FORMAT COLOR 5.
      WRITE:/6 'SUB TOTOAL OF NET PRICE IS :  '.
      WRITE: 32 IT_VBAK-NETWR CURRENCY 'INR'.
      FORMAT COLOR OFF.
      SKIP 2.
    ENDAT.
*FOR GRAND TOTALS
    AT LAST.
      SUM.
      FORMAT COLOR 6.
      WRITE:/6 'GRAND TOTOAL OF NET PRICE IS :  ',
      32 IT_VBAK-NETWR CURRENCY 'INR'.
      FORMAT COLOR 6.
    ENDAT.
  ENDLOOP.
TOP-OF-PAGE.
  FORMAT COLOR  6.
  WRITE:/8    'SALES ORDER NO.',
       27   'DATE',
       42   'NET PRICE',
       57   'SALES ORG',
       70   'DIST CHANNEL',
       87   'DIVISION'.
  FORMAT COLOR OFF.
  SKIP 1.
*WHEN SALES ORDER IS SELECTED
AT LINE-SELECTION.
  CASE :SY-LSIND.
    WHEN '2'.
      GET CURSOR FIELD FNAM VALUE FVAL.
      IF FNAM <> 'WA_VBAK-VBELN'.
        MESSAGE E006(ZRP_MSG).
      ELSE.
        SET PARAMETER ID 'MAT' FIELD FVAL.
        CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
  ENDIF.
    ENDCASE.
*WHEN CLICKED ON PUSH BUTTON IN THE APPLICATION BAR
AT USER-COMMAND.
  CASE:SY-UCOMM.
    WHEN 'DISP'.
      DO.
        CLEAR CHECK.
        CLEAR: WA_VBAK,TEMP_DATE_STR.
        READ LINE SY-INDEX FIELD VALUE CHECK
           IT_VBAK-VTWEG INTO WA_VBAK-VTWEG
*           IT_VBAK-NETWR INTO TEMP_NETP_STR
           IT_VBAK-VBELN INTO WA_VBAK-VBELN
           IT_VBAK-ERDAT INTO TEMP_DATE_STR
           IT_VBAK-VKORG INTO WA_VBAK-VKORG
           IT_VBAK-SPART INTO WA_VBAK-SPART.
        IF SY-SUBRC <> 0.
          EXIT.
        ELSEIF CHECK = 'X'.
          FORMAT COLOR 1.
          WRITE: 8 WA_VBAK-VBELN HOTSPOT. "UNDER 'SALES ORDER NO'
          WRITE: 25 TEMP_DATE_STR." UNDER 'DATE'.
          FORMAT COLOR OFF.
*       FORMAT COLOR 2.
*                   WRITE: 44 TEMP_NETP_STR." UNDER 'NET PRICE'.
*       FORMAT COLOR OFF.
          FORMAT COLOR 3.
          WRITE:44 WA_VBAK-VKORG," UNDER 'SALES ORG',
         59 WA_VBAK-VTWEG," UNDER 'DIST CHANNEL',
         72  WA_VBAK-SPART." UNDER 'DIVISION'.
          FORMAT COLOR OFF.
          SKIP 1.
        ENDIF.
      ENDDO.
  ENDCASE.
TOP-OF-PAGE DURING LINE-SELECTION.
  CASE:SY-LSIND.
    WHEN 1.
      FORMAT COLOR  6.
      WRITE:/8    'SALES ORDER NO.',
             25   'DATE',
*       44   'NET PRICE',
             44   'SALES ORG',
             58   'DIST CHANNEL',
             72   'DIVISION'.
      SKIP 1.
      FORMAT COLOR  OFF.
<b>if helpful reward some points.</b>
Message was edited by:
        suredarreddy pulimamidi

Similar Messages

  • After my 1 month trial verion expired, i paid for the Adobe XI month to month sub, downloaded the trial version again from the cloud and now when i try to use the month to month paid version it says my trial version has expired, an clues on how i access m

    after my 1 month trial verion expired, i paid for the Adobe XI month to month sub, downloaded the trial version again from the cloud and now when i try to use the month to month paid version it says my trial version has expired, an clues on how i access my paid version?

    sign out and then back in to your cc desktop app, Sign out, Sign in | Creative Cloud Desktop app
    when signing in, use the same adobe id you used to subscribe.

  • HT1689 I updated my phone to the iOS7 and now when i try to use the keyboard, i can't see myself typing and it goes very slowly. I am confused to why this happened. It worked perfectly fine with iOS6. Any suggestions?

    I updated my phone to the iOS7 and now when i try to use the keyboard, i can't see myself typing and it goes very slowly. I am confused to why this happened. It worked perfectly fine with iOS6. Any suggestions?

    Hi imobl,
    Thanks for your response, I forgot to add that the five 3uk sims we have in use, I have tried all of them none of them are recongnised non of them have pin codes, I even purchased four more sims Tmobile (original carrier) Vodaphone, 3 and giffgaff.

  • I am using the pattern stamp tool. when i select my pattern it adds a hatching to teh source pattern and copies that hatching to the destination image

    I am using the pattern stamp tool. when i select my pattern it adds a hatching to the source pattern and copies that hatching to the destination image

    Please post screenshots to illustrate what you are talking about.

  • I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless i select the list in the sub file. How do I get backto the old method of seeing and using iTunes??

    I Just received the update to iTunes, when I I look at the screen I do not see the normal icons.  When I select movies I do not get the new downloads unless I select the list in the sub file. How do I get back to the old method of seeing and using iTunes??

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • IPhoto will not load the iPhoto library.  When I select "show all windows" the library does appear but cannot open it.  I am on version 8.1.2 and using Maverick.

    iPhoto will not load the iPhoto library.  When I select "show all windows" the library does appear but cannot open it.  I am on version 8.1.2 and using Maverick.

    I was able to get it fixed. I had received some responses and they had me
    recreate the library I believe.  It's been a while so I cant remember
    exactly what I did. I have since upgraded to the latest i photo version and
    have had no problems with it.
    Brian
    On Friday, November 7, 2014, Apple Support Communities Updates <

  • Reading text file and display in the selectOnechoice list item In ADF.

    Hi,
    I have a requirement to read the text field which have list of strings and that string display in the SelectOneChoice List item component on page load.
    I am using Jdeveloper 11.1.2.3 version.
    Any suggestion will highly appreciated..
    Thanks in advance.
    Regards

    Hi,
    Google will produce you with hints on how to read content of a file from Java (ideally the file uses some delimiter). Then in a managed bean, you read the file and save its content in a list of SelectItem. So your managed bean should have the following property and setter/getter pairs
    ArrayList<SelectItem> listFromFile = new ArrayList<SelectItem>();
    public void setListFromFile(ArrayList l){ //you don't need this }
    public ArrayList<SelectItem> getListFromFile(){
       //read file content and iterate over the file list entries
      for(i=0, i < fileContent.length, ++i){
         SelectItem si = new SelectItem();
         si.setValue(... the value to update the list of value with ...);
         si.setLabel("... the label to show in the list ...");
         listFromFile.add(si);
      return listFromFile;
    }The af:selectOneChoice component should look as follows
    <af:selectOneChoice id=".." value="...attribute to update with selection ..." ...>
       <f:selectItems value="#{managedBean.listFromFile}"/>
    </af:selectOneChoice>Frank

  • I changed my username and now afp doesn't show any users. I have file sharing on. And also when I select "get more info" on the shared folders they don't have my username in there. it just has "applepc(me)" it my old username before changing it.

    I changed my username and now afp doesn't show any users. I have file sharing on. And also when I select "get more info" on the shared folders they don't have my username in there. it just has "applepc(me)" my old username before changing it showed the correct username? please any help would be great.

    Turn Time Machine OFF temporarily in its preference pane. Leave the window open.
    Navigate in the Finder to your backup disk, and then to the folder named "Backups.backupdb" at the top level of the volume. If you back up over a network, you'll first have to mount the disk image file containing your backups by double-clicking it. Descend into the folder until you see the snapshots, which are represented by folders with a name that begins with the date of the snapshot. Find the one you want to restore from. There's a link named "Latest" representing the most recent snapshot. Use that one, if possible. Otherwise, you'll have to remember the date of the snapshot you choose.
    Inside the snapshot folder is a folder hierarchy like the one on the source disk. Find one of the items you can't restore and select it. Open the Info dialog for the selected item. In the Sharing & Permissions section, you may see an entry in the access list that shows "Fetching…" in the Name column. If so, click the lock icon in the lower right corner of the dialog and authenticate. Then delete the "Fetching…" item from the icon list. Click the gear icon below the list and select Apply to enclosed items from the popup menu.
    Now you should be able either to copy the item in the Finder or to restore it in the time-travel view. If you use the time-travel view, be sure to select the snapshot you just modified. If successful, repeat the operation with the other items you were unable to restore. You can select multiple items in the Finder and open a single Info dialog for all of them by pressing the key combination option-command-I.
    When you're done, turn TM back ON and close its preference pane.

  • I updated Firefox and now, when I select File, Send Link, a dialog box pops up asking me to establish a new account before I can send the link via email.

    I updated Firefox and now, when I select File, Send Link, a dialog box pops up asking me to establish a new account before I can send the link via email. I use Outlook, so how do I avoid setting up some new account and yet am able to send the link via Outlook?
    I have a feeling it may have something to do with HotMail.com.

    My Error: I found out that it was Mozilla Thunderbird that was causing the problem. I uninstalled it and the problem went away.

  • What happened to the Large and Display choices when exporting?

    What happened to the "Large" and "Display" choices when exporting slide shows?

    They were removed.

  • I copied some photos from the main album to a new album. And I need to delete these photos from the main album so as to have them only to the new album. When I select the photos and choose delete I get the answer DELETE EVERYWHERE

    Ι copied some photos from the main album to a new album. And I need to delete these photos from the main album so as to have them only to the new album. When I select the photos and choose delete I get the answer DELETE EVERYWHERE. I don't have the choice to delete it only from the main album.

    You mean you copied photos from your camera roll to a new album, correct? Well, that's the way it works. The photos wern't actually copied to your new album, just pointers to the actual photos, which are still in your camera roll. So, yes, if you delete from your camera roll, you remove them from your phone.

  • I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.

    I can't print wirelessly using Airport Express.  I have my HP printer connected to a USB hub, and the hub to the Airport Express, but when I select the HP from the printer list, my MacBook says the printer is "off-line" - even when it is not.  I've tried several USB connectors, and several different ports on my USB hub; same result.  I need to have the HP connected to the hub 'cause from there it's connected to our desktop Mac.

    Hi,
    I am currently replying to this as it shows in the iChat Community.
    I have asked the Hosts to move it to Snow Leopard  (you should not lose contact with it through any email links you get)
    I also don't do Wirelss printing so I can't actaully help either.
    10:01 PM      Friday; July 29, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of th

    Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of them say they have Flash player on their PC and somehow they still can't hear, some say their Google Chrome browser tells them they've already got one flash player while they try to download one. For me, I had to download two versions of Flash player to be able to access to the audio. I don't know what the problem is, is it because it's the latest version of Adobe Acrobat XI pro that people with older version of Adobe reader or flash player can't open it properly? Or is it something else? How can I make sure every customer with different system can access to my books? Hope to hear from you ASAP! Thank you very much.

    And how are the customers accessing the PDFs?
    What devices are they using?
    What program or apps with versions are they using?
    I this age of other then PDF eBooks formats and reader program and apss for computers and mobile devices for these formats I would look at creating the books in one or more of the eBook formats.
    Google Chrome and FireFox both have their own version of a PDF reader plug-in and they are well known to be less capable than Adobe Reader. It is possible to configure these products to use Adobe Reader.

Maybe you are looking for

  • Capture event from job cancelled in SM37 by workflow, is not posible.

    Hi, i'm learning workflows and i want capture the event ABORT o CANCELLED form job in sm37 and send email to agent recipient but i dont know as to resolve this problem. Please , i need help. Thanks.

  • Getting a oracle.jbo.NoDefException: JBO-25002:Entity Association not found

    On using VO.createRow I get an exception that say Caused by: oracle.jbo.NoDefException: JBO-25002: Definition <Association package> of type Entity Association is not found. The Exception logs shows that the error is created in a EO which does not hav

  • Eject Button Not Working

    When i press the eject button, the cd or disc inside my macbook pro does not come out, so instead i have to drag the disc to the eject icon, which is really annoying, this is not a new problem to me, but it has gotten to me, so please if anyone has a

  • How can I listen to audiobooks in my library on my iPad with iOS8.0.02?

    Sonce installing iOS8.0.02, I have been unable to sync any audiobooks in my library with my iPad. Other than "buying" the books again & downloading them direct to my iPad is there an alternative way of accessing them? ( I know I can do it through "sh

  • ALE connection for E-reruitment to ECC

    Hi Experts,    Need help with the steps to configure ALE for sending data from E-Recruitment to ECC 6.0. Or send me the relevant doc to oscar.miak at g mail Thanks. Oscar