2008 Aug 25 1:12 PM
When i save the alv output of my report in the local file the dump is coming.
as following.
Field symbol has not yet been assigned.
t 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.
or analysis
You attempted to access an unassigned field symbol
(data segment 101).
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.
please replay to save the alv output in local file.
2008 Aug 25 1:20 PM
The Problem is with your field catalog population.
Possible causess.
1. Fieldname are in small letters while filling the fieldcatalog.
2. Fieledname mentioned is wrong.
2. Tablename mentioned is small in letters
3. Tablename mentioned is wrong.
5. if Currency/Quanity fields are there then Ref fields and ref table need to mentioned. also you need to have Quantity unit/CUrrency key should be there in the table as well for the display also.
Post your fieldcatalog code population.
When i save the alv output of my report in the local file the dump is coming.
as following.
Field symbol has not yet been assigned.
t 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.
or analysis
You attempted to access an unassigned field symbol
(data segment 101).
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.
please replay to save the alv output in local file.
2008 Aug 25 1:16 PM
Hi
I believe you are using any field-symbol.
Use statement assign <field> to <field-symbol>.
Aditya
2008 Aug 25 1:18 PM
2008 Aug 25 1:20 PM
The Problem is with your field catalog population.
Possible causess.
1. Fieldname are in small letters while filling the fieldcatalog.
2. Fieledname mentioned is wrong.
2. Tablename mentioned is small in letters
3. Tablename mentioned is wrong.
5. if Currency/Quanity fields are there then Ref fields and ref table need to mentioned. also you need to have Quantity unit/CUrrency key should be there in the table as well for the display also.
Post your fieldcatalog code population.
2008 Aug 25 1:24 PM
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'EBELN'.
l_fieldcat-seltext_l = 'WORK/SERVICE ORDER'.
l_fieldcat-hotspot = 'X'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'EBELP'.
l_fieldcat-seltext_l = 'ITEM'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'TXZ01'.
l_fieldcat-seltext_l = 'ITEM TEXT'.
*l_fieldcat-hotspot = 'X'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'LIFNR'.
l_fieldcat-seltext_l = 'VENDOR'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'NAME1'.
l_fieldcat-seltext_l = 'VENDOR DESCRIPTION'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'LBLNI'.
l_fieldcat-seltext_l = 'SERVICE ENTRY NO'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'SRVPOS'.
l_fieldcat-seltext_l = 'ACTIVITY NUMBER'.
l_fieldcat-hotspot = 'X'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'KTEXT1'.
l_fieldcat-seltext_m = 'SHORT TEXT'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'MENGE'.
l_fieldcat-seltext_l = 'ORDER QUANTITY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'MEINS'.
l_fieldcat-seltext_m = 'UNIT'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'NETWR'.
l_fieldcat-seltext_l = 'ORDER VALUE'.
l_fieldcat-hotspot = 'X'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'loc_curr'.
l_fieldcat-seltext_l = 'ORDER LCUR'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'BOOK_QTY'.
l_fieldcat-seltext_l = 'ENTERED QUANTITY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'BOOK_VAL'.
l_fieldcat-seltext_l = 'ENTERED VALUE'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'PENDING_QTY'.
l_fieldcat-seltext_l = 'PENDING QTY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'PENDING_VAL'.
l_fieldcat-seltext_l = 'PENDING VAL'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'WAERS'.
l_fieldcat-seltext_l = 'CURRENCY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'BEDAT'.
l_fieldcat-seltext_l = 'POCREATEDON'.
*l_fieldcat-hotspot = 'X'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'WERKS'.
l_fieldcat-seltext_l = 'PLANT'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'KOSTL'.
l_fieldcat-seltext_l = 'COST CENTER'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'AUFNR'.
l_fieldcat-seltext_l = 'ORDER NO'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1. "Modified as per FS Requirement by Rehman on 16.8.08"
CLEAR l_fieldcat.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'ISSUEQTY'.
l_fieldcat-seltext_m = 'ISSUED QUANTITY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'FISTL'.
l_fieldcat-seltext_l = 'FUND CENTER'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'FIPOS'.
l_fieldcat-seltext_l = 'COMMITMENT ITEM'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'SAKTO'.
l_fieldcat-seltext_l = 'G/L ACCOUNT NO'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'ERNAM'.
l_fieldcat-seltext_l = 'CREATED BY'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'AFNAM'.
l_fieldcat-seltext_l = 'REQUISTIONER'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'USERF2_NUM'.
l_fieldcat-seltext_l = 'USER FIELD2'.
APPEND l_fieldcat TO lt_fieldcat.
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'USERF2_TXT'.
l_fieldcat-seltext_l = 'USER FIELD2'.
APPEND l_fieldcat TO lt_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lw_repid
i_callback_user_command = 'USER_COMMAND'
is_layout = l_layout
it_fieldcat = lt_fieldcat
I_CALLBACK_PF_STATUS_SET = 'PFSTATUS '
it_sort = lt_sort
it_events = t_events
TABLES
t_outtab = it_output.
2008 Aug 25 1:29 PM
l_pos = l_pos + 1.
CLEAR l_fieldcat.
l_fieldcat-TABNAME = 'IT_OUTPUT'.
l_fieldcat-col_pos = l_pos.
l_fieldcat-fieldname = 'loc_curr'. " <---------This is the error NO CAPS
l_fieldcat-seltext_l = 'ORDER LCUR'.
APPEND l_fieldcat TO lt_fieldcat.
2008 Aug 25 1:23 PM
Hi,
this dump is coming because there is some problem in your FIELDCATALOG that you have built.
1] see to it that the field name,table name have been given in capital.
2]see to it that the column position is rightly numbered.
3] see to it that the spellings are correct.because i had also faced the same problem and it was a spelling mistake because of which prog. went dump.
eg:
wa_fieldcat-col_pos = '4'.
wa_fieldcat-fieldname = 'AUART' --- CAPITAL.
wa_fieldcat-tabname = 'IT_FINAL'. -
CAPITAL
wa_fieldcat-seltext_l = 'Order Type'.
wa_fieldcat-outputlen = 4.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Hope this helps.
Thanks,
Rashmi