ALV classic and toolbar

Hi,
i'm not familiar with ALV classic (i'm always working with ALV OO), but is it possible to add extra buttons to the ALV toolbar, and handle the click on these buttons ?
regards,
Hans

Hi,
The steps to be followed to use events in classic ALV:
say to use top_of_page event the steps will be:
1) declare the events.
data i_events TYPE slis_t_event.
2) define the event.
DATA: line_event TYPE slis_alv_event.
CLEAR line_event.
line_event-name = 'TOP_OF_PAGE'.
line_event-form = 'F4200_TOP_OF_PAGE'.
APPEND line_event TO i_events.
3) define the header details.
DATA: gs_line TYPE slis_listheader.
CLEAR: gs_line.
gs_line-typ = 'H'.
gs_line-info = text-009.
APPEND gs_line TO i_header.
CLEAR: gs_line.
gs_line-typ = 'S'.
gs_line-key = 'Month'.
gs_line-info = p_month.
APPEND gs_line TO i_header.
4) define the list write for header
FORM f4200_top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
i_logo = 'ENJOYSAP_LOG'
it_list_commentary = i_header.
ENDFORM.
5) call the grid
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_c_repid
i_grid_title = ws_title
is_layout = i_layout
it_fieldcat = i_fieldcat
i_default = 'X'
i_save = 'A'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
IS_VARIANT =
it_events = i_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_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = i_final_out
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Ram
Pls reward points if helpful

Similar Messages

  • Report with ALV tree and ALV list?

    I need to create a report with layout as same as this one
    [http://trangiegie.com/MyFile/output.JPG]
    It looks like a report with combination of ALV tree and list. The tree works like a navigation bar. Wonder if there are any demo programs like this. Will appreciate any help.

    For Tree alone - You can check program : BCALV_TREE_02
    Program Name                   Report title
    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
    BCALV_TEST_SIMPLE_TREE         Program BCALV_TEST_SIMPLE_TREE
    BCALV_TREE_01                  ALV Tree Control: Build Up the Hierarchy Tree
    BCALV_TREE_02                  ALV Tree Control: Event Handling
    BCALV_TREE_03                  ALV Tree Control: Use an Own Context Menu
    BCALV_TREE_04                  ALV Tree Control: Add a Button to the Toolbar
    BCALV_TREE_05                  ALV Tree Control: Add a Menu to the Toolbar
    BCALV_TREE_06                  ALV tree control: Icon column and icon for nodes/items
    BCALV_TREE_DEMO                Demo for ALV tree control
    BCALV_TREE_DND                 ALV tree control: Drag & Drop within a hierarchy tree
    BCALV_TREE_DND_MULTIPLE        ALV tree control: Drag & Drop within a hierarchy tree
    BCALV_TREE_EVENT_RECEIVER      Include BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_EVENT_RECEIVER01
    BCALV_TREE_ITEMLAYOUT          ALV Tree: Change Item Layouts at Runtime
    BCALV_TREE_MOVE_NODE_TEST      Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO         Program BCALV_TREE_SIMPLE_DEMO
    BCALV_TREE_VERIFY              Verifier for ALV Tree and Simple ALV Tree

  • Blocked ALV Header and Item Displau

    Hi Friends,
    I`m new to ABAP and the forum.I`m in dire need of solution for a report.
    Scenario
    I have an internal table with fields ebeln vbeln adrnr.
    For every change in ebeln i need to create a new page in ALV and display the item VBELN and some more fields.
    Its like a header and item in a single page of alv report.
    Is there a possibility to use ALV here or only classical report can be used in the scenario???

    Hi,
    For Blocked alv header and item display you
    declaration internal table fields ebeln vbeln adrn
    TYPE-POOLS SLIS.
    TYPES : BEGIN OF TY_EKKO,
         EBELN TYPE EKKO-EBELN,
         AEDAT TYPE EKKO-AEDAT,
         vblen TYPE EKKO- vbeln,
         END OF TY_EKKO.
    DATA : IT_EKKO TYPE TABLE OF TY_EKKO,
         WA_EKKO TYPE TY_EKKO.
    DATA : WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
         IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : WA_EVENTS TYPE SLIS_ALV_EVENT,
         IT_EVENTS TYPE SLIS_T_ALV_EVENT,
         IS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    For Build catalog
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-SELTEXT_M = 'PO NUMBER'.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-KEY = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'AEDAT'.
    WA_FIELDCAT-SELTEXT_M = 'DATE OF CREATION'.
    WA_FIELDCAT-COL_POS = 2.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'LIFNR'.
    WA_FIELDCAT-SELTEXT_M = 'VENDOR NO'.
    WA_FIELDCAT-COL_POS = 3.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    read_data :
    SELECT * INTO TABLE IT_EKKO FROM EKKO UP TO 20 ROWS.
    print_header :
    DATA : IT_LIST TYPE SLIS_T_LISTHEADER,
         WA_LIST TYPE LINE OF SLIS_T_LISTHEADER.
    CLEAR WA_LIST.
    WA_LIST-TYP = 'H'.
    WA_LIST-INFO = 'LIST OF PURCHASE ORDERS'.
    APPEND WA_LIST TO IT_LIST.
    Header along with write statement at top-of-page then use these function module
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LIST

  • How to call ALV Report and SMARTFORMS through Pushbutton

    hi,
    i have created a report.My task is to create two buttons:
    1)ALV Report.
    2)SMARTFROMS.
    Through these button i have to call ALV Report and SMARTFORMS. i have created both button and when i execute the program,
    it shows me the button but not working when i click on it.
    this is the coding i have used in my report for calling ALV Report.
    ''Tables sscrfields,
    DATA flag(1) Type c.
    selection-screen: begin of screen 500 AS WINDOW TITLE tit,
    BEGIN OF LINE,
    PUSHBUTTON 2(18) but1 USER-COMMAND cli1,
    end of line,
    BEGIN OF LINE,
    PUSHBUTTON 2(18) but2 USER-COMMAND cli2,
    end of line,
    end of screen 500.
    SET PF-STATUS 'STATUS_0100'.
    at selection-screen.
    case sscrfields.
    WHEN 'cli1'.
    flag = '1'.
    WHEN 'cli2'.
    flag = '2'.
    endcase.
    at USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'Detail'.
    select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~ARKTX
    into but1
    from vbak inner join vbap
    on vbakvbeln = vbapvbeln.
    ENDSELECT.
    ENDCASE.
    START-OF-SELECTION.
    tit = 'Format'.
    but1 = 'ALV Report'.
    but2 = 'SMARTFORMS'.
    CALL SELECTION-SCREEN 500.
    and i also use in my report
    ''case sscrfields-ucomm'' and ''submit my_report'' but the still button doesn't show the result.
    Thanks & Regards,

    Hi,
             I  understood your requirement. What i found is,  you are creating screen 500 and call it after START-OF-SELECTION,
    at that time your AT USER-COMMAND doesn't work.
    So what i would suggest , u should create GUI STATUS named ' PFSTAT' 
    having one functional key 'EXIT'  that is standard u can just name it
    and
    other two u can assign in Freely assigned Function keys as 'BUT1' & 'BUT2'.  and than in Application Toolbar u jst have it in ITEM LIST by typing BUT1 and BUT2.
    For 'BUT1'  text would be 'ALV'  and 'BUT2' text would be 'SMARTFORMS'.
    Now in Program you can code,,,
    START-OF-SELECTION.
    SET PF-STATUS 'PFSTAT'.
    WRITE:/ 'TEST'.
    at user-command.
      case SY-UCOMM.
        WHEN 'BUT1'.
        WHEN 'BUT2'.
        WHEN 'EXIT'.
           LEAVE PROGRAM.
      endcase.
    In Program u set PF STATUS and use at user-command event, whcih gets triggered when u click on button . When u execute program you get two button in application tooldbar.
    Please do needful.
    Thanks,
    Saurin SHah

  • Hi guru's i  am learning ,iknow alv classical ,interactive how to use oops.

    hi guru's i know alv classical ,interactive how to use oops concept in that ,
    some one is telling oops using of oops to dovelope alv grid , actually i don't know alv grid,
    plz explain to me brefley diffrence between alv and alv grid...plz...

    Hi,
    This is the sample report for the oops concept. kindly go through that one. U will get some idea about that one.
    REPORT  YMS_CHECKBOXOOPSALV NO STANDARD PAGE HEADING.
    TYPE-POOLS: slis.
    DATA: BEGIN OF i_data OCCURS 0,
    qmnum LIKE qmel-qmnum,
    qmart LIKE qmel-qmart,
    qmtxt LIKE qmel-qmtxt,
    ws_row TYPE i,
    ws_char(5) TYPE c,
    chk,
    END OF i_data.
    DATA: report_id LIKE sy-repid.
    DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
    DATA: i_layout TYPE slis_layout_alv.
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: i_events TYPE slis_t_event.
    DATA: i_header TYPE slis_t_listheader.
    DATA: i_extab TYPE slis_t_extab.
    SELECT qmnum
    qmart
    qmtxt
    INTO TABLE i_data
    FROM qmel
    WHERE qmnum <= '00030000010'.
    LOOP AT i_data.
    i_data-ws_row = sy-tabix.
    i_data-ws_char = 'AAAAA'.
    MODIFY i_data.
    ENDLOOP.
    report_id = sy-repid.
    PERFORM f1000_layout_init CHANGING i_layout.
    PERFORM f2000_fieldcat_init CHANGING i_fieldcat.
    PERFORM f3000_build_header CHANGING i_header.
    PERFORM f4000_events_init CHANGING i_events.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    i_callback_program = report_id
    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 = ws_title
    I_GRID_SETTINGS =
    is_layout = i_layout
    it_fieldcat = i_fieldcat
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    i_save = 'A'
    IS_VARIANT =
    it_events = i_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_ADD_FIELDCAT =
    IT_HYPERLINK =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = i_data
    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.
    *& Form F1000_Layout_Init
    FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
    CLEAR i_layout.
    i_layout-colwidth_optimize = 'X'.
    i_layout-edit = 'X'.
    ENDFORM. " F1000_Layout_Init
    *& Form f2000_fieldcat_init
    FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: line_fieldcat TYPE slis_fieldcat_alv.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMNUM'. " The field name and the table
    line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.
    line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)
    line_fieldcat-seltext_m = 'Notification No.'. " Column Header
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMART'.
    line_fieldcat-ref_tabname = 'I_DATA'.
    line_fieldcat-hotspot = 'X'. " Shows the field as a hotspot.
    line_fieldcat-seltext_m = 'Notif Type'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMTXT'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Description'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_ROW'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Row Number'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_CHAR'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Test Character Field'.
    line_fieldcat-datatype = 'CHAR'.
    line_fieldcat-outputlen = '15'. " You can specify the width of a
    APPEND line_fieldcat TO i_fieldcat. " column.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'CHK'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Checkbox'.
    line_fieldcat-checkbox = 'X'. " Display this field as a checkbox
    line_fieldcat-edit = 'X'. " This option ensures that you can
    " edit the checkbox. Else it will
    " be protected.
    APPEND line_fieldcat TO i_fieldcat.
    ENDFORM. " f2000_fieldcat_init
    *& Form f3000_build_header
    FORM f3000_build_header USING i_header TYPE slis_t_listheader.
    DATA: gs_line TYPE slis_listheader.
    CLEAR gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'This is line of type HEADER'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'This is line of type STATUS'.
    APPEND gs_line TO i_header.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'This is also line of type STATUS'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'A'.
    gs_line-info = 'This is line of type ACTION'.
    APPEND gs_line TO i_header.
    ENDFORM. " f3000_build_header
    *& Form f4000_events_init
    FORM f4000_events_init CHANGING i_events TYPE slis_t_event.
    DATA: line_event TYPE slis_alv_event.
    CLEAR line_event.
    line_event-name = 'TOP_OF_PAGE'.
    line_event-form = 'F4100_TOP_OF_PAGE'.
    APPEND line_event TO i_events.
    CLEAR line_event.
    line_event-name = 'PF_STATUS_SET'.
    line_event-form = 'F4200_PF_STATUS_SET'.
    APPEND line_event TO i_events.
    ENDFORM. " f3000_events_init
    FORM F4100_TOP_OF_PAGE *
    FORM f4100_top_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header.
    ENDFORM.
    FORM F4200_PF_STATUS_SET *
    FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
    REFRESH i_extab.
    PERFORM f4210_exclude_fcodes CHANGING i_extab.
    SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
    ENDFORM.
    *& Form f4210_exclude_fcodes
    FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
    DATA: ws_fcode TYPE slis_extab.
    CLEAR ws_fcode.
    ws_fcode = '&EB9'. " Call up Report.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&ABC'. " ABC Analysis.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&NFO'. " Info Select.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&LFO'. " Information.
    APPEND ws_fcode TO i_extab.
    ENDFORM. " f4210_exclude_fcodes
    Thanks,
    Sankar M

  • ALV classical report

    hi,
    can any one of you send me the simple classical report using ALV functionality.
    and if you can send me also an interactive report on ALV functionality plsssssss.
    advance thanks and also i will give points .
    yours,
    sara.

    Hi,
    For <b>Classical Report</b> Example refer to link,
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    For <b>Interactive Report</b> check the following Example,
    Check this sample code which provides exact info.
    REPORT YMS_ALVINTER1.
    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
    DATA: i_event TYPE slis_t_event.
    DATA: t_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.
    DECLARATION OF FIELD LAYOUT
    DATA: i_layout TYPE slis_layout_alv.
    SORTING OF OUTPUT
    DATA: i_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 .
    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
    line_color(4) TYPE c ,
    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.
    DATA: i_title_vbfa TYPE lvc_title VALUE 'SALES ORDER LIST DISPLAYED'.
    DATA: i_title_vbpa TYPE lvc_title VALUE
    'DELIVERY DETAILS DISPLAYED AGAINST GIVEN SALES ORDER'.
    *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 *
    START-OF-SELECTION .
    PERFORM data_select.
    PERFORM t_sort USING i_sort .
    PERFORM event_cat USING i_event .
    PERFORM fld_cat USING i_fldcat[] .
    PERFORM t_layout USING i_layout .
    PERFORM fld_cat2 USING i_fldcat2[] .
    PERFORM call_alv.
    DATA SELECT *
    *& Form DATA_SELECT
    text
    --> p1 text
    <-- p2 text
    FORM data_select .
    REFRESH: it_vbfa, it_so1, it_del_ful ,it_del1 .
    BREAK-POINT.
    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 .
    COLURING DISPLAY *
    DATA: ld_color(1) TYPE c .
    LOOP AT it_so1 INTO wa_so.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
    i.e. wa_ekko-line_color = 'C410'
    ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
    IF ld_color = 8.
    ld_color = 1.
    ENDIF.
    CONCATENATE 'C' ld_color '10' INTO wa_so-line_color.
    wa_ekko-line_color = 'C410'.
    MODIFY it_so1 FROM wa_so.
    ENDLOOP .
    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.
    ENDFORM. " DATA_SELECT
    EVENT CATALOG ****************************************
    *& Form EVENT_CAT
    text
    -->P_I_EVENT text
    FORM event_cat USING p_i_event TYPE slis_t_event .
    REFRESH p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    et_events = p_i_event
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    READ TABLE p_i_event WITH KEY name = slis_ev_top_of_page INTO t_event.
    IF sy-subrc = 0.
    MOVE 'TOP_OF_PAGE' TO t_event-form.
    MODIFY p_i_event FROM t_event INDEX sy-tabix TRANSPORTING form.
    ENDIF.
    CLEAR t_event .
    ENDFORM. " EVENT_CAT
    *********FORM FOR EVENT TOP_OF_PAGE*********************************
    FORM top_of_page .
    REFRESH i_listheader.
    DATA: t_header TYPE slis_listheader.
    DATA: v_text(50).
    WRITE sy-datum TO v_text.
    CLEAR t_header.
    t_header-typ = 'S'.
    t_header-key = 'Date'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CLEAR t_header.
    CLEAR v_text.
    WRITE: 'SALES ORDER REPORT ' TO v_text .
    t_header-typ = 'S'.
    t_header-key = 'TITLE'.
    t_header-info = v_text.
    APPEND t_header TO i_listheader.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_listheader
    I_LOGO = 'ENJOYSAP_LOGO' .
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    FIRST ALV GRID DISPLAY ***************************************
    *& Form CALL_ALV
    text
    --> p1 text
    <-- p2 text
    FORM call_alv .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND1'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbfa
    is_layout = i_layout
    it_fieldcat = i_fldcat[]
    it_sort = i_sort
    it_events = i_event
    TABLES
    t_outtab = it_so1
    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_ALV
    FIRST FIELDCATALOG *************************************
    *& 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'."TABLE NAME
    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-just(1) = 'C'.
    APPEND i_fldcat.
    CLEAR i_fldcat.
    i_fldcat-fieldname = 'AUART'. "FIELD FOR WHICH CATALOG ID FILLED
    i_fldcat-tabname = 'IT_SO1'."TABLE NAME
    i_fldcat-seltext_m = 'SALES DOC. TYPE'.
    i_fldcat-col_pos = 2. " POSITION OF THE COLUMN.
    i_fldcat-outputlen = 15. " 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-just(1) = 'C'.
    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 = 12. " 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-just(1) = 'C'.
    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 = 10. " 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-just(1) = 'C'.
    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 = 15. " 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-just(1) = 'C'.
    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 = 17. " 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-just(1) = 'C'.
    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-just(1) = 'C'.
    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-just(1) = 'C'.
    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 = 15. " 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-do_sum = 'X'. " For doing "SUM"
    i_fldcat-just(1) = 'C'.
    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 = 10. " 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-just(1) = 'C'.
    APPEND i_fldcat.
    ENDFORM. " FLD_CAT
    ALV SORTING ***************************************
    *& Form SORT
    text
    -->P_I_SORT text
    FORM t_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-tabname = 'IT_SO1'.
    i_sort-fieldname = 'VBELN'.
    i_sort-up = 'X'.
    i_sort-subtot = 'X'.
    i_sort-group = '*'.
    APPEND i_sort TO p_i_sort.
    ENDFORM. " SORT
    *FORM SET_PF_STATUS USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    *ENDFORM. "Set_pf_status
    **********FORM FOR EVENT USER_COMMAND1*******************************
    FORM user_command1 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    *CASE R_UCOMM .
    WHEN '&IC1' .
    IF rs_selfield-FIELDNAME = 'VBELN' .
    ENDIF .
    WHEN OTHERS .
    ENDCASE .
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF sy-subrc = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_so-vbeln
    AND posnv = wa_so-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = wa_vbfa-vbelv
    posnr = wa_vbfa-posnn.
    IF sy-subrc = 0.
    CLEAR wa_del.
    MOVE wa_it_del_ful TO wa_del.
    APPEND wa_del TO it_del1.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDIF.
    SECOND ALV GRID DISPLAY ***********************************
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND2'
    i_callback_top_of_page = 'TOP_OF_PAGE'
    I_BACKGROUND_ID = 'ALV_BACKGROUND'
    i_grid_title = i_title_vbpa
    it_fieldcat = i_fldcat2[]
    it_sort = i_sort
    TABLES
    t_outtab = it_del_ful
    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 . "USER_COMMAND1
    FORM FOR EVENT USER_COMMAND 2 ******************************
    FORM user_command2 USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CLEAR wa_so.
    REFRESH: it_del1 .
    IF r_ucomm = '&IC1' AND rs_selfield-fieldname = 'VBELN' AND
    rs_selfield-value IS NOT INITIAL.
    READ TABLE it_so1 INTO wa_so INDEX rs_selfield-tabindex.
    IF SY-SUBRC = 0.
    LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = WA_SO-vbeln
    AND posnv = WA_SO-posnr.
    READ TABLE it_del_ful INTO wa_it_del_ful
    WITH KEY vbeln = rs_selfield-value
    posnr = wa_vbfa-posnn.
    IF rs_selfield-fieldname = 'VBELN'.
    SET PARAMETER ID 'VL' FIELD wa_vbfa-vbeln .
    CALL TRANSACTION 'VL03' AND SKIP FIRST SCREEN.
    ENDIF .
    ENDLOOP.
    ENDIF.
    ENDIF.
    ENDFORM . "USER_COMMAND2
    SECOND FIELDCATALOG ******************************************
    *& 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-tabname = 'IT_DEL_FUL'."TABLE NAME
    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'.
    i_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    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_fldcat2-just(1) = 'C'.
    APPEND i_fldcat2.
    ENDFORM. " FLD_CAT2
    ALV LAYOUT *******************************************
    *& Form 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-totals_text = 'GRAND TOTAL ='.
    p_i_layout-CONFIRMATION_PROMPT = 'X'.
    p_i_layout-DEF_STATUS = ' '.
    p_i_layout-info_fieldname = 'LINE_COLOR'.
    ENDFORM. " LAYOUT
    Regards,
    Padmam.

  • I recently connected my new ipad to my itunes, but now itunes will not recognise my ipod classic, and 50gig of music has gone. ipad connects ok but no longer ipod which has been there for two years! help!!!

    I recently connected my new ipad to my itunes, but now itunes will not recognise my ipod classic, and 50gig of music has gone. ipad connects ok but no longer ipod which has been there for two years! help!!!

    What happens when the iPod is plugged in?  anything?  any errors?
    Why is 50GB of music gone?  All music should exist on the computer.  Only a fool would rely on a single device which could easily be lost or stolen to store their content on.

  • I went to "view" and "toolbars" and mistakenly unchecked the menu toolbar on Firefox how do I get it back?

    I was trying to turn off some of the unused toolbars on Firefox on my husband's Windows laptop. I mistakenly unchecked the menu tool bar under "view" and "toolbars" Now I can't figure out how to get it back.

    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear
    Go to "View > Toolbars" and check-mark "Menu Bar" with a click if you want to make that permanent
    See [[Menu bar is missing]])

  • Question regarding Classic and Advance table

    Hi,
    I have classic and advance table. I am populating with VO that brings 100 record. When i render page i see last record being displayed. How can i show my first record by defult on both tables?

    By default the first record will be displayed, if you are seeing the last one instead, you probably did a vo.last() in the code.
    Thanks
    Tapash

  • Hi, I bought 2 songs off itunes. I have synced my classic and shuffle with no problems. The new songs show ok in my libary but when i view my iphone 5 in itunes these songs appear greyed out with a ring of dots to the left and will not sync to my iphone?

    Hi, some of my songs appear greyed out with a ring of dots to the left in itunes when I view whats on my iphone 5. These songs will not sync to my phone but have synced to my classic and shuffle? Can anybody tell me why this is? Cheers

    See this older thread for a few possible solutions.
    https://discussions.apple.com/thread/3924425?tstart=30
    B-rock

  • Call tcode from alv report and passing  group of values

    hi all .
    i want to call tcode from alv report and passing an internal table or group of values to a selection option of that t code ? how
    ex. passing group of GL to fbl3n and display the detials of all .
    thank you

    Dear,
    You have done a small mistake
    --> rspar_line-option = 'EQ'.
         rspar_line-HIGH = PDATE-HIGH.
    u r passing "high" value and in "option u r passing "EQ" so how it will work!!!
    So if u r passing only 1 date or more dates like 01.01.2010 , 15.02.2010 , 10.03.2010 then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-LOW = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    or if u r passing low & high date means in range like 01.01.2010 to 30.01.2010, then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'BT''.
    rspar_line-LOW = PDATE-LOW.
    rspar_line-HIGH = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    try above code , hope it helps...
    i think u cannot use "call transaction using bdcdata" in ur case bcoz as u said in ur 1st post u want to display the details of all but still if u want to use then u should pass all parameters in  loop.
    PROGRAM
    DYNPRO
    DYNBEGIN
    FNAM
    FVAL
    ex:-
    LOOP AT GT_TEMP INTO GS_TEMP.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = 'SAPXXXX'.
    bdcdata_DYNPRO = '1000'.
    bdcdata_DYNBEGIN = 'X'.
    bdcdata_wa-fnam = '''.
    bdcdata_wa-fval = ''.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'SD_SAKNR'.
    bdcdata_wa-fval = GS_TEMP-GLACCOUNT.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = 'XXX'.
    APPEND bdcdata_wa TO bdcdata_tab.
    ENDLOOP.
    try above code if u r using call transaction...
    Edited by: mihir6666 on Jul 9, 2011 3:10 PM
    Edited by: mihir6666 on Jul 9, 2011 3:11 PM
    Edited by: mihir6666 on Jul 9, 2011 3:13 PM

  • To set HOTSPOT for a field in ALV-oops and when clecked should call transac

    Hi,
    I need to set HOTSPOT for a field in O/P list using ALV-oops and when clecked should take me to Transaction VA01. Please help....
    Thanks,
    Prabhu

    Hi,
         Please go through this code it may help u.
    REPORT zcls_alv_oops MESSAGE-ID z1.
    TABLES : mara.
    Types Declaration..\
    TYPES :
    BEGIN OF t_mara,
    matnr TYPE matnr,
    mtart TYPE mtart,
    maktx TYPE maktx,
    END OF t_mara,
    BEGIN OF t_marc,
    matnr TYPE matnr,
    werks TYPE werks_d,
    mtart TYPE mtart,
    maktx TYPE maktx,
    END OF t_marc.
    Internal Tables Declaration..\
    DATA :
    i_mara TYPE TABLE OF t_mara,
    i_marc TYPE TABLE OF t_marc,
    i_fcat1 TYPE lvc_t_fcat,
    i_fcat2 TYPE lvc_t_fcat.
    Constants Declaration..\
    CONSTANTS :
    c_cont1 TYPE scrfname VALUE 'CONT1',
    c_cont2 TYPE scrfname VALUE 'CONT2'.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    SELECT-OPTIONS:
    s_matnr FOR mara-matnr NO INTERVALS.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS :
    p_hotspt RADIOBUTTON GROUP r1 DEFAULT 'X',
    p_bttn RADIOBUTTON GROUP r1.
    SELECTION-SCREEN END OF BLOCK b1.
    \* Class forward referncing.
    CLASS lcl_rcvr_class DEFINITION DEFERRED.
    \* Pointers Declaration..
    DATA :
    lp_rcvr TYPE REF TO lcl_rcvr_class,
    lp_cont1 TYPE REF TO cl_gui_custom_container,
    lp_cont2 TYPE REF TO cl_gui_custom_container,
    lp_grid1 TYPE REF TO cl_gui_alv_grid,
    lp_grid2 TYPE REF TO cl_gui_alv_grid.
    \* Local Class Definiton.
    CLASS lcl_rcvr_class DEFINITION.
    PUBLIC SECTION.
    METHODS :
    hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
    IMPORTING e_row_id e_column_id es_row_no,
    handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
    IMPORTING e_row e_column.
    ENDCLASS.
    \* Local Class Implementation.
    CLASS lcl_rcvr_class IMPLEMENTATION.
    METHOD hotspot_click.
    DATA :
    wa_mara TYPE t_mara,
    wa_marc TYPE t_marc.
    DATA :
    l_index TYPE sy-tabix.
    READ TABLE i_mara INTO wa_mara INDEX e_row_id-index.
    IF sy-subrc EQ 0.
    REFRESH i_marc.
    SELECT matnr
    werks
    INTO TABLE i_marc
    FROM marc
    WHERE matnr EQ wa_mara-matnr.
    IF sy-subrc EQ 0.
    LOOP AT i_marc INTO wa_marc.
    l_index = sy-tabix.
    wa_marc-mtart = wa_mara-mtart.
    wa_marc-maktx = wa_mara-maktx.
    MODIFY i_marc FROM wa_marc INDEX l_index
    TRANSPORTING mtart maktx.
    ENDLOOP.
    CALL SCREEN 200.
    ELSE.
    MESSAGE e121 WITH text-005 wa_mara-matnr.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    METHOD handle_double_click.
    DATA :
    wa_mara TYPE t_mara,
    wa_marc TYPE t_marc.
    DATA :
    l_index TYPE sy-tabix.
    READ TABLE i_mara INTO wa_mara INDEX e_row-index.
    IF sy-subrc EQ 0.
    REFRESH i_marc.
    SELECT matnr
    werks
    INTO TABLE i_marc
    FROM marc
    WHERE matnr EQ wa_mara-matnr.
    IF sy-subrc EQ 0.
    LOOP AT i_marc INTO wa_marc.
    l_index = sy-tabix.
    wa_marc-mtart = wa_mara-mtart.
    wa_marc-maktx = wa_mara-maktx.
    MODIFY i_marc FROM wa_marc INDEX l_index
    TRANSPORTING mtart maktx.
    ENDLOOP.
    CALL SCREEN 200.
    ELSE.
    MESSAGE e121 WITH text-005 wa_mara-matnr.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    ENDCLASS.
    \* Start of Selection
    START-OF-SELECTION.
    \* Extract the Material Master data for the Input Material.
    SELECT a~matnr
    a~mtart
    b~maktx
    INTO TABLE i_mara
    FROM mara AS a
    INNER JOIN makt AS b
    ON a~matnr EQ b~matnr
    WHERE a~matnr IN s_matnr
    AND b~spras EQ sy-langu.
    END-OF-SELECTION.
    IF NOT i_mara\[\] IS INITIAL.
    \* Call Screen to display the Material Master data.
    CALL SCREEN 100.
    ELSE.
    MESSAGE s121 WITH text-006.
    ENDIF.
    \*& Module DISP_GRID OUTPUT
    \* text
    MODULE disp_grid OUTPUT.
    \* Build the Field catelog for Material Master data.
    PERFORM build_fcat.
    \* Display the Material Master data using ALV.
    PERFORM disp_alv.
    ENDMODULE. " DISP_GRID OUTPUT
    \*& Module USER_COMMAND_0100 INPUT
    \* text
    MODULE user_command_0100 INPUT.
    \*when exit or cancel is clicked program has to come out
    CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    \*& Form build_fcat
    \* text
    \* \--> p1 text
    \* <-\- p2 text
    FORM build_fcat.
    DATA : ws_fcat TYPE lvc_s_fcat.
    ws_fcat-fieldname = 'MATNR'.
    ws_fcat-scrtext_m = text-001.
    ws_fcat-tabname = 'I_MARA'.
    IF p_hotspt EQ 'X'.
    ws_fcat-hotspot = 'X'.
    ENDIF.
    APPEND ws_fcat TO i_fcat1.
    CLEAR ws_fcat.
    ws_fcat-fieldname = 'MTART'.
    ws_fcat-scrtext_m = text-002.
    ws_fcat-tabname = 'I_MARA'.
    APPEND ws_fcat TO i_fcat1.
    CLEAR ws_fcat.
    ws_fcat-fieldname = 'MAKTX'.
    ws_fcat-scrtext_m = text-003.
    ws_fcat-tabname = 'I_MARA'.
    APPEND ws_fcat TO i_fcat1.
    CLEAR ws_fcat.
    ENDFORM. " build_fcat
    \*& Form disp_alv
    \* text
    \* \--> p1 text
    \* <-\- p2 text
    FORM disp_alv.
    IF lp_cont1 IS INITIAL.
    \* Create the Container Object of Material Master.
    CREATE OBJECT lp_cont1
    EXPORTING
    container_name = c_cont1
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6 .
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    \* Create the Object for Grid of Material Master.
    CREATE OBJECT lp_grid1
    EXPORTING
    i_parent = lp_cont1
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    others = 5.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    \* Dipslay Material Master data by calling method.
    CALL METHOD lp_grid1->set_table_for_first_display
    CHANGING
    it_outtab = i_mara
    it_fieldcatalog = i_fcat1
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    \* Set Handler for the Hot Spot Event.
    CREATE OBJECT lp_rcvr.
    IF p_hotspt EQ 'X'.
    SET HANDLER lp_rcvr->hotspot_click FOR lp_grid1.
    ELSE.
    SET HANDLER lp_rcvr->handle_double_click FOR lp_grid1.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDFORM. " disp_alv
    \*& Module STATUS_0100 OUTPUT
    \* text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'MAIN_STAT'.
    SET TITLEBAR 'T_100'.
    ENDMODULE. " STATUS_0100 OUTPUT
    \*& Module STATUS_0200 OUTPUT
    \* text
    MODULE status_0200 OUTPUT.
    SET PF-STATUS 'PLANT_STAT'.
    SET TITLEBAR 'T_200'.
    ENDMODULE. " STATUS_0200 OUTPUT
    \*& Module DISP_GRID_plant OUTPUT
    \* text
    MODULE disp_grid_plant OUTPUT.
    \* Build the Field catelog for Material Plant data.
    PERFORM build_fcat_plant.
    \* Display the Material Master Plant data using ALV.
    PERFORM disp_alv_plant.
    ENDMODULE. " DISP_GRID_plant OUTPUT
    \*& Module USER_COMMAND_0200 INPUT
    \* text
    MODULE user_command_0200 INPUT.
    \*when exit or cancel is clicked program has to come out
    CASE sy-ucomm.
    WHEN 'EXIT' OR 'CANC'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0200 INPUT
    \*& Form build_fcat_plant
    \* text
    \* \--> p1 text
    \* <-\- p2 text
    FORM build_fcat_plant.
    DATA : ws_fcat TYPE lvc_s_fcat.
    ws_fcat-fieldname = 'MATNR'.
    ws_fcat-scrtext_m = text-001.
    ws_fcat-tabname = 'I_MARC'.
    APPEND ws_fcat TO i_fcat2.
    CLEAR ws_fcat.
    ws_fcat-fieldname = 'WERKS'.
    ws_fcat-scrtext_m = text-004.
    ws_fcat-tabname = 'I_MARC'.
    APPEND ws_fcat TO i_fcat2.
    CLEAR ws_fcat.
    ws_fcat-fieldname = 'MTART'.
    ws_fcat-scrtext_m = text-002.
    ws_fcat-tabname = 'I_MARC'.
    APPEND ws_fcat TO i_fcat2.
    CLEAR ws_fcat.
    ws_fcat-fieldname = 'MAKTX'.
    ws_fcat-scrtext_m = text-003.
    ws_fcat-tabname = 'I_MARC'.
    APPEND ws_fcat TO i_fcat2.
    CLEAR ws_fcat.
    ENDFORM. " build_fcat_plant
    \*& Form disp_alv_plant
    \* text
    \* \--> p1 text
    \* <-\- p2 text
    FORM disp_alv_plant.
    IF lp_cont2 IS INITIAL.
    \* Create the Container Object of Material Plant data.
    CREATE OBJECT lp_cont2
    EXPORTING
    container_name = c_cont2
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    others = 6.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    \* Create the Object for Grid of Material Plant data.
    CREATE OBJECT lp_grid2
    EXPORTING
    i_parent = lp_cont2
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    others = 5.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    \* Dipslay Material Plant data by calling method.
    CALL METHOD lp_grid2->set_table_for_first_display
    CHANGING
    it_outtab = i_marc
    it_fieldcatalog = i_fcat2
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    IF sy-subrc NE 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDIF.
    ELSE.
    \* Call method 'REFRESH_TABLE_DISPLAY' to refresh the grid data.
    CALL METHOD lp_grid2->refresh_table_display.
    ENDIF.
    ENDFORM. " disp_alv_plant

  • I have an iPod Classic and the latest version of iTunes. I make all my purchases on my computer, but when I try to click the "add to" option and transfer the songs to my iPod, it doesn't work. How can I get my songs from my computer to my iPod?

    I have an iPod Classic and the latest version of iTunes. I make all my purchases on my computer, but when I try to click the "add to" option and transfer the songs to my iPod, it doesn't work. How can I get my songs from my computer to my iPod?

    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • I would like to share music with my Dad we both have ipod classics and i tunes installed, my library is backed up on hard drive helives abroad and we are visiting soon how do we share library content? Can I do it by plugging my hard drive into his pc?

    My itunes library is backed onto hard drive, I am visiting a relative soon and wish to share our music, we both have ipod classics and he has i tunes installed onto his pc.
    I don't want to take my pc with me but the hard drive may be an option. Can we share music from my hard drive plugged into his pc? and if so how? also can I then copy music from his library onto the hard drive so that i can sync them to my i pod. Or is there a way we can do it with just the i pods and pc? Pls help techno novice!

    System Preferences - Sharing. If you cannot find System Preferences, then use Command - Spacebar and type System Preference and when you see it in Spotlight (uper right) hit return.

  • My MacBook Pro hard drive crashed a little while ago and has been replaced.  Is it possible to take tunes from iPod Classic and transfer all of them back to iTunes on computer?

    My MacBook Pro hard drive crashed a little while ago and has been replaced.  Is it possible to take tunes from iPod Classic and transfer all of them back to iTunes on computer?  Is this just for purchased tunes or can I do it for ones that have been burned from CD's as well?  Thanks for any help!

    [Zevoneer's detailed instructions on getting music off an iPod|http://discussions.apple.com/message.jspa?messageID=9053179]
    [Wired's How To: Get Your Music Off of Your iPod|http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod]
    [http://www.metaphoriclabs.com/articles/5-ways-to-copy-music-off-your-ipod-window s-mac-os-x/]
    [Topic: Get music off iPhone|http://discussions.apple.com/message.jspa?messageID=11512841]
    [Copying iTunes Store purchases from your iPod or iPhone to a computer|http://docs.info.apple.com/article.html?artnum=305465]

Maybe you are looking for

  • Problem with Mac Office Password Protection

    I'm running Mac OS X 10.7.5 with MS Word for Mac 12.3.5 and MS Excel for Mac 12.3.5.  I created a Word (.docx) and an Excel (.xlsx) document on my Mac at home, both with password protection.  I uploaded the documents onto Google Drive.  I was able to

  • Sudoku Program

    Write a Sudoku validator for 4x4 grids made up of 2x2 regions instead of 9x9 grids made up of 3x3 regions. Sudoku puzzles that use 4x4 grids only use the numerical digits 1 through 4 instead of 1 through 9. Things to Remember: -Dont use arrays -Input

  • New line option

    Hi all, i am using jsp with jstl my problem is that actually i am fetching data from the database in drag down form code is given below <select name="suppliername"> <option><c:forEach var="round" items="${valid.rows}" > ${round.supplier_name} </c:for

  • Free Application Server

    Hi.. I developed webservices useing JDevloper. My requirement is I need a free application server for my serve. OS on server is Oracle Enterprise Linux. Also i want to know that how can i deploy my webservice to remote application server using JDevlo

  • Store UTILMD Message type and EDIT

    Hi , I need to create some Ztables to store the message type details in INBOUND and OUTBOUND IDOCS send from XI to SAP r/3 and R/3 to XI.(UTILMD,MSCONS,CNTL,APERAK).Is it ok to create tables with the same structure of EDIDC and EDID4 or i need to cho