Leaving to another screen with ALV.

Hello,
I use CL_GUI_ALV_GRID - SET_TABLE_FOR_FIRST_DISPLAY to generate an ALV list from a selection screen.
Now, I have created a button that calls another screen.
the ALV is on screen 100 and the other one is on 200.
Now, when this button is pressed, the code says, leave to screen 200.
But, however, the ALV from screen 100 still stays there and I can't seem to find a way to get rid of it.
Can anyone help here, please!
Thanks!

Hi ,
check the screen no is 200 or not.
check the button is having the same function code or not.
use the same functioncode as of button.
and in pai of 1st screen
write.
ok_code = sy-ucomm.
CASE ok_code.
when 'click'.
call screen 200.
endcase.
Regards

Similar Messages

  • Handling Double click on a Pop-up screen with ALV Grid

    Hello Experts,
    I have an issue handling double click on ALV Pop-up screen. I tried to achive this using following steps.
    1. I defined a local class in Top-include to handle double click and implemented it in the following way.
    CLASS lcl_alv_event_handler DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS:
    on_double_click FOR EVENT double_click
    OF cl_gui_alv_grid
    IMPORTING e_row
    e_column
    es_row_no.
    ENDCLASS. "lcl_alv_event_handler DEFINITION
    *~~~ Implementation code
    CLASS lcl_alv_event_handler IMPLEMENTATION.
    To handle Selection of Issue data on Screen 100
    METHOD on_double_click.
    DATA: lt_row_no TYPE lvc_t_roid,
    ls_req TYPE zcst_zirt_seltab.
    READ TABLE gt_req
    INTO ls_req
    INDEX e_row-index.
    g_req_id = ls_req-zzrequest_id.
    gv_selected = true.
    CALL METHOD go_alv->dispatch
    EXPORTING
    cargo = 'OK'
    eventid = 3
    is_shellevent = ' '
    is_systemdispatch = 'X'
    EXCEPTIONS
    cntl_error = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDMETHOD. "on_double_click
    ENDCLASS. "lcl_alv_event_handler IMPLEMENTATION
    2. Registered the event in the PBO module of the screen
    ls_events-eventid = 3.
    ls_events-appl_event = gc_true.
    APPEND ls_events TO lt_events.
    CALL METHOD co_alv->set_registered_events
    EXPORTING
    events = lt_events
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    illegal_event_combination = 3
    OTHERS = 4.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT co_alv_event_handler.
    SET HANDLER: co_alv_event_handler->on_double_click FOR co_alv.
    CALL METHOD co_alv->set_toolbar_interactive.
    3. In the PAI module of Screen, tried to handle the event 'OK' that waqs registred in PBO.
    CASE save_ok.
    WHEN 'OK'.
    Get selected line
    CALL METHOD io_alv->get_selected_rows
    IMPORTING
    et_index_rows = lt_rows
    et_row_no = lt_rows_no.
    IF NOT lt_rows IS INITIAL.
    READ TABLE lt_rows INTO ls_rows INDEX 1.
    IF sy-subrc EQ 0.
    gv_selected = 'X'.
    READ TABLE it_req
    INTO ls_req
    INDEX ls_rows-index.
    e_req_id = ls_req-zzrequest_id.
    SET SCREEN 0.
    ENDIF.
    ELSE.
    SET SCREEN 0.
    ENDIF.
    With this code what is happening is, when user double clicks a line on Pop-up screen with ALV grid data, the program is able to successfully get into the class implementation but the control is not going to PAI module to execute the OK_code handling part.
    Am I doing this in the right way? Appreciate quick suggestions. Proper posts will be thoroughly awarded with points.
    Thx.
    Minni

    Put your code into the Event handler Implementation of Double Click which is there in the PAI Module.
    Regards,
    Naimesh Patel

  • Is it possible to create a pop up screen with alv tree within it?

    I was wondering whether it is possible to create a pop up screen where an ALV tree is within the pop up screen and the user may select a record from it..
    is there a function module for such function?

    you may use class cl_gui_alv_tree and display it in a popup screen. Look at RSDEMO_DIALOGBOX_CONTROL program (popup + cl_gui_picture control), and you combine it with BCALV_TREE_04 (cl_gui_alv_tree) to replace cl_gui_picture. You may access all demos from menu SE38, Environment, Examples (and finally Controls Examples in your case)

  • My Gmail Inbox flashes up on the screen for about half a second and then disappears, leaving a blank screen with 'Done' at bottom left.

    I can log in to Gmail as usual, but when it loads I get a very brief sight of my Inbox which then disappears. Sometimes it will load properly if I hit the Back button, but not always. I can load Gmail fine with IE. I have tried deleting cookies and cache, and run a full virus scan, with no luck. I have had this problem now for several days.

    Hi, sounds like at least seriousHardware problems, most likelyVideo care/Logic board problems.
    Have you blown thedust out lately?
    Get Temperature Monitor to see if it's heat related...
    http://www.macupdate.com/info.php/id/12381/temperature-monitor
    iStat Menus...
    http://bjango.com/mac/istatmenus/
    And/or iStat Pro...
    http://www.islayer.com/apps/istatpro/
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.

  • Pass Value from one screen to another screen filter Parameter

    Hi i am developing LightSwitch HTML client using VS 2013
    need some ideas for,
    I am having one browse screen for eg please refer the below,
    BrowseEmployee 
    ID
    Name
    Age
    1
    Srikanth
    25
    2
    Ashok
    25
    when i click on any row, it will lead to another screen (Not to the same entity View screen). In the another screen i am going to show with the lot of details,
    ViewResourceAllocation
    ID
    Name
    Role
    Allocation
    1
    Srikanth
    Developer
    0.5
    1
    Srikanth
    Architect
    0.5
    2
    Ashok
    Tester
    0.6
    2
    Ashok
    Manager
    0.4
    and in this screen i am pulling from SQL view entity, this will have ID field which is common to the previous screen (BrowseEmployee)
    Now my question is,
    1. If i click the ID 1 employee in the 1st screen here i need to show only the Employee ID 1 details alone.
    2. Even i tried to pass the value as parameter to the filters in the second screen, nothing is working out.
    so it will be convenient if i pass the value as filter parameter to the other screen. 
    Can anyone please tell me how to sort out this issue ?
    thanks!

    Hi Srikanth,
    For this issue, you need pass parameter to another screen, this will help you,
    See:
    How to Open a Open Another Screen (with or without Parameters) 
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Message along with ALV output

    Hi,
    I want to display a message on the status bar along with the output . That is output and message should appear on the same screen together. Neither before the output nor after the the output.
    Best Regards,

    Hi,
    One option is to use ALV Container. Create a screen with ALV container & keep some blank lines at the footer of the screen. Use classes to call the ALV footer for populating the message.
    Thanks,
    Best regards,
    Prashant

  • How to get the alv grid report in another screen when double click on basic

    Hi.
    I have created an alv report using class cl_gui_alv_grid.I got another report in the same screen,when double clicked on basic list(using double_click event).I want to get this report in another screen.What i have to do?(In classical reports i worked with sy-lsind = 1 ,but how to do here?)
    How to set color to the selected rows in the alv grid report?I worked with change_data_from_inside method of cl_gui_alv_grid.But it didn't work out..
    With Regards,
    Ramana.

    On double click event . you will have to call another screen say 9000.
    now within screen 900 PBO.. you will have to prepare the fieldcatalog/layout.. and the table to be displayed there.
    in PAI of screen 9000, you can return to the original ALV.
    method double_click.
    call screen 9000.
    endmethod.
    " now in PBO create a module display_alv2
    module display_alv2.
    'prepare the fieldcat/layout info for new alv
    'add the data to the new ALV table
    'instantiate the grid call.. etc
    'call the ALV
    endmodule
    "in PAI
    module exit.
    case sy-ucomm.
    when 'ENT1'.
      leave to screen 0.
    endcase.
    endmodule
    while preparing the field catalog you can mention the EMPHASIZE field, whish will give color to tht column
    E.g
    *--Service Order
        ls_fieldcat-tabname   = 'IT_FINAL_VALID'.
        ls_fieldcat-fieldname = 'AUFNR'.
        ls_fieldcat-scrtext_m = 'Service Order'.
        ls_fieldcat-ref_table = 'AUFK'.
        ls_fieldcat-ref_field = 'AUFNR'.
        ls_fieldcat-col_pos   = 1.
        ls_fieldcat-outputlen = 12.
        ls_fieldcat-emphasize = 'C400'.  "This will add color to the cell
        APPEND ls_fieldcat TO fcat_valid.
    Hope this helps.

  • How to Call another screen using the ABAP Report which is displaying ALV ou

    Hello All,
    I am developing a ABAP report in which I want to transfer the stock from material to another material.
    My Report will include 3 to screens.
    The first sleection screen will display all the material with their stock value.
    When we execute the report I will get the list of materials along with their current stock. On the top of the output screen I want the Execute button. Also , each line of the output should have checkbox or the ALV provides the functionality of editing one cell like that.....Once the user tick the checkbox or the cell....then I want to move to another screen where user can enter the Quantity and then user will tick ok and then I will call one function module so that the material documnet is posted and transfer of posting form material to material is done successfully.
    Could anyone please help me out how to call another screen from the output screen where user can enter the Quantity amount....
    I dont want to use the Dialog programming.....I want to create the simple ALV Abap report.
    Regards,
    Komal Bhutada.

    Hi Raymond,
    Thanks for the input...I will try this in my code .....
    Can you please help me how to insert the checkbox in the ALV Output....so that I can select one of row and then press execute to process further?..
    Thanks for the information.
    Regards,
    Komal.

  • At log-in Firefox stated that it was having a problem closing tabs and directed me to click a tab to continue, which I did, and sexually explicit images appeared on the screen and when I tried to close the screen, another screen popped up with additional

    At log-in Firefox the screen opened up with the message "Oops, We're embarrassed, we are having trouble closing tabs" or similar wording directing me to click on a tab to continue, which I did. At which time a screen full of rows of thumbnail pictures of a young girl in appeared on the screen. Some of the pictures had the girl imitating a sexual act. When I tried to close out of the screen by clicking on the 'X' at the top right of the screen, another screen opened with another larger picture of this little girl. I finally got out of Firefox. When I open it up again the message wasn't on the screen. As these pictures were disturbing I cleared them out of my history.
    My questions are - 1. Since these pictures appeared to be of a minor, can you backtrack to the source to find out where they originated and have something done about the individual who posted them? And,
    2. - Did my clicking on the link as directed - by Firefox, I thought - open my computer up to the personal information on my computer being compromised?
    == This happened ==
    Just once or twice
    == Around 11:30 on Sat June 19th

    It looks like you have some malware.
    Have you tried running an antivirus scan?
    Some free antivirus options:
    [http://www.avast.com/eng/programs.html]
    [http://www.avira.com/en/download/index.html]
    Malware program recommendations:
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/]
    AdAware - [http://www.lavasoftusa.com/software/adaware/]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    [http://www.spywarewarrior.com/index.php]
    [http://forum.aumha.org/]
    [http://www.spywareinfoforum.com/]

  • Addition of a new field "Leave Details" in the LTA screen with dropdown val-ues from Infotype 2001 subtype ITEL. From the current calendar year in ESS

    Hi Experts,
    we are using portal 7.3 version,Our requirement  is addition
    of a new field “Leave Details” in the LTA screen with dropdown values from Infotype
    2001 subtype ITEL. From the current calendar year in ESS.The new field should
    be available only for the claim type LTA claim or claim against advance.
    please find the below screen shot and details.
    Current View
    Component: HRESS_CLMS_WD_EMCR
    Personalization: 4370750342A6297CC184E2B07FE6D13E
    Window: W_CLM_DYN_UI
    View: V_CLMS_DETAIL
    Application Component: PY-XX-RS
    Kindly help me how to add this field and in which method can i implement code.
    Thank you in advance
    Regards,
    Vanitha

    Hi Shankar Reddy,
    Business requirement is  the new field  should display the list entry in Infotype 2001 for the calendar year as selection option for employee. they would like to know ITEL subtype claim,
    Example.employee no: EE#9941
    As per screen shot you may see for EE#9941 there are 2 Leave requests.
    So in the leave details the selection drop down menu option or any other way  should be display 2 lines.
    Regards,
    Vanitha

  • HHola I update my Apple TV and I am frozen screen with the photo of Apple TV and iTunes symbol and a cable connected from one to another device, it happens and how to fix it Apple TV

    HHola I update my Apple TV and I am frozen screen with the photo of Apple TV and iTunes symbol and a cable connected from one to another device, it happens and how to fix it Apple TV

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

  • Printing multiple screen objects (ALV+GFW) with only 1 print dialog pop-up?

    All,
    This is related to my previous post at:
    Re: How to print multiple ALV Grids with only one print dialog?
    but there is still one open question...
    My requirement is to create reports that will be called through portals; those reports are a combination of charts and the associated list output describing the data of each chart.
    In my first report (4 charts), I created a screen with 8 custom containers: 4 on the left hand side for the charts and 4 to the right for the list output.
    To create the charts I am using the Graphical Framework (GFW) and for the ALVs the new CL_SALV* classes.
    Everything works fine on the screen, but the users also want to print the report. I got them to the point where they will accept a separate printout (page) for every object (e.g. chart and ALV) of the report.
    I put a print button through the GUI status on the screen and trigger the associated print events in the program; this works fine as well, but the problem is that for every output (in this case 8) a print dialog appears and prompts the user for a printer selection. This the users won't accept and - quite frankly - I wouldn't either ;).
    Now, in my previous post someone pointed me to the use of the REUSE* function modules to append the ALVs and then print them together; this works and reduces the print dialog to only one for the ALVs.
    Even though this is an option, I am still kind of hesitant: why using all the great new OO stuff via the CL_SALV* classes to bring the ALVs on the screen, just to go back to the old approach for the printouts???
    Especially since I still can’t figure out how to combine the GFW objects in one print – or even better – how to suppress the dialog by passing the information behind the scenes either.
    As of now, I have 2 options:
    - 8 print dialogs (OO only)
    - 5 print dialogs (using the REUSE approach for the ALVs and triggering the chart prints individually)
    Does anyone see a way to bring it down to ONE?
    Thanks,
    Guenther
    Message was edited by: Guenther Schober
    Update: I found the solution for the ALVs!
    Even though I am using the
    "new-page print on parameters G_S_PRINT_PARAMETERS no dialog" statement, the dialogs still appeared; reason for this was that I also set:
    "L_O_PRINT->SET_PRINT_ONLY( IF_SALV_C_BOOL_SAP=>TRUE )" before I output the ALV table.
    After removing this, the ALVs are printing without pop-up!!!
    Unfortunately the GFWs still prompt for the printer selection

    Hi,
    Mine is also same requirement and i could not even generate multiple print dialogs.Can i have your code to compare with my code please.
    I am displaying container information on 200 screen PBO. I have added one custom print button to the grid tool bar(remaing container toolbar print buttons i have disabled). Once i click on custom print button a popup is coming and when i click on continue(one container informtion print is coming) and  it is coming to 100 screen(in this, i am calling selection screen as a subscree) and subsequent print dialog is not coming.
    Thanks & Regards
    Ramu

  • Another iBook cannot get past the grey screen with spinning gear

    I have read the other posts on iBooks not starting up. I too have used Onyx recently but this was to cure the problem of a freeze. Now start up cannot get past the grey screen. PRAM has been zapped and safe mode will not work. Worse, the CD drive will take CDs so cannot go back to start up disk.
    Bizarrely, a visit to the Apple Store and the iBook started no problem. System was reinstalled using archive option and various health checks apparently showed no problems. But then got back home and again start up froze at grey screen with spinning gear. I have left it on this for over 15 minutes but to no avail. I have tried to connect to another ibook using T key to get target mode. I'm not sure if I am doing this right. I have started up working iBook plugged in the firewire to both machines and then started up ailing iBook holding down T key. 2nd iBook wont start at all.
    Any suggestions?

    An Archive and Install will preserve you user settings and data. You will need a minimum of 5 GB free on the hard drive to perform an A&I; you can reduce the space required by about 1 GB by selecting the option to install language support only for the language you use (assuming you don't need multiple languages).
    However, after seeing your other post (BTW, it'll be easier to keep track if relted issues are in the same thread), you do not want to try an A&I if Disk Utility is reporting anything about 'could not be repaired'. Doing so will would ensure problems down the road, if it worked at all. It's possible for one disk problem to mask another. Whenever Disk Utility (or any other repair utility) reports making repairs, it's good practice to repeat the repair until it reports no problems found or it becomes clear it cannot repair the disk.
    DiskWarrior has an excellent track record at repairing problems that Disk Utility cannot (especially Disk Utility versions prior to OS X 10.4.2).
    If the drive cannot be repaired, you may be able to keep it by doing an erase install with the write zeros (one pass) option. That will update the hard drive firmware record of bad disk sectors to avoid using. If there are only a few bad sectors, that may let you keep using the hard drive for several more years. An erase install will do just that to your data, through. If you have access to another Mac with either a large amount of free disk space of a DVD burner, you can try using the other Mac as host and the eMac as target in FireWire target disk mode. You can run the host's copy of Disk Utility on the eMac hard drive, and hopefully be able to mount the emac HD so that you can back up the data in your Home directory.

  • HT1379 I have  lost everything on my mac, a gray screen with a folder and question mark is blinking. i hav another mac that is running slowly, how can I boot and reinstall os x Lion, i do not have the start up disc with me.

    I have  lost everything on my mac, a gray screen with a folder and question mark is blinking. i hav another mac that is running slowly, how can I boot and reinstall os x Lion, i do not have the start up disc with me.

    Welcome to the Apple Support Communities
    Lion uses Recovery to reinstall OS X. Press Command and R keys when your Mac starts, open Disk Utility, erase the drive and reinstall Lion. The other Mac has probably got its hard disk damaged, so take the Mac to an Apple Store

  • How can I share my screen with another apple computer?

    How can I share my screen with another apple computer?

    By enabling Screen Sharing in the Sharing preferences. Both computers need to be connected to your local network, preferably by Ethernet.

Maybe you are looking for

  • Installation AS 9.0.2 on RedHat 9.0 Linux

    I have problem during installation Oracle AS 9.0.2 on RedHat 9.0 After running installation process (2% in process bar) it process stop. In /u01/home/oracle/oraInventory/logs/oraInstall2005-01-04_02-20-10PM.err I see: java.lang.UnsatisfiedLinkError:

  • How do I get my iOS8 Health data back after a full iTunes backup and restore?

    I was having battery issues with iOS 8.0.2 and was asked by Apple to back my phone up, restore it and then use it as a new phone in order to test the battery performance. I did this but upon restoring my phone from its backup today none of my Health

  • Import option not working - please help

    Hi I have MacBook Pro Retina 15 inch Early 2013. I use Motion (latest update 5.1.2) to convert my photo sequences to video files (time lapse). After importing first sequence I can export it with no problem. When I try to use Import option again nothi

  • Problem with T43 File rescue

    I've been having computer trouble, now it won't start up except in rescue in recovery mode. When I try to rescue files to my extrenal harddrive, it will work for the first few files, but then will give a message "Data Error (Cyclic Redundancy Check)"

  • Single email written but with different names in it at various points ?

    I have a friend who has an new imac and wants to send an email to a bunch of people in his mailing list but at wants at various points in the same letter to have the persons individual names inserted so the letters are all personalized. Is this possi