ALV FAQ's

Can I have a list of FAQ's on ALV....
Also can please brief me on secondary indexes...
What is syntax and function of the Authority Check command
What are the different methods of passing data

Hi,
interactive alv:
report  zkeerthi_alv5                           .
*& tables declaration
tables: vbrk,vbrp.
*& type-pools declaration
type-pools: slis.
*& data declaration
data: g_repid type sy-repid.
data : it_fieldcat type slis_t_fieldcat_alv,  "mara
       wa_fieldcat type slis_fieldcat_alv,
       wa_layout type slis_layout_alv,
       wa_event  type slis_alv_event,
      t_event type slis_t_event.
data: v_vbeln like vbrk-vbeln,
      v_matnr like vbrp-matnr.
data: begin of it_vbrk occurs 0,
      vbeln like vbrk-vbeln,
      waerk like vbrk-waerk,
      vkorg like vbrk-vkorg,
      fkdat like vbrk-fkdat,
      bukrs like vbrk-bukrs,
      netwr like vbrk-netwr,
      end of it_vbrk.
data: begin of it_vbrp occurs 0,
      vbeln like vbrp-vbeln,
      posnr like vbrp-posnr,
      fkimg like vbrp-fkimg,
      vrkme like vbrp-vrkme,
      netwr like vbrp-netwr,
      matnr like vbrp-matnr,
      arktx like vbrp-arktx,
      end of it_vbrp.
*& selection screen
selection-screen begin of block b with frame title text-001.
select-options: s_vbeln for vbrk-vbeln,
                s_fkdat for vbrk-fkdat,
                s_matnr for vbrp-matnr.
selection-screen end of block b.
**INITIALIZATION.
initialization.
g_repid = sy-repid.
  s_fkdat-low = sy-datum - 200.
  s_fkdat-high = sy-datum.
  append s_fkdat.
***AT SELECTION-SCREEN.
at selection-screen.
  if not s_vbeln is initial.
    select single vbeln from vbrk
           into v_vbeln
           where vbeln in s_vbeln.
    if sy-subrc <> 0.
      message e001(zz2).
    endif.
  endif.
  if not s_matnr is initial.
    select single matnr from mara
           into v_matnr
           where matnr in s_matnr.
    if sy-subrc <> 0.
      message e001(zz2).
    endif.
  endif.
***START-OF-SELECTION.
start-of-selection.
  perform get_data_vbrk.
*&      Form  GET_DATA_VBRK
      text
-->  p1        text
<--  p2        text
form get_data_vbrk .
select vbeln
         waerk
         vkorg
         fkdat
         bukrs
         netwr
         into table it_vbrk
         from vbrk
         where vbeln in s_vbeln
         and fkdat in s_fkdat.
endform.                    " GET_DATA_VBRK
*&      Form  GET_DATA_VBRP
      text
-->  p1        text
<--  p2        text
form get_data_vbrp .
select vbeln
         posnr
         fkimg
         vrkme
         netwr
         matnr
         arktx
         from vbrp
         into table it_vbrp
         where vbeln = it_vbrk-vbeln.
endform.                    " GET_DATA_VBRP
***END-OF-SELECTION.
end-of-selection.
perform event_list.
perform get_field_catalog.
perform list_disp  .
form list_disp .
call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
   I_INTERFACE_CHECK                 = ' '
   I_BYPASSING_BUFFER                = ' '
   I_BUFFER_ACTIVE                   = ' '
    i_callback_program                = g_repid
   I_CALLBACK_PF_STATUS_SET          = 'POPUP'
    i_callback_user_command           = 'USER_COMMAND'
   I_CALLBACK_TOP_OF_PAGE            = ' '
   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
   I_CALLBACK_HTML_END_OF_LIST       = ' '
   I_STRUCTURE_NAME                  =
   I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      =
   I_GRID_SETTINGS                   =
   IS_LAYOUT                         = WA_LAYOUT
    it_fieldcat                       = it_fieldcat
   IT_EXCLUDING                      =
   IT_SPECIAL_GROUPS                 =
   IT_SORT                           =
   IT_FILTER                         =
   IS_SEL_HIDE                       =
   I_DEFAULT                         = 'X'
   I_SAVE                            = ' '
   IS_VARIANT                        =
   IT_EVENTS                         =
   IT_EVENT_EXIT                     =
   IS_PRINT                          =
   IS_REPREP_ID                      =
   I_SCREEN_START_COLUMN             = 0
   I_SCREEN_START_LINE               = 0
   I_SCREEN_END_COLUMN               = 0
   I_SCREEN_END_LINE                 = 0
   IT_ALV_GRAPHICS                   =
   IT_HYPERLINK                      =
   IT_ADD_FIELDCAT                   =
   IT_EXCEPT_QINFO                   =
   I_HTML_HEIGHT_TOP                 =
   I_HTML_HEIGHT_END                 =
IMPORTING
   E_EXIT_CAUSED_BY_CALLER           =
   ES_EXIT_CAUSED_BY_USER            =
   tables
     t_outtab                          = it_vbrk
  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.                    " LIST_DISP
*&      Form  GET_FIELD_CATALOG
      text
-->  p1        text
<--  p2        text
form get_field_catalog .
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
   i_program_name               = g_repid
   i_internal_tabname           = 'IT_VBRK'
  I_STRUCTURE_NAME             =
  I_CLIENT_NEVER_DISPLAY       = 'X'
   i_inclname                   = g_repid
  I_BYPASSING_BUFFER           =
  I_BUFFER_ACTIVE              =
  changing
    ct_fieldcat                  = it_fieldcat
exceptions
   inconsistent_interface       = 1
   program_error                = 2
   others                       = 3
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.                    " GET_FIELD_CATALOG
*&      Form  event_list
      text
-->  p1        text
<--  p2        text
form event_list .
clear wa_event.
  wa_event-name = 'USER_COMMAND'.
  wa_event-form = 'USER_COMMAND'.
  append wa_event to t_event.
  clear wa_event.
endform.                    " event_list
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
  case r_ucomm.
    when '&IC1'.
      read table it_vbrk index rs_selfield-tabindex.
      perform get_data_vbrp.
      perform build_fieldcatalog_vbrp .
      perform display_alv_vbrp.
  endcase.
endform.
*&      Form  BUILD_FIELDCATALOG_VBRP
      text
-->  p1        text
<--  p2        text
form build_fieldcatalog_vbrp .
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
   i_program_name               = g_repid
   i_internal_tabname           = 'IT_VBRP'
  I_STRUCTURE_NAME             =
  I_CLIENT_NEVER_DISPLAY       = 'X'
   i_inclname                   = g_repid
  I_BYPASSING_BUFFER           =
  I_BUFFER_ACTIVE              =
  changing
    ct_fieldcat                  = it_fieldcat
exceptions
   inconsistent_interface       = 1
   program_error                = 2
   others                       = 3
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.                    " BUILD_FIELDCATALOG_VBRP
*&      Form  DISPLAY_ALV_VBRP
      text
-->  p1        text
<--  p2        text
form display_alv_vbrp .
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
  I_INTERFACE_CHECK                 = ' '
  I_BYPASSING_BUFFER                = ' '
  I_BUFFER_ACTIVE                   = ' '
   i_callback_program                =  g_repid
  I_CALLBACK_PF_STATUS_SET          = ' '
  I_CALLBACK_USER_COMMAND           = ' '
  I_CALLBACK_TOP_OF_PAGE            = ' '
  I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
  I_CALLBACK_HTML_END_OF_LIST       = ' '
  I_STRUCTURE_NAME                  =
  I_BACKGROUND_ID                   = ' '
  I_GRID_TITLE                      =
  I_GRID_SETTINGS                   =
  IS_LAYOUT                         =
   it_fieldcat                       = it_fieldcat
  IT_EXCLUDING                      =
  IT_SPECIAL_GROUPS                 =
  IT_SORT                           =
  IT_FILTER                         =
  IS_SEL_HIDE                       =
  I_DEFAULT                         = 'X'
  I_SAVE                            = ' '
  IS_VARIANT                        =
  IT_EVENTS                         =
  IT_EVENT_EXIT                     =
  IS_PRINT                          =
  IS_REPREP_ID                      =
  I_SCREEN_START_COLUMN             = 0
  I_SCREEN_START_LINE               = 0
  I_SCREEN_END_COLUMN               = 0
  I_SCREEN_END_LINE                 = 0
  IT_ALV_GRAPHICS                   =
  IT_HYPERLINK                      =
  IT_ADD_FIELDCAT                   =
  IT_EXCEPT_QINFO                   =
  I_HTML_HEIGHT_TOP                 =
  I_HTML_HEIGHT_END                 =
IMPORTING
  E_EXIT_CAUSED_BY_CALLER           =
  ES_EXIT_CAUSED_BY_USER            =
  tables
    t_outtab                          = it_vbrp
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.                    " DISPLAY_ALV_VBRP
Regards,
keerthi

Similar Messages

  • HELP me in alv faqs

    hi all,
    can any one please give me the solutins for the below faqs.
    1.What are the advantages of ALV over Conventional Reporting?
    2.How do you handle interactive list in ALV?
    3.How do you define toolbar in ALV?
    4.What is the maximum no of columns that can be displayed in the ALV?
    with regards,
    khadar.

    Hello Khadar,
    1)ALV is Application List viewer.
    <b>SAP provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in SAP when the output of a report contains columns extending more than 255 characters in length.</b> 
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. <b>This is a very efficient tool for dynamically sorting and arranging the columns from a report output.</b> 
    The report output can contain up to 90 columns in the display with the wide array of display options.
    2)<b>http://www.sap-img.com/abap/an-interactive-alv-report.htm</b>
    3)<b>We can add additional buttons in the ALV toolbar and then handle the buttons using a local class.</b>
    CLASS lcl_eh DEFINITION.
      PUBLIC SECTION.
        <b>DATA:ls_toolbar  TYPE stb_button.</b>
              METHODS:
                handle_toolbar
                    FOR EVENT <b>toolbar</b> OF cl_gui_alv_grid
                        IMPORTING e_object e_interactive,
                handle_user_command
                    FOR EVENT <b>user_command</b> OF cl_gui_alv_grid
                        IMPORTING e_ucomm.
    ENDCLASS.                    "lcl_eh DEFINITION
    *Type referencing an object of the class
    DATA: lo_obj TYPE REF TO lcl_eh.
    CLASS lcl_eh IMPLEMENTATION.
    *METHOD:      HANDLE_TOOLBAR
    *DESCRIPTION: This method provides the necessary detail required to
                 create an extra button in the toolbar.
      METHOD handle_toolbar.
        CLEAR ls_toolbar.
        MOVE 'CREATE' TO ls_toolbar-function.
        MOVE 0 TO ls_toolbar-butn_type.
        MOVE 'CREATE DELIVERY' TO ls_toolbar-text.
        MOVE 'ICON_DETAIL' TO ls_toolbar-icon.
        MOVE 'CREATE DELIVERY' TO ls_toolbar-quickinfo.
        APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.                    "handle_toolbar
    *METHOD:      HANDLE_USER_COMMAND
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CREATE'.
    ***your logic
    ENDCASE.
      ENDMETHOD.                    "handle_user_command
    ENDCLASS.                    "lcl_eh IMPLEMENTATION
    <b>Further,you can remove particular buttons from the ALV based on your requirement.In the sample below,I have removed FILTER button and total button.</b>
    DATA: itab_ui type UI_FUNCTIONS,
          wa_ui type UI_FUNC.
    WA_ui = CL_GUI_ALV_GRID=>MC_MB_FILTER. "static no
    APPEND WA_ui TO Itab_ui.
    WA_ui = CL_GUI_ALV_GRID=>MC_MB_SUBTOT.
    APPEND WA_ui TO Itab_ui.
    CALL METHOD ALV->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
      IT_TOOLBAR_EXCLUDING          =  itab_ui
    <b>For information regarding ALV:</b>
    http://www.sap-img.com/abap-function.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    http://www.geocities.com/mpioud/Abap_programs.html
    Regards,
    Beejal
    **Reward if this helps

  • Hierarchial alv's

    what do u mean by Hierarchial alv's and what is the exact purpose of them  according  to ooabap functionality and can anybody explain various issues regarding it,If possible with an example.

    FOLLOW THE LINKS
    alv with oops
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    www.saptechies.com/alv-faq--general-information/
    The specified item was not found.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    http://www.geocities.com/mpioud/Abap_programs.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIGOF/BCCIGOF.pdf
    http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm
    http://esnips.com/doc/b708766f-a934-42a1-8064-c4de75b48fc4/Sample-Program-of-alv-using-oops.ppt
    http://esnips.com/doc/a2e42503-cf0f-4418-94ee-580f5900a81f/alv-with-oop.doc
    http://esnips.com/doc/2d953590-e8c5-490c-a607-d1ab7cf517d7/ALV.pdf
    codes for alv with oops
    codeBCALV_EDIT_01.
    BCALV_EDIT_02.
    BCALV_EDIT_03.
    BCALV_EDIT_04.
    BCALV_EDIT_05.
    BCALV_EDIT_06.
    BCALV_EDIT_07.
    BCALV_EDIT_08.[/code]
    HIERARCHIAL ALV
    REUSE_ALV_HIERSEQ_LIST_DISPLAY
    Text
    Hierarchical sequential list output
    Functionality
    This module outputs two internal tables as a formated hierarchical-sequential list.
    Principle:
    Pass an internal table containing the set of header information to be output.
    Pass an internal table containing the set of item information to be output.
    Pass a structure containing the general list layout details
    Pass a field catalog in the form of an internal table. The field catalog describes the fields to be output in the list.
    Notes
    All interactions which are performed on the list refer directly to the internal output tables, e.g. sorting the list also sorts the passed internal output tables (passed by reference).
    The expected output data quantity is an important consideration for the use of the tool or various generic functions (totals, subtotals).
    The application must take account of this.
    Further Information
    Parameters
    ES_EXIT_CAUSED_BY_USER
    Meaning
    See the documentation of parameter .
    REUSE_ALV_LIST_DISPLAY ES_EXIT_CAUSED_BY_USER> ES_EXIT_CAUSED_BY_USER .
    Range
    Default
    E_EXIT_CAUSED_BY_CALLER
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY E_EXIT_CAUSED_BY_CALLER> link to REUSE_ALV_LIST_DISPLAY E_EXIT_CAUSED_BY_CALLER
    Range
    Default
    IS_KEYINFO
    Meaning
    This structure contains the header and item table field names which link the two tables (shared key).
    Enter the foreign key field names in the fields KEYINFO-HEADERxx and KEYINFO-ITEMxx. The foreign key field names of the header and item tables are usually identical.
    The item table has other key fields as well as the header table foreign key. These other key fields should also be named in this structure. The corresponding header table field (HEADERxx) must be SPACE.
    Naming the other key fields guarantees a stable item table sort sequence.
    Range
    Default
    IS_LAYOUT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IS_LAYOUT> link to REUSE_ALV_LIST_DISPLAY IS_LAYOUT
    IS_PRINT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IS_PRINT> link to REUSE_ALV_LIST_DISPLAY IS_PRINT
    Range
    Default
    IS_REPREP_ID
    IS_SEL_HIDE
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IS_SEL_HIDE> link to REUSE_ALV_LIST_DISPLAY IS_SEL_HIDE
    Range
    Default
    IS_VARIANT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IS_VARIANT> link to REUSE_ALV_LIST_DISPLAY IS_VARIANT
    Range
    Default
    IT_EVENTS
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_EVENTS> link to REUSE_ALV_LIST_DISPLAY IT_EVENTS
    Range
    Default
    IT_EVENT_EXIT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_EVENT_EXIT> link to REUSE_ALV_LIST_DISPLAY IT_EVENT_EXIT
    Range
    Default
    IT_EXCLUDING
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_EXCLUDING> link to REUSE_ALV_LIST_DISPLAY IT_EXCLUDING
    Range
    Default
    IT_FIELDCAT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_FIELDCAT> link to REUSE_ALV_LIST_DISPLAY IT_FIELDCAT
    Range
    Default
    IT_FILTER
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_FILTER> link to REUSE_ALV_LIST_DISPLAY IT_FILTER
    Range
    Default
    IT_SORT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_SORT> link to REUSE_ALV_LIST_DISPLAY IT_SORT
    Range
    Default
    IT_SPECIAL_GROUPS
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY IT_SPECIAL_GROUPS> link to REUSE_ALV_LIST_DISPLAY IT_SPECIAL_GROUPS
    Range
    Default
    I_BUFFER_ACTIVE
    I_BYPASSING_BUFFER
    I_CALLBACK_PF_STATUS_SET
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_CALLBACK_PF_STATUS_SET> link to REUSE_ALV_LIST_DISPLAY I_CALLBACK_PF_STATUS_SET
    I_CALLBACK_PROGRAM
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_CALLBACK_PROGRAM> link to REUSE_ALV_LIST_DISPLAY I_CALLBACK_PROGRAM
    Range
    Default
    I_CALLBACK_USER_COMMAND
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_CALLBACK_USER_COMMAND> link to REUSE_ALV_LIST_DISPLAY I_CALLBACK_USER_COMMAND
    I_DEFAULT
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_DEFAULT> link to REUSE_ALV_LIST_DISPLAY I_DEFAULT
    Range
    Default
    I_INTERFACE_CHECK
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_INTERFACE_CHECK> link to REUSE_ALV_LIST_DISPLAY I_INTERFACE_CHECK
    Range
    Default
    I_SAVE
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_SAVE> link to REUSE_ALV_LIST_DISPLAY I_SAVE
    Range
    Default
    I_SCREEN_END_COLUMN
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_SCREEN_END_COLUMN> link to REUSE_ALV_LIST_DISPLAY I_SCREEN_END_COLUMN
    Range
    Default
    I_SCREEN_END_LINE
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_SCREEN_END_LINE> link to REUSE_ALV_LIST_DISPLAY I_SCREEN_END_LINE
    Range
    Default
    I_SCREEN_START_COLUMN
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_SCREEN_START_COLUMN> link to REUSE_ALV_LIST_DISPLAY I_SCREEN_START_COLUMN
    Range
    Default
    I_SCREEN_START_LINE
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_SCREEN_START_LINE> link to REUSE_ALV_LIST_DISPLAY I_SCREEN_START_LINE
    Range
    Default
    I_STRUCTURE_NAME_HEADER
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_STRUCTURE_NAME> link to REUSE_ALV_LIST_DISPLAY I_STRUCTURE_NAME
    Range
    Default
    I_STRUCTURE_NAME_ITEM
    Meaning
    <DS:FU.REUSE_ALV_LIST_DISPLAY I_STRUCTURE_NAME> link to REUSE_ALV_LIST_DISPLAY I_STRUCTURE_NAME
    Range
    Default
    I_TABNAME_HEADER
    Meaning
    Name of the internal table in the program containing the output data of the highest hierarchy level.
    Range
    Default
    I_TABNAME_ITEM
    Meaning
    Name of the internal table in the program containing the output data of the lowest hierarchy level.
    Range
    Default
    T_OUTTAB_HEADER
    Meaning
    Header table with data to be output
    <DS:FU.REUSE_ALV_LIST_DISPLAY T_OUTTAB> link to REUSE_ALV_LIST_DISPLAY T_OUTTAB
    Range
    Default
    T_OUTTAB_ITEM
    Meaning
    Item table with data to be output
    <DS:FU.REUSE_ALV_LIST_DISPLAY T_OUTTAB> link to REUSE_ALV_LIST_DISPLAY T_OUTTAB
    Default
    Exceptions
    PROGRAM_ERROR
    Meaning
    <DS:FX.REUSE_ALV_LIST_DISPLAY PROGRAM_ERROR> link to REUSE_ALV_LIST_DISPLAY PROGRAM_ERROR
    EXAMPLE
    go through this alv grid display example
    wa_listheader-key = ''.
    wa_listheader-typ = 'S'.
    wa_listheader-info = 'Date'.
    append wa_listheader to it_end_listheader.
    clear: wa_listheader.
    concatenate 'Time' sy-uzeit into w_date separated by space.
    wa_listheader-key = ''.
    wa_listheader-typ = 'S'.
    wa_listheader-info = 'Time'.
    append wa_listheader to it_end_listheader.
    clear: wa_listheader.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = it_end_listheader[]
    I_LOGO =
    I_END_OF_LIST_GRID =
    ENDFORM. " f100-end_of_page
    In grid display there will be no end_of_page and no end_of_list.
    You have show in top_of_page itself.
    Otherwise use list display instead of grid.
    Suresh Avutu
    These steps have to be carried out...
    DATA: gc_formname_top_of_page TYPE slis_formname
    VALUE 'TOP_OF_PAGE'.
    DATA: gc_formname_end_of_page TYPE slis_formname
    VALUE 'END_OF_PAGE'.
    DATA: gt_list_top_of_page TYPE slis_t_listheader.
    DATA: gt_list_end_of_page TYPE slis_t_listheader.
    PERFORM e03_eventtab_build USING gt_event[].
    PERFORM e04_comment_build USING
    gt_list_top_of_page[].
    PERFORM e06_comment_build USING
    gt_list_end_of_page[].
    PERFORM list_alv_display.
    FORM list_alv_display .
    gt_event-name = slis_ev_top_of_list.
    gt_event-form = 'TOP_OF_PAGE'.
    APPEND gt_event.
    gt_event-name = slis_ev_end_of_list.
    gt_event-form = 'END_OF_PAGE'.
    APPEND gt_event.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    i_bypassing_buffer = 'X'
    i_buffer_active = ' '
    i_callback_program = ....
    FORM end_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    i_logo = ''
    it_list_commentary = gt_list_end_of_page
    I_END_OF_LIST_GRID = 1.
    ENDFORM. "END_OF_PAGE
    FORM e06_comment_build
    USING e06_lt_end_of_page TYPE slis_t_listheader.
    DATA: ls_line TYPE slis_listheader.
    DATA: yl_uname(60).
    < here u can concatenate system date and time to
    yl_uname>
    CLEAR ls_line.
    ls_line-typ = 'S'.
    ls_line-info = yl_uname.
    APPEND ls_line TO e06_lt_end_of_page.
    endform. "e06_comment_build
    Suman Tyagi
    An Example:
    REPORT ZALV_GRID.
    TABLES :vbap.
    type-pools : slis.
    data i_events TYPE slis_t_event.
    DATA : my_alv TYPE REF TO cl_gui_alv_grid.
    TYPES : BEGIN OF itab,
    vbeln LIKE vbap-vbeln,
    arktx LIKE vbap-arktx,
    END OF itab.
    TYPES : itab1 TYPE TABLE OF itab.
    DATA : display TYPE itab1.
    DATA : fcat TYPE SLIS_T_FIELDCAT_ALV.
    DATA : wa LIKE LINE OF FCAT.
    DATA WA1 LIKE VBAP.
    DATA: container TYPE REF TO cl_gui_custom_container.
    data report_id like sy-repid.
    SELECT-OPTIONS s_vbeln FOR vbap-vbeln.
    report_id = sy-repid.
    SELECT * FROM vbap INTO CORRESPONDING FIELDS OF TABLE display WHERE
    vbeln IN s_vbeln.
    wa-fieldname = 'VBELN'.
    wa-tabname = 'VBAP'.
    wa-key = 'X'.
    WA-HOTSPOT = 'X'.
    wa-text_fieldname = 'Doc no.'.
    APPEND wa TO fcat.
    CLEAR wa.
    wa-fieldname = 'ARKTX'.
    wa-tabname = 'VBAP'.
    wa-text_fieldname = 'Item Text'.
    APPEND wa TO fcat.
    PERFORM f0650_build_event USING 'USER_COMMAND'
    'F0750_USER_COMMAND'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY '
    EXPORTING
    I_CALLBACK_PROGRAM = report_id
    IT_FIELDCAT = FCAT
    IT_EVENTS = i_events
    TABLES
    t_outtab = DISPLAY
    FORM f0650_build_event USING value(w_c_event_name)
    value(w_c_event_form).
    DATA: f0650_wa_event TYPE slis_alv_event.
    CLEAR f0650_wa_event.
    f0650_wa_event-name = w_c_event_name.
    f0650_wa_event-form = w_c_event_form.
    APPEND f0650_wa_event TO i_events.
    ENDFORM.
    FORM f0750_user_command USING w_ucomm TYPE sy-ucomm
    w_selfield TYPE slis_selfield.
    CASE w_ucomm.
    WHEN '&IC1'.
    READ TABLE DISPLAY INTO WA1 INDEX w_selfield-tabindex.
    MESSAGE E000 WITH
    ' You have no authorization to view the report'.
    call transaction 'SE11'.
    ENDCASE.
    ENDFORM.
    cheers,
    sharad
    Edited by: sharad narayan on Apr 18, 2008 9:26 AM
    Edited by: sharad narayan on Apr 18, 2008 9:32 AM

  • Faq's on alv and bapi..

    hi...
        plz send faq'as on alv programming and bapi.
      thanks...

    Hi,
    Check the below links,
    http://www.sap4.com/wiki/index.php/ALV_FAQ
    http://sapfans.com/forums/viewtopic.php?t=94198&sid=faa1b3ecd13879a721df1236e7dbc182
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.techinterviews.com/?p=211
    http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
    http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
    http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    http://www.sap-hefte.de/download/dateien/1025/087_leseprobe.pdf
    http://www.sap-img.com/abap/what-is-alv-programming.htm
    http://www.sap-img.com/abap-function.htm
    http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
    Regards,
    Vishnu
    Pls reward helpful answers

  • FAQ on ALV

    Hi Friends,
    Can any body sne me <b>FAQ on ALV</b>?
    Regards

    Hi,
    Check the below links,
    http://www.sap4.com/wiki/index.php/ALV_FAQ
    http://sapfans.com/forums/viewtopic.php?t=94198&sid=faa1b3ecd13879a721df1236e7dbc182
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.techinterviews.com/?p=211
    http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
    http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
    http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Regards,
    Sachidanand.B
    Pls reward helpful answers

  • Some faqs can u solve dis answers asp

    1) How do u handle table control in bdc?
    2) What is diff b/w normal functional modules and BAPI's fm's?
    3)what is fct-code of at- line- selection?
    4)why do u  use subroutine pool in scripts?
    5)name few performance techniques?
    6)in how many ways u can design interactive reprt?
    7)what is the need of table maintainance option at the begin of table creation?
    8)what is the system landscape?
    9)what is the use of submit command in exe program?
    10)how do u create secondary index?
    11) what is the diff b/w sap memory and abap memory?
    what is the max size of date records?
    2)what is the max size of IDOC?
    3)what is the relationship b/w ALE and EDI?
    4)when u have data transfer, why do u chose IDOC's?
    5)i have 200 records how u decide how many records should execute per IDOc?
    6)ALE customizing method?
    7)how do u define logical systems and assign logical systems to clients?
    8)what is change pointer technique?&what is need of change pointer technique?
    1) name the events in order in case of classical report?
    2)if i put write statemnt in at slection-screen,does it works?
    3)can u call multilple selctio screen in one report?
    4)what is diff b/w integration & at slection-screen ouput?
    5) i have a requirement like  i have 3 radio butons in one group,
    if i select one radio button then remaining radio buttons  are invisible what is the code for this?
    6) how do u decide which method is suite for paricular requirement if not specified in bdc?
    i.e session or  call transction?
    7)what is BAPI?
    8)how BAPI differ from  ALE?
    9) steps of configuring of EDI?
    10) is layout set is client dependent or not?
    11)how to transfer layout sets  to test client side?
    12)what is the protect......end protect?
    13) for what purposeu create multiple wqidows in one page?
    14)what are diff areas wher ucan ouput text in main window?
    15)what method u use to output text in    (top........endtop) or write_form?
    16)what is the reason for use of write_form rather than top------endtop?
    1)i need a logo on the right hand side of corner . how do u handle that?
    2)what is the standard table for storing standard symbols?
    3)how do u represent page no in scripts & total page nos?
    4)what is the transaction code for dump analysis?
    5)when top-of-page vent triggred?
    6)can i plce write stament in any event?does it works?
    7)what is the use of end-of-selection event?
    8)what is stop& exit?
    9)what happens if i plce write statement in end-of-selction?
    10)what is sy-ttill?
    11)does the value of sy-subrc chnge after if and write stament?
    12)what is bdc & types of bdc?
    13)when do u choose session , call transaction methods?
    14)how may types of symbols? what are they?
    15)what is the diff b/w constant & variable symbols?
    16)what are the parameters in open_form & start_form?
    17)does text orientation(190degrees ,145 degrees) is possible in sap scripts?
    18)how do u delete text from a layoutset window?
    19)what  are u need to take care  while transporting the request? for exeampl u developed a exit ,whta care do u take?
    20) what wil u do for preparing technical specs form functional specs?
    21) what is addres....endaddress in sap scripts?
    22)which method  do u prefer synchronous or asynchronous?
    23)what is output type?
    24)what does slection-screen of RBDMIDOC contains?
    25)what parameters u specifyng in RFc destination?
    26)what customiging y do to transfer the data from one logical systme to another logical system?
    27)can u explain brifely how idoc's genrated?
    28)if i just extend the idoc, what are the things u need to do?can i extend the same ouboud program?
    29)can u just explain what partner profile contains?
    30)what are process codes?
    31)if i just develop a gui status using pf-status.is it confined to single program or can be used for any other programs?
    32)what is client?
    33)what is diff b/w se01,se09,se10,stms  transction codes?
    34)what is the diff b/w select single * from kna1 and select * from kna1 for all entries?
    35)in subroutines paramaters are changing & using .what is the diff b/w them?
    1) what is the diff b/w scripts & smart forms?
    2)what are the function module used in smart forms?
    3)what are the function module? what is the use of them?
    4)what is the index? what is the secodary index ? whta is uses of them?
    5)what is the table  technical characteristics?
    6)waht is buffering? types?
    7)what is the use of interactive reprt?
    8)what is the use of alv?
    9)what are problems  u have faced when u r doing projecs?
    10)what is the diff b/w template & tables?
    11)which function module used for transferring from one version to anthoer version?
    12) what determines the sequence in events blocks are processed?
    13)in what case are otional parameters  allowed in the passig of parameters?
    a) functions  b) forms
    14)what relationship can be  esatblished in watch points?
    15)what are requiremets of reading hashed internal table?
    16)what does a context object provides?
    17)what access methods are avaliable  for accessing internal table?
    18)what operations are allowed when processing data of records in internal  table?
    19)what tasks could be performed in SAPNET?
    20)what is search  help?
    21)what is the lock object?
    22)what is diff b/w domain and data elemnt?
    23)what is diff b/w check table and value table?
    24)what are the control break statements?
    25)how to display SUM?
    26)what is the diff b/w select single  & select upto one row?
    27)collect what it did?
    28)how to findout data in internal table?
    29)syntax for describe statement?
    30)hwo to findout if internal table is empty or not?
    31)hwo to transfer data from one internal table to another internal table?
    32)how to modify internal table?
    33)Read statement syntax?
    34)what is the default event?
    35)i have write only top-of-page event in that  write: / 'welcome' what will happen?
    36)what is message-d?
    37)what is the diff b/w with events &  without events?
    38)what is the purpose of Direct input method?
    39)what is local object?
    40)is it possible  to back ground process in call transaction? how?
    41)what are diff types of errors?
    42)what are the diff types function modules used in layout set?
    43)what is the diff b/w open_form & start_form?
    44) how to define  logo?
    45)after modification how to send modified form to modified print program?
    46)what are the symbols in sap scripts? functionality of them?
    47)how to write a Report in another Report?
    48)syntx fr submitt &what it did?
    49)what is the land scape of ABAP?
    50)what is index? types?
    51)hwo many secondary indexe are possible to create?
    52)what is diff b/w select single * from & select upto one row?
    53)in my 100 records 55th record is need some changes and that record how to send body to header line?
    54) what is the use of indexs?
    55)what is the diff b/w page area & roll area?
    56)diff b/w interface & conversion?
    57)how we configured ports andpartner-profiles?
    58)what si the Enhancement and what u had did with user-exist?
    59)who can extend Idoc?
    60)how many types of select staments?
    61)what is header line?
    62)what is diff b/w internal table work area & table work area?
    63)if we don't have header line what will happen?
    64)when the user-exist will triggered? for which purpose u have used and where u have written?
    65) how we linked the tables?
    66)in at selection-screen and at user-command event which one is triggred?
    67)what is the use of at pf-status? where did u use it?
    68)is it possible to run Host command inSAP environment? how do u run it?
    69)what are user-exists? what is involved in writting them? what precautions are needed?
    70)what is the version management?
    71)if u send the objects from dev server to production server,but get some  bugs so those bugs how to handle?
    72)if u upload the data after that. i din't put committ,then what happen?
    73)how to maintain dataintegrity?
    74) how to validate fields?
    1)how u connect the unix platform from SAP server?
    2)what is database object ? Runtime object?
    3)How to populate BDC table control?
    4)How to implemnt intreactive  list in alv?tell me fumnction module for that?
    5)How to transfer from data list to transactions?
    6)How can u add anew field to Script?
    7)what are problems in processing batch input session?
    8)diff b/w select-options & ranges?
    9)what is meant by satck list?
    10)if u don't have header line for internal table what will happen?
    11)what is the max no of calling modes stacked at one time is?
    12)what is collect command ? how it is works?
    13)if u want come back from 15th list to basic list waht will u do?
    14)what is the default mode of transfers data to and from application server?
    15)what is the purpose of EXTRACT parameter?
    16) how will u delete duplicate records from internal table?
    17)in for all entries clause of select statement ,if internal table is empty what will happen?
    18) How can u find the no of records in a table?
    19)Billing and invoice details are where stored?
    20)what is the typical structure of ABAp program?
    21)what is diff b/w ABAP program &user defiend program?
    22)can a transperent table exists in a data dictionary and not in the physical database?y/n
    23)diff b/w Collect & Append?
    24)logical unit of work means?
    25) How many types of  lock objects exists? what are they?
    26)what will u don inSPRO?
    27)how many tyeps buffers?
    28) what wil do by Maintainance generator?
    29) what is o/p type? what is done by this?
    30)program for BAPI?
    31)what is ALE implementation progarm?
    32) say the function code to catch function code F2?
    33) what is IDOC& how u can extend the IDOC?
    34)what is the advantage of LSMW?
    35)how many types of symbols u have on scripts & in which order they can executes?
    36)what is purpose of data conversion into SAP format from Legacy?
    37) what si the t-code for watch the flat file in application serever?
    38) what is purpose of driver program?
    39)what is contents of Functional Spec?
    40)what is contents of Technical Spec?
    41)How do u diasble a control in a selection-screen logic?
    42)what is source structure?
    43)what is target structure?
    44)if u don't have the access to modify the print program then how do u insert the text elemnts?
    45)how can u call report in another program?
    46)specify the events for classic & intractive  reports in order?
    47)say some usally used system fields in our programs?
    48)how can u create check box in alv?
    49)diff b/w select-options & parameters?
    50)how can u create  labels in scripts?
    51)how u display the data in scripts?
    52)What is the diff b/w At selection-screen output & initialization?
    53)how u trap the errors in call transations?
    54)diff b/w scripts & smart forms?
    55)types of internal tables & explain them?
    56)how many types of loops?
    57)Diff b/w Synchronous & Asynchronous RFC
    58)How u place data in table cotrol?
    59)what are the methods execute in LSMW?
    60)diff b/w sy-index & sy-tabix?
    61) in call transaction bckground process which mode u prefer?
    62)what is configuration of ALE?
    63) what are all read operations in itab?
    64)diff b/w search help & pov, which one trigger first?
    65)where u can u do the validations in report?
    66)what are the events in Module program?
    67)diff b/w call transactions & session method and wher trap erros in both methods? how?
    68)diff b/w scripts & reports?
    69)how u define text elemnts inscripts?
    70)what are the function modules inscripts?
    71)how u diplay the data in scripts?
    72)how  do u do  the perfomance testing?
    1)when it wll triggerd initialization event? Before how many events will triggerd?what are they?
    2)how many types of meaasges ?
    3)what is use of Dump analysis?
    4)what is the use for all entries?
    5)what Is the diff  b/w check & continue?
    6)whenever use EXIt statement whappend in loop … endloop   and within subroutines,  within start-of-selection ,with in end-of-selectio  and in initialization?
    7)what is the diff b/w value table and check table?
    8)in data element level I used search help and in domain level I used value table which will be shows our criteria?
    9)without doing any changes in printprogarm  I want to add some fields how can?
    10)how many mainwindows in one page? What is the use of remaing main windows?
    11)what is sy-index & sy-tabix?
    12)what are the qualities u have to maintain to ur developments?
    13)Smart forms are client  independent how u  justify that?
    14)in keyindexex what is the relationship 1:n?
    15)in dynpro how can insert radio butto?
    16)How can u use search help?
    17)in MEDRUCk(ME21)  I have changes some fields so immediate those changes send to Vendor through e-mail or fax? What is procedure?
    18) I worked in foreground one session successfully so tommarow I have to work same session in back ground then what happen?
    19)in bdc table control wher u have to face problem?
    20)In alv grid  control at the top  I want header/ how can u display?
    21)how can u print long text in scripts?
    22)how to display Text every 4 lines after?
    1)how can  u create u r own types in an ABAP report?
    2)which system variable is encounted in loop counter?
    3) which system variable is store the record counter?
    4)does a select statement carry out any authorization chek?
    5)what is function of environment variable sy-lisel in interactive reports?
    6)how can we identify which button is pressed?
    7)diff b/w se09 ,Se10?
    8)table in which entry for development class is made?
    9)which client is authorized to create the workbench oragnizer configuration?
    10)can we provide more than one PBO PAI for one screen?
    11)which view can even possess one table?
    12)What are field symbols?
    13)which is ued to release to lock?
    14)what are the various types of customer –exists?
    15)what is port?
    16)what  are the selection-text?
    17)can we use  perform in SAP scripts?
    18)what is the t.code for table maintainance?
    1)write  validation logic for parameters option? Wher do u write ?(in at selection-screen or start-of-selection)?
    2)what is the diff b/w  ‘  ‘IN’ jn where condition and without ‘IN’ condition in where condition?
    3)how can u display 21st secondary list ?explain procedure?(code?)
    4)what is the diff b/w sorted and hashed tables?
    5)can write statement in initialization triggers first or write statemnt in start-of-selection?
    6)what can ud o if have no authorization to recording in BDC?(without F1 and Technical help)?
    7)what is the diff b/w SAPLUW and DBLUW?
    8)expalin VPN process?
    9)what is the text in reports and scripts?
    10)how can u  release ur objects to end user?
    11)write genereal statement to display dat-range?
    12)explain pricing procedure in sap?
    13)how can u display barcodes in sap scripts?
    14)explain flow of S.D?
    15)what are the performance techniques expect Modularization techniques I want remaning?
    1)what is the purpose of initialization?
    2)what are control break  statements?
    3)what is the diff b/w ‘at new and ‘on change’?
    4)what is the use of end-of-selection?
    5)in Runtime analysis what ar the main area will be displaying for tunnning?
    6)what are the ways to improve the performance the report?
    7)What is the diff b/w maintainance view and databe view?
    8)what are the type of search help?
    9)what is the diff b/w include structure and append structure?
    10)how can we generate new item in BDC program or the transaction ME21?
    11) in calltransaction while transferring the data what happens idf the power goes off?
    12) what are the standard  programs for  transfer the data for material master and vendor master?
    13)whare we can assign the page size?
    14)how can we call a subroutine in scripts?
    15)how many max pages  we have to design for script ?
    16) what is use of protected and end protected?
    17)what are the types of functional modules?
    18)how many types of screen filed validations? What ate they?
    19)how to convert  the scripts to smartforms?
    20)what is the history of purchase order? Wher is it store?
    21)can  we debug smartforms ?
    22)what is the material history and where is it store?
    23)what are the functional modules ued in ALV?
    24)what is the fieldcatalog merge use?
    25)how u print the heading in ALV ?
    26)what is the t.code for BDC?
    27)what is the purpose of application server?
    28)what are the text elements ? what is the use of text elements ?
    29)how u create vertical line  and horizanatal line in reports?
    30)what is the purpose header line?
    31)what is the purpose of occur  clause?what default area it occupies?
    32)what are  text elements?
    33)how many secondary indexes we can  create for a table?
    34)What is the ue of st05?
    35)what is the foriegn key table?and check table?
    36)what are some essential steps for loggig changes made to SAP data?

    Hi Mahesh,
    Very good questions.  Infact it's very difficult to answer all the questions.
    You can search many FAQs in net...
    If you have any specific questions related to single topic, Post message for each.
    I can send some of FAQ documents to u
    Answers
    1) Using Index like Field(1)-1st record field , Field(2) - 2nd record field etc... in Table control.. we can handle BDC
    2) BAPI will be programmed using OO concepts more.. and as Interfacing is more enhanced here than normal FM.
    etc...
    Regards,
    Manjunatha

  • ABAP FAQ

    Hi all
    Rather than going through the FAQ"s available in the Internet.I think questions that you experienced in the intervies will be really helpful for us.So am posting a few a question that i was asked in a interview.I request you to answer them and very importantly.Please post a few question that you reallly faced in the interviews.It will Contribute to all of us.
    1.How to get the number of records that a particular report has generated.
    Ans:By using the "describe tablle it_final lines ld_lines."
    where ld_lines is a variable of integer type.
    2.There is a report which has 85 records and it is displaying 10 records per page and it has a heading say "XYZ'" which we are getting by using TOP-OF-PAGE.Now tell me for this 85 record how many time the TOP-OF-PAGE event gets triggered.
    Ans:I think its 9.Please confirm me.
    3.We all know how to create a logo in a Script.Now the requirement is we need to print the LOGO of the customer.And each time the customer keeps changing.How to do it in a Script.
    Ans:I dont know.I acknowledege if anyone could answer this question.
    4.I need to print the value of a particular field in the TOP-OF-PAGE in a ALV report.How to do it.
    Ans:In the Function "REUSE_ALV_GRID_DISPLAY" there is i_callback_top_of_page so here gve as
    i_callback_top_of_page = 'TOP-OF-PAGE'.
    5.How to print LOGO in a ALV report.
    Ans.Use the function "REUSE_ALV_COMMENTARY_WRITE"
    This where the few questions i was asked in ainterview.Rest the interviewer has asked me on the objects i"ve done.I request each one of you to contribute.So that it will be very useful to people appering for interviews.Because,i"ve seen most of the time we miss out on the basics though we used it.
    Thank You.
    With Regards,
    Vijay Krishna G

    Hello Marc,
    Here are the answers -
    1.
    2. E.
    Reason - The addition "IN UPDATE TASK" will always cause an asynchronous update. The updates are all fired when the next COMMIT WORK statement in executed.
    3. B.
    Reason - See this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/frameset.htm">link</a>
    4. This does not make much sense to me. There can be more than one answer.
    For Example -
    --> Function modules <i><b>can</b></i> use a shared memeory area if the top include has some data.
    --> Function Modules <b><i>can</i></b> have inbound and outbound parameters. but this is not always necessary.
    =========================
    Hope this helps.
    Regards,
    Anand Mandalika.

  • Faq's in Interview point of view

    Hi All,
    I have a favour from all of you, I want to know what are the type of questions that would be asked in interview if I put these objects
    Reports :
    Created Material Master report for existing stock details.
    Created Material Master report for various storage locations.
    BDC :
    Migrated legacy data from Non SAP to SAP using SE11 transaction.
    Migrated legacy data using MK01 transaction.
    LSMW :
    Migrated legacy data using MM01 transaction.
    Reports
    Generated a report to print the purchase order details of goods received with purchase order number.
    Generated a program to create a report which calculates the material cost, it selects all the material issued for the entered service order number from stock.
    Sap Scripts
    Worked on Modifying the predefined Sap Script for Distributing Customer Billing.
    Smart Forms
    Worked on creating Job requisition form.
    Reports:
    Developed a ALV Grid Interactive report to evaluate the Vendor performance for a specified purchase organization in a particular period.
    Generated a ALV grid interactive report that displays the Material numbers and
    corresponding Maintenance status in the basic list and upon selection of a particular
    material no it gives the detailed information of that material no in two different levels.
    BDC:
    Interface to upload change the sales order for open sales order and partial sales order using the transaction VA02 through batch input method.
    SAP Scripts :
    Modified the Order layout set with slight changes in the terms and conditions, date
    format.
    Changes made to the invoice layout set as per the client requirement
    i would very much indebted to each and everyone whoever is helping to secure a job in ABAP..
    Thanking u in advance...
    srinivas
    u can also mail me @ [email protected]

    1.     How data is stored in cluster table?
    Each field of cluster table behaves as tables which contains the no. of entries.
    2. What are client dependant objects in abap/sap?
    SAP Script layout, text element, and some DDIC objects.
    3. On which even we can validate the input fields in module progams?
    In PAI (Write field statement on field you want to validate, if you want to validate group of fields put in chain and End chain statement.)
    4. In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically?
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get material and material group for the plant.
    5. How do you get output from IDOC?
    Data in IDOc is stored in segments, the output from Idoc is obtained by reading the data stored in its respective segments.
    6. When top of the page event is triggered?
    After excuteing first write statement in start-of-selection event.
    7. Can we create field without data element and how?
    In SE11 one option is available above the fields strip. Data element/ direct type.
    8. How do we debug sapscript?
    Go to SE71 give lay set name , go to utilities select debugger mode on.
    9. Which transaction code can I used to analyze the performance of ABAP program.
    TCode AL21.
    10. How can I copy a standard table to make my own z_table.
    Go to transaction SE11. Then there is one option to copy table. Press that button. Enter the name of the standard table and in the Target table enter Z table name and press enter.
    Following are some of the answers which I gave upto my knowledge.
    1. What is the use of 'outerjoin'
    Ans. With the use of outer join you can join the tables even there is no entry in all the tables used in the view.
    In case of inner join there should be an entry in al the tables use in the view.
    2. When to use logical database?
    Ans. Advantage of Logical databases:
    less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    3. What is the use of 'table index'?
    Ans .Index is used for faster access of data base tables.
    4. What is the use of 'FOR ALL ENTRIES'?
    Ans. To avoid nested select statements we use SELECT FOR ALL ENTRIES statement.
    If there r more than 10000 records SELECT FOR ALL ENTRIES is used.
    Performance wise SELECT FOR ALL ENTRIES is better to use.
    5. Can you set up background processing using CALL TRANSACTION?
    Yes,Using No Screen Mode.
    6. What are table buffers?
    Table buffers reside locally on each application server in the system. The data of buffered tables can thus be accessed
    directly from the buffer of the application server. This avoids the time-consuming process of accessing the database.
    Buffering is useful if table needs to be accessed more no. of times in a program.
    ABAP Technical Interview Questions:
    1. What is the typical structure of an ABAP program?
    2. What are field symbols and field groups.? Have you used "component idx of structure" clause with field groups?
    3. What should be the approach for writing a BDC program?
    4. What is a batch input session?
    5. What is the alternative to batch input session?
    6. A situation: An ABAP program creates a batch input session. We need to submit the program and the batch session in background. How to do it?
    7. What is the difference between a pool table and a transparent table and how they are stored at the database level?
    8. What are the problems in processing batch input sessions? How is batch input process different from processing on line?
    9. What do you define in the domain and data element?
    10. What are the different types of data dictionary objects?
    11. How many types of tables exist and what are they in data dictionary?
    12. What is the step-by-step process to create a table in data dictionary?
    13. Can a transparent table exist in data dictionary but not in the database physically?
    14. What are the domains and data elements?
    15. Can you create a table with fields not referring to data elements?
    16. What is the advantage of structures? How do you use them in the ABAP programs?
    17. What does an extract statement do in the ABAP program?
    18. What is a collect statement? How is it different from append?
    19. What is open sql vs native sql?
    20. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
    21. What is the meaning of ABAP editor integrated with ABAP data dictionary?
    22. What are the events in ABAP language?
    23. What is an interactive report? What is the obvious diff of such report compared with classical type reports?
    24. What is a drill down report?
    25. How do you write a function module in SAP? Describe.
    26. What are the exceptions in function module?
    27. What is a function group?
    28. How are the date abd time field values stored in SAP?
    29. What are the fields in a BDC_Tab Table?
    30. Name a few data dictionary objects?
    31. What happens when a table is activated in DD?
    32. What is a check table and what is a value table?
    33. What are match codes? Describe?
    34. What transactions do you use for data analysis?
    35. What is table maintenance generator?
    36. What are ranges? What are number ranges?
    37. What are select options and what is the diff from parameters?
    38. How do you validate the selection criteria of a report? And how do you display initial values in a selection screen?
    39. What are selection texts?
    40. What is CTS and what do you know about it?
    41. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it?
    42. What is the client concept in SAP? What is the meaning of client independent?
    43. Are programs client dependent?
    44. Name a few system global variables you can use in ABAP programs?
    45. What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?
    46. How do you take care of performance issues in your ABAP programs?
    47. What are datasets?
    48. How to find the return code of a stmt in ABAP programs?
    49. What are interface/conversion programs in SAP?
    50. Have you used SAP supplied programs to load master data?
    2. Adapted from response by Maram Roja on Tuesday, June 15, 2004
    1. What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?
    2. What are logical databases? What are the advantages/disadvantages of logical databases?
    3. What specific statements do you using when writing a drill down report?
    4. What are different tools to report data in SAP? What all have you used?
    5. What are the advantages and disadvantages of ABAP query tool?
    6. What are the functional areas? User groups? How does ABAP query work in relation to these?
    7. Is a logical database a requirement/must to write an ABAP query?
    8. What is the structure of a BDC sessions.
    9. What are Change header/detail tables? Have you used them?
    10. What do you do when the system crashes in the middle of a BDC batch session?
    11. What do you do with errors in BDC batch sessions?
    12. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?
    13. Is it possible to run host command from SAP environment? How do you run?
    14. What kind of financial periods exist in SAP? What is the relevant table for that?
    15. Does SAP handle multiple currencies? Multiple languages?
    16. What is a currency factoring technique?
    17. How do you document ABAP programs? Do you use program documentation menu option?
    18. What is SAPscript and layout set?
    19. What are the ABAP commands that link to a layout set?
    20. What is output determination?
    ABAP Interview Questions
    1.Without using Tcode SE11, How can we enter the values in to the table???
    2.What is the difference between Collect statement and Append Statement???
    3.What do you mean by correction and Transportation system???
    4.What is the difference between User Exits and BADI????
    5.How can we identify User exits in our screen???
    6.What do you mean by Inbound and Outbound interface???
    7.In realtime do we configure ALE systems or Administator will take care of that??
    8.How to release an object???
    9.What is the flow of a Sales document???
    10.What is the flow of Purchase order???
    12.What is the flow of Invoice???
    13.What are the standard IDOC's used???
    14.What do you mean by table control???Where will we use this???
    15.What are field symbols??Where will we use these symbols???
    Deepti
    1. There are other ways of entering data into a DB table. ex. B D C
    2. Collect statement collect/adds the records basing on a key field. allows to create summarised data sets.
    Append will append/add a record at the end of existing records
    8. to release an object - use se10/se9
    9. sales doc flow: S. A. - S. O. - Delivery - Billing
    12. Delivery - invoice.
    15. field symbols are used for dynamic allocation. at runtime u can assign a concrete field to field-symbol.
    Kishore
    1. you can go to abap editor (se38) and use insert statement for insertion update for update and modify for modifications.
    2. collect will not allow duplicate entries, while append can allow duplicates.
    3. if any changes are made to objects they are to be transported to different systems i.e, change and transport.
    4. in user exits we go by general method for enhancements while BADIs we use objects (oops concepts)
    methods for enhancement.
    14. table controls are enhanced version for step loops where we can expand rows .main difference between these two
    is step loop can be expanded to two lines table controls can`t.
    15. field symbols are just like pointers concept which are used in C language. We use them when we want to refer to
    the fields considered,it doesnt allocate any memory for it.
    Venu Rapolu
    1. Ans: Using BDC., LSMW,,ALE., BAPI
    2. Ans: Collect: it adds the numeric fields to the existing non numeric key field records., thereby avoiding duplicate
    values., and append will simply adds the record
    3 . Ans: The CTS contains work bench organizer and transport system :
    The workbench organizer is used to record and contol changes to the ABAP/4 development objects;
    The transport system is used to move objects from an SAP dev.system to production system
    6. Ans: Outbound interface is used to send IDocs to the ALE server.,
    Inbound interface is used to Analyse the received Idoc.
    7. Ans: We (ABAPers) don't do.
    8. Ans: se09 or se10
    13. Ans: MATMAS
    CREMAS
    DEBMAS
    GLMAST etc...
    14. Ans: to display records in table format., we use in Screens
    15. Ans: we assign the field content at run time with ASSIGN stmt.
    Satish D
    1. goto se16 u can view the table contents
    2. collect will collects all the numeric fields of nonnumeric field values
    append will append record at the end of table
    3. when we are creatiing new task like dev. a new prg.. after completion of dev. that will be trnsported to testing system or production system to do that we are assigning an
    transport request from our dev.class(system) by using se09
    4. badis are dev. by class and inheritence methods where as user exitsdev by SAP only and empty shells filled wit user logic
    5. go to system then status
    6. outbound generating an idoc in ale layer with master_idoc_create_messgetype,
    inbound is receivng system with idoc_inbound_process, gives an return variable wether it is sucess or not
    7. no we have to configur that
    8. go to se09 or se01 there write your task no and use release button it will asks whats the other system name
    and number enter them and relase by pressing jeep button
    9. inquiry
    quotation
    sales order
    shipping
    delivery
    invoice
    return goods
    12. after creation of delivry note invoice is prepared
    13. master_idoc_distribute will generate standard idoc
    Deepti
    I am enclosing some of answers which I know.
    1. We can use t.Code SE16 to enter values into table only if table maintainence is allowed for that table.
    2. Append will add new entries into the table where as collect add into the numeric type fields if other charatcer fields
    matches to your selection criteria.
    3. CTS used for creation of ABAP development transport requests.The transaction code for this is SE10.
    4. UserExits r used for adding additional functionality to the existing SAP standard transactions.Using UserExits we can add additional functionality standard SAP functionality without making any changes to the original code.BADI is a standardized interface for ABAP sources that enables partners and customers to enhance SAP-delivered programs in their namespace.
    5 .We can identify User exits by using transactions CMOD and SMOD.
    6. After entering transaction code SE10 select the transport request which u want to transport and click on transport icon(Truck symbol) to release it.
    10. Purchase Requistion->RFQ->Vendor Evaluation->Purchase Order(ME21).
    14. Table control is the only facility provide thru dialog programming when we come acrosse the use of updating standared,deletion,insertion and all database operations.
    15. Field symbols r pointers to the existing data types(like 'C') which does not allocate any memory space. These are used faster access of data.
    Answers to some ABAP Interview Questions:
    Questions which I have faced in an interview:
    1) What is runtime analysis? Have you used this?
    2) What is meant by performance analysis? Have done anything to improve the performance?
    3) How to transfer the objects? Have to transferred any objects?
    4) How did you test the developed objects?
    5) What is the difference between SAP Memory and ABAP Memory?
    6) In order to upload Purchase order details, how you handle multiple values for a single field?
    Eg: Item field may contain no. of values for a record
    7) What is the procedure you followed to upload the data?
    8) How did you handle errors in Call Transaction?
    9) Among the Call Transaction and Session Method, which is faster?
    10) What are the difference between Interactive and Drill Down Reports?
    11) How to pass the variables to forms?
    12) How to create a link between modified form and modified print program?
    13) What is the table, which contain the details of all the name of the programs and forms?
    14) How did you test the form u developed? How did you taken print?
    15) What are Standard Texts?
    16) What is the difference between Clustered Tables and Pooled Tables?
    17) What is pf-status?
    18) Among "Move" and "Move Corresponding", which is efficient one?
    19) What are the output type and Tcodes?
    20) Where we use Chain and Endchain?
    21) Do you use select statement in loop endloop, how will be the performance? To improve the performance?
    22) In select-options, how to get the default values as current month first date and last date by default?
    Eg: 1/12/2004 and 31/12/2004
    Go thru these answers:
    1) What is runtime analysis? Have you used this?
    It's checks program execution time in microseconds. When you go to se30.if you give desired program name in performance file. It will take you to below screen. You can get how much past is your program.
    2) What is meant by performance analysis? Have done
    3) How to transfer the objects? Have you transferred any objects?
    4) How did you test the developed objects?
    I was testing a developed object. There are two types of testing
    - Negative testing
    - Positive testing
    In negative testing we will give negative data in input and we check any errors occurs.
    In positive testing we will give positive data in input for checking errors.
    8) How did you handle errors in Call Transaction?
    We can create a internal table like 'bsgmcgcoll'. All the messages will go to internal table. We can get errors in this internal table.
    Below messages are go to internal table. when you run the call transaction.
    - Message type
    - Message id
    - Message Number
    - Variable1
    - Variable2
    - Variable3
    9) Among the Call Transaction and Session Method, which is faster?
    Call transaction is faster then session method. But usually we use session method in real time...because we can transfer large amount of data from internal table to database and if any errors in a session. Process will not complete until session get correct.
    10) What are the difference between Interactive and Drill Down Reports?
    ABAP/4 provides some interactive events on lists such as AT LINE-SELECTION (double click) or AT USER-COMMAND (pressing a button). You can use these events to move through layers of information about individual items in a list.
    Drill down report is nothing but interactive report...drilldown means above paragraph only.
    11) How to pass the variables to forms?
    12) What is the table, which contain the details of all the name of the programs and forms?
    Table contains vertical and horizontal lines. We can store the data in table as blocks. We can scroll depends upon your wish. And these all are stored in database (data dictionary).
    Which contain the details of all the name of the programs and forms? (I don't know).
    13) How did you test the form u developed? How did you taken print?
    14) What are Standard Texts?
    16) What is the difference between Clustered Tables and Pooled Tables?
    A pooled table is used to combine several logical tables in the ABAP/4 dictionary. Pooled tables are logical tables that must be assigned to a table pool when they are defined.
    Cluster table are logical tables that must be assigned to a table cluster when they are defined.
    Cluster table can be used to store control data they can also used to store temporary data or text such as documentation.
    17) What is pf-status?
    Pf status is used in interactive report for enhancing the functionality. If we go to se41, we can get menus, items and different function keys, which we are using for secondary list in interactive report.
    18) Among "Move" and "Move Corresponding", which is efficient one?
    I guess, 'move corresponding' is very efficient then 'move' statement. Because usually we use this stamtent for internal table fields only...so if we give move corresponding. Those fields only moving to other place (what ever you want).
    19) What are the output type and Tcodes?
    20) Where we use Chain and End chain?
    21) Do you use select statement in loop end loop, how will be the performance? To improve the performance?
    22) In select-options, how to get the default values as current month first date and last date by default?
    Eg: 1/12/2004 and 31/12/2004
    SAP ABAP interview questions
    Thanks to the reader who sent in this question set:
    1. What is an ABAP data dictionary?- ABAP 4 data dictionary describes the logical structures of the objects used in application development and shows how they are mapped to the underlying relational database in tables/views.
    2. What are domains and data element?- Domains:Domain is the central object for describing the technical characteristics of an attribute of an business objects. It describes the value range of the field. Data Element: It is used to describe the semantic definition of the table fields like description the field. Data element describes how a field can be displayed to end-user.
    3. What is foreign key relationship?- A relationship which can be defined between tables and must be explicitly defined at field level. Foreign keys are used to ensure the consistency of data. Data entered should be checked against existing data to ensure that there are now contradiction. While defining foreign key relationship cardinality has to be specified. Cardinality mentions how many dependent records or how referenced records are possible.
    4. Describe data classes.- Master data: It is the data which is seldomly changed. Transaction data: It is the data which is often changed. Organization data: It is a customizing data which is entered in the system when the system is configured and is then rarely changed. System data:It is the data which R/3 system needs for itself.
    5. What are indexes?- Indexes are described as a copy of a database table reduced to specific fields. This data exists in sorted form. This sorting form ease fast access to the field of the tables. In order that other fields are also read, a pointer to the associated record of the actual table are included in the index. Yhe indexes are activated along with the table and are created automatically with it in the database.
    6. Difference between transparent tables and pooled tables.- Transparent tables: Transparent tables in the dictionary has a one-to-one relation with the table in database. Its structure corresponds to single database field. Table in the database has the same name as in the dictionary. Transparent table holds application data. Pooled tables. Pooled tables in the dictionary has a many-to-one relation with the table in database. Table in the database has the different name as in the dictionary. Pooled table are stored in table pool at the database level.
    7. What is an ABAP/4 Query?- ABAP/4 Query is a powerful tool to generate simple reports without any coding. ABAP/4 Query can generate the following 3 simple reports: Basic List: It is the simple reports. Statistics: Reports with statistical functions like Average, Percentages. Ranked Lists: For analytical reports. - For creating a ABAP/4 Query, programmer has to create user group and a functional group. Functional group can be created using with or without logical database table. Finally, assign user group to functional group. Finally, create a query on the functional group generated.
    8. What is BDC programming?- Transferring of large/external/legacy data into SAP system using Batch Input programming. Batch input is a automatic procedure referred to as BDC(Batch Data Communications).The central component of the transfer is a queue file which receives the data vie a batch input programs and groups associated data into “sessions”.
    9. What are the functional modules used in sequence in BDC?- These are the 3 functional modules which are used in a sequence to perform a data transfer successfully using BDC programming: BDC_OPEN_GROUP - Parameters like Name of the client, sessions and user name are specified in this functional modules. BDC_INSERT - It is used to insert the data for one transaction into a session. BDC_CLOSE_GROUP - This is used to close the batch input session.
    10. What are internal tables?- Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.
    11. What is ITS? What are the merits of ITS?- ITS is a Internet Transaction Server. ITS forms an interface between HTTP server and R/3 system, which converts screen provided data by the R/3 system into HTML documents and vice-versa. Merits of ITS: A complete web transaction can be developed and tested in R/3 system. All transaction components, including those used by the ITS outside the R/3 system at runtime, can be stored in the R/3 system. The advantage of automatic language processing in the R/3 system can be utilized to language-dependent HTML documents at runtime.
    12. What is DynPro?- DynPro is a Dynamic Programming which is a combination of screen and the associated flow logic Screen is also called as DynPro.
    13. What are screen painter and menu painter?- Screen painter: Screen painter is a tool to design and maintain screen and its elements. It allows user to create GUI screens for the transactions. Attributes, layout, filed attributes and flow logic are the elements of Screen painter. Menu painter: Menu painter is a tool to design the interface components. Status, menu bars, menu lists, F-key settings, functions and titles are the components of Menu painters. Screen painter and menu painter both are the graphical interface of an ABAP/4 applications.
    14. What are the components of SAP scripts?- SAP scripts is a word processing tool of SAP which has the following components: Standard text. It is like a standard normal documents. Layout sets. - Layout set consists of the following components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3 system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program.
    15. What is ALV programming in ABAP? When is this grid used in ABAP?- ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.
    16. What are the events in ABAP/4 language?- Initialization, At selection-screen, Start-of-selection, end-of-selection, top-of-page, end-of-page, At line-selection, At user-command, At PF, Get, At New, At LAST, AT END, AT FIRST.
    17. What is CTS and what do you know about it?- The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing, and then transport the changes between the SAP Systems and clients in your system landscape. This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation when planning your development project.
    18. What are logical databases? What are the advantages/ dis-advantages of logical databases?- To read data from a database tables we use logical database. A logical database provides read-only access to a group of related tables to an ABAP/4 program. Advantages: i)check functions which check that user input is complete, correct,and plausible. ii)Meaningful data selection. iii)central authorization checks for database accesses. iv)good read access performance while retaining the hierarchical data view determined by the application logic. dis advantages: i)If you donot specify a logical database in the program attributes,the GET events never occur. ii)There is no ENDGET command,so the code block associated with an event ends with the next event statement (such as another GET or an END-OF-SELECTION).
    19. What is a batch input session?- BATCH INPUT SESSION is an intermediate step between internal table and database table. Data along with the action is stored in session ie data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.
    20. How to upload data using CATT ?- These are the steps to be followed to Upload data through CATT: Creation of the CATT test case & recording the sample data input. Download of the source file template. Modification of the source file. Upload of the data from the source file.
    21. What is Smart Forms?- Smart Forms allows you to create forms using a graphical design tool with robust functionality, color, and more. Additionally, all new forms developed at SAP will be created with the new Smart Form solution.
    22. How can I make a differentiation between dependent and independent data?- Client dependent or independent transfer requirements include client specific or cross client objects in the change requests. Workbench objects like SAPscripts are client specific, some entries in customizing are client independent. If you display the object list for one change request, and then for each object the object attributes, you will find the flag client specific. If one object in the task list has this flag on, then that transport will be client dependent.
    23. What is the difference between macro and subroutine? - Macros can only be used in the program the are defined in and only after the definition are expanded at compilation / generation. Subroutines (FORM) can be called from both the program the are defined in and other programs . A MACRO is more or less an abbreviation for some lines of code that are used more than once or twice. A FORM is a local subroutine (which can be called external). A FUNCTION is (more or less) a subroutine that is called external. Since debugging a MACRO is not really possible, prevent the use of them (I’ve never used them, but seen them in action). If the subroutine is used only local (called internal) use a FORM. If the subroutine is called external (used by more than one program) use a FUNCTION.
    Please check these links.
    http://www.sap-img.com/abap/abap-interview-question.htm
    http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
    http://sap.ittoolbox.com/documents/document.asp?i=3240
    http://www.techinterviews.com/?p=198
         http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
    http://www.****************/InterviewQ/interviewQ.htm
    http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
    http://www.techinterviews.com/?p=198
    http://www.techinterviews.com/?p=326
    http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
    http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
    http://www.sap-img.com/abap/abap-interview-question.htm
    http://www.allinterview.com/Interview-Questions/ABAP.html
    regards,
    srinivas

  • Suggestions thread for ABAP FAQ sticky

    See these threads for "online collections" in the ABAP Development forums =>
    FAQ's, intros and memorable discussions in the ABAP General Forum
    FAQ's, intros and memorable discussions in the ABAP Data Dictionary Forum
    FAQ's, intros and memorable discussions in the ABAP UI Programming Forum
    FAQ's, intros and memorable discussions in the ABAP Form Printing Forum
    FAQ's, intros and memorable discussions in the Enhancements & Modifications
    FAQ's, intros and memorable discussions in the Performance and Tuning Forum
    FAQ's, intros and memorable discussions in the Data Transfers Forum
    FAQ's, intros and memorable discussions in the ABAP Objects Forum
    Edited by: Julius Bussche on Apr 21, 2009 5:22 PM

    ABAP General
    Subtotals in alv list.   => Subtotals in ALV    <= Added and moved to UI programming
    Can we modify a sub-total in ALV => Subtotals text in ALV /Modification of Subtotals in ALV   <= Moved down to new thread.
    cl_salv_table - Save Layout =>  ALV OM Save layout option <= Moved down to new thread.
    Report with page break.   => ALV Report with page break. <= Moved down to new thread.
    ALV Sorting Not Working after Adding Checkbox to ALV => ALV Sorting and Group Functionality working with Checkbox <= Moved down to new thread.
    Calculating Total with Checkbox in ALV Grid => Calculating Total with Checkbox in ALV Grid  <= Moved down to new thread.
    DUMP WHILE SUMMATION IN ALV  => General Fieldcatalog error.  <= Moved down to new thread.
    Problems with REUSE_ALV_FIELDCATALOG_MERGE =>Problems with REUSE_ALV_FIELDCATALOG_MERGE   <= Moved down to new thread.
    Must i_structure_name for LVC_FIELDCATALOG_MERGE be pre-defined in dict?   => Converting SLIS fieldcatalog to LVC fieldcatalog  <= Moved down to new thread.
    Capture Checkbox Value in ALV Grid   => Capturing the editable fields values in ALV   <= Moved down to new thread.
    how to refresh table display using slis and 'reuse_alv_grid_display method. => Refreshing the ALV Display  <= Moved down to new thread.
    fetch data in edittable field in alv using REUSE_ALV_GRID_DISPLAY_LVC FM => Reading the editable values for ALV LVC function  <= Moved down to new thread.
    Radibutton in ALV Report output => Radio buttons in ALV report  <= Moved down to new thread.
    Edit rows in ALV => Usage of Styles in ALV for disable/enable input option  <= Moved down to new thread.
    how to copy/delete file => executing Unix commands <= Hmmm... c-calling the 'system' does not work in my systems during normal operations. See system param 'rdisp/call_system' which can be disabled, then the code dumps. Is there a different thread with DATASET commands? SXPG?
    express CR_LF => ABAP char Utilities CR_LF use , replace '##' in a application server <= Ahhh yes, I remember this series. This is one of the nicer threads from it... Added.
    String Operations which contain the special character '#' in BDC Session => ABAP char Utilities Horizontal_tab use , replace '#' in application server file <= Sufficiently covered by the next thread.
    Problem with statement "find all occurences of ..." => ABAP char utilites Newline, replace '#' in application server in end of line <= Added.
    How to Send Email to Outlook? =>sending mails to outlook <= Added.
    FM for uploading Image to SAP => upload image to mime repository <= Added.
    Passing an Internal Table to a Report executed through 'Submit' => use of Import and export refer Rich Heilman's code  <= Added.
    Create a parameter to enter a password => Selection parameter password behaviour  <= Added.
    ABAP Dictionary
    =>
    Form Printing
    Exporting Graphics from SAP =>Download Logo from SE78 <= Okay, added... but the thread is rather old and ws_download is obsolete now, isn't it?
    BDC for SE78 Transaction  => Upload Logo programatically <= Hmmm... external performs and guests. I would like more opinions on this one before adding.
    UI Programming
    [Top of page in OO ALV|TOP_OF_PAGE in ALV  Using CL_GUI_ALV_GRID ]=> Top of page in OO ALV <= I understand that this blog was very helpfull, but it is full of email addresses. Hmmm.. tough call Is there another example (thread) without any "here is my mail address" comments. We want to avoid those.
    [Top of page Alignments in Normal ALV|Alignment of  Data in TOP-OF-PAGE in ALV GRID] =>  Top of page in normal ALV <= this is more wiki material in a blog, but again often asked... Hmm.. lets go through the others first and come back to this one.
    To display URL as a hyperlink (along with simple text) in dialog program   => URL display using HTML Viewer  <= Added.
    select-option on dynpro => Select-options usage in Module pool programming  <= Added.
    New! =>
    Enhancements and Modifications
    =>
    ABAP Performance and Tuning
    =>
    Data Transfers
    =>
    ABAP Objects
    =>
    Edited by: Julius Bussche on Oct 3, 2008 10:31 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:34 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:38 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:43 PM
    Edited by: Julius Bussche on Oct 3, 2008 10:55 PM
    Edited by: Julius Bussche on Oct 4, 2008 12:06 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:40 AM
    Edited by: Julius Bussche on Oct 4, 2008 12:57 AM
    Edited by: Julius Bussche on Oct 4, 2008 1:23 AM
    Edited by: Julius Bussche on Oct 4, 2008 3:27 PM
    Edited by: Julius Bussche on Oct 4, 2008 3:39 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:40 PM
    Edited by: Julius Bussche on Oct 4, 2008 5:59 PM
    Edited by: Julius Bussche on Oct 4, 2008 7:17 PM

  • ALV to Excel sheet problems

    HI Friends,
    I have created an ALV report with 87 fields in it. Whenever I am trying to download that report into excel the number of column breaks into 2 rows. In this case, The downloaded file contains 57 Columns in 1 row and remaining 29 Columns in second row. Can anyone please help me in understanding why this is happening while downloading this report into excel file and what will be the solution to correct it.
    Sreekanth.G
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Jul 9, 2010 11:35 AM

    Hi,
    This is an FAQ. Please search in SCN before Posting and Please see the SCN Rules also.
    With Regards,
    Sumodh.P

  • Problem in exporting data from alv output to excel

    Hi,
    I had developed  a report which has ALV report output.It is working fine and i am facing problem that when i am exporting it to the data to excel,it is not displaying the whole data in it. I am using reuse_alv_grid_display function module.
    Waiting for a positive response.
    Thanks & Regards,
    Rickky
    Moderator Message: FAQ. Please search for available information before posting.
    Edited by: kishan P on Nov 8, 2010 12:34 PM

    It is highly likely that the way you have built your field catalog is causing some data to drop on the export to excel. I have had this problem before. Check the fields in your fieldcat that are not working vs the ones that are working.

  • ALV to Excel to E-mail

    Hi,
         I want to convert the alv output to excel, then I want to send it through mail.
         I have written the program for alv output.
         Please help me..
    Moderator message: FAQ, please (re)search yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 11:55 AM

    my knowledge in database is not soo good..i want to start with the easy way...and then continue with SQL.....
    for example
    some place show to put this line
    <%
    Response.ContentType = "application/vnd.ms-excel"
    %>
    I just want to know I need just to put this line in the form ? or doing somthing else ?
    any example ?????

  • Download data from multiple tabs of ALV to tabs of Excel

    Hi,
    I have a requirement where ALV is being displayed in 6 tabs. Can a download functionality be provided in such a way that data from all the tabs gets downloaded into multiple sheets of Excel document.
    In the attached file, expected output with ALV in multiple tabs is displayed. Are there any Function modules which can be used to download data from ALV in each tab into Excel document sheets in one go?
    Thanks,
    Tejaswini.

    This is a FAQ, did you use search tool with keywords like worksheet, activate and OLE to find many threads and (some examples)
    a sample like XLSX Upload - A Unified Approach
    a project like abap2xlsx
    Regards,
    Raymond

  • FAQ's

    Can someone plz mail me the FAQ's on BDC,Smartforms,reporting(ALV,interactive,classical),IDoC's,Thank You

    Hi chidambar,
    Check the following Link
    http://www.sappoint.com/faq/faqss.pdf
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    ALVGRID with refresh
    http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
    Status Icon [ALV,Table Control,Tab Strip]
    http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
    ALV Group Heading
    http://www.sap-img.com/fu037.htm
    IDOCS
    http://searchsap.techtarget.com/general/0,295582,sid21_gci1110008,00.html
    https://idoc.collegeboard.com/idoc/idochelp_faq.jsp
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    Please see the below links
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions - XI Faq
    /people/sap.user72/blog/2005/11/22/xi-faqs-provided-by-sap-updated - XI : FAQ's Provided by SAP
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://sap.ittoolbox.com/documents/document.asp?i=3240
    http://www.techinterviews.com/?p=198.
    http://www.fundoosite.com/interview-questions/type.asp?iType=72
    http://www.sapassist.com/documents/document.asp?i=3240
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm.
    http://www.sap-img.com/business/sap-bw-interview-questions.htm
    http://www.sap-img.com/business/sap-bw-interview-questions-2.htm
    http://www.techinterviews.com/?p=184
    http://rapidshare.de/files/3829216/Bw_Interview_Questions.pdf.html
    Regards
    KK

  • Regarding ALV Tuning

    I want to create an ALV report to display the Purchase Order Details, the data will  come from 4 Database tables,I am extracting the data in 4 internal tables and then clubbing them to one final internal table,but the performance of my program is very bad,please suggest me some way.

    hi,
    first avoid occurs o etc.
    delcare internal tables using types for structure and data with header line.
    check for sy-subrc =0. for select statements ,use delete adjacent duplicates.
    if there is large amount of data ise LIST display instead of grid.
    for further performance issues chaeck below links.
    BAP performance depends upon various factors and in devicded in three parts:
    1. Database
    2. ABAP
    3. System
    Run Any program using SE30 (performance analys) to improve performance refer to tips and trics section of SE30, Always remember that ABAP perfirmance is improved when there is least load on Database.
    u can get an interactive grap in SE30 regarding this with a file.
    also if u find runtime of parts of codes then use :
    Switch on RTA Dynamically within ABAP Code
    *To turn runtim analysis on within ABAP code insert the following code
    SET RUN TIME ANALYZER ON.
    *To turn runtim analysis off within ABAP code insert the following code
    SET RUN TIME ANALYZER OFF.
    Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
    Avoid for all entries in JOINS
    Try to avoid joins and use FOR ALL ENTRIES.
    Try to restrict the joins to 1 level only ie only for tables
    Avoid using Select *.
    Avoid having multiple Selects from the same table in the same object.
    Try to minimize the number of variables to save memory.
    The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
    Avoid creation of index as far as possible
    Avoid operators like <>, > , < & like % in where clause conditions
    Avoid select/select single statements in loops.
    Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
    Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
    Avoid using ORDER BY in selects
    Avoid Nested Selects
    Avoid Nested Loops of Internal Tables
    Try to use FIELD SYMBOLS.
    Try to avoid into Corresponding Fields of
    Avoid using Select Distinct, Use DELETE ADJACENT
    Go through the following Document
    Check the following Links
    Re: performance tuning
    Re: Performance tuning of program
    http://www.sapgenie.com/abap/performance.htm
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    check the below link
    http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
    See the following link if it's any help:
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    Check also http://service.sap.com/performance
    and
    books like
    http://www.sap-press.com/product.cfm?account=&product=H951
    http://www.sap-press.com/product.cfm?account=&product=H973
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
    Performance tuning for Data Selection Statement
    http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
    Run Time Analyser
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
    SQL trace
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
    CATT - Computer Aided Testing Too
    http://help.sap.com/saphelp_47x200/helpdata/en/b3/410b37233f7c6fe10000009b38f936/frameset.htm
    Test Workbench
    http://help.sap.com/saphelp_47x200/helpdata/en/a8/157235d0fa8742e10000009b38f889/frameset.htm
    Coverage Analyser
    http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
    Runtime Monitor
    http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
    Memory Inspector
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
    ECATT - Extended Computer Aided testing tool.
    http://help.sap.com/saphelp_47x200/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
    Just refer to these links...
    performance
    Performance
    Performance Guide
    performance issues...
    Performance Tuning
    Performance issues
    performance tuning
    performance tuning

Maybe you are looking for

  • How to edit the existing data in the XML file from java programming.

    Hi all i am able to create XML file with the sample data as below from java programming. i need sample code on how to edit the existing data in the XML file? for example <?xml version="1.0"?>    <mydata>            <data1>                      <key1>

  • Sql developer 1.2.1  failed sys user login

    Setting up a connection with the sys user in sql developer connections return invalid username/pw. I have the role set to sysdba. I can connect as non sys users with sql developer. I can connect via sqlplus with the sys user and pw. What would cause

  • Properties for searchability on our intranet

    I need to be able to enter properties on the pdf form because its used for keyword in searching on our intranet. I go to the completed form in Windows Explorer and right click and open Properties then click on the PDF tab. I fill in the title, author

  • Can't load driver software

    I inserted 2 new black cartridges and after that the printer stopped printing in black even though the printer told me the cartridges were okay. The doctor said I needed new software. I tried to download the software twice (and deleted the old softwa

  • Advertencia 20.225 / Adobe Acrobt 7.0 no pudo crear un nuevo elemento: Adobe PDF Port & Printer

    Hola. Les consulto porque tengo instalado el Acrobat 7.0 y un Office 2007. Entre las opciones de guardado o impresión del Word 2007 no me aparece la de PDF, y si quiero crear el pdf desde dentro del Acrobat, no me lo permite  (ya sea que lo haya guar