Alv popup

Hi,
I have a hierarchial alv list which displays header and item details. When i double click on a particular sold to value, i want to get the corresponding customer details in a popup window.
May i know how to do this.
Thanks

Try example code
call function 'REUSE_ALV_POPUP_TO_SELECT'
        exporting
          i_title                 = 'Test Popup'
          i_selection             = ' '
          i_zebra                 = 'X'
          i_tabname               = '<Internal table name>'
          i_screen_start_column   = 05
          i_screen_start_line     = 08
          i_screen_end_column     = 140
          i_screen_end_line       = 20
          it_fieldcat             = <fieldcat for internal table>
          i_callback_program      = sy-cprog
          i_callback_user_command = 'USER_COMMAND_DATA'
        tables
          t_outtab                = <internal table>.
Regards
Vinod

Similar Messages

  • How to do ALV Popup in a new Function module

    Hi experts,
    This is the Client Requirement.
    " Flow Diagram/Pseudo Code:
    Attach a data flow diagram. Write brief pseudo code in plain English.  Be sure to include all access data plans.
    -     FM interface:
    -     Import: company code/ vendor#.
    -     Export: default_line,  type y4ap_t11
    -     Exception: NO_DATA or CANCELED
    In the FM code, past current z_venddefault code, except for write statements. After internal table is generated, show it in ALV popup. On ALV, add a OK/Cancel button. On OK, ensure that one line is selected (otherwise throw warning), and then fill export structure with that line’s G/L account, cost Center, and internal order# fields. Then close the ALV and end FM. For Cancel, just close the ALV end the FM.
    For an example of how to build such popup ALVs, take a look at FM Y4AP_SELECT_APPROVER.
    Unit Test Plan:
    Just use co.code 3000/vend# 1000 to test this FM."
    here i need to do is there is a simple report program by displaying in list.
    But now i need to do is , i have to put that code in a new function module and there i need to display it in alv grid.
    How to do this can anybody help me.
    It's a urgent i need to submit today to client.
    Thank you
    Basu

    Hi,
    Check this.
    select several rows in alv
    It will be helpful.
    Regards,
    J.Jayanthi

  • Download to excel in not coming in alv popup

    Hi All,
    Please have a look at the demo program SALV_DEMO_TABLE_POPUP.  The ALV displayed as a popup don not have button to download the data into a excel sheet/ spread sheet. Can someone please suggest how it can be added to alv toolbar ?
    I  have similar requirement to display alv as popup with that button.
    I dont have any choice to use any other way to create ALV apart from CL_SALV_TABLE class.
    Regards
    Vishal Kapoor

    Hi Vishal,
    I have a same problem like you got. I am not able to get download option in ALV popup though I am using the below code.
    Could you please let me know how you fixed this issue? I mean how you got the download option button in pop up screen? Thanks in advance. Request you please reach out me at [email protected]
    DATA: lo_table      TYPE REF TO cl_salv_table,
                   lo_functions  TYPE REF TO cl_salv_functions_list,
                   lo_columns    TYPE REF TO cl_salv_columns.
             DATA: lt_data TYPE TABLE OF zehs_stderr.
             TRY.
                 cl_salv_table=>factory(
                 IMPORTING
                 r_salv_table = lo_table
                 CHANGING
                 t_table      = it_zehs_stderr ).
               CATCH cx_salv_msg.
             ENDTRY.
             lo_functions = lo_table->get_functions( ).
             lo_functions->set_all( abap_true ).
             lo_columns = lo_table->get_columns( ).
             lo_columns->set_optimize( abap_true ).

  • ALV Popup in userexit

    Hi,
    An ALV Grid Popup has to be displayed and the code for this has to be written in the user exit.
    The requirement is such that when a particular button is clicked on the cat3_iscr transaction the ALV Grid popup should appear with still the cat3_iscr screen visible in the background.
    The appearing ALV Popup should contain the features of a standard ALV Grid (standard buttons of a toolbar, …)
    It would be great if you can suggest a solution for this.     
    Thanks,
    Siva

    I have written a generic function module to do just this.
    Here is the code.
    function z_popup_with_alvgrid.
    *"*"Global interface:
    *"  IMPORTING
    *"     REFERENCE(ENDPOS_COL) TYPE  I DEFAULT 90
    *"     REFERENCE(ENDPOS_ROW) TYPE  I DEFAULT 22
    *"     REFERENCE(STARTPOS_COL) TYPE  I DEFAULT 10
    *"     REFERENCE(STARTPOS_ROW) TYPE  I DEFAULT 2
    *"     REFERENCE(TITLE) TYPE  C OPTIONAL
    *"     REFERENCE(FIELDCAT) TYPE  LVC_T_FCAT
    *"  TABLES
    *"      I_ALV
      call screen 0200 starting at startpos_col
                                   startpos_row
                         ending at endpos_col
                                   endpos_row.
    endfunction.
    *      Module  STATUS_0200  OUTPUT
    module status_0200 output.
      set pf-status '0200'.
      set titlebar  '0200' with title.
      data: alv_container  type ref to cl_gui_custom_container.
      data: alv_grid       type ref to cl_gui_alv_grid.
      data: xfieldcat type lvc_t_fcat.
      xfieldcat = fieldcat.
    * Create Controls
      create object:
         alv_container
                 exporting
                       container_name    = 'ALV_CONTAINER',
         alv_grid
                 exporting
                       i_parent          =  alv_container.
    *  Set grid for first display
      call method alv_grid->set_table_for_first_display(
          exporting
               i_structure_name       = 'I_ALV'
          changing
               it_outtab       = i_alv[]
               it_fieldcatalog = xfieldcat[] ).
    endmodule.
    *     Module  USER_COMMAND_0100  INPUT
    module user_command_0200 input.
      case sy-ucomm.
        when 'CONTINUE' or 'CANCEL'.
          set screen 0.
          leave screen.
      endcase.
    endmodule.
    Create the screen 200.  In that screen, put a container and name it ALV_CONTAINER.  As you can see from the interface, you must pass the field catalog and of course the internal table which holds the data.
    Here is an example of the call to the function module.
        call function 'Z_POPUP_WITH_ALVGRID'
          exporting
    *       ENDPOS_COL         = 90
    *       ENDPOS_ROW         = 22
    *       STARTPOS_COL       = 10
    *       STARTPOS_ROW       = 2
            title              = 'This is the title'
            fieldcat           = fieldcat
          tables
            i_alv              = i_alv.
    Regards,
    Rich Heilman

  • Problem with checkbox column in ALV popup (ABAP)

    Hi, the problem is: I've created the code below for maintaining a popup with an ALV table inside. One of the column is a checkbox field. When I run first time the popup, it run well, when I clode the popup window and then I run for second time the popup, i see all the columns except those with the checkbox. Someone else have encountered the same proble, if yes someone could me explain that? Here's the code:
    method WDDOINIT .
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_This->wd_CpUse_ALV( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_ALV( ).
      data:
      l_VALUE type ref to Cl_Salv_Wd_Config_Table.
      data:  l_tabset  type ref to IF_Salv_Wd_Table_SETTINGS.
    l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
      l_tabset ?= l_value.
      l_tabset->set_read_only( abap_false ).
      l_tabset->SET_VISIBLE_ROW_COUNT( 15 ).
      l_tabset->set_width( '500' ).
      l_tabset->SET_DESIGN( VALUE = CL_WD_TABLE=>E_DESIGN-ALTERNATING ).
    data:
        lr_std_functions type ref to if_salv_wd_std_functions,
        l_table          type ref to if_salv_wd_function_settings.
      lr_std_functions ?= l_value.
      lr_std_functions->SET_EXPORT_ALLOWED( Abap_false ).
      lr_std_functions->SET_VIEW_LIST_ALLOWED( Abap_false ).
      lr_std_functions->SET_PDF_ALLOWED( Abap_false ).
      lr_std_functions->SET_DIALOG_SETTINGS_ALLOWED(  Abap_off ).
      lr_std_functions->SET_DIALOG_SETTINGS_AS_POPUP( Abap_off ).
      lr_std_functions->SET_DISPLAY_SETTINGS_ALLOWED( abap_off ).
      lr_std_functions->SET_EDIT_APPEND_ROWS_ALLOWED( abap_off ).
      lr_std_functions->SET_EDIT_APPEND_ROW_ALLOWED( abap_off ).
      lr_std_functions->SET_EDIT_CHECK_AVAILABLE( abap_off ).
      lr_std_functions->SET_EDIT_DELETE_ROW_ALLOWED( abap_off ).
      lr_std_functions->SET_EDIT_INSERT_ROWS_ALLOWED( abap_off ).
      lr_std_functions->SET_EDIT_INSERT_ROW_ALLOWED( abap_off ).
      lr_std_functions->SET_PDF_ALLOWED( abap_off ).
      data: lr_column   type ref to cl_salv_wd_column.
    instancing check box
      data: lr_checkbox type ref to cl_salv_wd_uie_checkbox.
      create object lr_checkbox
              exporting
                checked_fieldname = 'CHECK'.
      lr_checkbox->set_read_only( value = abap_false ).
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'CHECK' ).
      lr_column->set_cell_editor( lr_checkbox ).
    endmethod.
    Thanks for answers.

    This is just some guessing - but try and set a breakpoint in the wddoinit of your popup.  I'm betting that it isn't being executed on the second call because the original instance is reused. 
    Take a look at the properties on the view for the popup.  You might try  changing the lifetime of the view from "framework controlled" to "when visible".

  • Radio button in ALV popup

    Hi,
    I am using the function module , ''REUSE_ALV_POPUP_TO_SELECT'' to get the pop-up in the ALV output.
    *-- To get the Popup in the ALV.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title              = text-f04
          i_zebra              = 'X'
          i_checkbox_fieldname = 'CHECK_BOX'
          i_tabname            = 'GT_DOWLD_TYPE'
          it_fieldcat          = lt_fcat_popup
        TABLES
          t_outtab             = gt_dowld_type
        EXCEPTIONS
          program_error        = 1
          OTHERS               = 2.
    *-- Check for Sy-subrc.
      IF sy-subrc <> 0.
    *-- If Sy-subrc not equals to 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    This is giving the Popup with check box, But i need to have a popup with Radio button.
    So is it possible to create a Pop-up with Radio button? If so how can i do that? (Can i pass through Fieldcat?)
    Please help me on this.
    Thanks,
    Satheesh.

    Search in SDN you will get many examples on this. Refer below link
    http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT

  • ALV Popup to modify row

    Hello everyone,
    I have an ALV Report (using FM, not OO). Now i need to call a popup that will have some of the fields (non-editable) of the selected row, and other input fields that can modify the referring fields of the row after pressing the 'SAVE' button.
    Is there a FM i can use, or the best way is to call a new screen? if so, how can i say that this new screen is a popup ?
        thank you in advance,
             Nuno Santos

    You should probably create your own screen.  When creating the screen, make sure to set the attribute on the attributes tab as "Modal Dialog Box", then when calling the screen, using the CALL SCREEN statement, make sure to use the STARTING and ENDING extensions of the statatement.
    call screen 100 starting at 1 1
                           ending at 50 50.
    Regards,
    Rich Heilman

  • OO ALV Popup

    Hi all,
    There is an FM REUSE_ALV_POPUP_TO_SELECT.
    Is there a similar functionality in OO ALV. But I just want to display the contents.
    Thank you in advance.

    *Create object reference
    DATA:
       o_alvgrid  TYPE REF TO cl_gui_alv_grid,
       o_custcntr TYPE REF TO cl_gui_custom_container.
    Object of the Container
    CREATE OBJECT o_custcntr
          EXPORTING
            container_name              = lc_custcntr_sum '( Name of the container on the screen )
       Creating ALV Grid instance
          CREATE OBJECT o_alvgrid
            EXPORTING
              i_parent          = o_custcntr
    Use the following method of the objcet
            CALL METHOD o_alvgrid->set_table_for_first_display
              EXPORTING
                i_bypassing_buffer            = space
                i_save                        = 'A'
                is_layout                     = layout_structure
              CHANGING
                it_outtab                     = lit_data_table
                it_fieldcatalog               = lit_fieldcatlog_table
              EXCEPTIONS
                invalid_parameter_combination = 1
                program_error                 = 2
                too_many_lines                = 3
                OTHERS                        = 4.
    Hope this will help you
    Message was edited by: Manoj Gupta

  • POPUP after selecting button in ALV

    Hello everyone.
    I have an ALV (called with FM 'REUSE_ALV...') with a gui status of its own. I added a new button that must popup a window with information on some variables i just ended calculating.
    I allready tried using 'call screen' and the command 'window', but i'm having some troubles with it. Can someone please give me a simple example on doing this ?
    Message was edited by: Nuno Santos

    Hi
    Use the ALV popup in that u can specify screen size.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                 I_TITLE      = 'details'(050)
            I_SELECTION             = 'X'
            I_ZEBRA                 = ' '
                I_SCREEN_START_COLUMN   = 1
                I_SCREEN_START_LINE     = 1
                I_SCREEN_END_COLUMN     = 150
                I_SCREEN_END_LINE       = 70
            I_CHECKBOX_FIELDNAME    =
            I_LINEMARK_FIELDNAME    =
               I_SCROLL_TO_SEL_LINE    = 'X'
                I_TABNAME               = 'IT_table'
            I_STRUCTURE_NAME        =
               IT_FIELDCAT             = IT_FIELDCAT_POP[]
            IT_EXCLUDING            =
            I_CALLBACK_PROGRAM      =
            I_CALLBACK_USER_COMMAND =
            IS_PRIVATE              =
       IMPORTING
            ES_SELFIELD             =
            E_EXIT                  =
           TABLES
                T_OUTTAB                =  IT_IDOCMESS2
          EXCEPTIONS
               PROGRAM_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.
    regards
    vijay

  • Issue with displaying ALV in a popup window

    Hi Experts,
    I am trying to create an popup window with an ALV in it. TO display the ALV i have defined the component usage for SALV_WD_TABLE component.When the ALV is displayed for the first time it shows up correctly with required data. When i try to display ALV popup again only the popup window frame gets displayed the ALV is missing from the popup window.
    If i refresh the main component by clicking browser refresh buttion and then click for ALV popup dsplay i get the correct popup display the first time and then agin the same issue.
    Has anyone else come across this issue before. All your suggestions, responses are welcome.
    Thanks,
    Vivek

    HI,
    My popup window has only one embedded view, the TABLE view of used component SALV_WD_TABLE hence i cannot modify the TABLE view.
    I tired putting the following code for context node initialization in both the the methods WDDOONOPEN and WDDOINIT of the window which has the embedded view. But it dosen't make any difference i face the same issue even with these changes.
    types: begin of  ty_belnr,
             belnr type vbkpf-belnr,
           end of  ty_belnr.
    data: lt_belnr type standard table of ty_belnr,
          lo_node type ref to if_wd_context_node,
          lo_element type ref to if_wd_context_element.
    select belnr
      from vbkpf
      into table lt_belnr
    where ausbk = 'UC'
       and bukrs = 'UC'
       and gjahr = '2011'
       and usnam = sy-uname.
    if sy-subrc eq 0.
       lo_node = wd_context->get_child_node( 'DOC_NUMBERS').
       lo_node->bind_elements( new_items = lt_belnr[] ).
    endif.
    Edited by: Vivek Priyadarshi on Sep 14, 2010 5:24 PM

  • How to capture ALV messages(popup window) in BDC...

    Hello Experts,
    I am currently doing a recording for transaction ABT1(Intercompany asset transfer)
    and I noticed that messages are displayed via ALV popup if you post it. The messages
    contain the posting information(what company it is posted, document number, etc)
    Now, is there a way to capture those messages? because I noticed that it is not captured
    in my recording so I have no way of knowing if it was successfully posted or not.
    Also, is there a way to supress transaction/status messages in a transaction?(E.g. posting
    will take place in an earlier fiscal year, etc)
    Hope you can help me guys. Thank you and take care!

    Hi,
    have a look at fm 'AMDP_MESSAGE_SEND'.
    it is used in transaction ABT1.
    you can as well use this:
    CALL FUNCTION 'MESSAGES_INITIALIZE'.
    LOOP AT it_return_bapi.
        CALL FUNCTION 'MESSAGE_STORE'
             EXPORTING
                  arbgb                   = it_return_bapi-id
                  exception_if_not_active = ' '
                  msgty                   = it_return_bapi-type
                  msgv1                   = it_return_bapi-message_v1
                  msgv2                   = it_return_bapi-message_v2
                  msgv3                   = it_return_bapi-message_v3
                  msgv4                   = it_return_bapi-message_v4
                  txtnr                   = it_return_bapi-number
                  zeile                   = ' '
             EXCEPTIONS
                  message_type_not_valid  = 1
                  not_active              = 2
                  OTHERS                  = 3.
      ENDLOOP.
    CALL FUNCTION 'MESSAGES_STOP'
           EXCEPTIONS
                a_message = 04
                e_message = 03
                i_message = 02
                w_message = 01.
    IF NOT sy-subrc IS INITIAL.
        CALL FUNCTION 'MESSAGES_SHOW'
             EXPORTING
                  i_use_grid         = 'X'
                  i_amodal_window    = i_amod_window
             EXCEPTIONS
                  inconsistent_range = 1
                  no_messages        = 2
                  OTHERS             = 3.
      ENDIF.
    Best regards
    Edited by: pablo casamayor on Jun 23, 2008 8:31 AM

  • Creating pop up window for data display in ALV

    Friends,
    I need to display my data in alv popup window from there I have to select a row and display the data in new popup window. For this purpose I had written this fuction. It's working fine But I don't know how to select row from this and display data in new popup window.  when I am displaying data in alv grid ,then I am  able to display data in POPUP window after selecting a row from grid  but dont know how to jump from one pop up window to another.
    form output_alv.
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
        I_TITLE                       = 'SALES ORDER INFO'
        I_ZEBRA                       = 'X'
        I_TABNAME                     = 1
        I_STRUCTURE_NAME              = 'VBAK'
      TABLES
        T_OUTTAB                      = it_vbak
       EXCEPTIONS
         PROGRAM_ERROR                 = 1
         OTHERS                        = 2.
    endform.

    The following code may be of some help:
    DATA: BEGIN OF it_prmhlp OCCURS 0.
            INCLUDE STRUCTURE zaltab_param.
    DATA: flg(1) TYPE c,
          END OF it_prmhlp.
      DATA: wreturn LIKE ddshretval OCCURS 0 WITH HEADER LINE,
        wstep LIKE sy-stepl.
      DATA wsel1 VALUE 'X'. wsel1 = 'X'.
      TYPE-POOLS : slis.
      DATA : listtitle(30),
             l_lines     LIKE sy-tabix,
             ls_fldcat   TYPE slis_fieldcat_alv,
             lt_fldcat   TYPE slis_t_fieldcat_alv,
             ls_selfield TYPE slis_selfield.
      progname = sy-repid.
      dynnum   = sy-dynnr.
      DEFINE fldcat_add1.
        ls_fldcat-fieldname     = &1.
        ls_fldcat-ref_tabname   = &2.
        ls_fldcat-ref_fieldname = &3.
        ls_fldcat-reptext_ddic  = &4.
        ls_fldcat-outputlen     = &5.
        append ls_fldcat to lt_fldcat.
      END-OF-DEFINITION.
      REFRESH : lt_fldcat.
      fldcat_add1 'AUREL' 'ZALTAB_PARAM' 'AUREL' 'Alloc Table Relevancy' '25'.
      fldcat_add1 'PDESC' 'ZALTAB_PARAM' 'PDESC' 'Process Description' '40'.
      REFRESH it_prmhlp. CLEAR it_prmhlp.
      SELECT * FROM zaltab_param
        INTO TABLE it_prmhlp
        WHERE tcode = sy-tcode.
      SORT it_prmhlp BY aurel pdesc.
      listtitle = 'Allocaction Table Relvancy Selection'.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                i_title                 = listtitle
                i_selection             = wsel1
                i_zebra                 = ' '
                i_checkbox_fieldname    = 'FLG'
                i_tabname               = 'IT_PRMHLP'
                it_fieldcat             = lt_fldcat
           TABLES
                t_outtab                = it_prmhlp
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2
      DATA wfl1. CLEAR wfl1.
      LOOP AT it_prmhlp.
        IF it_prmhlp-flg = 'X'.
          IF wfl1 = 'X'.
            CLEAR it_prmhlp. REFRESH it_prmhlp.
            MESSAGE i000(yw) WITH 'Only 1 entry can be selected...'.
            EXIT.
          ENDIF.
          wfl1 = 'X'.
        ENDIF.
      ENDLOOP.
      IF wsel1 = 'X'.
        READ TABLE it_prmhlp WITH KEY flg = 'X'.
        IF sy-subrc EQ 0.
          paurel = it_prmhlp-aurel.
          paureltx = it_prmhlp-pdesc.
          wvariant = it_prmhlp-zvariant.
          PERFORM update_screen.
        ELSE.
          CLEAR it_prmhlp. REFRESH it_prmhlp.
        ENDIF.
      ENDIF.
    The trick lies in using the box fieldname which is 'FLG' in this case and the wsel1 param passed to the fm to know whether any row is selected or not.

  • Reg: ALV list Display

    Hi Experts,
                    My requirement is i need a button along with the tool bar of ALV list display . when i check the button it should display the Selection criteria values which user entered as a pop up .
    Is there any default tool which displays user selection values  for ALV list display  ?
    Regards,
    Vikram.S

    > Is there any default tool which displays user selection values  for ALV list display  ?
    No such program.
    But you have to write a code for it. Activate Button using the pf-status. then Handle that button in User command , and show a popup with the selection values.
    Function used to get the selection details is
    RS_REFRESH_FROM_SELECTOPTIONS
    get the data and show it using a Popup. May be a ALV popup select function will help you.

  • How to add a button on the ALV LIST pop up

    Hi ,
    Can any one help me to add a button on the ALV list which is a pop up using ABAP Objects.
    Thanks in advance.
    Regards,
    Kavya.

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • Header in alv pop up

    Hello,
    i need to dislay header as well as item details in an alv pop up. I am using FM REUSE_ALV_POPUP_TO_SELECT. but I am not able to get the header information. I am able to get the item details for a particular Purchase order number. I need to display purchase order number in the header of alv POPUP.
    how can i achieve this using the same FM?

    hi
    hope this wil help to u
    ...tables vbak.
    data it_vbak like vbak occurs 0 with header line.
    selection-screen begin of block b1 with frame.
    parameters: alv1 radiobutton group alv, "REUSE_ALV_LIST_DISPLAY
    alv2 radiobutton group alv, "REUSE_ALV_POPUP_TO_SELECT
    alv3 radiobutton group alv, "REUSE_ALV_GRID_DISPLAY
    alv4 radiobutton group alv. " NORMAL DISPLAY
    selection-screen end of block b1.
    select * from vbak
    into corresponding fields of table it_vbak
    up to 10 rows.
    if alv1 = 'X'. perform alv_func1.
    elseif alv2 = 'X'. perform alv_func2.
    elseif alv3 = 'X'. perform alv_func3.
    elseif alv4 = 'X'. perform norm.
    endif.
    **& Form ALV_FUNC1
    *form alv_func1 .
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
    i_structure_name = 'VBAK'
    tables
    t_outtab = it_vbak
    exceptions
    program_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.
    endform. " ALV_FUNC1
    **& Form ALV_FUNC2
    *form alv_func2 .
    call function 'REUSE_ALV_POPUP_TO_SELECT'
    exporting
    i_title = 'SALES ORDER INFO'
    i_zebra = 'X'
    i_tabname = 1
    i_structure_name = 'vbak'
    tables
    t_outtab = it_vbak
    exceptions
    program_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.
    endform. " ALV_FUNC2
    **& Form ALV_FUNC3
    *form alv_func3 .
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_structure_name = 'vbak'
    i_grid_title = 'SALES ORDER INFO'
    tables
    t_outtab = it_vbak
    exceptions
    program_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.
    endform. " ALV_FUNC3
    **& Form NORM
    *form norm .
    format intensified.
    skip 1.
    write: /'SALES DOC.',
    ' Created on ',
    ' Time',
    ' Created by',
    ' Valid from ',
    ' Sold-to party'.
    format intensified off. skip 2.
    loop at it_vbak.
    write: / it_vbak-vbeln,
    it_vbak-erdat,
    it_vbak-erzet,
    it_vbak-ernam,
    it_vbak-angdt,
    it_vbak-kunnr.
    endloop.
    endform. " NORM 
    Edited by: Nawanandana Edirisinghe on Sep 3, 2009 12:52 PM

Maybe you are looking for

  • Error in net value

    hi all,         in pricing procedure in i am using two condition type one is PR00 and other is TSP1 transporting cost. the netvalue is 100 + 13.50 = 113.50 is getting calculated in pricicng procedure. But the issue is only 100 is displayed in net val

  • How do I save a file to iCloud Drive and NOT have it sync to all my devices?

    I have a Macbook Air with 128GB of SSD storage.  I have a Mac Mini with 2TB of storage.  Both are running OS X 10.10 with iCloud Drive enabled.  All iOS devices are on 8.0+ with iCloud Drive.  I want to upload files to my iCloud Drive from my Macbook

  • Web Service Deployment error on WLS6.1

    Hi All, I'm trying to deploy a dummy SOAP service on WLS6.1, build on a plain Java class. All the procedure works well on tomcat 3.2, and my SOAP client invokes all the methods and gets expected response successfully. When I even try to deploy it on

  • Leading zero on 24 hour clock

    Is it possible to have the 24-hour clock display a leading zero? Such as 09:00 instead of 9:00.

  • BTXTAXT - Why do we need to maintain this table

    Experts, Could anyone explain why do we need to maintain this Tabe (BTXTAXT) when a new Tax type is added. I haven't maintained that still taxes are calculated properly for the new tax type87.