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.

Similar Messages

  • How to send the ALV GRID output to spool by using the print button in std t

    How to send the ALV GRID output to spool by using the print button in standard tool bar.
    We have created a button in the va02 transaction.  If user click on the button the new screen will be display on that screen we are populating the alv grid output using the oops concept.  But i am unable to send the output to spool using the print button in the standard tool bar.
    I am able to display the Print parameter dialog box but i am not able to send it to spool.
    Kindly help.
    Thanks In Advance.
    G.V.Ramana

    Hi Shaik,
    There is not properties button in my print screen.
    MODULE user_command_0900 INPUT.
        WHEN 'EXCEL'.
          PERFORM excel_download.                              
        WHEN 'PRI'.
          PERFORM print_output.
    form Print_output.
    CALL FUNCTION 'RSPO_LIST_LAYOUT_FITS'
               EXPORTING
                    columns        = 80
                    device         = 'ANY '
                    lines          = 65
                    maxpenality    = 1999
               TABLES
                    layouts        = lt_layouts1
               EXCEPTIONS
                    unknown_device = 1
                    OTHERS         = 2.
          IF sy-subrc = 0.
            LOOP AT lt_layouts1.
              IF lt_layouts1-penality < 1000        AND
                 lt_layouts1-penality < l_min_penality.
                l_layout       = lt_layouts1-layout.
                l_min_penality = lt_layouts1-penality.
              ENDIF.
            ENDLOOP.
            IF NOT l_layout IS INITIAL.
              CALL FUNCTION 'GET_PRINT_PARAMETERS'
                   EXPORTING
                        mode                   = 'CURRENT'
                        line_size              = 80             "#EC *
                new_list_id            = l_new_list_id
                        no_dialog              = l_no_dialog
                        layout                 = l_layout
                   IMPORTING
                        out_archive_parameters = rs_arc_params
                        out_parameters         = rs_pri_params
                        valid                  = l_valid
                   EXCEPTIONS
                        archive_info_not_found = 1
                        invalid_print_params   = 2
                        invalid_archive_params = 3
                        OTHERS                 = 4.
              IF sy-subrc NE 0.                                 " INS SLIN
              ENDIF.                                            " INS SLIN
              IF rs_pri_params-linsz LT 80 OR
                 rs_pri_params-linsz LT gt_stack-s_lprint-width.
                gt_stack-print_line_break = 'X'.
              ELSE.
                CLEAR gt_stack-print_line_break.
              ENDIF.
              IF l_valid NE 'X'.
                rs_pri_params = ls_pri_params_sav.
                rs_arc_params = ls_arc_params_sav.
              ENDIF.
            ENDIF.
          ENDIF.
    endform.                    " Print_output
        CALL METHOD gv_cost_tot_alv_grand->set_table_for_first_display
                EXPORTING
                   is_layout         = gs_layout_cost_tot_grand
                CHANGING
                   it_fieldcatalog   = gt_fcat_cost_tot_grand[]
                   it_outtab         = gt_cost_tot_grand[].
    Please check my code

  • Hi iam getting the alv grid data in excel format but iam facing one problem

    hi iam getting the alv grid data in excel format but iam facing one problem ,
    i.e., i want it read only  but iam getting it in edit mode i use layout default in excel iam getting in xl directly but in edit mode but i need it in read only mode
    what i have to do for that  and bdy knows reply me i need it urgently.

    there's always edit-mode if you choose excel-inplace - but noone can modify/rewrite the data
    A.

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • How to get the Grand Total in Module pool Screen

    Hi Frds.
         How to get the Grand Total in Module pool Screen
    Example i have 10 different materials
    for each matarial has different moving . But in my case matarials is doesnt matter here
    10 material Moving Average price to do Frand total and display in one column...
    Please Help me out Frds.
    Regards,
    Kabil

    Hi
    You need to calculate the total in a module of PAI (or PBO) event:
    PROCESS PAI.
       LOOP.....
       ENDLOOP.
      MODULE CALCULATE_TOTAL.
      MODULE CALCULATE_TOTAL.
        GRAND_TOTAL = 0.
         LOOP AT ITAB,
            GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
        ENDLOOP.
    ENDMODULE.
    In this way the grand total will be calculated as soon as the user presses enter or another command.
    You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop,

  • I ran a disk verify & disk repair on my macbook.. both said my system was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error. Help

    m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help

    Hi,
    Here's an article for that:
    http://support.apple.com/kb/ts1901

  • How to get the alv saved in background mode without modifying the program?

    Hi all,
    I have to run a standard report(IW39) in background and save the result ALV as excel or text file.
    How to get the result saved in excel / text format if I don't want to customize the standard program?
    (In the spool, there is an option to save list in file "Spreadsheet", but the saved format is not what we expected.
    It is expected the data to be put is separated in each column / tab-delimited in the text file....)
    Many Thanks!

    I don't have any ready made coding examples, but using the F1 help on SUBMIT statement will help to get you quite a way:
    DATA list_tab TYPE TABLE OF abaplist.
    SUBMIT 'RIAUFK20'
    USING SELECTION-SCREEN
    EXPORTING LIST TO MEMORY
                  AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    Edited by: Micky Oestreich on May 18, 2009 8:18 AM

  • How to increase the alv grid size dynamically

    Hi all,
    I have to develop the report with the following requirement:
    I have to take bwkey from t001k on basis of bukrs and bwkey. this bukrs and bwkey are entered in selection-screen.
    I have to select matnr, lbkum, salk3 from mbew on basis of bwkey in selection-screen.(this is select options)
    now the ouput should be as follows:
    for example :
                        ef01                efo2               ef03
    matnr     lbkum  salk3  lbkum    salk3      lbkum  salk3         total
    700001     3       4            0        0            0            0                    7
    700010     0       0            2       1             0            0                    3
    The output should be as mentioned above.
    In the above output,
    in the first record for 700001, the total of 3 and 4 is displayed as total 7 and
    for 700010 , it is displayed as 3.
    the get the output as above in the alv grid,
    I have taken bwkeys in t001k and remaining fields from mbew and joined them in final internal table.
    now in the final table ifinal, i have the following fields,
    matnr lbkum salk3 bwkey total.
    now when i want to display the output, it is displaying as normal output like
    mantr bwkey lbkum salk3 total
    700001 etap   3         4      7
    700002 etap   1        2       3
    but i want to display in the first mentioned format.
    so i tried to attach the bwkey values in it001k(this is internal table for t001k) for the final field catalog so that this bwkeys are displayed as column headings in the final output. but it is not displaying.
    Please suggest me the solution to display the output in the above first mentioned
    format as soon as possible
    points will be awarded.
    thanking u in advance.
    A.Srinivas

    hi ,
    u can set the row count to any number , here I am setting it to 5 using the method set_visible_row_count
    1 Change the visible row count to u20185u2019
      DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
      DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE REF TO cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
        lo_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).
    u can also go thru this useful links for CONFIGUIRING ALV :
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4;jsessionid=(J2EE3417400)ID0488867050DB10849380333905377829End
    SAP List Viewer (ALV) [original link is broken]
    Configuring ALV
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9?overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706;jsessionid=(J2EE3414800)ID0133346050DB00727847586176044227End?overridelayout=true&bcsi_scan_06B6B0A4B65849C2=0
    I hope it shud solve ur query.
    regards,
    amit

  • Short dump when exporting the ALV grid report in to spread sheet

    HI,
    I am facing a problem when downloading ALV grid report in to spread sheet LIST>EXPORT>LOCAL FILE -->SPREADSHEET.
    in shotdump the cursor shows : "assign cline+cbegin(clength) to <field_cont>."
    In SAP internal table LIST,in the first record the value of the filed LENG is 0. when i have changed this value ex:10 etc it is coming properly.
    Kindly help me
    Nagendra

    Is this a standard SAP report, or your own? Can you tell what your report does, if it is a custom ALV report?

  • RE:RRI Checks how to get the data my reports.

    Hi,
    I have two reports overview&Detail reports.When i execute overview report i am getting the data.in the same report i am integrated the detail report.when i am trying to open detail report in overview report i am not getting the data it shown the error No Data Available. But data is there in Detail report when i execute individually.
    i Did the RRI Checks also,
    Pls help me how to get the data in detail reports and also give me the steps which i have follow.
    Regards
    Som

    HI All
    Let me rephrase my Question
    I have an overview report and a detailed Report Both of them are working fine individually. But when i link them using RSBBS the detailed report is not giving any data. it gives "no Data available". There is no assignment details maintained. it is having the default value. (generic and *)
    please let me know what might i be missing
    Regards
    D

  • How to get the Domain Name of recipient Email ID when the recipient in the Address Book

    Hi All,
    I am new in Outlook Development and I have stuck in a situation, please find below the situation:
    I want to get the recipient domain address when someone is sending the email. Now, the thing is that I am facing the issues when the Email Id is in the address book. For an example "John Smith @live.com" is the email ID but when this email is in
    the address book it shows "John Smith ".  I’m trying to read out the email address from an Exchange connected Outlook in time of sending the email.
    So, my question is how I can get the domain in this situation?
    Thanks in Advance..

    Hi,
    Based on my research, there is no way to change the behavior on Outlook side. Email addresses are resolved to user names by Exchange server which is expected by design.
    I'd recommend you post a new question in the Exchange forum to see if we can achieve the goal on Exchange side. For your convenience:
    https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to get the position of a tag in XML,when i am using the org.xml.sax

    Hi,
    I am able to parse a xml document.I want to get the position of a tag in the document.So that by keeping that as reference, i can access other tags.Plz help me.I am using org.xml.sax API.

    Hello Friends
    After research , I could also find another way to check the existence of a node .We can even use CHOOSE to check the existence.
    <xsl:choose>
          <xsl:when test="(/mynode)">
              your action if the mynode is found
          </xsl:when>
          <xsl:otherwise>
                    action if mynode is not found
          </xsl:otherwise>
    </xsl:choose>
    Thanks.
    Wishes
    Richa

  • Jump from alv report to FB03 screen when u click BELNR field

    Hi experts,
    I developed one alv report in that one field is there (BELNR .When u click on BELNR field it will directly go to FB03  screen.
    I wrote in this way.
      FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD
      CASE SELFIELD-FIELDNAME.
        WHEN 'BELNR'.
          READ TABLE T_FINAL INDEX SELFIELD-TABINDEX.
          SET PARAMETER ID  'BLN' FIELD T_FINAL-BELNR.
          CALL TRANSACTION 'FB03'   AND SKIP FIRST SCREEN.
      ENDCASE.
    ENDFORM.
    But it is going to initial screen then u enter year it is going to next screen but i don't want this.
    I want to go to directly fb03 screen without entering year in the initial screen.Is it possible? pls help me in this.

       IF  RS_SELFIELD-FIELDNAME = 'BELNR'.
                    READ TABLE GT_FINAL INTO GS_FINAL INDEX RS_SELFIELD-TABINDEX.
                   SET PARAMETER ID 'MBN' FIELD GS_FINAL-BELNR.
                    CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
               ENDIF.
    i m not getting the value of belnr in migo here is my code

  • Cannot load .dll files in another directory when double clicking on the .exe

    Hi all,
    I am currently using VS 2005. I have quite a few of .dll(s) that is currently residing in the same directory as the .exe
    I want to put the .dll(s) in another directory and have the application point it to that directory so that it can load the .dll(s) from there. 
    I know that I am able to set the Environment path to my desired directory in project properties->debugging. 
    However, i also know that this is only applicable for debug mode and executing the app by pressing "F5" or the "play" button.
    But when i double click on the app in the debug folder, it does not load the .dll(s) from the specified path. 
    How can I make the .dll(s) load from my specified path even when i double click on the .exe? in debug and release mode. 
    Cheers,
    nat

    Hi Nat,
    Thank you for your information.
    Your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you want to load dlls from your application, it is more related to programming, I suggest opening a new thread about your issue in some development forums based on the type of your application. For example, if you are working with Windows Forms app,
    you can consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, WPF forum is a proper forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    Best regards,
    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.

  • Regarding layout in the alv grid report

    hi gurus,
    i  have created a ALV report in which the output is coming allrt having 13 fields.now i have saved my layout depending upon some columns in the output name "AVI layout" containg 3 fileds.
    when ever i execute the report the layout having 13 fields is coming what i want that whenever i execute the report the  layout which i saved means "AVI layout" will come automatically.
    please help me................

    Hi,
    You use in your fieldcatlog NO_OUT option for all fields except those 3 fields which u want display when the report executes...
    fieldcatlog-no_out = 'X'.
    In out put when ever they want to see other fields they can select in output itself and display them....

Maybe you are looking for

  • How to put sound player with selection to a flash site?

    hi to all flash fanatic, I want to put a sound player with selection in my flash site design. Anybody can teach me how or give me a sample code or file like I'm talking about. pls. Tutorial link also big help if u knw any link tutorials that deals to

  • How to configure SolMan for interfacing with SAP Quality Center

    Hello everyone, Our company has only recently acquired and activated the permanent license for SAP Quality Center by HP. We would like QC to interface with SAP Solution Manager. My question is how to perform the configuration steps to make the interf

  • Best setup for vpn connection

    Hi all, Can anyone tell me the normal way of setting up a vpn connection, here we have a router terminating the internet link, and a cisco pix behind it ?

  • How do I update IE's Favorites from Firefox's bookmark

    how do I update my IE's Favorites from FireFox's bookmark

  • Passing arrays to Oracle Stored procedure.

    Have any body passed arrays to Oracle stored procedures while the app is running in Weblogic app server. I am able to pass the arrays with regular JDBC connection. If I run the same piece of code using a connection recieved from the datasource of web