Runtime Error displaying Linked List

Hi, I've got a main class with a linked list which I am trying to display but I seem to be getting a "Class Cast Exception" eventhough I type cast the list as a String. Can anyone help please. The code is below:
import java.util.*;
public class Library
     public static void main (String[] args)
          LinkedList myList = new LinkedList();
          LibraryItems libraryItems = new LibraryItems("Java how to Program", 10);
          myList.add(libraryItems);
          ListIterator myListIterator = myList.listIterator();
          while (myListIterator.hasNext())
               String itemlist = (String) myListIterator.next();//this is where the runtime error occurs
               libraryItems = (LibraryItems) myList.getFirst();
               System.out.println(itemlist + " " + libraryItems.getItemName() + " "+
                                        libraryItems.getItemNumber());
}and here is the supporting class:
import java.util.LinkedList;
public class LibraryItems
     private String itemName;
     private int   itemNumber;
     public LibraryItems(String itemName, int itemNumber)
          this.itemName = itemName;
          this.itemNumber = itemNumber;
     public String getItemName()
          return itemName;
     public int getItemNumber()
          return itemNumber;
}Any help would really be appreciated.

You add LibraryItems to the LinkedList, but when you get them out, you are casting to String.
probably
LibraryItems itemlist = (LibraryItems) myListIterator.next();
System.out.println(itemlist.getItemName()...

Similar Messages

  • Runtime Error displayed when attempting to access Forums

    I've IE 9 installed on a Windows Home Premium box. When I attempt to access the Technet Forums the following is displayed
    Server Error in '/Forums' Application.
    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>
    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    I'm running IE 9 on another PC (Windows 7 Pro) and it is able to acess the Technet Forums with no problem (I'm using it to make this entry).
    I've compared the settings on both browsers and they are identical. Why does IE on my Home Premium PC misbehave?
    Thanks in advance.

    Hi,
    What’s the result of other webpages?
    Can you access the thread link successfully?
    http://social.technet.microsoft.com/Forums/en-US/0c79aae9-3883-450a-bcd2-ba14ac5c8cd9/runtime-error-displayed-when-attempting-to-access-forums?forum=i
    You can test in compatible view for a try first.
    http://windows.microsoft.com/en-IN/internet-explorer/use-compatibility-view#ie=ie-9
    Alex Zhao
    TechNet Community Support

  • 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.

  • LBWR gets runtime error display backup data

    We are getting a runtime error "IMPORT_WRONG_END_POS" in program RMBWV3RE when we try to "dispay the data in the backup table" for logistics extractor 2LIS_46_SCL.
    We have enhanced the extract structure several times since we did our initial LBWR customizing. Could it be that there is backup data still in the LBWR queue that is in the old format? Can we delete the backup queue?
    Regards,
    Mike Wagner

    Francisco,
    I check and those notes have already been applied to our system.
    I did find a blog "A Safety Belt for Logistics Extraction Queues" by Bernd Sieger which is dedicated to LBWR.
    /people/bernd.sieger/blog/2007/05/07/a-safety-belt-for-logistics-extraction-queues
    Bernd gave me a couple of hints on how to fix the problem. I ended up writing an ABAP program to delete the contents of the queue for my logistics extractor 2LIS_46_SCL.
    After clearing old records, the data display work fine now.
    Regards,
    Mike Wagner

  • Strange error message - linked lists (again)

    I have to keep at this linked list thing if I'm ever going to really understand it!!
    I have created a method to create a linked list via user input. I'm receiving only one strange ERROR, which states:
    "This method must return a result of of type ListADT.Node."
    And I have just started building my class ListADT...
    class ListADT{
    public Node createList(int aNumber){     // THIS IS WHERE THE ERROR POINTS
          * integer variable aNumber is the length of the list user wishes to create.
         Scanner console = new Scanner(System.in);
         int number;                    // declare variable number as an integer.
         Node newNode = new Node();          // declare and initialize newNode.
         Node first = new Node();          // declare and initialize first.
         Node last = new Node();               // delcare and initizlize last.
         try
              for(int i = 0; i <= aNumber; i++){               // for loop to enter numbers to build list.
              System.out.println("Please enter an integer: ");     // prompt user.
              number = console.nextInt();                    // assign user input to variable number.
              newNode.info = number;          // assign number to newNode;
              if(first == null){               // checks to see if Node first is a null value.
                   first = newNode;          // if true, then this node is the first and last node in the list.
                   last = newNode;
              else{                              // if first is not null, then newNode is placed at the end of the list.
                   last.link = newNode;
                   last = newNode;
              return first;
         catch (InputMismatchException imeRef)     //Catches non-integer values
              System.out.println("You entered a non-Integer! " + imeRef.toString());     //Prints error message

    Now why can't the error messages help
    out a little more? I would have never guessed that
    there was a problem with the catch block not
    returning anything!!The message was pretty informative -- it told you what was wrong. If the compiler could be so smart as to be able to tell you exactly what to fix, then the compiler would be able to write code all by itself -- and then you'd be out of a job.

  • OLAP Universe - Error: DBD Runtime Error: In Catalogue List: Unknown Error

    Hi there,
    I have a problem while creating a universe on top of a BW Query/Cube.
    While creating a connection to the BW System (using a message server)
    an error occurs: DBD Runtime Exception: Error in Calling Catalog List: Unknown Error
    So, no catalogue list is generated --> I don't see any cubes/queries in the list.
    Can anyone help?
    Thanks & regards, Marielle

    Hi Marielle
    Why are you using message server?
    Application server is much more stable...
    Can you do a normal SAP logon via this message server (same parameters off course)?
    Hope this helps,
    Marianne

  • Runtime error in linking with static variables....

    Hi,
    I am building a shared library which includes a compiled object generated from a class containing the static variables only and also I have another version of same class with same & some new static variables in it and using that to generate another shared library. Now when I tried to run a program
    which links with both the library it core dumps when it tries to return from the program i.e when it finishes.
    Can someone please help me explain why my program is behaving like that?? Can duplicate inculsion of static variables in different scope can cause problem ?? How can this be avoided ?
    Also please be advised that the class with static variables gets generated at the compile time using a script which uses a DTD whose version (specification) can be different in both the libraries therefore I can't just seperate the common stuff into one class and specific into another.
    Thanks.
    Rajeev.

    Not to worry...found the answer in another post. Seems like patches need to applied to the OS.

  • Error displaying DocDef list in B2B 11g

    Hi,
    Iam using 11g B2B console.At some point of browsing the console, when i try to open the Docdef from the TPA, Iam getting a blank error popup.And in the back end log it is showing a null pointer exception.
    But I have n number of Doctype and Docdefs under custom document.
    There was another session accessing the console parllely and the other session was trying to create a new doctype and docdef.
    While saving the new doctype, an error as below was appearing.
    "MDS-01611: not saving changes in MDS session because some changes are not valid "
    I have restarted the managed server and even after that Iam facing the same issue.
    Please throw some light towards the resolution.
    Thanks,
    Naveen Kumartalari.
    Edited by: 798664 on Jan 16, 2012 2:18 AM
    Edited by: 798664 on Jan 16, 2012 2:22 AM

    Yes, certain times because of upgrade or patching, repository may corrupt. First try to backup the repository, purge it and restore it. If it does not work, try to remove the recently added design time configuration.
    Regards,
    Anuj

  • Runtime Error when generating Backend Adapter

    Hi All,
    I have a problem when im trying to generate a backend adapter for a data object with two nodes. it is just a simple data object with a root node and a child node having sales order header data & item data.
    when im trying to activate i get a runtime error which is listed below.
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Except.                CX_SY_OPEN_SQL_DB
    What happened?
        An exceptional situation has occurred in the ORACLE software,
        possibly due to an error.
        This is not an error in an application program.
    actual source code trigger location: modify seocompodf from table modify_seocompodf.
    Please help me with this if possible.
    Thanks & Regards,
    Malinda

    Hi Malinda,
    Below link would be usefull:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/runtime-error-dbif_rsql_sql_error-2649777
    Above link mention why problem is coming
    Runtime Errors DBIF_RSQL_SQL_ERROR & Exception: CX_SY_OPEN_SQL_DB
    According to above link, its problem with database and your Basis team to set up the database according to the note 1005758. It will definitely solve your problem.
    Regards,
    Abhishek Joshi

  • After Delete in Linked list...unable to display the linked list

    Hi...i know that there is an implementation of the class Linked Link but i am required to show how the linked list works in this case for my project...please help...
    Yes..I tried to delete some objects in a linked list but after that i am not able to display the objects that were already in the linked list properly and instead it throws an NullPointerException.
    Below shows the relevant coding for deleting and listing the linked list...
    public Node remove(Comparator comparer) throws Exception {
         boolean found = false;
         Node prevnode = head;          //the node before the nextnode
         Node deletedNode = null;     //node deleted...
         //get next node and apply removal criteria
         for(Node nextnode = head.getNextNode(); nextnode != null; nextnode = nextnode.getNextNode()) {
              if(comparer.equals(nextnode)) {
                   found = true;
                   //remove the next node from the list and return it
                   prevnode.setNextNode(nextnode.getNextNode());
                   nextnode.setNextNode(null);
                   deletedNode = nextnode;
                   count = count - 1;
                   break;
         if (found) return deletedNode;
         else throw new Exception ("Not found !!!");
    public Object[] list() {
         //code to gather information into object array
         Node node;
         Object[] nodes = new Object[count];
         node = head.getNextNode();
         for (int i=0; i<count; i++) {
              nodes[i] = node.getInformation();  // this is the line that cause runtime error after deleting...but before deleting, it works without problem.
              node = node.getNextNode();
         return nodes;
    }Please help me in figuring out what went wrong with that line...so far i really can't see any problem with it but it still throws a NullPointerException
    Thanks

    OK -- I've had a cup and my systems are coming back on line...
    The problem looks to be the way that you are handling the pointer to the previous node in your deletion code. Essentially, that is not getting incremented along with the nextNode -- it is always pointing to head. So when you find the node to delete then the line
       prevnode.setNextNode(nextnode.getNextNode());will set the nextNode for head to be null in certain situations (like if you are removing the tail, for instance).
    Then when you try to print out the list, the first call you make is
    node = head.getNextNode();Which has been set to null, so you get an NPE when you try to access the information.
    Nothing like my favorite alkaloid to help things along on a Monday morning...
    - N

  • Run time error while displaying the list of km folders

    hi
    i am trying to display the list of contents in the km folder using km api but the application is displaing an runtime error
    package com.sap.test;
    error in init method component
    any body know the solution for this problem .
    thanks

    hi there
    public class kmportalcomp extends AbstractPortalComponent
              public String outtxt;
              int depth;
              int rowid = 0;
              int counter = 0;
         public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IUserContext userCtx =request.getUser();
              IResourceFactory factory;
              IPortalComponentContext compContext = request.getComponentContext();
              IPortalComponentProfile profile = compContext.getProfile();
              try {IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("ccadmin_service");
                   String webpath = request.getWebResourcePath();
                   IResourceContext resourceContext = new ResourceContext(serviceUser);
                   response.write(webpath);
                   String fpath;
                   fpath = profile.getProperty("path").trim();
                   depth = Integer.valueOf(profile.getProperty("depth").trim()).intValue();
                   RID rid = RID.getRID(fpath);
                   ICollection folder = (ICollection)ResourceFactory.getInstance().getResource(rid, resourceContext);
                   IResourceList  fileList = folder.getChildren();
                   response.write("d.add(0,-1,'"folder.getName()"');\r\n");
                   rowid = 0;
                   scan_km(response, fileList,0);
                   response.write("document.write(d);\r\n");
                    response.write("//--></script>");
                    response.write("</div>");
                } catch (Exception e) {
                    response.write("Error Occured<br>");
                    response.write(e.toString());
              public void scan_km(IPortalComponentResponse response,IResourceList list,int level) {
                   int currentrowid = rowid;
                   if (level>depth&&depth!=0) {
                         return ;
                     String rid = " ";
                     IResourceList tmpreslist;
                     ICollection tmpcollection;
                     level++;
                     for (int i = 0; i < list.size(); i++) {
                         IResource tmpres = list.get(i);
                         try {
                             if (tmpres.isCollection() && tmpres.getLinkType() == LinkType.NONE ) {
                                  //&& tmpres.getLinkType() == LinkType.NONE
                                  tmpcollection = (ICollection) tmpres;
                                tmpreslist = tmpcollection.getChildren();
                                if (tmpreslist.size()>0) {
                                    rowid++;
                                    response.write("d.add("rowid","currentrowid",'");
                                    response.write(tmpres.getName());
                                    response.write("','');\r\n");
                                    scan_km(response,tmpreslist,level);
                             else {
                                rowid++;
                                String dispname;
                                dispname = tmpres.getDisplayName();
                                if (dispname==null||dispname.equals(""))
                                    dispname = tmpres.getName();
                                rid = "/irj/go/km/docs"+tmpres.getAccessRID();
                                response.write("d.add("rowid","currentrowid",'"dispname"','"rid"');\r\n");
                         } catch (Exception ex) {
    the error is am getting is
    com.sapportals.wcm.repository.enum.LinkType and com.sapportals.wcm.repository.enums.LinkType     kmportalappproject/src.core/com/sap/test     kmportalcomp.java     
    thanks

  • Runtime error alv list report out put

    Runtime Errors         GETWA_NOT_ASSIGNED
    Date and Time          03.03.2014 13:11:56
    Short text
         Field symbol has not yet been assigned.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLKKBL" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         You attempted to access an unassigned field symbol
    (data segment 93).
    This error may occur if
    - You address a typed field symbol before it has been set with
      ASSIGN
    - You address a field symbol that pointed to the line of an
      internal table that was deleted
    - You address a field symbol that was previously reset using
      UNASSIGN or that pointed to a local field that no
      longer exists
    - You address a global function interface, although the
      respective function module is not active - that is, is
      not in the list of active calls. The list of active calls
      can be taken from this short dump.
    to correct the error
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "GETWA_NOT_ASSIGNED" " "
    "SAPLKKBL" or "LKKBLF99"
    "GEN_FIELD_OUT2"
    If you cannot solve the problem yourself and want to send an error
    (data segment 93).
    This error may occur if
    - You address a typed field symbol before it has been set with
      ASSIGN
    - You address a field symbol that pointed to the line of an
      internal table that was deleted
    - You address a field symbol that was previously reset using
      UNASSIGN or that pointed to a local field that no
      longer exists
    - You address a global function interface, although the
      respective function module is not active - that is, is
      not in the list of active calls. The list of active calls
      can be taken from this short dump.
    to correct the error
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "GETWA_NOT_ASSIGNED" " "
    "SAPLKKBL" or "LKKBLF99"
    "GEN_FIELD_OUT2"
    If you cannot solve the problem yourself and want to send an error
    Operating system..... "HP-UX"
    Release.............. "B.11.23"
    Hardware type........ "ia64"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 1
    Shortdump setting.... "full"
    Database server... "CFLDEV01"
    Database type..... "ORACLE"
    Database name..... "CD1"
    Database user ID.. "SAPSR3"
    Terminal.......... "CFINWL0115"
    Char.set.... "C"
    SAP kernel....... 701
    created (date)... "Apr 2 2011 01:40:22"
    create on........ "HP-UX B.11.23 U ia64"
    Database version. "OCI_102 (10.2.0.4.0) "
    Patch level. 137
    Patch text.. " "
    Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*"
    SAP database version. 701
    Operating system..... "HP-UX B.11"
    Memory consumption
        Roll.... 16192
        EM...... 20949200
        Heap.... 0
        Page.... 122880
        MM Used. 3677872
        MM Free. 509344
    User and Transaction
        Client.............. 200
        User................ "GUEST"
        Language key........ "E"
        Transaction......... "SE38 "
        Transactions ID..... "5311AF68E99111BDE1000000C009C834"
        Program............. "SAPLKKBL"
        Screen.............. "SAPLKKBL 0500"
        Screen line......... 3
    Information on where terminated
        Termination occurred in the ABAP program "SAPLKKBL" - in "GEN_FIELD_OUT2".
        The main program was "ZTEST_11 ".
        In the source code you have the termination point in line 2844
        of the (Include) program "LKKBLF99".
    Source Code Extract
    Line  SourceCde
    2814       gs_sfc97 = gs_out_fieldcat.
    2815     when 98.
    2816       assign component gs_out_fieldcat-fieldname
    2817              of structure t_outtab_slave to <fs98>.
    2818       gs_sfc98 = gs_out_fieldcat.
    2819     when 99.
    2820       assign component gs_out_fieldcat-fieldname
    2821              of structure t_outtab_slave to <fs99>.
    2822       gs_sfc99 = gs_out_fieldcat.
    2823   endcase.
    2824 endform.                    "field_assign_hier_slave
    2825 *---------------------------------------------------------------------*
    2826 *       FORM GEN_FIELD_OUT2                                           *
    2827 *---------------------------------------------------------------------*
    2828 *       ........                                                      *
    2829 *---------------------------------------------------------------------*
    2830 form gen_field_out2.
    2831   field-symbols <l_initial>.
    2832
    2833   case gs_out-field_colcount.
    2834     when 001.
    2835       if gs_out_flags-slave ne 'X'.
    2836         assign <fm01> to <field>.
    2837         gs_fc = gs_mfc01.
    2838       else.
    2839         assign <fs01> to <field>.
    2840         gs_fc = gs_sfc01.
    2841       endif.
    2842     when 002.
    2843       if gs_out_flags-slave ne 'X'.
    >>>>>         assign <fm02> to <field>.
    2845         gs_fc = gs_mfc02.
    2846       else.
    2847         assign <fs02> to <field>.
    2848         gs_fc = gs_sfc02.
    2849       endif.
    2850     when 003.
    2851       if gs_out_flags-slave ne 'X'.
    2852         assign <fm03> to <field>.
    2853         gs_fc = gs_mfc03.
    2854       else.
    2855         assign <fs03> to <field>.
    2856         gs_fc = gs_sfc03.
    2857       endif.
    2858     when 004.
    2859       if gs_out_flags-slave ne 'X'.
    2860         assign <fm04> to <field>.
    2861         gs_fc = gs_mfc04.
    2862       else.
    2863         assign <fs04> to <field>.
    Contents of system fields
    Name     Val.
    Name     Val.
    SY-SUBRC 4
    SY-INDEX 2
    SY-TABIX 0
    SY-DBCNT 1
    SY-FDPOS 80
    SY-LSIND 0
    SY-PAGNO 1
    SY-LINNO 4
    SY-COLNO 13
    SY-PFKEY STANDARD
    SY-UCOMM
    SY-TITLE Sales nformation
    SY-MSGTY I
    SY-MSGID SF
    SY-MSGNO 616
    SY-MSGV1 ZTEST_11
    SY-MSGV2 RE
    SY-MSGV3 EN
    SY-MSGV4
    SY-MODNO 0
    SY-DATUM 20140303
    SY-UZEIT 131156
    SY-XPROG SAPCNVE
    SY-XFORM CONVERSION_EXIT
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
          Name
       10 FORM         SAPLKKBL                            LKKBLF99                             2844
          GEN_FIELD_OUT2
        9 FORM         SAPLKKBL                            LKKBLF99                              797
          GEN_LINE_OUT
        8 FORM         SAPLKKBL                            LKKBLF98                             1359
          DATA_OUT_SIMPLE
        7 FORM         SAPLKKBL                            LKKBLF01                              457
          LIST_OUTPUT_NEW
        6 FORM         SAPLKKBL                            LKKBLF01                             6205
          FIRST_LIST_DISPLAY
        5 MODULE (PBO) SAPLKKBL                            LKKBLO01                               11
          LIST_DISPLAY
        4 FUNCTION     SAPLKKBL                            LKKBLU01                              441
          K_KKB_LIST_DISPLAY
        3 FUNCTION     SAPLSALV                            LSALVU07                              504
          REUSE_ALV_LIST_DISPLAY
        2 FORM         ZTEST_11                            ZTEST_11                              181
          DISPLAY
        1 EVENT        ZTEST_11                            ZTEST_11                              103
          START-OF-SELECTION
    Chosen variables
    Name
    Val.
          10 Ty.          FORM
    e  GEN_FIELD_OUT2
    SFC22
    0000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000
    0000222222222222222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000
    OUT-FIELD_COLCOUNT
    2
    0000
    0002
    UMMY$$
    0000
    0000
    2222
    0000
    REPID
    SAPLKKBL
    0000000000000000000000000000000000000000
    0000000000000000000000000000000000000000
    5454444422222222222222222222222222222222
    310CBB2C00000000000000000000000000000000
    OUT_FLAGS-SLAVE
    0
       0
       2
       0
    PACE
       0
       0
       2
       0
    FM01>
       0000
       0000
       2222
       0000
    FIELD>
       0000
       0000
       2222
       0000
    S_FC
       ####BSARK                         1
       0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
       0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
       0000454542222222222222222222222222322222222222222222222222222222222222222222222222222222222222
       01012312B0000000000000000000000000100000000000000000000000000000000000000000000000000000000000
    S_MFC01
       ####BSARK                         1
       0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    this is a report n im getiing runtime error Runtime Errors         GETWA_NOT_ASSIGNED   give the solution
    TABLES : VBAK , VBAP , KNA1.
    TYPE-POOLS : SLIS.
    TYPES : BEGIN OF TY_VBAP,
             matnr   type    matnr,
             vbeln   type    vbeln,      " order no
             ARKTX   type    ARKTX,      "item name
             KWMENG  type    KWMENG,     " order qua.
             audat   type    audat,      " SD document item date (incoming or outgoing date)
             posnr   type    posnr,
             END OF TY_VBAP.
    TYPES : BEGIN OF TY_KNA1,
             NAME1 TYPE NAME1,
    *        KUNNR TYPE KUNNR,
             END OF TY_KNA1.
    TYPES : BEGIN OF TY_VBAK,
             VTWEG   type   VTWEG,   " Distribution Channel
             BSARK   type   BSARK,   "Customer purchase order type
             END OF TY_VBAK.
    TYPES : BEGIN OF TY_FINAL,
             matnr   type    VBAP-matnr,
             vbeln   type    VBAP-vbeln,      " order no
             ARKTX   type    VBAP-ARKTX,      "item name
             KWMENG  type    VBAP-KWMENG,     " order qua.
             audat   type    VBAP-audat,      " SD document item date (incoming or outgoing date)
             posnr   type    VBAP-posnr,
             VTWEG   type    VBAK-VTWEG,   " Distribution Channel
             BSARK   type    VBAK-BSARK,   "Customer purchase order type
             NAME1   TYPE    KNA1-NAME1,
    *        KUNNR   TYPE    KNA1-KUNNR,
             END OF TY_FINAL.
    DATA : IT_VBAP TYPE TABLE OF TY_VBAP,
            IT_VBAK TYPE TABLE OF TY_VBAK,
            IT_KNA1 TYPE TABLE OF TY_KNA1,
            IT_FINAL1 TYPE TABLE OF TY_FINAL,
            IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : WA_VBAP LIKE LINE OF IT_VBAP,
            WA_VBAK LIKE LINE OF IT_VBAK,
            WA_KNA1 LIKE LINE OF IT_KNA1,
            WA_FINAL LIKE LINE OF IT_FINAL1,
            WA_FIELDCAT TYPE          SLIS_FIELDCAT_ALV.
    INITIALIZATION.
    SELECTION-SCREEN BEGIN OF BLOCK BL WITH FRAME TITLE TEXT-001.
         SELECT-OPTIONS :
                         SO_NO     FOR VBAP-VBELN,
                         M_NO      FOR VBAP-MATNR,
                         SO_DATE   FOR VBAP-AUDAT OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK BL.
         START-OF-SELECTION.
         SELECT VBELN MATNR AUDAT ARKTX KWMENG POSNR
            FROM VBAP INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1 WHERE VBELN IN SO_NO
                                                                     AND MATNR IN M_NO
                                                                     AND AUDAT IN SO_DATE.
           SELECT NAME1  FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1 .
           LOOP AT IT_FINAL1 INTO WA_FINAL.
             SELECT SINGLE name1 FROM kna1 INTO WA_FINAL-name1 WHERE KUNNR = WA_FINAL-name1.
               MODIFY IT_FINAL1 FROM WA_FINAL TRANSPORTING NAME1.
           ENDLOOP.
    SELECT VTWEG BSARK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1.
    *      SELECT VTWEG BSARK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
    *                         FOR ALL ENTRIES IN IT_FINAL1
    *                         WHERE VTWEG = IT_FINAL1-VTWEG
    *                         AND   BSARK = IT_FINAL1-BSARK.
           LOOP AT IT_FINAL1 INTO WA_FINAL.
             READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VTWEG = WA_FINAL-VTWEG.
             READ TABLE IT_VBAK INTO WA_VBAK WITH KEY BSARK = WA_FINAL-BSARK.
             IF SY-SUBRC EQ 0.
               WA_FINAL-VTWEG = WA_VBAK-VTWEG.
               WA_FINAL-BSARK = WA_VBAK-BSARK.
             ENDIF.
                   MODIFY IT_FINAL1 FROM WA_FINAL TRANSPORTING VTWEG BSARK.
             ENDLOOP.
             PERFORM BUILD.
             PERFORM DISPLAY.
    *&      Form  BUILD
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form BUILD .
    *CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '1'.
    WA_FIELDCAT-FIELDNAME = 'BSARK'.
    WA_FIELDCAT-SELTEXT_L = 'Order type'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '2'.
    WA_FIELDCAT-FIELDNAME = 'AUFNR'.
    WA_FIELDCAT-SELTEXT_L = 'Order number'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '3'.
    WA_FIELDCAT-FIELDNAME = 'POSNR'.
    WA_FIELDCAT-SELTEXT_L = 'Line No.'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '4'.
    WA_FIELDCAT-FIELDNAME = 'VTWEG'.
    WA_FIELDCAT-SELTEXT_L = 'Dis Channel'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '5'.
    WA_FIELDCAT-FIELDNAME = 'audat'.
    WA_FIELDCAT-SELTEXT_L = 'Order Date'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '6'.
    WA_FIELDCAT-FIELDNAME = 'audat'.
    WA_FIELDCAT-SELTEXT_L = 'delivey date'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '7'.
    WA_FIELDCAT-FIELDNAME = 'name1'.
    WA_FIELDCAT-SELTEXT_L = 'Name'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '8'.
    WA_FIELDCAT-FIELDNAME = 'ARKTX'.
    WA_FIELDCAT-SELTEXT_L = 'Iem Name'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-COL_POS = '9'.
    WA_FIELDCAT-FIELDNAME = 'KWMENG'.
    WA_FIELDCAT-SELTEXT_L = 'Order quantitye'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    endform.                    " BUILD
    *&      Form  DISPLAY
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form DISPLAY .
       CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
    *     I_INTERFACE_CHECK              = ' '
    *     I_BYPASSING_BUFFER             =
    *     I_BUFFER_ACTIVE                = ' '
          I_CALLBACK_PROGRAM             = sy-repid
    *     I_CALLBACK_PF_STATUS_SET       = ' '
    *     I_CALLBACK_USER_COMMAND        = ' '
    *     I_STRUCTURE_NAME               =
    *     IS_LAYOUT                      =
          IT_FIELDCAT                    = IT_FIELDCAT[]
    *     IT_EXCLUDING                   =
    *     IT_SPECIAL_GROUPS              =
    *     IT_SORT                        =
    *     IT_FILTER                      =
    *     IS_SEL_HIDE                    =
    *     I_DEFAULT                      = 'X'
    *     I_SAVE                         = ' '
    *     IS_VARIANT                     =
    *     IT_EVENTS                      =
    *     IT_EVENT_EXIT                  =
    *     IS_PRINT                       =
    *     IS_REPREP_ID                   =
    *     I_SCREEN_START_COLUMN          = 0
    *     I_SCREEN_START_LINE            = 0
    *     I_SCREEN_END_COLUMN            = 0
    *     I_SCREEN_END_LINE              = 0
    *     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                       = IT_FINAL1.
    *   EXCEPTIONS
    *     PROGRAM_ERROR                  = 1
    *     OTHERS                         = 2
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    endform.                    " DISPLAY

  • Errors executing bulk query when updating a Sharepoint Linked List from Access

    Hi all,
    I have a Sharepoint list that is a Linked List with MS Access. It has just under 5,000 items (4,864), thus meaning it avoids the reduction in functionality lists of greater than 5,000 items have.
    Among the list are five calculated columns. These take the information from another column (different employee numbers), and by using a formula produce a clickable link to my company's Directory page, where that particular employee's info is displayed. I'm
    not sure if these five columns are relevant to my query, but I'm mentioning them in case.
    My problem is this: Frequently when I run any query on the list that updates the list, I get this error: "There were errors executing the bulk query or sending the data to the server. Reconnect the tables to resolve the
    conflicts or discard the pending changes".
    When I review the errors, it says they conflict with errors a previous user made (with that previous user being me). It frequently highlights several columns, despite the info in them being identical, and the calculated columns (with the original showing
    the value they contained and the new showing #VALUE! (as Access can't display the formulas).
    However, if I click Retry All Changes, all the update stick and everything seems fine. Why is this happening? It's proving very annoying and is really stopping the automation of my large number of queries. A list of 5000 items isn't particular big (and they've
    got roughly 100 columns, although I didn't think that was too large either, given Excel's 200+ column limit).
    Is this due to poor query design and SQL? Is this due to connectivity issues (which I doubt, as my line seems perfect)? Is this due to Access tripping over itself and not executing the update on each row in the table, but rather executing them concurrently
    and locking itself up? I'm at wit's end about it and really need to get this sorted.
    Thanks in advance for any suggestions.

    Hi amartin903,
    According to your description, my understanding is that you got an error when you used a linked list from Access.
    The table that you are updating is a linked table that does not have a primary key or a unique index. Or, the query or the form is based on a linked table that does not have a primary key or a unique index. Please add the primary key or a unique index.
    Here is a similar post, please take a look at:
    http://social.technet.microsoft.com/Forums/en-US/545601e9-a703-4a02-8ed9-199f1ce9dac8/updating-sharepoint-list-from-access?forum=sharepointdevelopmentlegacy
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Why does opening some links in Firefox causes a "Server Error in '/' Application Runtime Error" but not in "Internet Explorer"?

    When I click on some links in an email (and Firefox is the default browser) I get the following error:
    Server Error in '/' Application.
    Runtime Error
    Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.
    If, however, I click the same links (and Internet Explorer is the default browser) I do not get any error and the proper content of the link is displayed.
    What is causing this error? As I prefer Firefox, how can this problem be fixed?
    OS Windows 7, Service Pack 1
    Firefox Version 32.0.1
    Internet Explorer Version 11.0.9600.17280
    Thank you for your assistance.
    Prime

    When you look at the address in the address bar, does it seem to match up with the email?
    Sounds like Firefox sent the server something it wasn't expecting. Sometimes this can be caused by obsolete or corrupted cookies -- assuming you have visited the site before. It also might be caused by modifications to standard information sent to servers such as the "user agent" string that specifies your browser version and OS.
    To clear a site's cookies, while viewing a page on the site, either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?

  • BB Link software - another BB disaster? Fails to even run now - C++ Runtime errors - any solutions?

    As if the latest BB10 / BB Link software wasn't bad enough in terms of functionality - now BB Link won't even run. 
    I recently discovered by chance (thank for not telling any of your customers RIM), that they'd mildly updated BB Link so that it could actually now two-sync Outlook for contact/calendar etc. I've been using the updated software for about three weeks. Problem?
    Now it won't even run. 
    I get the following error showing on the screen - a C++ runtime error, followed by these details. Anyone know what it means or how to resolve it? 
    Would I better off actually chucking my Z10 out of the window, claiming on the insurance and just getting a phone from someone else? I probably would. Why, why, why do I persist with BB who refuse to release things that their customers want? 
    Rant over - any help, very much appreciated. 
    Attachments:
    BBLinkFailure-25.7.13.doc ‏1211 KB

    I have taken a look and while it's so tempting to just pay the miniscule fee and use that, I spose my gripe is that there is no reason why the link software should not work epecially as it did with my first Q10 (and brilliantly I must add) it's just since I had to exchange my handset that it's all got to pot.
    And worse yet no one at RIM seems to be forthcoming with a response (on the support site, or any of the many customer forums) about this issue which is effecting quite a few users (the forums are buzzing with problems with Link and no real way to report them. *sigh*
    I have taken a look and while it's so tempting to just pay the miniscule fee and use that, I spose my gripe is that there is no reason why the link software should not work epecially as it did whit my first Q10 (and brilliantly I must add) it's just since I had to exchange my handset that it's all got to pot.
    And worse yet no one at RIM seems to be forthcoming with a response (on the support site, or any of the many customer forums) about this issue which is effecting quite a few users (the forums are buzzing with problems with Link and no real way to report them. *sigh*
    Edit:
    From BBAppWorld:
    Files & Folders is a unified file manager for your BlackBerry® 10 phone and cloud services.
    ★ Voted Best New App in CrackBerry Readers Choice Awards 2012
    ★ Redesigned and optimized specifically for BlackBerry 10 phones
    ★ Check out the 800+ fabulous reviews of the PlayBook version
    IMPORTANT! Having trouble starting our app? Try removing & reinstalling it.
    Features in this version:
    ★ Works with local files & folders on your phone & sd card, but also:
    ★ Dropbox, Box, Google Drive, Google Docs, SugarSync and Microsoft SkyDrive
    ★ files on your PC, via BlackBerry Link Remote Files (requires BB10.1)
    ★ Manage cloud services in exactly the same way as local files & folders
    ★ Peek back to higher level folder
    ★ Unique "peek forward" feature: look inside folders
    ★ Open files with default app, or choose which app to use
    ★ Open Google & SkyDrive files online
    ★ Cut, copy, paste, rename, delete, even between cloud services
    ★ Share files via other installed apps, BlueTooth, BBM, NFC
    ★ Stream audio & video from the cloud & play local files, folders
    ★ Star your favorite folders for quick access
    ★ List, icon, thumbnail views
    ★ Slide show, keep-awake, text viewer
    ★ Convert between many formats on-the-fly using Google Docs
    ★ Sort by name, date, size, type
    ★ Password protection
    ★ Light & dark color schemes
    ★ Q10 support
    ★ Highly configurable
    ★ Built-in help and excellent support
    CrackBerry said this about the PlayBook version:
    "It's easy to use, has a smooth interface, and is a great addition for the PlayBook."
    If you have trouble with our app, instead of posting a review, please e-mail us at [email protected]. That way we can offer you support.
    Like us on Facebook (http://www.facebook.com/FilesFolders), follow us on Twitter (@FilesFolders) or check out our site (www.innovatology.nl ) for news, tips, updates & more!
    From the looks of it it might still need remote file share to work ...can some one confirm or deny this pretty please?
    Slàinte.
    Not all things are good.
    Not all things are evil.
    But with an open mind...
    You can see the difference.
    Knowledge is power.

Maybe you are looking for