How to display second list under an alv already displayed

hi
I have a list being displayed using grid control...i need to display anotehr list data below the first list please suggest?
block list display will not have sorted and all functinality ? do i need touse block list display function module??
regards
arora

Hi Arora Nishant,
REUSE_ALV_BLOCK_LIST_INIT
then
REUSE_ALV_BLOCK_LIST_APPEND " for each fieldcat
create two diff fieldcate for both alv output and use this FM for each fieldcat to append it in output..
it's having sorting Functionality as well as export functionalities... etc etc..
then
REUSE_ALV_BLOCK_LIST_DISPLAY
Done..
See below example...
REPORT ZILESH_ALV3 LINE-COUNT 100 .
**& tables declaration
TABLES: MARA.
**& 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.
DATA : IT_FIELDCAT1 TYPE SLIS_T_FIELDCAT_ALV, "makt
WA_FIELDCAT1 TYPE SLIS_FIELDCAT_ALV.
DATA : IT_FIELDCAT2 TYPE SLIS_T_FIELDCAT_ALV, "marc
WA_FIELDCAT2 TYPE SLIS_FIELDCAT_ALV.
DATA: GT_PRINT TYPE SLIS_PRINT_ALV,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
XS_EVENT TYPE SLIS_ALV_EVENT,
GT_XEVENTS TYPE SLIS_T_EVENT,
GT_YEVENTS TYPE SLIS_T_EVENT,
GT_ZEVENTS TYPE SLIS_T_EVENT,
WA_SORT TYPE SLIS_SORTINFO_ALV,
IT_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: BEGIN OF IT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
MEINS LIKE MARA-MEINS,
NTGEW LIKE MARA-NTGEW,
END OF IT_MARA.
DATA: BEGIN OF IT_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,
SPRAS LIKE MAKT-SPRAS,
MAKTX LIKE MAKT-MAKTX,
MAKTG LIKE MAKT-MAKTG,
END OF IT_MAKT.
DATA: BEGIN OF IT_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
LADGR LIKE MARC-LADGR,
MTVFP LIKE MARC-MTVFP,
DISPR LIKE MARC-DISPR,
DISMM LIKE MARC-DISMM,
DISPO LIKE MARC-DISPO,
END OF IT_MARC.
**& initialisation
INITIALIZATION.
  G_REPID = SY-REPID.
**& selection screen
  SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-001.
  SELECT-OPTIONS: S_MATNR FOR MARA-MATNR,
  S_MTART FOR MARA-MTART.
  SELECTION-SCREEN END OF BLOCK B.
**& start of selection
START-OF-SELECTION.
  PERFORM GET_MARADETAILS.
  PERFORM GET_MAKTDETAILS.
  PERFORM GET_MARCDETAILS.
**& Form get_maradetails
*text
*--> p1 text
*<-- p2 text
FORM GET_MARADETAILS .
  SELECT MATNR
  MTART
  MATKL
  MEINS
  NTGEW FROM MARA
  INTO TABLE IT_MARA
  WHERE MATNR IN S_MATNR AND
  MTART IN S_MTART.
ENDFORM. " get_maradetails
**& Form get_maktdetails
*text
*--> p1 text
*<-- p2 text
FORM GET_MAKTDETAILS .
  SELECT MATNR
  SPRAS
  MAKTX
  MAKTG FROM MAKT INTO TABLE IT_MAKT
  FOR ALL ENTRIES IN IT_MARA
  WHERE MATNR = IT_MARA-MATNR..
ENDFORM. " get_maktdetails
**& Form get_marcdetails
*text
*--> p1 text
*<-- p2 text
FORM GET_MARCDETAILS .
  SELECT MATNR
  WERKS
  LADGR
  MTVFP
  DISPR
  DISMM
  DISPO FROM MARC
  INTO TABLE IT_MARC
  FOR ALL ENTRIES IN IT_MARA
  WHERE MATNR = IT_MARA-MATNR.
ENDFORM. " get_marcdetails
**& end of selection
END-OF-SELECTION.
  PERFORM SORT_LIST.
  PERFORM MODIFY_FIELDCAT.
  PERFORM EVENT_LIST.
  PERFORM BLOCK_LIST.
**& Form modify_fieldcat
*text
*--> p1 text
*<-- p2 text
FORM MODIFY_FIELDCAT .
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MATNR'.
  WA_FIELDCAT-TABNAME = 'IT_MARA'.
  WA_FIELDCAT-SELTEXT_L = 'MATERIAL NUM'.
  WA_FIELDCAT-COL_POS = 1.
  WA_FIELDCAT-OUTPUTLEN = 18.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MTART'.
  WA_FIELDCAT-TABNAME = 'IT_MARA'.
  WA_FIELDCAT-SELTEXT_L = 'MAT TYPE'.
  WA_FIELDCAT-COL_POS = 2.
  WA_FIELDCAT-OUTPUTLEN = 5.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MATKL'.
  WA_FIELDCAT-TABNAME = 'IT_MARA'.
  WA_FIELDCAT-SELTEXT_L = 'MAT GROUP'.
  WA_FIELDCAT-COL_POS = 3.
  WA_FIELDCAT-OUTPUTLEN = 10.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MEINS'.
  WA_FIELDCAT-TABNAME = 'IT_MARA'.
  WA_FIELDCAT-SELTEXT_L = 'UNIT'.
  WA_FIELDCAT-COL_POS = 4.
  WA_FIELDCAT-OUTPUTLEN = 5.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'NTGEW'.
  WA_FIELDCAT-TABNAME = 'IT_MARA'.
  WA_FIELDCAT-DO_SUM = 'X'.
  WA_FIELDCAT-SELTEXT_L = 'QUANTITY'.
  WA_FIELDCAT-COL_POS = 5.
  WA_FIELDCAT-OUTPUTLEN = 15.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  CLEAR WA_FIELDCAT.
  CLEAR WA_FIELDCAT1.
  WA_FIELDCAT1-FIELDNAME = 'MATNR'.
  WA_FIELDCAT1-TABNAME = 'IT_MAKT'.
  WA_FIELDCAT1-SELTEXT_L = 'MATERIAL NUM'.
  WA_FIELDCAT1-COL_POS = 1.
  WA_FIELDCAT1-OUTPUTLEN = 18.
  APPEND WA_FIELDCAT1 TO IT_FIELDCAT1.
  CLEAR WA_FIELDCAT1.
  WA_FIELDCAT1-FIELDNAME = 'SPRAS'.
  WA_FIELDCAT1-TABNAME = 'IT_MAKT'.
  WA_FIELDCAT1-SELTEXT_L = 'LANGUAGE'.
  WA_FIELDCAT1-COL_POS = 2.
  WA_FIELDCAT1-OUTPUTLEN = 2.
  APPEND WA_FIELDCAT1 TO IT_FIELDCAT1.
  CLEAR WA_FIELDCAT1.
  WA_FIELDCAT1-FIELDNAME = 'MAKTX'.
  WA_FIELDCAT1-TABNAME = 'IT_MAKT'.
  WA_FIELDCAT1-SELTEXT_L = 'MAT DESC'.
  WA_FIELDCAT1-COL_POS = 3.
  WA_FIELDCAT1-OUTPUTLEN = 40.
  APPEND WA_FIELDCAT1 TO IT_FIELDCAT1.
  CLEAR WA_FIELDCAT1.
  WA_FIELDCAT1-FIELDNAME = 'MAKTG'.
  WA_FIELDCAT1-TABNAME = 'IT_MAKT'.
  WA_FIELDCAT1-SELTEXT_L = 'GRP DESC'.
  WA_FIELDCAT1-COL_POS = 4.
  WA_FIELDCAT1-OUTPUTLEN = 40.
  APPEND WA_FIELDCAT1 TO IT_FIELDCAT1.
  CLEAR WA_FIELDCAT1.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'MATNR'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'MATERIAL NUM'.
  WA_FIELDCAT2-COL_POS = 1.
  WA_FIELDCAT2-OUTPUTLEN = 18.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'WERKS'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'PLANT'.
  WA_FIELDCAT2-COL_POS = 2.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'LADGR'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'LOAD GRP'.
  WA_FIELDCAT2-COL_POS = 3.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'MTVFP'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'GRP CHK'.
  WA_FIELDCAT2-COL_POS = 4.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'DISPR'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'MRP PROFILE'.
  WA_FIELDCAT2-COL_POS = 5.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'DISMM'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'MRP TYPE'.
  WA_FIELDCAT2-COL_POS = 6.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
  WA_FIELDCAT2-FIELDNAME = 'DISPO'.
  WA_FIELDCAT2-TABNAME = 'IT_MARC'.
  WA_FIELDCAT2-SELTEXT_L = 'MRP CON'.
  WA_FIELDCAT2-COL_POS = 7.
  WA_FIELDCAT2-OUTPUTLEN = 4.
  APPEND WA_FIELDCAT2 TO IT_FIELDCAT2.
  CLEAR WA_FIELDCAT2.
ENDFORM. " modify_fieldcat
**& Form BLOCK_LIST
*text
*--> p1 text
*<-- p2 text
FORM BLOCK_LIST .
  CLEAR WA_LAYOUT.
  WA_LAYOUT-ZEBRA = 'X'.
  WA_LAYOUT-TOTALS_TEXT = 'TOTAL'.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      I_CALLBACK_PROGRAM       = G_REPID
      I_CALLBACK_PF_STATUS_SET = ' '
      I_CALLBACK_USER_COMMAND  = 'user_command'.
*IT_EXCLUDING =
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      IS_LAYOUT                  = WA_LAYOUT
      IT_FIELDCAT                = IT_FIELDCAT[]
      I_TABNAME                  = 'IT_MARA'
      IT_EVENTS                  = GT_XEVENTS
      IT_SORT                    = IT_SORT
      I_TEXT                     = ' '
    TABLES
      T_OUTTAB                   = IT_MARA
    EXCEPTIONS
      PROGRAM_ERROR              = 1
      MAXIMUM_OF_APPENDS_REACHED = 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.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
  IS_LAYOUT = WA_LAYOUT
  IT_FIELDCAT = IT_FIELDCAT1
  I_TABNAME = 'IT_MAKT'
  IT_EVENTS = GT_YEVENTS
*IT_SORT =
  I_TEXT = ' '
  TABLES
  T_OUTTAB = IT_MAKT
  EXCEPTIONS
  PROGRAM_ERROR = 1
  MAXIMUM_OF_APPENDS_REACHED = 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.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
  IS_LAYOUT = WA_LAYOUT
  IT_FIELDCAT = IT_FIELDCAT2
  I_TABNAME = 'IT_MARC'
  IT_EVENTS = GT_ZEVENTS
*IT_SORT =
  I_TEXT = ' '
  TABLES
  T_OUTTAB = IT_MARC
  EXCEPTIONS
  PROGRAM_ERROR = 1
  MAXIMUM_OF_APPENDS_REACHED = 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.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
  EXPORTING
  I_INTERFACE_CHECK = ' '
  IS_PRINT = GT_PRINT
  I_SCREEN_START_COLUMN = 0
  I_SCREEN_START_LINE = 0
  I_SCREEN_END_COLUMN = 0
  I_SCREEN_END_LINE = 0
*IMPORTING
*E_EXIT_CAUSED_BY_CALLER =
*ES_EXIT_CAUSED_BY_USER =
  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. " BLOCK_LIST
**& Form EVENT_LIST
*text
*--> p1 text
*<-- p2 text
FORM EVENT_LIST .
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
  XS_EVENT-FORM = 'XTOP_OF_PAGE'.
  APPEND XS_EVENT TO GT_XEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_PAGE.
  XS_EVENT-FORM = 'XEND_OF_PAGE'.
  APPEND XS_EVENT TO GT_XEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_LIST.
  XS_EVENT-FORM = 'XTOP_OF_LIST'.
  APPEND XS_EVENT TO GT_XEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_LIST.
  XS_EVENT-FORM = 'XEND_OF_LIST'.
  APPEND XS_EVENT TO GT_XEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_PAGE.
  XS_EVENT-FORM = 'YEND_OF_PAGE'.
  APPEND XS_EVENT TO GT_YEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
  XS_EVENT-FORM = 'YTOP_OF_PAGE'.
  APPEND XS_EVENT TO GT_YEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_LIST.
  XS_EVENT-FORM = 'YTOP_OF_LIST'.
  APPEND XS_EVENT TO GT_YEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_LIST.
  XS_EVENT-FORM = 'YEND_OF_LIST'.
  APPEND XS_EVENT TO GT_YEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_PAGE.
  XS_EVENT-FORM = 'ZEND_OF_PAGE'.
  APPEND XS_EVENT TO GT_ZEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
  XS_EVENT-FORM = 'ZTOP_OF_PAGE'.
  APPEND XS_EVENT TO GT_ZEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_TOP_OF_LIST.
  XS_EVENT-FORM = 'ZTOP_OF_LIST'.
  APPEND XS_EVENT TO GT_ZEVENTS.
  CLEAR XS_EVENT.
  XS_EVENT-NAME = SLIS_EV_END_OF_LIST.
  XS_EVENT-FORM = 'ZEND_OF_LIST'.
  APPEND XS_EVENT TO GT_ZEVENTS.
  CLEAR XS_EVENT.
ENDFORM. " EVENT_LIST
*&      Form  XTOP_OF_PAGE
*       text
FORM XTOP_OF_PAGE.
  WRITE:/ 'TOP OF PAGE FOR MARA'.
ENDFORM.                    "XTOP_OF_PAGE
*&      Form  YTOP_OF_PAGE
*       text
FORM YTOP_OF_PAGE.
  WRITE:/ 'TOP OF PAGE FOR MAKT'.
ENDFORM.                    "YTOP_OF_PAGE
*&      Form  ZTOP_OF_PAGE
*       text
FORM ZTOP_OF_PAGE.
  WRITE:/ 'TOP OF PAGE FOR MARC'.
ENDFORM.                    "ZTOP_OF_PAGE
*&      Form  XEND_OF_PAGE
*       text
FORM XEND_OF_PAGE.
  WRITE:/ 'END OF PAGE FOR MARA'.
ENDFORM.                    "XEND_OF_PAGE
*&      Form  YEND_OF_PAGE
*       text
FORM YEND_OF_PAGE.
  WRITE:/ 'END OF PAGE FOR MAKT'.
ENDFORM.                    "YEND_OF_PAGE
*&      Form  ZEND_OF_PAGE
*       text
FORM ZEND_OF_PAGE.
  WRITE:/ 'END OF PAGE FOR MARC'.
ENDFORM.                    "ZEND_OF_PAGE
*&      Form  XTOP_OF_LIST
*       text
FORM XTOP_OF_LIST.
  WRITE:/ 'TOP OF LIST FOR MARA'.
ENDFORM.                    "XTOP_OF_LIST
*&      Form  YTOP_OF_LIST
*       text
FORM YTOP_OF_LIST.
  WRITE:/ 'TOP OF LIST FOR MAKT'.
ENDFORM.                    "YTOP_OF_LIST
*&      Form  ZTOP_OF_LIST
*       text
FORM ZTOP_OF_LIST.
  WRITE:/ 'TOP OF LIST FOR MARC'.
ENDFORM.                    "ZTOP_OF_LIST
*&      Form  XEND_OF_LIST
*       text
FORM XEND_OF_LIST.
  WRITE:/ 'END OF LIST FOR MARA'.
ENDFORM.                    "XEND_OF_LIST
*&      Form  YEND_OF_LIST
*       text
FORM YEND_OF_LIST.
  WRITE:/ 'END OF LIST FOR MAKT'.
ENDFORM.                    "YEND_OF_LIST
*&      Form  ZEND_OF_LIST
*       text
FORM ZEND_OF_LIST.
  WRITE:/ 'END OF LIST FOR MARC'.
ENDFORM.                    "ZEND_OF_LIST
**& Form sort_list
*text
*--> p1 text
*<-- p2 text
FORM SORT_LIST .
  CLEAR WA_SORT.
  WA_SORT-FIELDNAME = 'MTART'.
  WA_SORT-SUBTOT = 'X'.
  APPEND WA_SORT TO IT_SORT.
  CLEAR WA_SORT.
  WA_SORT-FIELDNAME = 'MATKL'.
  WA_SORT-SUBTOT = 'X'.
  APPEND WA_SORT TO IT_SORT.
  CLEAR WA_SORT.
ENDFORM. " sort_list
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7

Similar Messages

  • How to delete playlists listed under iPod on the Preferences panel?

    I have a pesky problem. When I synced my iPod, I got all sorts of playlists of CD's I've added to iTunes in the past (dozens). So, I deleted them in iTunes and re-synced my iPod, only to find the lists there again. I noticed that those old playlists are listed on the iPod panel in Preferences. I suppose I could solve the problem by manually managing my iPod, which is what I normally do, but from time to time I'd like to do an automatic sync without all those old playlists getting put back on my iPod.
    The question is: How can I delete the playlists listed on the iPod panel of Preferences?
    Robert

    Hi Robert,
    Welcome to Apple Discussions
    So you had playlists in iTunes and the synced to the iPod.
    You then deleted then from iTunes but they still appear in the iPod Preferences.
    I guess they must be unselected or you would get an error trying to sync the iPod.
    I don't know how to get them out of the Preferences.
    Maybe you need to ask Apple unless anyone else knows?
    Regards,
    Colin R.

  • List Box in ALV Grid

    Hi all,
        How to bring a list box in ALV Grid
    Regards,
    Vijayakumar
    Message was edited by:
            Vijayakumar V

    Hello Vijayakumar
    You have to do 2 steps (inbetween creating the fieldcatalog and displaying the ALV list):
    (1) Set dropdown handle in fieldcatalog, e.g.
    * Set Drop-Down handle for column 'LOGSYS'
      CLEAR l_wa_fcat.
    *  l_wa_fcat-drdn_field = 'DROP_DOWN_HANDLE'.
      l_wa_fcat-drdn_hndl  = c_drdn_handle_logsys.  " just a unique number
      MODIFY me->mt_fcat FROM l_wa_fcat
          TRANSPORTING drdn_hndl
        WHERE ( fieldname = 'LOGSYS' ).
    (2) Register the dropdown handle, e.g.
    * Set listbox for available source systems (according to
    * SOM Customizing and selection on selection screen)
      CLEAR l_wa_drop.
      l_wa_drop-handle = c_drdn_handle_logsys.
      LOOP AT me->mt_rfc_check INTO l_wa_rfccheck.
        l_wa_drop-value = l_wa_rfccheck-logsys.
        APPEND l_wa_drop TO lt_drop.
      ENDLOOP.
      CALL METHOD me->mo_alvgrid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_drop.
    Regards
      Uwe

  • Do music videos HAVE to be listed under songs???

    I don't like how music videos are listed under an artist's song list... It plays the music video in the small letterboxed format as if you were playing a song.
    Is there a way so that music videos show up ONLY through the "Videos" menu on your iPod/iPhone, and not under song titles?
    Thanks.

    Hello there,
    In order to move the music videos to the videos section, you will have to change the file's media type in iTunes. To do this, locate the music video in iTunes, right->click on it and choose "Get Info" from the Shortcut Menu. When the window pops up, head over to the Options tab. You will see a section labeled *Media Type* with a drop down list next to it. Go ahead and change it to "Video" and hit OK. Then sync the update changes to your iPod.
    Hope this helps.
    B-rock

  • Send the list ouput of ALV  or normal report to e-mail

    how to send the list ouput of ALV  or normal report to e-mail?

    Already SAP is providing the option to send output to email
    For ALV
    Go to Print Preview> list> send to --> mail receipient
    if it is normal list
    list> Save/Send> office

  • How to display ALV list with more than 1 structure?

    Hello everyone,
    I am using REUSE_ALV_LIST_DISPLAY to generate a report that displays vendor/customer items with purchases/sales total. I have 2 internal table for this. For every vendor/customer i need a total table right after, this have a different structure. I cannot use REUSE_ALV_BLOCK_LIST_ as this is not capable of calculating the subtotal per currency and from the documentation it says do not use.
    Any idea on how to proceed?
    Thanks!

    Call ALV list function module per table structure.
    Closing this thread.

  • How to display mutilpe list in a screen ( ALV list)

    Hello,
    Could you please help me the source code sample for displaying many list in an ALV screen (Basic list)
    For example : I 've 2 table with different information.
    Table A  Col A1 col A2 Col A3
    Table B Col B1 B2 B3 B4 B5
    Now I need to display them in only 1 screen like :
    List of record in table A
         Col A1 Col A2 Col A3
    List of record in table B
        B1 B2 B3 B4 B5
    Thanks,

    for this kind of requirement use the LIst ALV.
    The below sample code might help you
    DATA : g_t_print TYPE slis_print_alv.
    Initialize ALV
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          i_callback_program = sy-repid.
    ADD first ALC
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                  = g_t_layout
          it_fieldcat                 =  g_t_fieldcat[]
          i_tabname                = 'g_t_strans'
          it_events                 = g_t_events_strans
        TABLES
          t_outtab                   = g_t_strans
        EXCEPTIONS
          program_error              = 1
          maximum_of_appends_reached = 2.
      IF sy-subrc NE 0.
        MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
        STOP.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                   = g_t_layout
          it_fieldcat                  = g_t_fieldcat[]
          i_tabname                 = 'g_t_sretrev'
          it_events                   = g_t_events_sretrev
        TABLES
          t_outtab                     = g_t_sretrev
        EXCEPTIONS
          program_error              = 1
          maximum_of_appends_reached = 2.
      IF sy-subrc NE 0.
        MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
        STOP.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                  = g_t_layout
          it_fieldcat                = g_t_fieldcat[]
          i_tabname                  = 'g_t_stransrev'
          it_events                  = g_t_events_stransrev
        TABLES
          t_outtab                   = g_t_stransrev
        EXCEPTIONS
          program_error              = 1
          maximum_of_appends_reached = 2.
      IF sy-subrc NE 0.
        MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
        STOP.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          is_layout                  = g_t_layout
          it_fieldcat                = g_t_fieldcat[]
          i_tabname                  = 'g_t_sret'
          it_events                  = g_t_events_sret
        TABLES
          t_outtab                   = g_t_sret
        EXCEPTIONS
          program_error              = 1
          maximum_of_appends_reached = 2.
      IF sy-subrc NE 0.
        MESSAGE s999 WITH 'Error in ''REUSE_ALV_LIST_DISPLAY'' FM'.
        STOP.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
        EXPORTING
          is_print = g_t_print.

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    6.Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • How to display LOGO in ALV grid when using class CL_GUI_ALV_GRID

    Hello everyone,
    please let me know how to display Company logo as the header part in the report program with the class cl_gui_alv_grid.
    Thanks and regards,
    Padma.

    Hi,
    Got this info from a site.
    http://sap.ittoolbox.com/documents/document.asp?i=3213
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    Try this one.
    Also have a look at this link
    http://www.sap-img.com/fu002.htm
    Message was edited by: Judith Jessie Selvi

  • How to display 2 lines of fieldcat in alv

    hi,all.
       I wonder how to display 2 lines of fieldcat in alv,no matter grid,list ,oo.   whatever.
       thanks in anvance.

    Hi,
    it's only possible in alv-list (3 lines).
    A.

  • How to display the error and success message in ALV

    Hi expert,
    i am doing recording through call transaction,from the output list of a ALV,now my requirement is after recordig how many record get success and how many get failed ,i need to display in Another ALV .please any one help me in this .
    Regards
    Swaraj

    HI ,
                 Use this following Perform form statment to display error message.
    FORM format_message .
      g_row = g_row + 1.
      LOOP AT t_bdcmsgcoll.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = t_bdcmsgcoll-msgid
            lang      = '-D'
            no        = t_bdcmsgcoll-msgnr
            v1        = t_bdcmsgcoll-msgv1
            v2        = t_bdcmsgcoll-msgv2
            v3        = t_bdcmsgcoll-msgv3
            v4        = t_bdcmsgcoll-msgv4
          IMPORTING
            msg       = G_MSG
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
        IF sy-subrc = 0.
          CASE T_BDCmsgCOLL-msgtyp.
            WHEN 'E'.
              FORMAT COLOR 6 ON.
              WRITE:/  g_row,
                    /  T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'W'.
              FORMAT COLOR 3 ON.
              WRITE:/  g_row,
                    /  T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'I'.
              FORMAT COLOR 4 ON.
              WRITE:/ g_row,
                    / T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'S'.
              FORMAT COLOR 5 ON.
              WRITE:/ g_row,
                    / T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " FORMAT_MESSAGE
    *&      Form  success
          text
    FORM success .
      LOOP AT i_message.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = i_message-msgid
            lang      = sy-langu
            no        = i_message-msgnr
            v1        = i_message-msgv1
            v2        = i_message-msgv2
            v3        = i_message-msgv3
            v4        = i_message-msgv4
          IMPORTING
            msg       = g_msg
          EXCEPTIONS
            not_found = 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.
        WRITE : /2 g_msg COLOR 1.
        CLEAR G_MSG.
      ENDLOOP.
    ENDFORM.                    " success
    *&      Form  error
    FORM error .
      DATA g_msg(255).
      LOOP AT i_message.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = i_message-msgid
            lang      = sy-langu
            no        = i_message-msgnr
            v1        = i_message-msgv1
            v2        = i_message-msgv2
            v3        = i_message-msgv3
            v4        = i_message-msgv4
          IMPORTING
            msg       = g_msg
          EXCEPTIONS
            not_found = 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.
        WRITE : /2 g_msg COLOR 6.
      ENDLOOP.
    ENDFORM.                    "error

  • How to display slected value in other list in apex?

    Hi All,
    I have created two select list
    1. Counrty
    2.State
    Based on the selection of country state wil lbe popluated, which i had implemneted using ajx process.
    Now i had created a button, on press of button again i will be dsiplaying second set of select lit items i.,e againg counrty and state.
    so what ever we selected from first select list..the same values should be populated in the second list items?
    How we achieve this?
    Thanks,
    Anoo..

    Hi All,
    Thanks, but may be my explanation is not celar i believe.
    Initally i have created 4 selects list items as
    1. Country
    2.State.
    3. Country1
    4.State1
    When the page loads i will be hiding the select list items ie. country1 and state1 will not be visibile on the screen, unless once click on button i will be displaying the
    country1 and state1.
    Now the data whcih we had selected in country and state nedds to be populated same data in country1 and state1 once i clicked on a button.
    How do we show this data when they clik on button.
    Thanks,
    Anoo..

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • A movie isn't listed under my purchases. How can I find it to install on iPad?

    A movie isn't listed under my purchases or in my library, but it is on my laptop. How can I find it to install on my iPad?

    that's not compatibile.
    from Adobe - Adobe Photoshop Lightroom 2 : System requirements
    Mac OS x
    PowerPC® G4 or G5 or Intel based processor
    Mac OS X v10.4, 10.5 or 10.6
    1GB of RAM
    1GB of available hard-disk space
    1,024x768 display
    CD-ROM drive

  • How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query

    How to retrieve Task Lists from All Subsites to the Parent Site and display in  Grid view using CAML Query + object model

    do u just want task list or items under task list for all subsites
    for items use spsitedataquery ref
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
    for tasklist only u can a simply use a for loop to find in all subsite
    Manish Sati

Maybe you are looking for

  • Stop Inbound IDOC's from being created

    I want to stop inbound IDOC's for a particular partner (type LS) from being created in our R/3 system. Is there a way to do this? I am aware these can be stopped in the middleware, but this is not possible in our case.  I am also aware that I can sto

  • Updating PS cs6 issues.  I see several post on the error, none are really helpful!!!

    None of this is working form.  I have PS cs6 mac 13.0.1 and I am getting the same error.  I have plugins, extensions, additional filters, and I am afriad I may lose all this is I unsinstalled PS cs6 and reinstall it.  This is a day's woth of wotk. Th

  • IMovie in "waiting" status

    Talked to the Apple support people and they suggested that i reset my 5C entirely.  I am finding this unacceptable.Is anyone else having issues with this?  If so, were you able to resolve it?

  • General tree structure

    Is there still no general tree structure in Java? I'd like something along the likes of TreeSet or TreeMap, but without the compare part, and where each node can hold 0..n children. I know this is easy to implement, having done quite a few during my

  • Start:applet not initilaized error

    Hi friends, I'm getting Start:applet not initilaized error when i'm running a program... saved a notepad file as Testloan.java used javac Testloan.java and appletviewer Testloan.java to execute the applet here is my code... import java.awt.*; import