Display error in alv

Hi Experts,
can anyone suggest me that Hw can i display the errors in alv?
proper answer will be rewarded.
with regards.
sunil.

Hello Sunil
You may have a look at my Wiki posting:
[ Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
There I describe how to use the interface IF_RECA_MESSAGE_LIST in order to present application messages in a very user-friendly way (tree & ALV list).
Regards,
  Uwe

Similar Messages

  • A way to display error messages from the program

    Dear all,
    I am looking forward to display a set of error messages(in a internal table) during the execution of the program to the user.
    I wanted to know the better way of displaying error messages from my program with more options.
    Well I tried out using displaying errors as ALV list/Grid or as simple list processing.
    But I found some  stanadard transactions (Like in MM and FI  where errors are shown in a better way, but failed to find out how they are done.
    Please guide me.
    Thanks in advance
    Aryan

    Try to use application logging it has a very good way to display a set of messages.
    [http://abap4.tripod.com/Using_Application_Logging.html|http://abap4.tripod.com/Using_Application_Logging.html]
    Run this report in se38 an example sap report to understand logging way to show a set of messages
    Report Name  :  SBAL_DEMO_01
    Edited by: Vighneswaran CE on Dec 19, 2010 3:01 PM
    Edited by: Vighneswaran CE on Dec 19, 2010 3:11 PM

  • Editable alv: add custom validation and display "errors" in protocol list

    Hi,
    What I want to do:
    PAI validation of editable alv with displaying error's in the protocol list by adding custom entries to the existing protocol object.
    What is my problem:
    After registering "data_changed event", the protocol list don't appear.
    My understanding is, that the object "er_data_changed" is passed by the event "data_changed"
    an so I thought I can add some more entries to the protocol list.
    After "de-registering" the "data_changed" event, the protocol appears with the standard errros messages (e.g. "input to numeric" by enter charachters)
    One more hint:
    By creating a new object "er_data_changed" in the handler method the protocol list works, but I would like to append entries to the object that was passed with the event.
    Probably I've misunderstand something, please help !
    My coding:
    PAI:
    trigger event "data_changed" -> calls handler method
      CALL METHOD r_myalv->check_changed_data
        IMPORTING
          e_valid = is_valid.
    stop processing
      IF is_valid NE 'X'.
        MESSAGE 'invalid input' TYPE 'E' .
      ENDIF.
    handler method:
    handle_data_changed FOR EVENT data_changed  OF cl_gui_alv_grid  IMPORTING e_ucomm
                                                                                    er_data_changed.
    METHOD handle_data_changed.
        data: ls_mod_cell type lvc_s_modi.
         CALL METHOD er_data_changed->add_protocol_entry
                    EXPORTING
                           i_msgid     = 'SU'
                           i_msgty     = 'E'
                           i_msgno     = '000'
                           i_msgv1     = 'This is a test !'
                           i_fieldname = ls_mod_cell-fieldname.
         er_data_changed->refresh_protocol( ).
         er_data_changed->DISPLAY_PROTOCOL( ).
    ENDMETHOD.                    "handle_data_changed

    Dear Olaf,
        If understood correctly, you want to Edit an ALV and do some data validations when some data is changed in an ALV.   To do this follow the following steps:
    1.   Before displaying ALV, Register the edit event.
    * Set cell modified to trigger data_changed
    CALL METHOD go_alv_grid->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    2.  Register the event DATA_CHANGED of class CL_GUI_ALV_GRID & handle the event.
    SET HANDLER lo_event_receiver->handle_data_changed FOR go_alv_grid.
    The event DATA_CHANGED of class CL_GUI_ALV_GRID has a parameter ER_DATA_CHANGED which is of type CL_ALV_CHANGED_DATA_PROTOCOL.
    This er_data_changed has internal table MT_MOD_CELLS(contains index of records changed ) & MP_MOD_ROWS(contains the changed row), using these update your internal table accordingly.
    DATA : wa_mod_cell TYPE lvc_s_modi.
    FIELD-SYMBOLS: <fs> TYPE table.
    LOOP AT er_data_changed->mt_mod_cells INTO wa_mod_cell.
    ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
    READ TABLE <fs> INTO wa_output INDEX wa_mod_cell-tabix.
    MODIFY lt_output FROM wa_output INDEX wa_mod_cell-row_id.
    ENDLOOP.
    3.   Here it self you can do the required data validations(No need of any PAI modules) as below.
    IF wa_orders-zfstfirmtyp = c_9.
    MESSAGE s288(zcsp).
    DELETE er_data_changed->mt_mod_cells.
    EXIT.
    ENDIF.
    Regards
    Kesava

  • Regarding Runtime error in ALV List Display.

    am using following to display data in ALV List.
    but after executing of program am getting runtime error called 'Field Symbol has Not been assigned' .
    please tell me how to correct the error.
    Very urgent
    Suitable answers rewarded with Maximum Ponits...
    REPORT  zmatrix.
    TYPE-POOLS: slis.
    TABLES: agr_define, sza5_d0700.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.
    SELECT-OPTIONS: s_role FOR agr_define-agr_name OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
                           D A T A                                       *
    TYPES: BEGIN OF ty_agr_1251_inf,
           agr_name TYPE agr_1251-agr_name,
           object   TYPE agr_1251-object,
           field    TYPE agr_1251-field,
           low(20)  TYPE c,
           high     TYPE agr_1251-high,
           infty    TYPE t582s-infty,
           itext    TYPE t582s-itext,
           END OF ty_agr_1251_inf.
    TYPES: BEGIN OF ty_agr_1251_tcode,
           agr_name TYPE agr_1251-agr_name,
           object   TYPE agr_1251-object,
           field    TYPE agr_1251-field,
           low(20)  TYPE c,
           high     TYPE agr_1251-high,
           tcode    TYPE tstct-tcode,
           ttext    TYPE tstct-ttext,
           END OF ty_agr_1251_tcode.
    TYPES: BEGIN OF ty_t582s,
           infty TYPE agval,
           itext TYPE t582s-itext,
           END OF ty_t582s.
    TYPES: BEGIN OF ty_code,
           tcode TYPE tstct-tcode,
           ttext TYPE ttext_stct,
    END OF ty_code.
    TYPES: BEGIN OF ty_inf,
           infty TYPE t582s-infty,
           itext TYPE t582s-itext,
           END OF ty_inf.
    TYPES: BEGIN OF ty_role,
           agr_name TYPE agr_1251-agr_name,
           END OF ty_role.
    TYPES: BEGIN OF tys_role_dtls,
             agr_name  TYPE agr_name,
             value     TYPE c,
             property  TYPE c,
           END  OF tys_role_dtls.
    TYPES: BEGIN OF tys_infotype_final,
           text(60),
           text1(60),
           value(4),
           END OF tys_infotype_final.
                        I N T E R N A L   T A B L E S                    *
    DATA: wa_infotyp_final TYPE tys_infotype_final.
    DATA: t_infotyp_final TYPE TABLE OF tys_infotype_final.
    DATA: BEGIN OF wa_infotyp_dtls,
             infty     TYPE infty,
             itext     TYPE intxt,
             role_dtls TYPE TABLE OF tys_role_dtls,
          END OF wa_infotyp_dtls.
    DATA: BEGIN OF wa_tcode_dtls,
             tcode     TYPE tcode,
             ttext     TYPE ttext_stct,
             role_dtls TYPE TABLE OF tys_role_dtls,
           END OF wa_tcode_dtls.
    DATA: t_infotyp_dtls      LIKE   TABLE OF wa_infotyp_dtls,
          t_tcode_dtls        LIKE   TABLE OF wa_tcode_dtls,
          t_role_dtls         TYPE   TABLE OF tys_role_dtls,
          wa_role_dtls        TYPE   tys_role_dtls.
    DATA: wa_inf              TYPE   ty_inf,
          t_inf               TYPE   STANDARD TABLE OF ty_inf.
    DATA: wa_role             TYPE   ty_role,
          t_role              TYPE   STANDARD TABLE OF ty_role.
    DATA: wa_tcode            TYPE   ty_code,
          t_tcode             TYPE   TABLE OF ty_code.
    DATA: wa_agr_1251_inf     TYPE   ty_agr_1251_inf.
    DATA: wa_agr_1251_tcode   TYPE   ty_agr_1251_tcode.
    DATA: t_agr_1251_inf      TYPE STANDARD TABLE OF ty_agr_1251_inf.
    DATA: t_agr_1251_tc       TYPE STANDARD TABLE OF ty_agr_1251_tcode.
    DATA: wa_582s             TYPE   ty_t582s.
    DATA: t_582s              TYPE STANDARD TABLE OF ty_t582s.
    DATA: t_range_tcode       TYPE RANGE OF tcode.
    DATA: t_range_inf         TYPE RANGE OF infotyp.
    DATA: wa_range_inf        LIKE LINE OF t_range_inf.
    DATA: wa_range_tcode      LIKE LINE OF t_range_tcode.
    DATA: wa_field TYPE slis_fieldcat_alv.
    DATA: t_field TYPE slis_t_fieldcat_alv.
                      VARIABLES FOR OLE                                  *
    DATA: text(20),
          count(20).
    DATA: text1(30).
    DATA: agr_name       TYPE   agr_1251-agr_name.
    DATA: flag           TYPE   i VALUE '0'.
    DATA: string1        TYPE   string.
    DATA: str            TYPE   string VALUE 'SAP%'.
    DATA: count1         TYPE   i VALUE '0'.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM f100_get_inf_data.
      PERFORM f200_process_inf_data.
      count1 = 1.
      PERFORM f300_prepare_field_catalog.
      PERFORM f110_main_data.
      PERFORM f400_display_data.
      PERFORM  f100_get_trans_data.
    *&      Form  f110_main_data
          text
    FORM f110_main_data.
      wa_infotyp_final-text = 'Access to Infotypes'.
      APPEND wa_infotyp_final TO t_infotyp_final.
      wa_infotyp_final-text = 'Infotype'.
      wa_infotyp_final-text1 = 'Description'.
      APPEND wa_infotyp_final TO t_infotyp_final.
      wa_infotyp_final-text = '*'.
      wa_infotyp_final-text1 = 'Acess to all Infotypes'.
    LOOP AT t_role INTO wa_role WHERE agr_name <> ' '.
       READ TABLE t_agr_1251_inf INTO wa_agr_1251_inf
       WITH KEY agr_name = wa_role-agr_name field = 'INFTY' low = '*'.
       IF syst-subrc = 0.
         wa_infotyp_final-value = 'X'.
       ENDIF.
    ENDLOOP.
      APPEND wa_infotyp_final TO t_infotyp_final.
      LOOP AT t_inf INTO wa_inf WHERE infty <> ' '.
        wa_infotyp_final-text = wa_inf-infty.
        wa_infotyp_final-text1 = wa_inf-itext.
        LOOP AT t_role INTO wa_role WHERE agr_name <> ' '.
       Role Name
          CLEAR wa_role_dtls.
          flag = 1.
          wa_role_dtls-agr_name =  wa_role-agr_name.
        For Value D & F
          READ TABLE t_agr_1251_inf INTO wa_agr_1251_inf
          WITH KEY agr_name = wa_role-agr_name field = 'AUTHC'..
          IF syst-subrc EQ 0.
            IF wa_agr_1251_inf-low = 'R'.
              wa_infotyp_final-value = 'D'.
            ELSE.
              wa_infotyp_final-value = 'F'.
            ENDIF.
          ENDIF.
          APPEND wa_role_dtls TO t_role_dtls.
          APPEND wa_infotyp_final TO t_infotyp_final.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.                    "f110_main_data
    *&      Form  f100_get_inf_data
          text
    FORM f100_get_inf_data.
                          Logic for Infotypes                            *
      SELECT aagr_name aobject
             afield alow a~high
             INTO TABLE t_agr_1251_inf
             FROM agr_1251 AS a INNER JOIN agr_define AS b
             ON aagr_name EQ bagr_name
      WHERE ( ( aobject EQ 'P_ORGIN' OR aobject EQ 'P_PERNR' )
      AND   ( aagr_name IN s_role ) AND ( bagr_name NOT LIKE str ) ).
    ENDFORM.                    "f100_get_inf_data
    *&      Form  f200_get_inf_process_data
          text
    FORM f200_process_inf_data.
      LOOP AT t_agr_1251_inf INTO wa_agr_1251_inf.
        IF wa_agr_1251_inf-high IS INITIAL.
          CLEAR wa_range_inf.
          wa_range_inf-sign = 'I'.
          wa_range_inf-option = 'EQ'.
          wa_range_inf-low = wa_agr_1251_inf-low.
          APPEND wa_range_inf TO t_range_inf.
        ELSE.
          CLEAR wa_range_inf.
          wa_range_inf-sign = 'I'.
          wa_range_inf-option = 'BT'.
          wa_range_inf-low = wa_agr_1251_inf-low.
          wa_range_inf-high = wa_agr_1251_inf-high.
          APPEND wa_range_inf TO t_range_inf.
        ENDIF.
      ENDLOOP.
      SORT t_range_inf.
      DELETE ADJACENT DUPLICATES FROM t_range_inf.
      IF t_range_inf IS NOT INITIAL.
        SELECT infty itext FROM t582s
        INTO TABLE t_582s
        WHERE sprsl = 'EN' AND infty IN t_range_inf.
        IF syst-subrc EQ 0.
        ENDIF.
      ENDIF.
      LOOP AT t_agr_1251_inf INTO wa_agr_1251_inf.
        IF wa_agr_1251_inf-high IS INITIAL.
          READ TABLE t_582s INTO wa_582s
            WITH KEY infty = wa_agr_1251_inf-low.
          IF syst-subrc EQ 0.
            wa_agr_1251_inf-infty = wa_582s-infty.
            wa_agr_1251_inf-itext = wa_582s-itext.
            MODIFY t_agr_1251_inf FROM wa_agr_1251_inf
                         TRANSPORTING infty itext.
            IF syst-subrc EQ 0.
            ENDIF.
          ENDIF.
        ELSE.
          CLEAR count.
          LOOP AT t_582s INTO wa_582s
                  WHERE infty GE wa_agr_1251_inf-low
                    AND infty LE wa_agr_1251_inf-high.
            IF count LE 1.
              wa_agr_1251_inf-high = space.
              wa_agr_1251_inf-infty = wa_582s-infty.
              wa_agr_1251_inf-itext = wa_582s-itext.
              MODIFY t_agr_1251_inf FROM wa_agr_1251_inf
                           TRANSPORTING infty itext.
              IF syst-subrc EQ 0.
                CLEAR wa_582s.
              ENDIF.
            ELSE.
              wa_agr_1251_inf-high = space.
              wa_agr_1251_inf-infty = wa_582s-infty.
              wa_agr_1251_inf-itext = wa_582s-itext.
              APPEND wa_agr_1251_inf TO t_agr_1251_inf.
            ENDIF.
            CLEAR wa_agr_1251_inf.
            count = count + 1.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      wa_role-agr_name = ' '.
      APPEND wa_role TO t_role.
      wa_role-agr_name = ' '.
      APPEND wa_role TO t_role.
      LOOP AT t_agr_1251_inf INTO wa_agr_1251_inf.
        IF wa_agr_1251_inf IS NOT INITIAL.
          wa_role-agr_name = wa_agr_1251_inf-agr_name.
          wa_inf-infty = wa_agr_1251_inf-infty.
          wa_inf-itext = wa_agr_1251_inf-itext.
          APPEND wa_role TO t_role.
          APPEND wa_inf TO t_inf.
        ENDIF.
      ENDLOOP.
      SORT t_role BY agr_name.
      DELETE ADJACENT DUPLICATES FROM t_role.
      SORT t_inf BY infty.
      DELETE ADJACENT DUPLICATES FROM t_inf.
    ENDFORM.                    "f200_get_process_inf_data
    *&      Form  f100_get_trans_data
          text
    FORM  f100_get_trans_data.
                  Logic for Transaction Codes                            *
      SELECT aagr_name aobject
               afield alow a~high
        INTO CORRESPONDING FIELDS OF TABLE t_agr_1251_tc
        FROM agr_1251 AS a
        INNER JOIN agr_define AS b ON aagr_name EQ bagr_name
        WHERE a~agr_name IN s_role
          AND a~object EQ 'S_TCODE'.
    ENDFORM.                    "f100_get_trans_data
    *&      Form  f200_process_trans_data
          text
    FORM f200_process_trans_data.
      LOOP AT t_agr_1251_tc INTO wa_agr_1251_tcode.
        IF wa_agr_1251_tcode-high IS INITIAL.
          CLEAR wa_range_tcode.
          wa_range_tcode-sign = 'I'.
          wa_range_tcode-option = 'EQ'.
          wa_range_tcode-low = wa_agr_1251_tcode-low.
          APPEND wa_range_tcode TO t_range_tcode.
        ELSE.
          CLEAR wa_range_tcode.
          wa_range_tcode-sign = 'I'.
          wa_range_tcode-option = 'BT'.
          wa_range_tcode-low = wa_agr_1251_tcode-low.
          wa_range_tcode-high = wa_agr_1251_tcode-high.
          APPEND wa_range_tcode TO t_range_tcode.
        ENDIF.
      ENDLOOP.
      SORT t_range_tcode.
      DELETE ADJACENT DUPLICATES FROM t_range_tcode.
      IF t_range_tcode IS NOT INITIAL.
        SELECT tcode
               ttext
          FROM tstct
          INTO TABLE t_tcode
          WHERE sprsl EQ 'E'
            AND tcode IN t_range_tcode.
        IF sy-subrc EQ 0.
        ENDIF.
      ENDIF.
      SORT t_agr_1251_tc BY agr_name.
      LOOP AT t_agr_1251_tc INTO wa_agr_1251_tcode.
        IF wa_agr_1251_tcode-high IS INITIAL.
          READ TABLE t_tcode INTO wa_tcode
            WITH KEY tcode = wa_agr_1251_tcode-low.
          IF syst-subrc EQ 0.
            wa_agr_1251_tcode-tcode = wa_tcode-tcode.
            wa_agr_1251_tcode-ttext = wa_tcode-ttext.
            MODIFY t_agr_1251_tc FROM wa_agr_1251_tcode
                         TRANSPORTING tcode ttext.
            IF syst-subrc EQ 0.
            ENDIF.
          ENDIF.
        ELSE.
          CLEAR count.
          LOOP AT t_tcode INTO wa_tcode
                  WHERE tcode GE wa_agr_1251_tcode-low
                    AND tcode LE wa_agr_1251_tcode-high.
            IF count LE 1.
              agr_name  = wa_agr_1251_tcode-agr_name.
              wa_agr_1251_tcode-high = space.
              wa_agr_1251_tcode-tcode = wa_tcode-tcode.
              wa_agr_1251_tcode-ttext = wa_tcode-ttext.
              MODIFY t_agr_1251_tc FROM wa_agr_1251_tcode
                           TRANSPORTING tcode ttext high.
              IF syst-subrc EQ 0.
                CLEAR wa_tcode.
              ENDIF.
              count = 1.
            ELSE.
              wa_agr_1251_tcode-high = space.
              wa_agr_1251_tcode-agr_name = agr_name.
              wa_agr_1251_tcode-low =  wa_tcode-tcode.
              wa_agr_1251_tcode-tcode = wa_tcode-tcode.
              wa_agr_1251_tcode-ttext = wa_tcode-ttext.
              APPEND wa_agr_1251_tcode TO t_agr_1251_tc.
            ENDIF.
            CLEAR wa_agr_1251_tcode.
            count = count + 1.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      LOOP AT t_agr_1251_tc INTO wa_agr_1251_tcode.
        wa_role-agr_name = wa_agr_1251_tcode-agr_name.
        APPEND wa_role TO t_role.
      ENDLOOP.
      SORT t_role BY agr_name.
      DELETE ADJACENT DUPLICATES FROM t_role.
      SORT t_tcode BY tcode.
      DELETE ADJACENT DUPLICATES FROM t_tcode.
    ENDFORM.                    "f200_process_trans_data
    *&      Form  f100_prepare_field_catalog
          text
    FORM f300_prepare_field_catalog.
      LOOP AT t_role INTO wa_role.
        wa_field-col_pos = count1.
        wa_field-fieldname = wa_role-agr_name.
        APPEND wa_field TO t_field.
        count1 = count1 + 1.
      ENDLOOP.
    ENDFORM.                    "f100_prepare_field_catalog
    *&      Form  f100_display_data
          text
    FORM f400_display_data.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
                EXPORTING
                I_INTERFACE_CHECK              = ' '
                I_BYPASSING_BUFFER             =
                I_BUFFER_ACTIVE                = ' '
                  i_callback_program             = sy-cprog
                I_CALLBACK_PF_STATUS_SET       = ' '
                I_CALLBACK_USER_COMMAND        = ' '
                I_STRUCTURE_NAME               =
                IS_LAYOUT                      =
                  it_fieldcat                    = t_field[]
                IT_EXCLUDING                   =
                IT_SPECIAL_GROUPS              =
                IT_SORT                        =
                IT_FILTER                      =
                IS_SEL_HIDE                    =
                I_DEFAULT                      = 'X'
                I_SAVE                         = ' '
                IS_VARIANT                     =
                IT_EVENTS                      =
                IT_EVENT_EXIT                  =
                IS_PRINT                       =
                IS_REPREP_ID                   =
                I_SCREEN_START_COLUMN          = 0
                I_SCREEN_START_LINE            = 0
                I_SCREEN_END_COLUMN            = 0
                I_SCREEN_END_LINE              = 0
                IR_SALV_LIST_ADAPTER           =
                IT_EXCEPT_QINFO                =
                I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
              IMPORTING
                E_EXIT_CAUSED_BY_CALLER        =
                ES_EXIT_CAUSED_BY_USER         =
                  TABLES
                    t_outtab                       = t_infotyp_final[]
                 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.                    "f100_display_data

    this are the wasy u can build a field catalog...
    1.----
    FORM fill_fieldcat .
    DATA: fld(30),
    idx(2) TYPE n.
    DEFINE no_output.
    fieldcatalog-fieldname = &1.
    fieldcatalog-no_out = 'X'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    END-OF-DEFINITION.
    DEFINE catalog.
    fieldcatalog-fieldname = &1.
    fieldcatalog-seltext_s = &2.
    if not &3 is initial.
    fieldcatalog-seltext_m = &3.
    else.
    fieldcatalog-seltext_m = fieldcatalog-seltext_s.
    endif.
    if not &4 is initial.
    fieldcatalog-seltext_l = &4.
    else.
    fieldcatalog-seltext_l = fieldcatalog-seltext_m.
    endif.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    END-OF-DEFINITION.
    catalog 'AVAIL_BASE'
    'Base Qty.'
    'Base Qty. Available'
    'Base Quantity Available'.
    catalog 'AVAIL_SALES'
    'Sales Qty.'
    'Sales Qty. Available'
    'Sales Quantity Available'.
    LOOP AT t_char_data.
    idx = sy-tabix.
    CONCATENATE 'CHR' idx INTO fld.
    catalog fld
    t_char_data-atbez
    t_char_data-atbez
    t_char_data-atbez.
    ENDLOOP.
    ADD 1 TO idx.
    WHILE idx LE 15.
    CONCATENATE 'CHR' idx INTO fld.
    no_output fld.
    ADD 1 TO idx.
    ENDWHILE..
    fieldcatalog-fieldname = 'EXACT'.
    fieldcatalog-checkbox = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR fieldcatalog.
    2.----
    FORM fieldcatalog.
    REFRESH fc. CLEAR fc.
    fc-tabname = 'HEADER'.
    fc-fieldname = 'KUNNR'.
    fc-ref_tabname = 'MSKU'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'HEADER'.
    fc-fieldname = 'NAME1_K'.
    fc-ref_tabname = 'KNA1'.
    fc-ref_fieldname = 'NAME1'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'HEADER'.
    fc-fieldname = 'TOTAL'.
    fc-ref_tabname = 'MBEW'.
    fc-ref_fieldname = 'SALK3'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'LIST'.
    fc-fieldname = 'MATNR'.
    fc-ref_tabname = 'MSKU'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'LIST'.
    fc-fieldname = 'MAKTX'.
    fc-ref_tabname = 'MAKT'.
    fc-no_out = 'X'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'LIST'.
    fc-fieldname = 'CHARG'.
    fc-ref_tabname = 'MSKU'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'LIST'.
    fc-fieldname = 'WERKS'.
    fc-ref_tabname = 'MSKU'.
    fc-no_out = 'X'.
    APPEND fc. CLEAR fc.
    fc-tabname = 'LIST'.
    fc-fieldname = 'NAME1_W'.
    fc-ref_tabname = 'T001W'.
    fc-ref_fieldname = 'NAME1'.
    fc-no_out = 'X'.
    APPEND fc. CLEAR fc.

  • Display error message in ALV grid  using OOPS

    Hi,
    I have a requirement to display report in ALV. I have created ALV grid using OOPS with three editable cells and 1 button on toolbar. When user enter values in Ediatble cell  and click on the Toolbar button, sales order item should be assigned to contract.
    When the user select  the row and click on toolbar button, a salesorder item should be assigned  to contract and i am using BAPI and fine with BAPI. All the error message should be displayed in a popup and the corresponding failed row  should change its color .
    Once the user identified the failed row, he can edit the value in the ediatble cells and should reprocess in the same screen ( without going back to selection screen).
    To display POP Up, I  am using FM BAL_LOG_CREATE, BAL_LOG_MSG_ADD, BAL_DSP_PROFILE_NO_TREE_GET, BAL_CNTL_CREATE.
    by using above 4 FM , i can display POP UP. but i cannot change the color of the failed row. 
    Once I identified the failed row and reprocess from the same screen , I am successful in processing the failed row, but my error log still has the reprocessed row as failed row because,  error log is not refreshing.
    Please suggest me how to clear error log which was created by using the above FM's and change the color of the failed row .
    Thanks in Advance

    Hi
    Please suggest me how to clear error log which was created by using the above FM's....
    U can use BAL_LOG_REFRESH
    ....and change the color of the failed row
    You need to insert a new field for Colour Attributes in your output table and input its name in the layout structure:
    IS_LAYOUT-INFO_FNAME = <field name for colour>
    The field has to be a CHAR 3 and its value can be -
    > Cxy
    C is a constant
    x is the colour number (from 1 to 9)
    y is intensified (0 = off, 1 = on)
    After changing the value of output table you need to run the method REFRESH_TABLE_DISPLAY for refreshing the output
    Max

  • How to display subtotal in ALV, where the field is not a numeric.

    Hi
    We are having a requirement to display the sub total for a field using ALV grid display, where the field is not numeric.
    The field is characte, Status field(consists of values Submit, Approve ,Reject), where the subtotal should be value of count of group by status .
    say status with submit are 10 records, so after all records with submit status are, displyed, we need to display its subtotal as 10.
    Thanks & Advance

    Hi Satya,
    REPORT z_alv_subtotal.*&---------------------------------------------------------------------*
    *& Table declaration
    *&---------------------------------------------------------------------*TABLES: ekko.*&---------------------------------------------------------------------*
    *& Type pool declaration
    TYPE-POOLS: slis. " Type pool for ALV*&---------------------------------------------------------------------*
    *& Selection screen
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.*&---------------------------------------------------------------------*
    *& Type declaration
    *&---------------------------------------------------------------------** Type declaration for internal table to store EKPO data
    TYPES: BEGIN OF x_data,
           ebeln  TYPE char30,  " Document no.
           ebelp  TYPE ebelp,   " Item no
           matnr  TYPE matnr,   " Material no
           matnr1 TYPE matnr,   " Material no
           werks  TYPE werks_d, " Plant
           werks1 TYPE werks_d, " Plant
           ntgew  TYPE entge,   " Net weight
           gewe   TYPE egewe,   " Unit of weight                          
           END OF x_data.*&---------------------------------------------------------------------*
    *& Internal table declaration
    DATA:* Internal table to store EKPO data
      i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
    * Internal table for storing field catalog information
      i_fieldcat TYPE slis_t_fieldcat_alv,
    * Internal table for Top of Page info. in ALV Display
      i_alv_top_of_page TYPE slis_t_listheader,
    * Internal table for ALV Display events
      i_events TYPE slis_t_event,
    * Internal table for storing ALV sort information
      i_sort TYPE  slis_t_sortinfo_alv,
      i_event TYPE slis_t_event.*&---------------------------------------------------------------------*
    *& Work area declaration
    *&---------------------------------------------------------------------*DATA:
      wa_ekko TYPE x_data,
      wa_layout     TYPE slis_layout_alv,
      wa_events         TYPE slis_alv_event,
      wa_sort TYPE slis_sortinfo_alv.*&---------------------------------------------------------------------*
    *& Constant declaration
    *&---------------------------------------------------------------------*CONSTANTS:
       c_header   TYPE char1
                  VALUE 'H',                    "Header in ALV
       c_item     TYPE char1
                  VALUE 'S'.*&---------------------------------------------------------------------*
    *& Start-of-selection event
    *&---------------------------------------------------------------------*START-OF-SELECTION.* Select data from ekpo
      SELECT ebeln " Doc no
             ebelp " Item
             matnr " Material
             matnr " Material
             werks " Plant
             werks " Plant
             ntgew " Quantity
             gewei " Unit
             FROM ekpo
             INTO TABLE i_ekpo
             WHERE ebeln IN s_ebeln
             AND ntgew NE '0.00'.  IF sy-subrc = 0.
        SORT i_ekpo BY ebeln ebelp matnr .
      ENDIF.* To build the Page header
      PERFORM sub_build_header.* To prepare field catalog
      PERFORM sub_field_catalog.* Perform to populate the layout structure
      PERFORM sub_populate_layout.* Perform to populate the sort table.
      PERFORM sub_populate_sort.* Perform to populate ALV event
      PERFORM sub_get_event.END-OF-SELECTION.* Perform to display ALV report
      PERFORM sub_alv_report_display.
    *&      Form  sub_build_header
    *       To build the header
    *       No Parameter
    FORM sub_build_header .* Local data declaration
      DATA: l_system     TYPE char10 ,          "System id
            l_r_line     TYPE slis_listheader,  "Hold list header
            l_date       TYPE char10,           "Date
            l_time       TYPE char10,           "Time
            l_success_records TYPE i,           "No of success records
            l_title(300) TYPE c.                " Title
    * Title  Display
      l_r_line-typ = c_header.               " header
      l_title = 'Test report'(001).
      l_r_line-info = l_title.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR l_r_line.* Run date Display
      CLEAR l_date.
      l_r_line-typ  = c_item.                " Item
      WRITE: sy-datum  TO l_date MM/DD/YYYY.
      l_r_line-key = 'Run Date :'(002).
      l_r_line-info = l_date.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR: l_r_line,
             l_date.ENDFORM.                    " sub_build_header
    *&      Form  sub_field_catalog
    *       Build Field Catalog
    *       No Parameter
    FORM sub_field_catalog .*  Build Field Catalog
      PERFORM sub_fill_alv_field_catalog USING:     '01' '01' 'EBELN' 'I_EKPO' 'L'
         'Doc No'(003) ' ' ' ' ' ' ' ',     '01' '02' 'EBELP' 'I_EKPO' 'L'
         'Item No'(004) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR' 'I_EKPO' 'L'
         'Material No'(005) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR1' 'I_EKPO' 'L'
         'Material No'(005) ' ' ' ' ' ' ' ',
         '01' '04' 'WERKS' 'I_EKPO' 'L'
         'Plant'(006) 'X' 'X' ' ' ' ',     '01' '04' 'WERKS1' 'I_EKPO' 'L'
         'Plant'(006) ' ' ' ' ' ' ' ',     '01' '05' 'NTGEW' 'I_EKPO' 'R'
         'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.ENDFORM.                    " sub_field_catalog*&---------------------------------------------------------------------*
    *&     Form  sub_fill_alv_field_catalog
    *&     For building Field Catalog
    *&     p_rowpos   Row position
    *&     p_colpos   Col position
    *&     p_fldnam   Fldname
    *&     p_tabnam   Tabname
    *&     p_justif   Justification
    *&     p_seltext  Seltext
    *&     p_out      no out
    *&     p_tech     Technical field
    *&     p_qfield   Quantity field
    *&     p_qtab     Quantity table
    FORM sub_fill_alv_field_catalog  USING  p_rowpos    TYPE sycurow
                                            p_colpos    TYPE sycucol
                                            p_fldnam    TYPE fieldname
                                            p_tabnam    TYPE tabname
                                            p_justif    TYPE char1
                                            p_seltext   TYPE dd03p-scrtext_l
                                            p_out       TYPE char1
                                            p_tech      TYPE char1
                                            p_qfield    TYPE slis_fieldname
                                            p_qtab      TYPE slis_tabname.* Local declaration for field catalog
      DATA: wa_lfl_fcat    TYPE  slis_fieldcat_alv.  wa_lfl_fcat-row_pos        =  p_rowpos.     "Row
      wa_lfl_fcat-col_pos        =  p_colpos.     "Column
      wa_lfl_fcat-fieldname      =  p_fldnam.     "Field Name
      wa_lfl_fcat-tabname        =  p_tabnam.     "Internal Table Name
      wa_lfl_fcat-just           =  p_justif.     "Screen Justified
      wa_lfl_fcat-seltext_l      =  p_seltext.    "Field Text
      wa_lfl_fcat-no_out         =  p_out.        "No output
      wa_lfl_fcat-tech           =  p_tech.       "Technical field
      wa_lfl_fcat-qfieldname     =  p_qfield.     "Quantity unit
      wa_lfl_fcat-qtabname       =  p_qtab .      "Quantity table  IF p_fldnam = 'NTGEW'.
        wa_lfl_fcat-do_sum  = 'X'.
      ENDIF.
      APPEND wa_lfl_fcat TO i_fieldcat.
      CLEAR wa_lfl_fcat.
    ENDFORM.                    " sub_fill_alv_field_catalog*&---------------------------------------------------------------------*
    *&      Form  sub_populate_layout
    *       Populate ALV layout
    *       No Parameter
    FORM sub_populate_layout .  CLEAR wa_layout.
      wa_layout-colwidth_optimize = 'X'." Optimization of Col widthENDFORM.                    " sub_populate_layout*&---------------------------------------------------------------------*
    *&      Form  sub_populate_sort
    *       Populate ALV sort table
    *       No Parameter
    FORM sub_populate_sort .* Sort on material
      wa_sort-spos = '01' .
      wa_sort-fieldname = 'MATNR'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.* Sort on plant
      wa_sort-spos = '02'.
      wa_sort-fieldname = 'WERKS'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    ENDFORM.                    " sub_populate_sort*&---------------------------------------------------------------------*
    *&      Form  sub_get_event
    *       Get ALV grid event and pass the form name to subtotal_text
    *       event
    *       No Parameter
    FORM sub_get_event .
      CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
    'SUBTOTAL_TEXT'.  DATA: l_s_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 4
        IMPORTING
          et_events       = i_event
        EXCEPTIONS
          list_type_wrong = 0
          OTHERS          = 0.* Subtotal
      READ TABLE i_event  INTO l_s_event
                        WITH KEY name = slis_ev_subtotal_text.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO l_s_event-form.
        MODIFY i_event FROM l_s_event INDEX sy-tabix.
      ENDIF.ENDFORM.                    " sub_get_event*&---------------------------------------------------------------------*
    *&      Form  sub_alv_report_display
    *       For ALV Report Display
    *       No Parameter
    FORM sub_alv_report_display .
      DATA: l_repid TYPE syrepid .
      l_repid = sy-repid .* This function module for displaying the ALV report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_top_of_page   = 'SUB_ALV_TOP_OF_PAGE'
          is_layout                = wa_layout
          it_fieldcat              = i_fieldcat
          it_sort = i_sort
          it_events                = i_event
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = i_ekpo
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
    *    MESSAGE i000 WITH 'Error in ALV report display'(055).
      ENDIF.ENDFORM.                    " sub_alv_report_display*&---------------------------------------------------------------------*
    *       FORM sub_alv_top_of_page
    *       Call ALV top of page
    *       No parameter
    *---------------------------------------------------------------------*FORM sub_alv_top_of_page.                                   "#EC CALLED* To write header for the ALV
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = i_alv_top_of_page.
    ENDFORM.                    "alv_top_of_page*&---------------------------------------------------------------------*
    *&      Form  subtotal_text
    *       Build subtotal text
    *       P_total  Total
    *       p_subtot_text Subtotal text info
    FORM subtotal_text CHANGING
                   p_total TYPE any
                   p_subtot_text TYPE slis_subtot_text.
    * Material level sub total
      IF p_subtot_text-criteria = 'MATNR'.
        p_subtot_text-display_text_for_subtotal
        = 'Material level total'(009).
      ENDIF.* Plant level sub total
      IF p_subtot_text-criteria = 'WERKS'.
        p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
      ENDIF.
    ENDFORM.                    "subtotal_text
    Regards,
    Pravin

  • Display errors in a file along with records - IBIP_BATCH_INPUT doesnt do it

    Hi,
    I am using the function module IBIP_BATCH_INPUT(used in program RIIBIP00) in my custom program to upload maintenance plan data(Transaction IP01) using call transaction method.The data gets successfully uploaded.
    However if i send incorrect data, an ALV report gets printed by the above function module that displays the error.
    My requirement is to generate a file that displays each record and the corresponding error along with it.
    Pls note that the error file obtained(Call transaction) has only the error records but not the errors displayed.
    The function moduke returns a internal table of errors as displayed in ALV but how can I relate those errors with the the records in my file?

    Hi Rob,
    The transaction IBIP does the same as the program RIIBIP00.
    My requirement is to customize it.
    The legacy system file I obtain is not in the file format IBIPREC(refered documnetation of RIBIP00).
    I convert it into a the required file format and use the file in the program or transaction IBIP manually and data gets loaded into the system.
    If the file contains errorneos data, then the errors are displayed in a ALV report by the program RIIBIP00 and a a file is generated showing the erroneus record.My requiremnet is to have a audit file of the legacy system format plus a column showing errors.
    How can I map the errors obtained from the fn module IBIP_BATCH_INPUT in program RIIBIP00 with the each record and produce an audit file?

  • Runtime Error in ALV Totaling.

    Dear Friends
    i am getting run time error in ALV while pressing sum button.
    my alv code as follows
      FIELDCATALOG-FIELDNAME   = 'DMBTR'.
      FIELDCATALOG-SELTEXT_M   = 'Amount'.
      FIELDCATALOG-COL_POS     = 1.
    FIELDCATALOG-ref_fieldname = 'WAERS'.
    FIELDCATALOG-DO_SUM      = 'X'.        "Display column total
    FIELDCATALOG-ref_tabname = 'BKPF'.
    FIELDCATALOG-DATATYPE     = 'CURR'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR  FIELDCATALOG.
    I have tried all possibilities but did not get the solution...
    if anything left let me know
    thank you
    Avirat Patel

    Dear Ravi
    Thank you .. i am able to trace out my problem
    the problem with this code
    FIELDCATALOG-FIELDNAME   = 'AUGBL'.
    FIELDCATALOG-SELTEXT_M   = 'Clearing Doc.No'.
    FIELDCATALOG-COL_POS     = 1.
    FIELDCATALOG-DO_SUM      = 'X'.        "Display column total
    FIELDCATALOG-DATATYPE     = 'CURR'.
    APPEND FIELDCATALOG TO FIELDCATALOG.
    CLEAR  FIELDCATALOG.
    i am getting an error with this code
    how can i able to display this field in alv column.?
    - Avirat Patel
    *SORRY FRIENDS I HAVE NOT DECLARED MENTIONED VARIABLE IN INTERNAL TABLE ITSELF SO THAT
    I AM GETTING ERROR.*
    problem has been resolved..
    thank you.
    Edited by: Corrtech on Dec 19, 2011 1:05 PM

  • Error in ALV Creation

    Hi All
    I am trying to display data in ALV, for this iam using service call(Function Module), and I followed all ALV steps, but while executing i am getting error  "When you created a tyble type, an empty row type was specified ". In function module i am using VBAK table and i am displaying data based on vbeln. FM working fine. also i tried by creating with custom table, for this also getting same problem.. i am not getting where is the problem. Could any body help me in this,....
    Thanks,
    kriss.

    Hi All
    I am trying to display data in ALV, for this iam using service call(Function Module), and I followed all ALV steps, but while executing i am getting error  "When you created a tyble type, an empty row type was specified ". In function module i am using VBAK table and i am displaying data based on vbeln. FM working fine. also i tried by creating with custom table, for this also getting same problem.. i am not getting where is the problem. Could any body help me in this,....
    Thanks,
    kriss.

  • Error in ALV grid

    Hi ALV masters,
    Plz help me ..
    I have an ALV grid report where i have the data in my final table t_final.
    now i'm trying to populate the fieldcat using FM reuse_alv_fieldcatalog_merge but its not at all getting populated.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME         = l_repid
          I_INTERNAL_TABNAME     = 'T_Final'
          I_INCLNAME             = l_repid
        CHANGING
          CT_FIELDCAT            = T_FIELDCAT[]
        EXCEPTIONS
          INCONSISTENT_INTERFACE = 1
          PROGRAM_ERROR          = 2
          OTHERS                 = 3.
    Please help me and if possibl try to send som sample code also.
    Thanks in advance..

    Hi Mukesh,
    this is my code.
    plz tell where i'm going rong..
    *& Report  ZMMR_CHANGES                                                *
    Title       : Material Master: Display Changes                       *
    Description : This ABAP report will collectively list all material   *
                  master changes to the fields specified in the selection*
                  criteria.                                              *
    Request No  : SRDK922644                                             *
    Author      : Praveen Reddy                                          *
    Created on  : 14-FEB-2007                                            *
    REPORT  ZMMR_CHANGES
            NO STANDARD PAGE HEADING
            message-id ZSPR.
    TYPE-POOLS : SLIS.
    TABLES : CDHDR ,           " Change document header
             CDPOS ,           " Change document item
             MARAV ,           " View Table for Logical DB MGM
             MARC  ,           " Plant Data for Material
             MVKE  .           " Sales Data for Material
    SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF BLOCK GENERAL WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS :
             S_OBJCLS  FOR CDHDR-OBJECTCLAS           ,
             S_MATNR   FOR CDHDR-OBJECTID            ,
             S_WERKS   FOR MARC-WERKS                ,
             S_VKORG   FOR MVKE-VKORG                ,
             S_VTWEG   FOR MVKE-VTWEG                ,
             S_TABNAM  FOR CDPOS-TABNAME             ,
             S_FNAME   FOR CDPOS-FNAME               ,
             S_CHGIND  FOR CDPOS-CHNGIND             ,
             S_DATE    FOR CDHDR-UDATE               ,
             S_USER    FOR CDHDR-USERNAME            .
    SELECTION-SCREEN END OF BLOCK GENERAL.
    SELECTION-SCREEN END OF BLOCK A.
    *Data  : G_WERKS LIKE MARC-WERKS                 ,
           G_VKORG LIKE MVKE-VKORG                 ,
           G_VTWEG LIKE MVKE-VTWEG                 ,
           G_DESC  LIKE MARAV-MAKTX                .
    TYPES  : BEGIN           OF   TY_FOR_DISP        ,
             OBJCLASS        LIKE CDHDR-OBJECTCLAS   ,
             OBJID           LIKE CDHDR-OBJECTID     ,
             WERKS           LIKE MARC-WERKS           ,
             VKORG           LIKE MVKE-VKORG         ,
             VTWEG           LIKE MVKE-VTWEG         ,                
             DESC            LIKE MARAV-MAKTX        ,
             TABNAME         LIKE CDPOS-TABNAME      ,
             FNAME           LIKE CDPOS-FNAME        ,
             CHNGIND         LIKE CDPOS-CHNGIND      ,
             UDATE           LIKE CDHDR-UDATE        ,
             USERNAME        LIKE CDHDR-USERNAME     ,
             VALUE_OLD       LIKE CDPOS-VALUE_OLD    ,
             VALUE_NEW       LIKE CDPOS-VALUE_NEW    ,
             END             OF   TY_FOR_DISP        .
    TYPES  : BEGIN           OF   TY_CDHDR,
             OBJCLASS        LIKE CDHDR-OBJECTCLAS   ,
             OBJID           LIKE CDHDR-OBJECTID     ,
           CHNGIND         LIKE CDPOS-CHNGIND      ,
             CHANGENR        LIKE CDHDR-CHANGENR     ,
             UDATE           LIKE CDHDR-UDATE        ,
             USERNAME        LIKE CDHDR-USERNAME     ,
           VALUE_OLD       LIKE CDPOS-VALUE_OLD    ,
           VALUE_NEW       LIKE CDPOS-VALUE_NEW    ,
             END             OF   TY_CDHDR           .
    TYPES  : BEGIN           OF   TY_CDPOS,
             TABNAME         LIKE CDPOS-TABNAME      ,
             FNAME           LIKE CDPOS-FNAME        ,
             CHANGENR        LIKE CDHDR-CHANGENR     ,
             CHNGIND         LIKE CDPOS-CHNGIND      ,
             TABKEY          LIKE CDPOS-TABKEY       ,
             FIELDTEXT       LIKE DFIES-FIELDTEXT,
           UDATE           LIKE CDPOS-UDATE        ,
           USERNAME        LIKE CDPOS-USERNAME     ,
             VALUE_OLD       LIKE CDPOS-VALUE_OLD    ,
             VALUE_NEW       LIKE CDPOS-VALUE_NEW    ,
             END             OF   TY_CDPOS           .
    DATA   : T_FOR_DISP      TYPE STANDARD TABLE OF TY_FOR_DISP
                             WITH HEADER LINE        ,
             T_CDHDR         TYPE STANDARD TABLE OF TY_CDHDR
                             WITH HEADER LINE        ,
             T_CDPOS         TYPE STANDARD TABLE OF TY_CDPOS
                              WITH HEADER LINE       .
    DATA   : G_LANGU LIKE SY-LANGU,
             G_TABIX LIKE SY-TABIX,
             G_DATE  LIKE SY-DATUM.
    DATA   : G_WERKS LIKE MARC-WERKS  ,
             G_VKORG LIKE MVKE-VKORG  ,
             G_VTWEG LIKE MVKE-VTWEG  ,
             G_DESC  LIKE MARAV-MAKTX .
    *------ALV Grid Field Catalog Fields
    DATA: T_FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
          T_FIELDCAT_H LIKE T_FIELDCAT WITH HEADER LINE.
    *------End
    CONSTANTS : C_MATERIAL(10)    VALUE 'MATERIAL'   ,
                C_OBJCLASS(10)    VALUE 'OBJCLASS'   ,
                C_OBJECTID(8)     VALUE 'OBJID'      ,
                C_WERKS(5)        VALUE 'WERKS'      ,
                C_VKORG(5)        VALUE 'VKORG'      ,
                C_VTWEG(5)        VALUE 'VTWEG'      ,                
                C_DESC(4)         VALUE 'DESC'       ,
                C_TABNAME(7)      VALUE 'TABNAME'    ,
                C_FNAME(5)        VALUE 'FNAME'      ,
                C_CHNGIND(7)      VALUE 'CHNGIND'    ,
                C_UDATE(5)        VALUE 'UDATE'      ,
                C_USERNAME(8)     VALUE 'USERNAME'   ,
                C_VALUE_OLD(9)    VALUE 'VALUE_OLD'  ,
                C_VALUE_NEW(9)    VALUE 'VALUE_NEW'  .
    *CONSTANTS: C_TABNAM_FOR_ALV_FM TYPE SLIS_TABNAME VALUE 'T_FOR_DISP'.
      INITIALIZATION   *****************
    INITIALIZATION.
      CLEAR:  T_CDHDR,
              T_CDPOS,
              T_FIELDCAT,
              T_FIELDCAT_H,
              T_FOR_DISP.
      REFRESH:T_CDHDR,
              T_CDPOS.
    CLEAR :  CDHDR,           " Change document header
              CDPOS.           " Change document items
    ****START-OF-SELECTION.
    START-OF-SELECTION.
    *-FETCHING DETAILS of Changes done
      PERFORM SUB_GET_DETAILS.
    Get the field description.
    PERFORM SUB_CALL_DDIF_FIELDINFO_GET.
    ****END-OF-SELECTION.
    END-OF-SELECTION.
    *--DISPLAYING DATA IN ALV
      PERFORM SUB_DISPLAY_ALV.
    *&      Form  SUB_GET_DETAILS
       This subrouting is used to get Final output which will shown in
       ALV Grid From Table CDPOS.
    FORM SUB_GET_DETAILS.
    SELECT OBJECTCLAS
            OBJECTID
            CHANGENR
            UDATE
            USERNAME
            INTO TABLE T_CDHDR
            FROM CDHDR
    WHERE  OBJECTCLAS IN S_OBJCLS
       AND  OBJECTID   IN S_MATNR
    AND  TABNAME    IN S_TABNAM
    AND  FNAME      IN S_FNAME
    AND  CHNGIND    IN S_CHGIND
    AND  UDATE      IN S_DATE
       AND  UDATE      IN S_DATE
       AND  USERNAME   IN S_USER  .
    IF SY-SUBRC <> 0.
    WRITE:/ TEXT-003.
    ENDIF.
      LOOP AT T_CDHDR.
        CLEAR T_FOR_DISP.
      IF T_CDHDR-OBJCLASS = C_MATERIAL.
       SELECT SINGLE MAKTX
       INTO G_DESC
       FROM MARAV
       WHERE MATNR = T_CDHDR-OBJID+0(18)
         AND SPRAS = SY-LANGU.
      ENDIF.
        T_FOR_DISP-DESC = G_DESC.
        CLEAR G_DESC.
       CLEAR T_FOR_DISP.
        T_FOR_DISP-OBJCLASS = T_CDHDR-OBJCLASS   .
        T_FOR_DISP-OBJID    = T_CDHDR-OBJID      .
        T_FOR_DISP-UDATE    = T_CDHDR-UDATE      .
        T_FOR_DISP-USERNAME = T_CDHDR-USERNAME   .
    *ENDIF.
       APPEND T_FOR_DISP.
    ENDLOOP.
    *ENDIF.
    SELECT
           TABNAME
           FNAME
           CHANGENR
           CHNGIND
           TABKEY
         UDATE
         USERNAME
           VALUE_OLD
           VALUE_NEW
           FROM CDPOS
           INTO TABLE T_CDPOS
           FOR ALL ENTRIES IN T_CDHDR
         CDHDRCHANGENR = CDPOSCHANGENR
    WHERE
           CHANGENR EQ T_CDHDR-CHANGENR
       AND TABNAME  IN S_TABNAM
       AND FNAME    IN S_FNAME
       AND CHNGIND  IN S_CHGIND         .
    AND UDATE    IN S_DATE.
    AND OBJECTID IN S_DATE
    AND USERNAME IN S_USER           .
    IF SY-SUBRC <> 0.
    WRITE:/ TEXT-003.
    ENDIF.
    *CLEAR T_FOR_DISP.
    READ TABLE T_CDPOS
          WITH KEY CHANGENR = T_CDHDR-CHANGENR.
    CLEAR : G_WERKS,
             G_VKORG,
             G_VTWEG.
           G_DESC .
    IF T_CDPOS-TABNAME  = 'MARC'.
                 G_WERKS = T_CDPOS-TABKEY+21(4).
    ENDIF.
          CHECK G_WERKS IN S_WERKS.
    IF SY-SUBRC = 0.
      T_FOR_DISP-WERKS = G_WERKS.
    ENDIF.
    IF T_CDPOS-TABNAME  = 'MVKE'.
          G_VKORG = T_CDPOS-TABKEY+21(4).
    ENDIF.
          CHECK G_VKORG IN S_VKORG.
        T_FOR_DISP-VKORG = G_VKORG.
          G_VTWEG = T_CDPOS-TABKEY+25(2).
          CHECK G_VTWEG IN S_VTWEG.
         T_FOR_DISP-VTWEG = G_VTWEG.
       T_FOR_DISP-TABNAME   = T_CDPOS-TABNAME.
       T_FOR_DISP-FNAME     = T_CDPOS-FNAME.
       T_FOR_DISP-CHNGIND   = T_CDPOS-CHNGIND.
       T_FOR_DISP-VALUE_OLD = T_CDPOS-VALUE_OLD.
       T_FOR_DISP-VALUE_NEW = T_CDPOS-VALUE_NEW.
      APPEND T_FOR_DISP.
    ENDLOOP.
    ENDLOOP.
    CLEAR T_FOR_DISP.
    ENDFORM.                    " SUB_GET_DETAILS
    *&      Form  SUB_DISPLAY_ALV
    This Subroutine is used to display data to ALV Grid from internal    *
    tables T_CDHDR & T_CDPOS. which is filled in subroutine              *
    SUB_GET_DETAILS                                                      *
    FORM SUB_DISPLAY_ALV .
    BREAK-POINT.
      DATA: l_layout     type slis_layout_alv,
            l_title      type lvc_title,
            l_repid      like sy-repid.
      l_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME         = l_repid
          I_INTERNAL_TABNAME     = 'TY_FOR_DISP'
          I_INCLNAME             = l_repid
        CHANGING
          CT_FIELDCAT            = T_FIELDCAT[]
        EXCEPTIONS
          INCONSISTENT_INTERFACE = 1
          PROGRAM_ERROR          = 2
          OTHERS                 = 3.
      IF SY-SUBRC <> 0.
      WRITE:/ 'ERROR IN CALLING ALV FM'.
      ENDIF.
    *----Change Field Heading We move All field data from T_FIELDCAT To
    *----another Internal table with header line namely T_FIELDCAT_H
    *CLEAR T_FIELDCAT_H[].
    REFRESH T_FIELDCAT_H[].
    BREAK-POINT.
      MOVE T_FIELDCAT[] TO T_FIELDCAT_H[].
    CLEAR G_TABIX.
    LOOP AT T_FIELDCAT_H.
    G_TABIX = SY-TABIX.
        CASE T_FIELDCAT_H-FIELDNAME.
          WHEN C_OBJCLASS.
            T_FIELDCAT_H-SELTEXT_L = TEXT-004.
            T_FIELDCAT_H-SELTEXT_M = TEXT-004.
            T_FIELDCAT_H-SELTEXT_S = TEXT-004.
           T_FIELDCAT_H-OUTPUTLEN = 15.
          WHEN C_OBJECTID.
            T_FIELDCAT_H-SELTEXT_L = TEXT-005.
            T_FIELDCAT_H-SELTEXT_M = TEXT-005.
            T_FIELDCAT_H-SELTEXT_S = TEXT-005.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_DESC.
            T_FIELDCAT_H-SELTEXT_L = TEXT-006.
            T_FIELDCAT_H-SELTEXT_M = TEXT-006.
            T_FIELDCAT_H-SELTEXT_S = TEXT-006.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_WERKS.
            T_FIELDCAT_H-SELTEXT_L = TEXT-007.
            T_FIELDCAT_H-SELTEXT_M = TEXT-007.
            T_FIELDCAT_H-SELTEXT_S = TEXT-007.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_VKORG.
            T_FIELDCAT_H-SELTEXT_L = TEXT-008.
            T_FIELDCAT_H-SELTEXT_M = TEXT-008.
            T_FIELDCAT_H-SELTEXT_S = TEXT-008.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_VTWEG.
            T_FIELDCAT_H-SELTEXT_L = TEXT-009.
            T_FIELDCAT_H-SELTEXT_M = TEXT-009.
            T_FIELDCAT_H-SELTEXT_S = TEXT-009.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_TABNAME.
            T_FIELDCAT_H-SELTEXT_L = TEXT-010.
            T_FIELDCAT_H-SELTEXT_M = TEXT-010.
            T_FIELDCAT_H-SELTEXT_S = TEXT-010.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_FNAME.
            T_FIELDCAT_H-SELTEXT_L = TEXT-011.
            T_FIELDCAT_H-SELTEXT_M = TEXT-011.
            T_FIELDCAT_H-SELTEXT_S = TEXT-011.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_CHNGIND.
            T_FIELDCAT_H-SELTEXT_L = TEXT-012.
            T_FIELDCAT_H-SELTEXT_M = TEXT-012.
            T_FIELDCAT_H-SELTEXT_S = TEXT-012.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_UDATE.
            T_FIELDCAT_H-SELTEXT_L = TEXT-013.
            T_FIELDCAT_H-SELTEXT_M = TEXT-013.
            T_FIELDCAT_H-SELTEXT_S = TEXT-013.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_USERNAME.
            T_FIELDCAT_H-SELTEXT_L = TEXT-014.
            T_FIELDCAT_H-SELTEXT_M = TEXT-014.
            T_FIELDCAT_H-SELTEXT_S = TEXT-014.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_VALUE_OLD.
            T_FIELDCAT_H-SELTEXT_L = TEXT-015.
            T_FIELDCAT_H-SELTEXT_M = TEXT-015.
            T_FIELDCAT_H-SELTEXT_S = TEXT-015.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN C_VALUE_NEW.
            T_FIELDCAT_H-SELTEXT_L = TEXT-016.
            T_FIELDCAT_H-SELTEXT_M = TEXT-016.
            T_FIELDCAT_H-SELTEXT_S = TEXT-016.
           T_FIELDCAT_H-OUTPUTLEN = 20.
          WHEN OTHERS.
        CONTINUE.
        ENDCASE.
        MODIFY T_FIELDCAT_H.
       CLEAR  T_FIELDCAT_H.
      ENDLOOP.
    *BREAK-POINT.
      MOVE T_FIELDCAT_H[] TO T_FIELDCAT[].
    *----End
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program       = l_repid
              i_callback_pf_status_set = 'SET_STATUS'
              i_callback_user_command  = 'USER_COMMAND'
               i_callback_top_of_page   = 'TOP_OF_PAGE'
               i_grid_title             = l_title
               is_layout                = l_layout
                 it_fieldcat              = t_fieldcat
               i_save                   = 'A'
           tables
                t_outtab                 = T_FOR_DISP[]
           exceptions
                program_error            = 1
                others                   = 2.
    IF SY-SUBRC <> 0.
       WRITE:/ TEXT-017.
    ENDIF.
    ENDFORM.                    " SUB_DISPLAY_ALV
    *&      Form  TOP_OF_PAGE
       This subrouting is used to show heading to ALV Grid. This
       subrouting is called from subrouting 'SUB_DISPLAY_ALV', Function
      'REUSE_ALV_GRID_DISPLAY' & export param 'i_callback_top_of_page'
    *Form TOP_OF_PAGE.
    DATA :  L_HEADER   TYPE SLIS_T_LISTHEADER,
             L_HEADER_H TYPE SLIS_LISTHEADER.
    DATA :   L_FROMDAT(10) TYPE C,
              L_TODATE(10)  TYPE C.
    *CONSTANTS : C_DOT(1) TYPE C     VALUE '.',
               C_L_HEADER_H_TYP(1) VALUE 'H'.   "---ALV Grid Header Type
    CLEAR : L_HEADER.
    **--To Manage Date Format
    CONCATENATE S_DATE-LOW+6(2)
                 C_DOT
                 S_DATE-LOW+4(2)
                 C_DOT
                 S_DATE-LOW+0(4)
            INTO L_FROMDAT.
    CONCATENATE S_DATE-HIGH+6(2)
                 C_DOT
                 S_DATE-HIGH+4(2)
                 C_DOT
                 S_DATE-HIGH+0(4)
            INTO L_TODATE.
    **---End
    IF L_TODATE <> '00.00.0000'.
       CONCATENATE 'Purchase Org:'(014)
                   S_VKORG-LOW
                   'PO changes from'(015)
                   L_FROMDAT
                   'To'(013)
                   L_TODATE
                   INTO L_HEADER_H-INFO SEPARATED BY SPACE.
    ELSE.
        G_DATE = SY-DATUM.
       CONCATENATE 'CHANGES: '
                    G_DATE
                   INTO L_HEADER_H-INFO SEPARATED BY SPACE.
    ENDIF.
    Main report header
    L_HEADER_H-TYP = C_L_HEADER_H_TYP.
    APPEND L_HEADER_H TO L_HEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         IT_LIST_COMMENTARY = L_HEADER
         I_LOGO             = ''.
    *ENDFORM.                    "TOP_OF_PAGE
    Plz look into this and suggest me ..thanks a lot.

  • Total is not getting displayed in the ALV output.

    Hi,
    Total is not getting displayed in the ALV output.
    I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY
    Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY
    source code:
    DATA: layout TYPE slis_layout_alv,
          IT_eventS  TYPE slis_t_event,
          fcat   TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          rec_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    TYPES: BEGIN OF ty_tab,
          belnr TYPE dberchz-belnr,
          belzart TYPE dberchz-belzart,
          net TYPE dberchz-nettobtr,
          END OF ty_tab.
    DATA: lt_tab TYPE STANDARD TABLE OF ty_tab.
    SELECT belnr belzart nettobtr
      FROM dberchz
      INTO TABLE lt_tab[]
    WHERE belnr eq '000000000001'.
      if sy-subrc ne 0.
      ENDIF.
    *  defining layout
    layout-colwidth_optimize = 'X'.
    layout-def_status = 'X'.
    *defning event
    *event
    *defining field catalog
    fcat-col_pos = 1.
    fcat-fieldname = 'BELNR'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 2.
    fcat-fieldname = 'BELZART'.
    fcat-tabname  = 'LT_TAB'.
    APPEND fcat.
    fcat-col_pos = 3.
    fcat-fieldname = 'NET'.
    fcat-tabname  = 'LT_TAB'.
    fcat-do_sum = 'X'.
    APPEND fcat.
    *calling alv
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
      EXPORTING
        i_callback_program             = 'YZ_PLR'
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   IT_EXCLUDING                   =
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
      EXPORTING
        is_layout                        = layout
        it_fieldcat                      = fcat[]
        i_tabname                        = 'LT_TAB'
        it_events                        = IT_EVENTS[]
    *   IT_SORT                          =
    *   I_TEXT                           = ' '
      tables
        t_outtab                         = lt_tab[]
    * 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'
    Thanks,
    Gaurav

    Hi
    No I don't think, this is my code (based on your code) and it works fine:
    TYPE-POOLS SLIS.
    DATA: BEGIN OF LT_TAB OCCURS 0,
           BELNR LIKE BSEG-BELNR,
           GJAHR LIKE BSEG-GJAHR,
           WRBTR LIKE BSEG-WRBTR,
           WAERS LIKE BKPF-WAERS,
          END OF LT_TAB.
    DATA: LAYOUT     TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS  TYPE SLIS_T_EVENT,
          FCAT       TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          REC_FCAT   TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    START-OF-SELECTION.
      FCAT-COL_POS       = 1.
      FCAT-FIELDNAME     = 'BELNR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'BELNR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 2.
      FCAT-FIELDNAME     = 'GJAHR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'GJAHR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      APPEND FCAT.
      FCAT-COL_POS       = 3.
      FCAT-FIELDNAME     = 'WRBTR'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-CFIELDNAME    = 'WAERS'.
      FCAT-REF_FIELDNAME = 'WRBTR'.
      FCAT-REF_TABNAME   = 'BSEG'.
      FCAT-DO_SUM        = 'X'.
      APPEND FCAT.
      FCAT-COL_POS       = 4.
      FCAT-FIELDNAME     = 'WAERS'.
      FCAT-TABNAME       = 'LT_TAB'.
      FCAT-REF_FIELDNAME = 'WAERS'.
      FCAT-REF_TABNAME   = 'BKPF'.
      FCAT-DO_SUM        = SPACE.
      APPEND FCAT.
      SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE LT_TAB
        WHERE BUKRS = 'MAAB'
          AND BELNR = '0000000001'.
      LT_TAB-WAERS = 'EUR'.
      MODIFY LT_TAB FROM LT_TAB TRANSPORTING WAERS WHERE WAERS = SPACE.
    *CALLING ALV
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = 'ZPROVAMAX5'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT   = LAYOUT
          IT_FIELDCAT = FCAT[]
          I_TABNAME   = 'LT_TAB'
          IT_EVENTS   = IT_EVENTS[]
        TABLES
          T_OUTTAB    = LT_TAB[].
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
    I've also inserted a currency field
    Max

  • Getting a Page Cannot be Displayed error while uploading a Contract Document in SAP E-sourcing for size 500mb

    Hi Guys,
    I am getting a Page can not be displayed error while uploading a COntract Document in SAP-E-soucing 7.0.
    Maximum Size set in Our SYSTEM is :9765MB.
    Approx size of the Document tried is more then 300MB.
    Appreciate your help on this.
    Regards
    Tarun

    Hi Tarun,
    Please check the below system properties using system user login
    attachments.maxSizeKB.buyers - "Maximum size in KB of a employer-attached attachment file"
    attachments.upload.enable.buyers-  " Enable/Disable uploading of attachments by internal users"
    Also Please check with other attachment, contracts related properties in the System.
    Let me know if this helps.
    Thanks,
    Raj.

  • Display error message in batch job log

    Hello
    I have a batch job running and I have an error coming during some validation logic.
    The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
    I cannot give it as info message as it will give wrong idea about message type.
    Is there any FM by which we can add message in job log?

    Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
    If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
    Basically I want that 'I' to be displayed as 'E'.
    Display error message in batch job log 

  • Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."

    Hi,
    Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."
    DC:windows Server 2008 R2
    Domain functional level:Windows Server 2003
    When Winxp join domain, have no this error message.
    I checked http://support.microsoft.com/kb/2018583?wa=wsignin1.0 does't work.
    There have 3 suggestion in this article:
    1.The "Disable NetBIOS over TCP/IP" checkbox has been disabled in the IPv4 properties of the computer being joined.
    Doesnt's work.
    2.Connectivity over UDP port 137 is blocked between client and the helper DC servicing the join operation in the target domain.
    On my DC, I run netstat -an, reslut as below:
     UDP    192.168.20.3:137       *:*
    3.The TCP/IPv4 protocol has been disabled so that the client being joined or the DC in the destination domain targeted by the LDAP BIND is running TCP/IPv6 only.
    We are not using IPV6.
    This server recently updated from Windows Server 2003 to Windows Server 2008 R2. Before upgrade, when Win7 and Win2008 join this domain, also have the same error message.
    Please help to check this issue.
    Thank you very much.
    BR
    Guo YingHui 

    Hi Guo Ying,
    I have faced this critical error which makes over-writes the host names in the domain when you join.
    For example: Already you had a host name called as PC.domain.com in the domain.com Domain.
    When you try to add the another host name called as PC in the domain.com Domain, it doesn't give you the duplicate name error on the network it does over-write the existing host name called as PC.domain.com & it will add the new host name into the domain.
    Host name which got over-written will get removed from the domain. I faced this issue in my project. My DPM host name got removed from the Domain & new host name got joined into the domain which halted my backups for one day.
    Final Resolution is as follows:
    You need to start the dns console on the DC & drop down the domain name.
    Select the _msdcs when you click on _msdcs it will show the Name Server's list on the right hand side.
    You need to add the Domain Naming Master under the _msdcs or add all the domain controllers which you had.
    After you add the Name server's try joining the PC OR Laptop to the domain which is successfully joins it.
    Regards
    Anand S
    Thanks & Regards Anand Sunka MCSA+CCNA+MCTS

  • How to display total in ALV Header

    How to display total in ALV Header?

    Hi Venkey,
    As far as your issue is concerned I would like to quote my perception.
    Create a header internal table with title and number of records.
    At the later part of your program you should have found the total number of records ,now assign it to the header internal table and print it.
    For further clarification you can go check this link:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AddHeadertoALVreport
    Thanks
    P.Srikanth

Maybe you are looking for

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts. I have a Doubt in BEx Query Designer. In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .   in the columns i have  forecast for the Fiscal year period which user entered ( 001/200

  • When using hyperlink, how to build the URL?

    I open a report using followin URL http://machine_id:portnum/reports/rwservlet?report=C:\oracle_reports\test.jsp&USERID=uid/pwd@db&DESTYPE=cache&mode=bitmap&desformat=html&pagestream=yes&paramform=yes then this will open a report I want to add a hype

  • Change wireless password b209

    i have a photosmart plus b209a-m and recently changed my WEP key. now my printer won't connect b/c it's on the old key, and i can't figure out how to update it. i've checked the forums and can't find a thread for changing the wireless password for my

  • Contacts don't show up

    Hey, Since a few days (maybe since I installed the iChat update?) my contacts won't show up in my list when they are online! And I also appear offline in their lists! So basicly we can't use iChat. What could be wrong?

  • Email works but my browser fails - ideas?

    My emails works fine, diagnostics says I am connected but 2 different browsers fail. Ideas?