Alv is not appearing in the same Selection Screen

Hi people..
First time using  cl_gui_docking_container.
I have a problem, my alv is not appearing in the same Selection Screen.
is there somethign wrong with my code? it doesnt even show a dump or catch.
Regards
DATA: lo_dock TYPE REF TO cl_gui_docking_container,
       lo_cont TYPE REF TO cl_gui_container.
DATA: gr_table      type ref to cl_salv_table,
       gr_functions  type ref to cl_salv_functions,
       gr_display    type ref to cl_salv_display_settings,
       gr_columns    type ref to cl_salv_columns_table,
       gr_column     type ref to cl_salv_column_table,
       gr_sorts      type ref to cl_salv_sorts,
       gr_agg        type ref to cl_salv_aggregations,
       gr_filter     type ref to cl_salv_filters,
       gr_layout     type ref to cl_salv_layout,
       color         type lvc_s_colo,
       key           type salv_s_layout_key.
   SELECT * INTO TABLE tbl_datos_items FROM zsd_micros_bd.
CHECK lo_dock IS INITIAL.
  CREATE OBJECT lo_dock
       EXPORTING
         repid = sy-cprog
         dynnr = sy-dynnr
         ratio = 70
         side  = cl_gui_docking_container=>dock_at_bottom
         name  = 'DOCK_CONT'.
     IF sy-subrc <> 0.
       MESSAGE 'Error in the Docking control' TYPE 'S'.
     ENDIF.
TRY.
lo_cont ?= lo_dock.
cl_salv_table=>factory(
exporting r_container      = lo_cont
             container_name = 'DOCK_CONT'
             list_display   = if_salv_c_bool_sap=>false
importing r_salv_table = gr_table
changing t_table = tbl_datos_items  ).
CATCH cx_salv_msg .
ENDTRY.
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
  gr_display = gr_table->get_display_settings( ).
  gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
  gr_display->set_list_header( 'Items de Ventas' ).
  gr_table->display( )

Hi ,
First you have to create you own screen ( dynpro )  with a screen number ( 0101 for exemple )  , you need to pu a custom control in it , name the custom control ( lo_cont )
For the screen created you need to create a module for the PBO , in this module you sould put you code for displaying the liste :
Module STATUS_0101 output.
TRY.
lo_cont ?= lo_dock.
cl_salv_table=>factory(
exporting r_container      = lo_cont
             container_name = 'DOCK_CONT'
             list_display   = if_salv_c_bool_sap=>false
importing r_salv_table = gr_table
changing t_table = tbl_datos_items  ).
CATCH cx_salv_msg .
ENDTRY.
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
  gr_display = gr_table->get_display_settings( ).
  gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
  gr_display->set_list_header( 'Items de Ventas' ).
  gr_table->display( ).
Endmodule.
and give the screen number when calling  lo_dock 
CREATE OBJECT lo_dock 
       EXPORTING
         repid = sy-cprog
         dynnr = '0101'.
tested
Regards

Similar Messages

  • How can i  display output in the same selection screen?

    I've a requirement. Suppose in my selection screen there are three input fields. On the basis of this selection screens input It will  display the output in the same selection screen. Can it be possible? .
    Can it be possible to modify the default screen no for the selection screen 1000?
    Thanks in advance.
    Abhijit

    Hi Abijit,
    Whatever changes made in STANDARD SELECETION SCREEN 1000 or screens generated using 'SELECTION-SCREEN' statements, are not permanent.
    It will get back to its original appearance, while you execute again or some time later.
    Whenever you get into 'CHANGE' mode of these screens, an information will be displayed as follows ;
    Selection screen: Report generation makes screen
    changes ineffective
    Regards,
    R.Nagarajan.

  • DVD drive does not appear on the "Computer" drive screen

    I have lost access to the DVD drive. It does not appear on the "Computer" drive screen.
    It will start up with a disk inserted but shuts down after a approx 20 seconds without having opened any files.
    The DVD light comes on when it first starts up and then goes off within a few seconds.
    I have re-installed the Toshiba driver and still no access.
    I believe it started when I installed a new WD 1Tb external drive which setup its virtual CD drive on the E: drive which was used by the DVD drive. I have moved the external drive to G: and left the E: drive letter vacant but still not working.
    Any ideas how I can solve this? It would be greatly appreciated.

    I don't know if this will help you but check it anyway
    http://aps2.toshiba-tro.de/kb0/FAQ8101LA0000R01.htm

  • Why do columns not appear in the same order as the fields on my imported form?

    Hello All
    I am an Acrobat X user and make numerous forms through Acrobat.  However, when I import the file into FormsCentral, the order of the fields in the table do not correspond to the order in which they appear on my form.  The fields on my form are in a calendar format so they appear from left-to-right.  I'm wondering if when I do the import, it is read by FormsCentral from top-to-bottom instead or is it random.  It's a real inconvenience and severely inhibits my workflow when I have to rearrange the columns to work with the data.  Any suggestions or insight would be appreciated.
    Thanks
    Daryl

    Files have no order. File management programs like the finder or windows explorer will display files according to your selected display sort. Typically alpha by file name, date created, size, date modified. So to view them in a selected order you need to sort on an attribute that accomplishes that. The easiest usually is to export photos using the sequential naming option then displaying in alpha order
    LN

  • Displaying alv as output on the same selection screen

    Hi Gurus,
                 Happy new Year!! .I have got a requirement in which I have to pass three fields i.e. Matnr (as range) , Storage location (as Range) and Plant (as Parameter). The result is to display these three fields and the storage Bin display mode only and an additional field where the user will enter the new storage bin number (input mode). I have to display these fields on the selection screen itself and when the user enters the new storage bin location and press the save button, the program is suppose to update the database using the call transaction method.
             Can any one suggest how could i take initaitive to display the output alv on the selection screen.
    Is it possible to dispaly these values on the selection screen itself  ? 
            Your suggestions are of great value and importance to me.
    Thanking you,
    Furquan.

    HI,
    Just write ur ALV code under AT SELECTION-SCREEN statement.
    It will automatically display ur ALV on the same screen.
    Regards,
    Kusuma.

  • Why do the songs in my playlist not appear in the same order on my ipod as i have them on the computer

    When I arrange the songs on my ipod the way I want them, I disconnect my ipod from the computer and they are not in the order I created. Why does this keep happening--it makes me insane.  I have tried clicking "manually manage" vs. "not manually manage" and neither works.

    Sort by Date Added instead of Date Modified.
    The Date Modified can change itself for a bunch of reasons, which are not really interesting. The Date Added is stable and more meaningful.

  • Purchased music albums' artwork has not appeared in the album artwork screen saver since the 11.0.1 update. how can it be fixed?

    As said in the topic.

    Yes it can be moved into music videos by right clicking on the music video, selecting get info and clicking on the video tab on the top of the little window that opened up and open up the video kind menu and select music video out of the list.
    HP Compaq   Windows XP  
    HP Compaq   Windows XP  

  • Can I make a note appear on the standby/autolock screen?

    I would like to write myself a simple note and have it displayed on my iPhone. Kind of like a wallpaper situation but being able to write the text myself.
    Is this possible??
    Thanks
    mike

    Well, I can think of the hard way to do this...using a one's iPhone take a picture of the note - whether it is on screen or physical - set it as wallpaper.
    But, I agree Michael, gimme!
    joy...suzanne

  • Messages typed not appearing on the QWERTY display...

    Hi..
    Im having this prob which is when i type a message its not appearing on the small white screen. This happens to both mode for mini QWERTY and also Full Screen QWERTY. So when i use the Full screen mode i cant see the words that i typed untill i click the green colour tick mark.
    Pls help me if you guys know whats the prob...
    Thanks

    Hi Venkat,
    Yes thier is a problem in your config.
    Go to SPRO -> MM ->Purchasing>Confirmation->Setup confirmation control.
    Check your setting for the the Inbound Delivery Make it Not Relevant for POD
    and further select it and go to Confirmation Sequence and select AB -Order Acknowledgment and check box MRP-RElevant and then select LA-Inbound Delivery and Check all three boxes save it and then check in Me21n i think it should work
    Lekhram

  • How can I cancel my subscription if the "Cancel Plan" link does not appear in the screen?

    From your manual, you instruct the users to cancel the plan by accessing the manage plan screen and then click on the Cancel Plan button.
    However, how can the user cancel the plan if the Cancel link does not appear in the membership details screen?

    You need Adobe support to cancel a subscription
    -cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html
    -or http://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Error while transporting the Custom  Selection Screen to Production

    Hi All ,
    I have created a custom selection screen based on selecting the HR REPORT CATEGORY which gets selected under attributes section of an Executable Program.
    Every selection  screen got replicated till quality  but  at Production unable to see the same selection screen
    Please provide any suggestion to resolve my probs...
    Regards,
    Dheeraj

    Hi,
    This happened to me once.
    I have checked my transport logs and found that everything was successfully transported in order and without errors. But the selection screen was not coming in Productio system. So i have tried activaing and generating the program once which solved my problem.
    Hope it helps you too.
    Thanks,
    Venkatesh.

  • Need solution for the following(Selection Screen)

    Hi all,
    currently iam working with report program,there i need to populate one field in the selection screen based on the another parameter in the same selection screen.
    iam having field called work center as a parameter with the search help.
    This search help is providing the corresponding plant for the particular work center.
    Now what i need to do is,if i select the work center thru F4 help,i need the correseponding plant to get populated in the other textbox.
    Currently iam having that work center field as parameter,
    now i need another textbox for the plant adjacent to this workcenter textbox,in this textbox only i need that corresponding plant.
    Following is the code for that workcenter textbox.
    PARAMETERS:P_ARBPL LIKE CRHD-ARBPL MATCHCODE OBJECT CRAM.
    Note: The Serach help CRAM is having corresponding  plant with the workcenter.

    Hi swaminathan,
    1. If u want to DIRECTLY
       populate other fields
       based upon selection,
      then we have to use our own
      selection function.
    2. just copy paste this code in new program.
      ( it will display help for BUKRS
      and AS SOON AS the user selects some company code,
      the other fields
      get populated AUTOMATICALLY)
    3.
    REPORT abc.
    DATA : dd     LIKE     TABLE OF dselc WITH HEADER LINE. "*--- IMPORTANT
    DATA : ft     LIKE     TABLE OF dfies WITH HEADER LINE.
    DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
    PARAMETERS : bukrs LIKE t001-bukrs .
    PARAMETERS : butxt LIKE t001-butxt.
    PARAMETERS : ort01 LIKE t001-ort01.
    PARAMETERS : waers LIKE t001-waers.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR bukrs.
       SELECT * FROM t001 INTO TABLE t001.
    IMPORTANT
       REFRESH dd.
       dd-fldname = 'BUTXT'.
       dd-dyfldname = 'BUTXT'.
       APPEND dd.
       dd-fldname = 'ORT01'.
       dd-dyfldname = 'ORT01'.
       APPEND dd.
       dd-fldname = 'WAERS'.
       dd-dyfldname = 'WAERS'.
       APPEND dd.
    *------- IMPORTANT
       REFRESH ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'BUTXT'.
       APPEND ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'WAERS'.
       APPEND ft.
       ft-tabname  = 'T001'.
       ft-fieldname = 'ORT01'.
       APPEND ft.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
         EXPORTING
          ddic_structure  = 'T001'   "*----- IMPORTANT IF STANDARD STRUCT
           retfield        = 'BUKRS'
           dynpprog        = sy-repid
           dynpnr          = sy-dynnr
           dynprofield     = 'BUKRS'
           value_org       = 'S'
         TABLES
           field_tab       = ft "*---- IMPORTANT
           value_tab       = t001
           dynpfld_mapping = dd   "* IMPORTANT
         EXCEPTIONS
           parameter_error = 1
           no_values_found = 2
           OTHERS          = 3.
    regards,
    amit m.

  • Driver does not appear in the selection tab Windows8

    NDIS protocol driver does not appear in the Selection Tab and hence I can not run any tests on it. The client operating system is Windows 8 64bit Pro Premium. I tried reinstall driver several times, reboot client and studio machines, but with no results.
    Client itself is connected to the studio and is in "Ready" state.
    There was no problem running the test on the same driver with Win7 64bit client OS.
    HCK version is 8.59.29854
    The driver is build with DDK7.1.0
    Any hints on how to debug this would be helpful.
    Dmitry

    Have you uninstalled and re-install the HCK client on the test system?  This can cause the entry on the controller to not match up with the actual client system.  If this is the case, and you have done no testing on the system (as all results will
    be lost), please try this:
    1) Uninstall the DTM client from the test system.
    2) Delete the client entry from HCK studio in the machine management section.
    3) Reinstall the DTM client on the test system.
    4) Wait for client entry appear in the "Default Pool"
    5) Change client status to "Reset", wait for it to become "Ready", and try locating the target as I describe above.
    Paul - This posting is provided "AS IS" with no warranties, and confers no rights.

  • HT204093 the body of my email does not appear to the right when I select a mail message.

    The body of incoming mail messages do not appear to the right when I select a mail message?
    Anybody know how to adjust this?
    Jgm

    Hello!
    Please try these steps: Can't see email message content

  • Been using an Avastor HDX-800 for storage and backup, also a SUPERDISK for smaller stuff; recently the SUPERDISK does not appear on the screen, and the light blinks while you hear it spin, also the Avastor has started to have the same problem, both USB

    Been using an Avastor HDX-800 for storage and backup, also a SUPERDISK for smaller stuff; recently the SUPERDISK does not appear on the screen, and the light blinks while you hear it spin, also the Avastor has started to have the same problem, both USB conncected, both worked well before, but both now spinning, blinking, and not showing up on the screen as before,
    Interestingly they both appear in the System Profiler, but just not working the same as before
    I have tried other USB ports, but the same responce,

    yes I did reset the PRAM, but no benefit, still the same problem
    my usb devices are:  keyboard, mouse, printer, SD-USB-M3, and LaCie d2 DVDRW:
    the mouse and printed are plugged into the keyboard: i have tried to move, these around, and have even tried just the mouse, printer and SD-USB-M3, but still the same problem
    here is a cut and paste of the current  "System Profiler>Hardware>USB"   (usb device tree)
    USB Bus:
      Host Controller Location:          Built In USB
      Host Controller Driver:          AppleUSBOHCI
      PCI Device ID:          0x0026
      PCI Revision ID:          0x0000
      PCI Vendor ID:          0x106b
      Bus Number:          0x18
    Hub in Apple Pro Keyboard:
      Version:          1.22
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Mitsumi Electric
      Product ID:          0x1002
      Vendor ID:          0x05ac  (Apple Computer, Inc.)
    HL-1270N series:
      Version:          1.00
      Bus Power (mA):          100
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Brother
      Product ID:          0x0008
      Serial Number:          L9J286292
      Vendor ID:          0x04f9
    Basic Optical Mouse:
      Version:          0.00
      Bus Power (mA):          100
      Speed:          Up to 1.5 Mb/sec
      Manufacturer:          Microsoft
      Product ID:          0x0084
      Vendor ID:          0x045e
    Apple Pro Keyboard:
      Version:          1.22
      Bus Power (mA):          250
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Mitsumi Electric
      Product ID:          0x0204
      Vendor ID:          0x05ac  (Apple Computer, Inc.)
    SuperDisk USB 120MB drive:
      Version:          0.0e
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Imation
      Product ID:          0x0002
      Vendor ID:          0x0718
    Hub in Apple Pro Keyboard:
      Version:          1.22
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Mitsumi Electric
      Product ID:          0x1002
      Vendor ID:          0x05ac  (Apple Computer, Inc.)
    HL-1270N series:
      Version:          1.00
      Bus Power (mA):          100
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Brother
      Product ID:          0x0008
      Serial Number:          L9J286292
      Vendor ID:          0x04f9
    Basic Optical Mouse:
      Version:          0.00
      Bus Power (mA):          100
      Speed:          Up to 1.5 Mb/sec
      Manufacturer:          Microsoft
      Product ID:          0x0084
      Vendor ID:          0x045e
    Apple Pro Keyboard:
      Version:          1.22
      Bus Power (mA):          250
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Mitsumi Electric
      Product ID:          0x0204
      Vendor ID:          0x05ac  (Apple Computer, Inc.)
    HL-1270N series:
      Version:          1.00
      Bus Power (mA):          100
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Brother
      Product ID:          0x0008
      Serial Number:          L9J286292
      Vendor ID:          0x04f9
    Basic Optical Mouse:
      Version:          0.00
      Bus Power (mA):          100
      Speed:          Up to 1.5 Mb/sec
      Manufacturer:          Microsoft
      Product ID:          0x0084
      Vendor ID:          0x045e
    Apple Pro Keyboard:
      Version:          1.22
      Bus Power (mA):          250
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Mitsumi Electric
      Product ID:          0x0204
      Vendor ID:          0x05ac  (Apple Computer, Inc.)
    SuperDisk USB 120MB drive:
      Version:          0.0e
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          Imation
      Product ID:          0x0002
      Vendor ID:          0x0718
    USB Bus:
      Host Controller Location:          Built In USB
      Host Controller Driver:          AppleUSBOHCI
      PCI Device ID:          0x0026
      PCI Revision ID:          0x0000
      PCI Vendor ID:          0x106b
      Bus Number:          0x19
    LaCie d2 DVDRW USB:
      Capacity:          451.76 MB
      Removable Media:          Yes
      Detachable Drive:          Yes
      BSD Name:          disk2
      Version:          0.00
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          LaCie
      OS9 Drivers:          No
      Product ID:          0x1011
      Serial Number:          FFFFFFFFFFFF
      S.M.A.R.T. status:          Not Supported
      Vendor ID:          0x059f
    LaCie d2 DVDRW USB:
      Capacity:          451.76 MB
      Removable Media:          Yes
      Detachable Drive:          Yes
      BSD Name:          disk2
      Version:          0.00
      Bus Power (mA):          500
      Speed:          Up to 12 Mb/sec
      Manufacturer:          LaCie
      OS9 Drivers:          No
      Product ID:          0x1011
      Serial Number:          FFFFFFFFFFFF
      S.M.A.R.T. status:          Not Supported
      Vendor ID:          0x059f

Maybe you are looking for