ALV Report DUMP
Hi Experts,
I developed one alv report. Its executing properly. But once i select tab local file in application toolbar its going to dump.
im gettign this error:
Field symbol has not yet been assigned.
The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
please help me in this regard.
Regards,
Vamsi.
REPORT ZMM_PURCHREG.
TABLES: RBKP,RSEG,KONV,J_1IMOVEND.
TYPE-POOLS: SLIS.
DATA: IT_RBKP TYPE STANDARD TABLE OF RBKP WITH HEADER LINE.
DATA: IT_LFA1 TYPE STANDARD TABLE OF LFA1 WITH HEADER LINE.
DATA: IT_J_1IMOVEND TYPE STANDARD TABLE OF J_1IMOVEND WITH HEADER LINE.
DATA: IT_RSEG TYPE STANDARD TABLE OF RSEG WITH HEADER LINE.
TYPES: BEGIN OF IT_BAMT1 ,
RMWWR TYPE RBKP-RMWWR,
WMWST1 TYPE RBKP-WMWST1,
END OF IT_BAMT1.
DATA: IT_BAMT TYPE STANDARD TABLE OF IT_BAMT1.
DATA: G_BAMT TYPE RBKP-RMWWR.
DATA: G_RMAMT TYPE RBKP-RMWWR,
G_WMWST1 TYPE RBKP-WMWST1.
DATA: BEGIN OF IT_TAXCOM OCCURS 0.
INCLUDE STRUCTURE TAXCOM.
DATA: END OF IT_TAXCOM.
DATA: BEGIN OF IT_MAIN OCCURS 0.
INCLUDE STRUCTURE ZPO_REG.
DATA: END OF IT_MAIN.
DATA: BEGIN OF IT_EKKO OCCURS 0,
EBELN TYPE EKKO-EBELN,
KNUMV TYPE EKKO-KNUMV,
WAERS TYPE EKKO-WAERS,
LIFNR TYPE EKKO-LIFNR,
EKORG TYPE EKKO-EKORG,
LANDS TYPE EKKO-LANDS,
END OF IT_EKKO.
DATA: BEGIN OF IT_EKPO OCCURS 0,
EBELP TYPE EKPO-EBELP,
EBELN TYPE EKPO-EBELN,
MWSKZ TYPE EKPO-MWSKZ,
NETWR TYPE EKPO-NETWR,
TXJCD TYPE EKPO-TXJCD,
MATNR TYPE EKPO-MATNR,
MATKL TYPE EKPO-MATKL,
MTART TYPE EKPO-MTART,
WERKS TYPE EKPO-WERKS,
MEINS TYPE EKPO-MEINS,
MENGE TYPE EKPO-MENGE,
END OF IT_EKPO.
DATA : BEGIN OF it_xkomv OCCURS 0.
INCLUDE STRUCTURE komv.
DATA : END OF it_xkomv.
DATA : fieldcat TYPE slis_fieldcat_alv,
fieldcat_t TYPE slis_t_fieldcat_alv,
top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
layout TYPE slis_layout_alv,
pos TYPE sy-tabix,
xhead(70).
DATA: lt_sort TYPE slis_t_sortinfo_alv,
lt_sp_group TYPE slis_t_sp_group_alv.
==========================SELECTION SCREEN===========================
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: S_BELNR FOR RBKP-BELNR.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: P_BUKRS FOR RBKP-BUKRS NO INTERVALS.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: P_LIFNR FOR RBKP-LIFNR NO INTERVALS.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: P_BLDAT FOR RBKP-BLDAT NO INTERVALS.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: P_BUDAT FOR RBKP-BUDAT NO INTERVALS.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN END OF BLOCK b1.
===============AT SELECTION SCREEN==================================
AT SELECTION-SCREEN.
PERFORM VALIDATE_DATA.
===============START OF SELECTION===================================
START-OF-SELECTION.
PERFORM VENDORDETAILS.
*PERFORM BASICAMT.
PERFORM EXCISEDUTY.
PERFORM CONSTRUCT_FIELD_CATALOG.
PERFORM REUSE_ALV_GRID_DISPLAY.
*& Form VALIDATE_DATA
text
--> p1 text
<-- p2 text
form VALIDATE_DATA .
SELECT BELNR BUKRS LIFNR
BLDAT BUDAT
FROM RBKP CLIENT SPECIFIED
INTO
CORRESPONDING FIELDS OF TABLE IT_RBKP
WHERE
MANDT = SY-MANDT
AND BELNR IN S_BELNR.
IF SY-SUBRC NE 0.
MESSAGE 'NOT A VALID DOCUMENT NO.' TYPE 'E'.
ELSE.
READ TABLE IT_RBKP INDEX 1.
ENDIF.
endform. " VALIDATE_DATA
*& Form VENDORDETAILS
text
--> p1 text
<-- p2 text
form VENDORDETAILS .
SELECT BELNR BUKRS LIFNR
BLDAT BUDAT XBLNR RMWWR WMWST1
FROM RBKP CLIENT SPECIFIED
INTO
CORRESPONDING FIELDS OF TABLE IT_RBKP
WHERE
MANDT = SY-MANDT
AND BELNR IN S_BELNR
AND BUKRS IN P_BUKRS
AND LIFNR IN P_LIFNR
AND BLDAT IN P_BLDAT
AND BUDAT IN P_BUDAT.
sort IT_RBKP by lifnr.
LOOP AT IT_RBKP.
SELECT SINGLE LIFNR J_1IEXCD J_1ICSTNO J_1ILSTNO
FROM J_1IMOVEND CLIENT SPECIFIED
INTO (IT_J_1IMOVEND-lifnr, IT_J_1IMOVEND-J_1IEXCD,
IT_J_1IMOVEND-J_1ICSTNO, IT_J_1IMOVEND-J_1ILSTNO)
WHERE
MANDT = SY-MANDT and
LIFNR = IT_RBKP-LIFNR.
APPEND IT_J_1IMOVEND.
ENDLOOP.
sort IT_J_1IMOVEND by lifnr.
delete adjacent duplicates from IT_J_1IMOVEND comparing lifnr.
LOOP AT IT_RBKP.
read table IT_J_1IMOVEND with key LIFNR = it_rbkp-lifnr.
G_BAMT = IT_RBKP-RMWWR - IT_RBKP-WMWST1.
IT_MAIN-BASICAMT = G_BAMT.
IT_MAIN-BUDAT = IT_RBKP-BUDAT.
IT_MAIN-BLDAT = IT_RBKP-BLDAT.
IT_MAIN-BELNR = IT_RBKP-BELNR.
IT_MAIN-XBLNR = IT_RBKP-XBLNR.
IT_MAIN-LIFNR = IT_RBKP-LIFNR.
IT_MAIN-XBLNR = IT_RBKP-XBLNR.
IT_MAIN-J_1IEXCD = IT_J_1IMOVEND-J_1IEXCD.
IT_MAIN-J_1ILSTNO = IT_J_1IMOVEND-J_1ILSTNO.
IT_MAIN-J_1ICSTNO = IT_J_1IMOVEND-J_1ICSTNO.
IT_MAIN-J_1ILSTNO = IT_J_1IMOVEND-J_1ILSTNO.
APPEND IT_MAIN.
CLEAR G_BAMT.
ENDLOOP.
FOR CALCULATING VAT REG NO.
loop at it_main.
SELECT SINGLE STCEG FROM LFA1
INTO it_main-STCEG
WHERE LIFNR = it_main-LIFNR.
MODIFY IT_MAIN.
ENDLOOP.
endform. " VENDORDETAILS
*& Form EXCISEDUTY
text
--> p1 text
<-- p2 text
form EXCISEDUTY .
LOOP AT IT_RBKP.
SELECT belnr EBELN EBELP menge FROM RSEG
INTO corresponding fields of IT_RSEG
WHERE BELNR = IT_RBKP-BELNR.
APPEND IT_RSEG.
endselect.
endloop.
LOOP AT IT_MAIN.
READ TABLE IT_RSEG WITH KEY BELNR = IT_MAIN-BELNR.
IT_MAIN-EBELN = IT_RSEG-EBELN.
IT_MAIN-MENGE = IT_RSEG-MENGE.
MODIFY IT_MAIN.
ENDLOOP.
LOOP AT IT_MAIN.
SELECT SINGLE KNUMV FROM EKKO
INTO
IT_MAIN-KNUMV
WHERE EBELN = IT_MAIN-EBELN.
MODIFY IT_MAIN.
ENDLOOP.
LOOP AT IT_MAIN.
SELECT EBELP FROM EKPO
INTO TABLE IT_EKPO
WHERE EBELN = IT_MAIN-EBELN.
APPEND IT_EKPO.
ENDLOOP.
DATA: V_RATE TYPE KWERT,
V_RATE1 TYPE KWERT,
V_RATE2 TYPE KWERT,
V_RATE4 TYPE KWERT,
V_RATE5 TYPE KWERT,
V_RATE3 TYPE KWERT,
V_RATE6 TYPE KWERT.
CLACULATING SECESS
LOOP AT IT_MAIN.
LOOP AT IT_RSEG where belnr = IT_MAIN-belnr
and ebeln = IT_MAIN-ebeln.
LOOP AT IT_EKPO WHERE EBELN = IT_MAIN-EBELN.
SELECT SINGLE kbetr FROM konv
INTO V_rate WHERE knumv = it_MAIN-knUMV
AND kposn = IT_EKPO-EBELP
AND ( kschl EQ 'JSEI' OR kschl EQ 'JSEP' ).
IF sy-subrc = 0.
IT_MAIN-SECESS = IT_MAIN-SECESS + ( V_RATE / IT_MAIN-MENGE ).
ENDIF.
ENDLOOP.
MODIFY it_main.
ENDLOOP.
ENDLOOP.
Getting ECS
LOOP AT IT_MAIN.
LOOP AT IT_RSEG where belnr = IT_MAIN-belnr
and ebeln = IT_MAIN-ebeln.
SELECT SINGLE kbetr FROM konv
INTO V_rate1 WHERE knumv = it_MAIN-knumv
AND kposn = it_RSEG-ebelp
AND ( kschl EQ 'JEC1' OR kschl EQ 'JEC2' ).
IF sy-subrc = 0.
IT_MAIN-ECS = IT_MAIN-ECS + ( V_RATE1 / IT_MAIN-MENGE ).
CLEAR V_RATE1.
ENDIF.
ENDLOOP.
MODIFY it_main.
ENDLOOP.
Excise Duty
LOOP AT IT_MAIN.
LOOP AT IT_RSEG where belnr = IT_MAIN-belnr
and ebeln = IT_MAIN-ebeln.
SELECT SINGLE kbetr FROM konv
INTO V_rate2 WHERE knumv = it_MAIN-knumv
AND kposn = it_RSEG-ebelp
AND ( kschl EQ 'JMOP' OR kschl EQ 'JMIP' ).
IF sy-subrc = 0.
IT_MAIN-EXCISE = IT_MAIN-EXCISE + ( V_RATE2 / IT_MAIN-MENGE ).
ENDIF.
CLEAR V_RATE2.
ENDLOOP.
MODIFY it_main.
ENDLOOP.
Freight / Octroi
LOOP AT IT_MAIN.
LOOP AT IT_RSEG where belnr = IT_MAIN-belnr
and ebeln = IT_MAIN-ebeln.
SELECT SINGLE kbetr FROM konv
INTO V_rate3 WHERE knumv = it_MAIN-knumv
AND kposn = it_RSEG-ebelp
AND ( kschl EQ 'FRA1' OR kschl EQ 'FRB1'
OR KSCHL EQ 'FRC1').
IF sy-subrc = 0.
SELECT SINGLE KBETR FROM KONV
INTO V_RATE4 WHERE KNUMV = IT_MAIN-KNUMV
AND KPOSN = IT_RSEG-EBELP
AND KSCHL EQ 'JOCM'.
IF SY-SUBRC = 0.
V_RATE5 = V_RATE3 + V_RATE4.
IT_MAIN-OCTROI = IT_MAIN-OCTROI + ( V_RATE5 / IT_MAIN-MENGE ).
ENDIF.
ENDIF.
CLEAR: V_RATE3,
V_RATE4,
V_RATE5.
ENDLOOP.
MODIFY it_main.
ENDLOOP.
Other Charges
LOOP AT IT_MAIN.
LOOP AT IT_RSEG where belnr = IT_MAIN-belnr
and ebeln = IT_MAIN-ebeln.
SELECT SINGLE kbetr FROM konv
INTO V_rate6 WHERE knumv = it_MAIN-knumv
AND kposn = it_RSEG-ebelp
AND ( kschl EQ 'ZOTC' ).
IF sy-subrc = 0.
IT_MAIN-OTC = IT_MAIN-OTC + ( V_RATE6 / IT_MAIN-MENGE ).
ENDIF.
CLEAR V_RATE6.
ENDLOOP.
MODIFY it_main.
ENDLOOP.
ENDFORM.
*& Form CONSTRUCT_FIELD_CATALOG
text
--> p1 text
<-- p2 text
form CONSTRUCT_FIELD_CATALOG .
CLEAR : fieldcat_t,pos.
layout-colwidth_optimize = 'X'.
CLEAR fieldcat.
fieldcat-fieldname = 'BUDAT'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'DOC DATE'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'BLDAT'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'BILL DATE'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'BELNR'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'INVOICE RECIEPT NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'XBLNR'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'BILL NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'LIFNR'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'VENDOR NAME'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'STCEG'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'VAT REG NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'J_1IEXCD'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'ECC REG NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'J_1ILSTNO'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'PAN REG NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'J_1ICSTNO'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'CST REG NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'J_1ILSTNO'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'LST REG NO.'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'BASICAMT'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'BASIC AMOUNT'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'EXCISE'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'EXCISE AMOUNT'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'ECSS'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'ECSS'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'SECESS'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'SECESS'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'VAT'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'VAT'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'OCTROI'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'Octroi'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
CLEAR fieldcat.
fieldcat-fieldname = 'OTC'.
fieldcat-tabname = 'IT_MAIN'.
fieldcat-seltext_l = 'Other charges'.
fieldcat-just = 'L'.
fieldcat-col_pos = pos.
pos = pos + 1.
APPEND fieldcat TO fieldcat_t.
endform. " CONSTRUCT_FIELD_CATALOG
*& Form REUSE_ALV_GRID_DISPLAY
text
--> p1 text
<-- p2 text
form REUSE_ALV_GRID_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_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_CALLBACK_TOP_OF_PAGE = TOP_OF_PAGE
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME = 'ZPO_REG'
I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'PURCHASE REGISTER'
I_GRID_SETTINGS =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT_T
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
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
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = IT_MAIN
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.
Similar Messages
-
Short dump when I do total or sub total in the ALV report
Hi,
When I do total or sub-total on the currency field in the ALV report, it'll give a short dump like
" The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X)".
Short text of error message:
Technical information about the message:
Message classe...... "0K"
Number.............. 000
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program SAPLSLVC
Include LSLVCF36
Row 2,726
Module type (FORM)
Module Name FILL_DATA_TABLE
sometime when I do the page down on the ALV report, the same short dump is coming.
Can anyone help me out.
Thanks
SelvaHi,
I'm getting this short dump in the standard program.
I'm getting ALV report display perfectly. the problem is, when I do total or subtotal on the currency fields.
2704
2705 ************************************
2706 * Column per Fieldcat Entry
2707 ************************************
2708 ls_lvc_data-value = space.
2709 clear ls_lvc_data-style.
2710 loop at it_fcat_local assigning <ls_fcat>
2711 where tech ne 'X' and no_out ne 'X'.
2712 if l_invisible eq 'X'.
2713 clear l_invisible.
2714 if <ls_fcat>-do_sum is initial.
2715 continue.
2716 else.
2717 clear ls_lvc_data-col_pos.
2718 endif.
2719 endif.
2720
2721 add 1 to ls_lvc_data-col_pos.
2722
2723 assign component <ls_fcat>-fieldname
2724 of structure <ls_data> to <l_field_value>.
2725 if sy-subrc ne 0.
>>>>> message x000(0k).
2727 endif.
2728
in this standard program, I'm getting the dump. the line is mentioned above in the code. -
Short dump while filtering an ALV report
Hi ,
I have an ALV report which gives me short dump when I filter any of the 'P' type field. I tried to implement sap note 839839 in debug mode but in vain. Should I implement this note first and then check the chnage?
the short dump error "..........
Error in ASSIGN: Memory protection error.
The current program "SAPLSSEL " uses the ASSIGN statement.
However, the offset of the segment (20208) plus the length (69)
is greater than the length of the segment (20264).
This is not allowed.
If the error is in one of your own ABAP programs or an SAP program that
you have modified, try to correct it.
Reduce the offset and/or length that you are using.
If the error occurred in a non-modified SAP program, you may be
able to find a solution in the SAP note system.
If you have access to the note system yourself, use the following
search criteria:
"ASSIGN_OFFSET+LENGTH_TOOLARGE"
"SAPLSSEL " or "LSSELFDI "
"FILL_DYN_FROM_FIELD_SEL" ........."
I appreciate ur inputs.
thanks in advance,
regards,
shanHi Guys,
I found the answer. I had to define all P type fields with eaxact length of 16 . Its working fine.
thanks for all your help.
regards,
shan -
Hello All,
I have created an ALV block list report. The data displayed is from a dynamically created internal table. All works fine and the block list is also appended. But the report dumps in the FM REUSE_ALV_BLOCK_LIST_DISPLAY.
The error given is "Assignment error: Overwriting a protected field." and in the include LKKBLF01. Thie lines of code giving the error is -
011060 if rs_layout-no_hotspot is initial.
011070 format hotspot on.
011080 endif.
011090
011100 concatenate 'RS_HEADER-TEXT' r_col into l_field.
011110 assign (l_field) to <hf>.
> <hf> = l_char.
011130
011140
011150 l_tabname = g_tabname.
011160
Is this something to do with the dynamically created internal table, like the fields being repeated in the table, or the number of fields in the dynamic table exceeding the limit, etc. Also, I get this dump only when there is large amount of data.
Thank you all in advance.
UshaHello Usha,
Did you solve this issue? How did you solved it? I have the same problem, could you please share the information.
Thanks you.
Fabian -
Dump in prodcution server while downloading ALV report to excel sheet
HI ALL,
ALV report is working fine in bother DEV and PROD servers....but in production while downloading report to excel sheet it is going to dump.
"dump is below:
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. "
But in development this problem is not there, iam able to download ALV report to EXCEL sheet.
Any help experts......
Thanks in advance
RamHi,
I had the same problem,
Run a consistency check for your ALV and you will find out. See if you havent passed any unnecessary parameter to FM.
/people/rainer.hbenthal/blog/2009/09/25/sos--my-alv-report-is-not-working
Dump while printing ALV (field symbol not assigned)
Sumit -
Dump for the ALV report for the excel.
HI,
We are having a ALV report.
We are using REUSE_ALV_FIELDCATALOG_MERGE and REUSE_ALV_GRID_DISPLAY.
After we run the report we get the output on the screen properly.
When we choose the "Local File" button it goes to the dump.
The following messages comes.
Runtime Errors " OBJECTS_NOT_CHARLIKE"
"The current statement requires a character-type data object.".
Could you pls advise where is the problem.
Rohitachange the TABNAME to uppercase
ls_fcat-tabname = 'LTB_REPORT'. "<------------ changed to upper case
ls_fcat-fieldname = 'NAME_ORG1'.
ls_fcat-seltext_s = 'Distributor Name'.
ls_fcat-seltext_m = 'Distributor Name'.
ls_fcat-seltext_l = 'Distributor Name'.
ls_fcat-datatype = 'CHAR'.
ls_fcat-outputlen = 30.
APPEND ls_fcat TO ct_fcat. -
Hello gurus,
I am trying to write a simple ALV report code. I pasted the code below.
The program is getting dumped. I am unable to find where the error is.
Please help me out.
Thanks in advance.
Regards,
Balu
REPORT YBP_ALV1 .
TABLES : MARA.
DATA : BEGIN OF itab OCCURS 500,
matnr LIKE mara-matnr,
ersda LIKE mara-ersda,
ernam LIKE mara-ernam,
END OF itab.
DATA i_repid LIKE sy-repid.
DATA i_lines LIKE sy-tabix.
TYPE-POOLS : slis.
DATA int_fcat TYPE SLIS_T_FIELDCAT_ALV.
SELECT-OPTIONS : s_matnr for mara-matnr matchcode object mat1.
START-OF-SELECTION.
select * FROM mara into CORRESPONDING FIELDS OF itab WHERE matnr in s_matnr.
ENDSELECT.
end-of-SELECTION.
i_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = i_repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = i_repid
CHANGING
CT_FIELDCAT = int_fcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
WRITE: / 'RETURNCODE', sy-subrc, 'from function reuse_alv_fieldcatalog_merge'.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = i_repid
IT_FIELDCAT = int_fcat
I_SAVE = 'A'
TABLES
T_OUTTAB = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE :/ 'Returncode', sy-subrc, 'from function reuse_alv_list_display'.
ENDIF.
Edited by: Balu on Jan 3, 2008 12:27 PMRich,
my code after the suggested changes -
REPORT YBP_ALV1 .
TABLES : MARA.
DATA : BEGIN OF xtab,
matnr LIKE mara-matnr,
ersda LIKE mara-ersda,
ernam LIKE mara-ernam,
END OF xtab,
itab LIKE STANDARD TABLE OF xtab WITH HEADER LINE.
DATA i_repid LIKE sy-repid.
DATA i_lines LIKE sy-tabix.
TYPE-POOLS : slis.
DATA int_fcat TYPE SLIS_T_FIELDCAT_ALV.
SELECT-OPTIONS : s_matnr for mara-matnr matchcode object mat1.
START-OF-SELECTION.
select * FROM mara into CORRESPONDING FIELDS OF itab WHERE
matnr in s_matnr.
ENDSELECT.
describe TABLE itab LINES i_lines.
*if i_lines lt 1.
write: / 'no material found'.
exit.
*endif.
*clear i_lines.
end-of-SELECTION.
i_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = i_repid
I_INTERNAL_TABNAME = 'XTAB'
I_INCLNAME = i_repid
CHANGING
CT_FIELDCAT = int_fcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
WRITE: / 'RETURNCODE', sy-subrc, 'from function reuse_alv_fieldcatalog_merge'.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = i_repid
IT_FIELDCAT = int_fcat
I_SAVE = 'A'
TABLES
T_OUTTAB = itab
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE : / 'Returncode', sy-subrc, 'from function reuse_alv_list_display'.
ENDIF.
The dump analysis is as below. Sorry I pasted the wrong analysis before -
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_READ_SRC_LINE_TOO_LONG',
was neither
caught nor passed along using a RAISING clause, in the procedure
"K_KKB_FIELDCAT_MERGE" "(FUNCTION)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
You tried to read the program "YBP_ALV1" from the database. The READ REPORT
statement allows you to copy a program's source code into an internal
table. The lines of source code must not be longer than the width of the
internal table. The internal table is 72 characters wide. The source
code line is 80 wide.
Regards,
Balu -
ALV Report output as per selection screen
Hi,
I got a requirement. In selection screen there is field where i can entered 1 to 12 numbers. When i entered a number, so that in output of an alv report should display that many fields
for eg.
if i entered 5 in selection screen
in out put 5 fields of alv report should display.
Thanks....
Moderator message : Spec dumping / Outsourcing is not allowed. Thread locked.
Edited by: Vinod Kumar on Jul 15, 2011 11:34 AMhi,
u sort the internal table by the materials in our variant.
like sort itab by jtab
itab consists of all materials
jtab cosists of materials in variant.
hope it may helpful,
regards,
chandu -
Hi Everyone,
We have done ALV report (grid contains 22 columns which belongs to one ztable) in development and we have transported to production system.
and Now we added one more field i.e. not related to ztable that means external field(23rd field to grid) to Field catalog and sent production,
And that extra column which we added is coming in development and also in test system, When we tried to execute it, the extra field is added in the grid and when come out of the selection screen it is getting short dump(we are getting dump error in standard program) and one more main problem is:
The code has been moved but 'extra field is not showing in ALV grid' in production system what would be the problem? and also when we come out of the selection screen it getting short dump as same in development.
Could anyone help me out in this.
Thanks in Advance,
~Teena.The code has been moved but 'extra field is not showing in ALV grid' in production system what would be the problem?<b> -->No one can say any thing until unless we are not sure of ur Code , may be check ur layouts of that program ? are u using any default varints ?</b>
and also when we come out of the selection screen it getting short dump as same in development.--><b>check ST22 , u will get some idea ? or else paste ST22 here so we can get some idea , IN ST222 search for point from where DUMP OCCURS ( means search for arrow mark</b>
Regards
Prabhu -
Problem when I call a perfor using ALV report
Hello my dear expert.
I showed an ALV report when the user do double clic in any colunm of this ALV I needo to the program show a other ALV report whit five columns. so In this case I made a internal table and put my option on it.
El problem is that When i do double click in the first ALV report the program shows a dump.
i do not know what is the problem, there is something sure is the dump is showed when I do double on the firts ALV report.
thanks for helping me.
the source code is the nextÑ
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
thanks alot
Edited by: Rob Burbank on Apr 19, 2010 5:49 PMThanks I have found my porblem
this was:
i_callback_user_command = 'process_click'
proces_click is in lower_letterr instead of capitals so the program di not find the permorf.
thanks anyway -
ALV report which displays Delivery and Invoice details..by linking vbfa.
Hi...
I wants to develop an ALV Report, which displays Delivery details as well as Invoice details for a range of given sale orders.
For this report I am using Tables : VBAK,VBAP,LIKP,LIPS,VBFA tables .
Here VBFA is a table for Document flow how to link this with report ??
Please reply.
Regards ,
ASHOK
Moderator message : Not enough re-search before posting, spec dumping not allowed. Thread locked.
Edited by: Vinod Kumar on Aug 1, 2011 9:58 AMVBFA has VBELV and POSNV can be used to map VBAP (sales order item) i.e.
VBFA-VBELV = VBAP-VBELN AND
VBFA-POSNV = VBAP-POSNV
with VBTYP_N = J Values available in VBFA-VBELN and VBFA-POSNN will be LIPS -VBELN and LIPS-POSNR
VBTYP_N/ VBTYP_V = J stands for delivery and C stands for order
Nitesh -
Hi Techies,
I need to display data like the following way :
Material | Quotation : | 6000000019 | 6000000020
Sh. Text | Bidder : | 1210003 | 1210004
Qty in Base Unit | Name : | vendor 1 | vendor 5
96 | Discount
material 1 | freight
10 g | Packing and Forward
| Vat 10%
Like this way I have to generate the Report for any Number of Vendors. Presently my client is having 10 Vendors... This Report possible may be in Normal Report or it may be in ALV Report?...... How can I acieve the above report
Thanks in Advance
Muralikrishna
Edited by: muralipsharma on Aug 17, 2010 12:55 PM
Moderator message: "spec dumping", please work yourself first on your requirement.
Moderator message: second time I have to lock this, don't try again!
locked by: Thomas Zloch on Aug 17, 2010 5:50 PMHi,
If you want to display the output like this. Then, you need to display it using 'Write' statements.
ALV list/Grid will not be useful for this.
Thanks,
Archana -
When 'PRINT' in ALV report using FM
Hi
I am getting an error when trying to execute and print option in the selection screen. my client system version is 4.6C
in the dump the error at :
I am using FM at my report.
set_auto_redraw(cl_gui_alf_grid_base)
can you provide code for when 'PRINT' rs_selfild (dynamic form) for resue*grid_display
ThanksHi Dana,
This thread answers ur question..
alv REPORT PRINTING
cheers,
Prashanth
P.S Please mark helpful answers -
Hi
I am getting ABAP dump when i printing alv report using PRINT button.
Error is
Field symbol has not yet been assigned
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IT_FIELDCAT = FIELDCAT[]
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IT_SORT = GS_SORT
IT_FILTER = GS_FILTER
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IS_PRINT = GS_PRINT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER
TABLES
T_OUTTAB = I_PODETL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
Pls advise me
Thanks
Kumarhi check this..
use this...
wa_fieldcat-fieldname = 'FIELD'.
wa_fieldcat-reptext_ddic = 'Descrition;.
append wa_fieldcat to it_fieldcat .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IT_FIELDCAT = FIELDCAT[]
IS_LAYOUT = GS_LAYOUT
I_SAVE = G_SAVE
IT_SORT = GS_SORT
IT_FILTER = GS_FILTER
IS_VARIANT = GS_VARIANT
IT_EVENTS = GT_EVENTS[]
IS_PRINT = GS_PRINT
TABLES
T_OUTTAB = I_PODETL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
regards,
venkat. -
Hi,
I have generated a ALV Report Output. Fine, but when I have selected 'Print' button or 'Download' button in Application Tool Bar I get dump 'GETWA_NOT_ASSIGNED'.
What should I do to rectify the error?
Thnx,
Shivaa...This is my declaration....
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = gs_user_status
i_callback_user_command = gs_user_command
i_callback_top_of_page = 'TOP-OF-PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND'
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = itfc
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = 'A'
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
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_alv
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
Plz let me know the changes I have to do..
Maybe you are looking for
-
How do i USE airplay on apple TV 2
I have just bought an Apple TV 2 and also an iPad 2. I am trying to work out how to play a film stored on my iPad to show on my TV screen. I was told this can be done with Airplay but I have no idea how. Any help???
-
I am unable to manually add music to my iphone.
I have an iphone 3gs. Laptop running windows XP. I have, for years, manually managed my music etc. I have the "manually manage music" box checked. But when I drag music onto my phone in the sidebar, instead of getting the "+", at which point the devi
-
In Reports what is the difference between the AT NEW and ON CHANGE Event
Hi, Could you tell the differences of AT NEW and ON CHANGE events in Repors
-
I was downloading 2 movies for rental on itunes to my imac. My internet connection was lost. My credit card was charged, but now my movies are nowhere to be found. I went to the Store and checked for available downloads and it stated that all purc
-
View Postings and Messages for Valuation and Translation
Hi Everyone, Inevitably after valuation (FAGL_FC_VAL) or translation (FAGL_FC_TRANS) is run at month-end and the user exits out of the transaction, questions arise as to how certain items were revalued or translated. What I'm trying to locate is if