ALV Object : how to manage two grid in one screen ?

Hello,
I would like to print in a same screen two ALV grid with different command for each.
The two grid will be linked.
One is the header of the datas and the second represent the items of the selected data in the the header grid.
Is it possible to do this in ALV object or only in transaction with "control tables"?
Do you have any example for me, please ?
Thanks in advance for help,
Best regards,
Bertrand

Hi,
go through this code,
REPORT  Z7RNP_ALV_SO_BLOCK  MESSAGE-ID Z7NEW                     .
TABLE DECLARATION
TABLES: VBAK ,             "Sales Document: Header Data
        VBAP ,             "Sales Document: Item Data
        MAKT ,             "Material Descriptions
        LIPS .             "SD document: Delivery: Item data
DECLARATION OF TYPE-POOL
*THIS TYPE-POOL CONTAINS THE EVENTS,
TYPE-POOLS : SLIS.
DECLARATION OF EVENTS
DECLARATION OF FIELD LAYOUT
DATA: I_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: T_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA: T_EVENT TYPE SLIS_T_EVENT.
DATA: X_EVENT TYPE SLIS_ALV_EVENT.
DECLARATION OF LIST HEADER
DATA: I_LISTHEADER TYPE SLIS_T_LISTHEADER.
DECLARATION OF FIELD CATALOG FOR SCREEN 1
DATA: I_FLDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
DECLARATION OF FIELD CATALOG FOR SCREEN 2
DATA: I_FLDCAT2 TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
SORTING OF OUTPUT
DATA: I_SORT TYPE SLIS_T_SORTINFO_ALV.
DATA: T_SORT TYPE SLIS_T_SORTINFO_ALV.
*DATA DECLARATION
DATA: V_AUART TYPE TVAK-AUART,
      V_VKORG TYPE TVKO-VKORG,
      V_KUNNR TYPE KNA1-KUNNR,
      V_MATNR TYPE MARA-MATNR ,
      V_SPART TYPE TVTA-SPART .
DATA: V_REPID LIKE SY-REPID .
TYPES: BEGIN OF IT_SO ,
       VBELN TYPE VBELN_VA ,          "SALES ORDER NO.
       AUART TYPE AUART ,             "SALES DOC. TYPE
       VKORG TYPE VKORG ,             "SALES ORG.
       SPART TYPE SPART ,             "DIVISION
       KUNNR TYPE KUNAG ,             "SOLD TO PARTY
       POSNR TYPE POSNR_VA ,          "SALES DOC. ITEM
       MATNR TYPE MATNR ,             "MATERIAL NO
       MAKTX TYPE MAKTX ,             "DESCRIPTION
       KWMENG TYPE KWMENG ,           "QUANTITY
       VRKME TYPE VRKME ,             "SALES UNIT
       END OF IT_SO .
TYPES: BEGIN OF IT_DEL ,
       VBELN TYPE VBELN_VL ,         "SALES ORDER NO.
       POSNR TYPE POSNR_VL ,         "SALES DOC. ITEM
       MATNR TYPE MATNR ,            "MATERIAL NO
       WERKS TYPE WERKS_D ,          "PLANT
       LGORT TYPE LGORT_D ,          "STORAGE LOCATION
       CHARG TYPE CHARG_D ,          "BATCH NO.
       LFIMG TYPE LFIMG ,            "ACTUAL DELIVERY QTY.
       VRKME TYPE VRKME ,            "SALES UNIT
       END OF IT_DEL .
TYPES: BEGIN OF TYPE_VBFA ,
       VBELV TYPE VBELN_VON ,
       "Preceding sales and distribution document
       POSNV TYPE POSNR_VON ,      "Preceding item of an SD document
       VBELN TYPE VBELN_NACH ,
       "Subsequent sales and distribution document
       POSNN TYPE POSNR_NACH,
       "Document category of subsequent document
       VBTYP_N TYPE VBTYP_N ,
      END OF TYPE_VBFA .
DATA: IT_SO1 TYPE STANDARD TABLE OF IT_SO ,
      IT_DEL1 TYPE STANDARD TABLE OF IT_DEL ,
      IT_VBFA TYPE STANDARD TABLE OF TYPE_VBFA,
      IT_DEL_FUL TYPE STANDARD TABLE OF IT_DEL.
DATA: WA_SO TYPE IT_SO ,
      WA_DEL TYPE IT_DEL ,
      WA_VBFA TYPE TYPE_VBFA,
      wa_IT_DEL_FUL TYPE IT_DEL.
*SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-004 .
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN ,
                S_AUART FOR V_AUART ,
                S_VKORG FOR V_VKORG ,
                S_SPART FOR V_SPART ,
                S_KUNNR FOR V_KUNNR ,
                S_MATNR FOR V_MATNR .
SELECTION-SCREEN END OF BLOCK BLK1 .
*AT SELECTION SCREEN
AT SELECTION-SCREEN.
  SELECT SINGLE VBELN
                 FROM VBAK INTO VBAK-VBELN
                 WHERE VBELN IN S_VBELN.
  IF SY-SUBRC <> 0.
    MESSAGE E202.
  ENDIF.
*START OF SELECTION
INITIALIZATION.
  V_REPID = SY-REPID.
START-OF-SELECTION .
  PERFORM DATA_SELECT.
FOR BLOCK 1
  PERFORM INITIALIZE_BLOCK .
  PERFORM FLD_CAT USING I_FLDCAT[] .
  PERFORM T_LAYOUT USING I_LAYOUT .
  PERFORM I_SORT USING I_SORT .
  PERFORM EVENT USING T_EVENT .
  PERFORM CALL_ALV.
FOR BLOCK 2
  PERFORM FLD_CAT2 USING I_FLDCAT2[] .
  PERFORM I_LAYOUT USING I_LAYOUT .
PERFORM T_SORT USING I_SORT .
  PERFORM EVENT1 USING T_EVENT .
  PERFORM CALL_ALV1.
  PERFORM BLOCK-DISPLAY .
*&      Form  DATA_SELECT
      text
-->  p1        text
<--  p2        text
FORM DATA_SELECT .
  REFRESH: IT_VBFA, IT_SO1, IT_DEL1, IT_DEL_FUL.
  SELECT
        A~VBELN
        A~AUART
        A~VKORG
        A~SPART
        A~KUNNR
        B~POSNR
        B~MATNR
        C~MAKTX
        B~KWMENG
        B~VRKME
        INTO TABLE IT_SO1 FROM VBAK AS A
              JOIN VBAP AS B ON BVBELN = AVBELN
              JOIN MAKT AS C ON CMATNR = BMATNR
              AND C~SPRAS = SY-LANGU
              WHERE A~VBELN IN S_VBELN .
  IF SY-SUBRC = 0.
    SELECT VBELV POSNV VBELN POSNN VBTYP_N INTO TABLE IT_VBFA
           FROM VBFA
           FOR ALL ENTRIES IN IT_SO1
           WHERE VBELV = IT_SO1-VBELN
           AND   POSNN = IT_SO1-POSNR
           AND VBTYP_N ='J' .
   IF SY-SUBRC = 0.
      SELECT VBELN POSNR MATNR WERKS LGORT CHARG LFIMG VRKME
             FROM LIPS INTO TABLE IT_DEL_FUL
             FOR ALL ENTRIES IN IT_VBFA
             WHERE VBELN = IT_VBFA-VBELN
             AND   POSNR = IT_VBFA-POSNN.
    ENDIF.
    ENDIF .
    V_REPID = SY-REPID .
ENDFORM.                    " DATA_SELECT
*&      Form  INITIALIZE_BLOCK
      text
-->  p1        text
<--  p2        text
FORM INITIALIZE_BLOCK .
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
  EXPORTING
    I_CALLBACK_PROGRAM             = V_REPID .
  I_CALLBACK_PF_STATUS_SET       = ' '
  I_CALLBACK_USER_COMMAND        = ' '
  IT_EXCLUDING                   =
ENDFORM.                    " INITIALIZE_BLOCK
*&      Form  FLD_CAT
      text
     -->P_I_FLDCAT[]  text
FORM FLD_CAT  USING    P_I_FLDCAT TYPE SLIS_T_FIELDCAT_ALV.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SALES ORDER NO.'.
  I_FLDCAT-COL_POS     = 1.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
  I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'AUART'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SALES DOC. TYPE'.
  I_FLDCAT-COL_POS     = 2.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'VKORG'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SALES ORG.'.
  I_FLDCAT-COL_POS     = 3.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'SPART'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'DIVISION'.
  I_FLDCAT-COL_POS     = 4.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'KUNNR'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SOLD TO PARTY'.
  I_FLDCAT-COL_POS     = 5.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SALES DOC. ITEM'.
  I_FLDCAT-COL_POS     = 6.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'MATERIAL NO.'.
  I_FLDCAT-COL_POS     = 7.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'MAKTX'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'DESCRIPTION'.
  I_FLDCAT-COL_POS     = 8.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'KWMENG'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'QUANTITY'.
  I_FLDCAT-COL_POS     = 9.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
  CLEAR I_FLDCAT.
  I_FLDCAT-FIELDNAME   = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT-TABNAME     = 'IT_SO1'.
  I_FLDCAT-SELTEXT_M   = 'SALES UNIT'.
  I_FLDCAT-COL_POS     = 10.        " POSITION OF THE COLUMN.
  I_FLDCAT-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT-KEY         = 'X'.
  " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT.
ENDFORM.                    " FLD_CAT
*&      Form  T_LAYOUT
      text
     -->P_I_LAYOUT  text
FORM T_LAYOUT  USING    P_I_LAYOUT TYPE SLIS_LAYOUT_ALV .
P_I_LAYOUT-ZEBRA = 'X'.
P_I_LAYOUT-KEY_HOTSPOT = 'X'.
P_I_LAYOUT-F2CODE            = 'DISP'.
ENDFORM.                    " T_LAYOUT
*&      Form  I_SORT
      text
     -->P_I_SORT  text
FORM I_SORT  USING    P_I_SORT TYPE SLIS_T_SORTINFO_ALV .
  DATA: I_SORT TYPE SLIS_SORTINFO_ALV .
  REFRESH P_I_SORT .
  CLEAR I_SORT.
  I_sort-spos = 1.
  I_sort-fieldname = 'VBELN'.
  I_sort-up = 'X'.
  I_sort-subtot = 'X'.
  I_sort-group = '*'.
  APPEND I_SORT TO P_I_SORT.
ENDFORM.                    " I_SORT
*&      Form  CALL_ALV
      text
-->  p1        text
<--  p2        text
FORM   CALL_ALV .
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    IS_LAYOUT                        = T_LAYOUT
    IT_FIELDCAT                      = I_FLDCAT[]
    I_TABNAME                        = 'IT_SO1'
    IT_EVENTS                        = T_EVENT
   IT_SORT                          = I_SORT
   I_TEXT                           = TEXT-202
  TABLES
    T_OUTTAB                         = IT_SO1
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.
REFRESH T_EVENT .
CLEAR T_EVENT .
ENDFORM.                    " CALL_ALV
*&      Form  FLD_CAT2
      text
     -->P_I_FLDCAT2[]  text
FORM FLD_CAT2  USING    P_I_FLDCAT2 TYPE SLIS_T_FIELDCAT_ALV.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'VBELN'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'DELIVERY NO.'.
  I_FLDCAT2-COL_POS     = 1.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
  I_FLDCAT2-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'POSNR'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'DELIVERY ITEM'.
  I_FLDCAT2-COL_POS     = 2.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'MATNR'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'MATERIAL NO.'.
  I_FLDCAT2-COL_POS     = 3.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'WERKS'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'PLANT.'.
  I_FLDCAT2-COL_POS     = 4.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'LGORT'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'ST. LOCATION'.
  I_FLDCAT2-COL_POS     = 5.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'CHARG'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'BATCH NO.'.
  I_FLDCAT2-COL_POS     = 6.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'LFIMG'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'ACT. DEL. QTY.'.
  I_FLDCAT2-COL_POS     = 7.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
  CLEAR I_FLDCAT2.
  I_FLDCAT2-FIELDNAME   = 'VRKME'. "FIELD FOR WHICH CATALOG ID FILLED
  I_FLDCAT2-SELTEXT_M   = 'SALES UNIT.'.
  I_FLDCAT2-COL_POS     = 8.        " POSITION OF THE COLUMN.
  I_FLDCAT2-OUTPUTLEN   = 20.       " SET THE OUTPUT LENGTH.
  I_FLDCAT2-EMPHASIZE   = 'X'.      " COLOR OF THIS COLUMN.
  I_FLDCAT2-KEY         = 'X'.      " SO THAT THIS FIELD IS NOT
  "SCROLLABLE AND HIDDABLE.
I_FLDCAT-HOTSPOT     = 'X'.
  APPEND I_FLDCAT2.
ENDFORM.                    " FLD_CAT2
*&      Form  I_LAYOUT
      text
     -->P_I_LAYOUT  text
FORM I_LAYOUT  USING    P_I_LAYOUT TYPE SLIS_LAYOUT_ALV .
P_I_LAYOUT-ZEBRA = 'X'.
P_I_LAYOUT-KEY_HOTSPOT = 'X'.
P_I_LAYOUT-F2CODE            = 'DISP'.
ENDFORM.                    " I_LAYOUT
*&      Form  CALL_ALV1
      text
-->  p1        text
<--  p2        text
FORM CALL_ALV1 .
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
  EXPORTING
    IS_LAYOUT                        = I_LAYOUT
    IT_FIELDCAT                      = I_FLDCAT2[]
    I_TABNAME                        = 'IT_DEL_FUL'
    IT_EVENTS                        = T_EVENT
  IT_SORT                          =
  I_TEXT                           = ' '
  TABLES
    T_OUTTAB                         = IT_DEL_FUL
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.
ENDFORM.                    " CALL_ALV1
*&      Form  BLOCK-DISPLAY
      text
-->  p1        text
<--  p2        text
FORM BLOCK-DISPLAY .
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
  I_INTERFACE_CHECK             = ' '
  IS_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-DISPLAY
*&      Form  EVENT
      text
     -->P_T_EVENT  text
FORM EVENT  USING    P_T_EVENT type slis_t_event.
x_event-form = 'TOP_OF_LIST1'.
x_event-name = slis_ev_top_of_list.
append x_event to p_t_event.
clear x_event .
ENDFORM.                    " EVENT
*&      Form  EVENT1
      text
     -->P_T_EVENT  text
FORM EVENT1  USING    P_T_EVENT type slis_t_event.
x_event-form = 'TOP_OF_LIST2'.
x_event-name = slis_ev_top_of_list.
append x_event to p_t_event.
ENDFORM.                    " EVENT1
FORM TOP_OF_LIST1.
SKIP 1.
WRITE: 10 'BLOCK LIST 1 FOR SALES ORDER DETAILS ' COLOR 4 .
skip 1.
format reset.
endform.
FORM TOP_OF_LIST2.
skip 1.
WRITE: 10 'BLOCK LIST 2 FOR DELIVERY ORDER DETAILS ' COLOR 4 .
skip 1.
format reset.
endform.
reward if useful.

Similar Messages

  • How to display two grids in same screen using SALV Method

    Hi Freinds,
    Please let me know how to display two grids in same screen using SALV Method.
    Thank you
    Regards,
    SDV

    Using the same concept as described in How to dispaly Three Internal Table  Data (One below another) in ALV OOPS .
    All you need to add is passing your new containers as r_container parementer of factory method.
    "1st one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_top_container
    "2nd one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_bottom_container
    Regards
    Marcin

  • How to manage two viewstacks with one linkbar?

    hello all,
    I currently am creating my website utilizing flex and have come across a roadblock.  I need a single linkbar to manage two viewstacks but cannot figure out how to do this so far.  i have tried using both id's in the dataProvider but the only one it manages is the last input.  please advise how to do this or another way in which i can accomplish what i am trying to do.
    for your information:  one viewstack will be for the pages of the site and the other will be for banners on each page.  I cannot put the banners in the viewstack because they will be larger than the pages
    here is some of the code:
    <mx:LinkBar x="10" y="116" dataProvider="{body, ads}" fontSize="18" height="29">
    </mx:LinkBar>
    when i run the application i do not receive any errors however the only viewstack that changes is the ads or vice versa if i have body last.

    Sure, user a Timer:
    http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html
    http://blog.flexexamples.com/2007/08/14/creating-a-simple-timer-in-flex-with-the-flashutil stimer-class/
    http://livedocs.adobe.com/flex/3/html/help.html?content=16_Event_handling_7.html
    http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/flash/utils/Timer.html
    If this post answered your question or helped, please mark it as such.

  • How to manage two iphones on one computer

    How to manage, sync, use iCloud without data getting mixed up on one computer

    Easy.
    There is no device limit for the number of iPods, iPads, and iPhones that can be synced with the same iTunes library. Each device can have its own sync preferences with iTunes, which is selected under the various tabs for the device's sync preferences with iTunes.

  • How to manage two iphones on one itunes

    when i plug in my fathers i phone in to my computer it wants to replace my iphone with his. i just need instructions on how to have to devices on one itunes

    Easy.
    There is no device limit for the number of iPods, iPads, and iPhones that can be synced with the same iTunes library. Each device can have its own sync preferences with iTunes, which is selected under the various tabs for the device's sync preferences with iTunes.

  • How to manage two iPhones with one Apple ID

    My company is moving to iPhones and away from BlackBerry so I may soon end up with a second iPhone.  I believe that I can set up the app store account using my current Apple ID so I can download apps that I have already purchased to the new phone.  But do I need to set up separate iCloud accounts?  And if so how do you do that?

    use your existing apple ID.

  • HT204053 How to manage two iPhones under one Apple ID?

    Me and my mom need help. We are using the same Apple ID and our contacts have now been jumbled up because she has just now downloaded to iOS 7.3
    Now i have still not updated to iOS 7.3. but i do have iOS 7.1
    Could this be a problem and how do we fix our jumbled contacts with Facetime?

    When you share an iCloud account, your synced data such as contacts is merged.  To prevent this, your devices should be on separate iCloud accounts.  To migrate to a new iCloud account, start by saving any photo stream photos you wish to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow, then tapping Save to Camera Roll.  If you are syncing notes with iCloud, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud), choose Keep on My iDevice and provide the password to turn off Find My iPhone.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.
    Once you are on separate iCloud accounts, you can each go to icloud.com from your computer and delete the other person's data from your accounts.
    For FaceTime, go to Settings>FaceTime, tap the ID, sign out, then sign back in with your new iCloud ID.  If you are sharing the same ID for iMessage, do the same thing in Settings>Messages>Send & Receive or you will end up getting each other's text messages.
    You can continue to share the same ID for purchasing from the iTunes & App store without any problems.

  • How do I manage two iPods on one computer please?

    I have an iPod (early 40G model, and it's fine). I installed iTunes, and all fine. A year goes by. Another member of the household gets an iPod (mini), and we load the software into a different subdirectory in Program Files. This erases my iTunes, but all still works fine for some reason. i.e. when I attach my iPod, it is recognised, and my iTunes music is shown on the screen. When the other iPod is attached, same thing (i.e. it is recognised and her iTunes are shown on the screen). Our different music folders are stored in different subdirectories.
    This is all fine, until her iPod erases itself, and is now no longer recognised by iTunes. In the processes advised for solving this situation (restore and reset etc) we erase my iPod (but have managed to restore music to if after re-installing the original software that came with it.)
    So now we are back to the stage of having her iPod not being recognised by iTunes. Please suggest solutions! Please also advise if there is a more sensible way of managing two iPods on one PC. Is it really as basic as having different playlists?
    Thanks in advance for your help.

    Yep. Playlists will do it.
    If you want other options, see this:
    Natalie Beresford: Multiple iPods/iTunes Installations

  • How to put two ipods on one computer

    how to put two ipods on one computer

    Set up the second exactly the same way as you set up the first. If iTunes is already installed, it doesn't need to be installed again.
    (64746)

  • How to sync two IPhone with one PC , but with different applications

    How to sync two IPhone with one PC , but with different applications ?
    We have two IPhones , but one PC , we want to sync separately , is that possible ?

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • How to set two radius servers one is window NPS another is cisco radius server

    how to set two radius servers one is window NPS another is cisco radius server
    when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
    i can not use both at the same time
    radius-server host 192.168.1.3  is window NPS
    radius-server host 192.168.1.1 is cisco radius
    http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
    conf t
    no aaa authentication login default line
    no aaa authentication login local group radius
    no aaa authorization exec default group radius if-authenticated
    no aaa authorization network default group radius
    no aaa accounting connection default start-stop group radius
    aaa new-model
    aaa group server radius IAS
     server 192.168.1.1 auth-port 1812 acct-port 1813
     server 192.168.1.3 auth-port 1812 acct-port 1813
    aaa authentication login userAuthentication local group IAS
    aaa authorization exec userAuthorization local group IAS if-authenticated
    aaa authorization network userAuthorization local group IAS
    aaa accounting exec default start-stop group IAS
    aaa accounting system default start-stop group IAS
    aaa session-id common
    radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
    radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
    privilege exec level 1 show config
    ip radius source-interface Gi0/1
    line vty 0 4
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    line vty 5 15
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    end
    conf t
    aaa group server radius IAS
     server 192.168.1.3 auth-port 1812 acct-port 1813
     server 192.168.1.1 auth-port 1812 acct-port 1813
    end

    The first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on. 
    If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs. 
    I hope this helps!
    Thank you for rating helpful posts!

  • How can update two rows in one query?

    How can update two rows in one query?
    Edited by: OracleM on May 4, 2009 12:16 AM

    What do you mean with "two rows"? May be two columns??
    If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
    UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • TS3274 How do I move icons from one screen to another?

    How do I move icons from one screen to another. 

    Hold down on one icon until they start shaking, then drag the icon to the edge of the screen, and the screen should slide to the next one, you can then drop it on that screen or drag it again to the edge to move to the next screen.
    Page 21 of the user guide explains this under Arranging Apps:
    http://manuals.info.apple.com/en/ipad_user_guide.pdf

  • How do I back up just one screen?

    Seems I always have to get back to HOME and start fresh.  How can I move back just ONE SCREEN for any application within iPhone?
    Thanks in advance.

    Look at the top left corner of the app screen.  Is there an option to go back to the previous screen?
    Give me an example of an app where this happens.

  • How to manage two editable checkboxes in ALV class

    Hi all,
    I need to make two checkboxes fields appear only in some rows and I found this link:
    ALV one  cell as checkbox based on some conditions
    but it's not completely what I need, because I have to make the second checkbox editable only when the first one has been flagged, so it would be more useful a class alv.
    How can I solve my problem?
    Thanks,
       Francesco

    Try this:
    1-http://www.sapfans.com/forums/viewtopic.php?t=84933
    2-http://www.sapfans.com/forums/viewtopic.php?t=69878
    3-http://www.sapfans.com/forums/viewtopic.php?t=88376
    4-http://www.sapfans.com/forums/viewtopic.php?t=40968
    5-http://www.sapfans.com/forums/viewtopic.php?t=6919
    Regards
    Neha

Maybe you are looking for