‎2011 Aug 30 12:05 PM
Hii,
I am new to abap, i wrote a program which is showing dump " Incorrect value in the dynamic table." .
Error in the ABAP Application Program
The current ABAP program "SAPLKKBL" had to be terminated because it come across a statement that unfortunately cannot be executed.
pls help me to solve this issue.
REPORT zBLOCKED_ALV.
*tables: ekko,ekpo.
type-pools slis.
parameters porder like ekko-ebeln.
data: i_ekko type table of ekko,
i_ekpo type table of ekpo,
fieldcat type slis_t_fieldcat_alv,
keyinfo type slis_keyinfo_alv.
clear keyinfo.
keyinfo-header01 = 'ebeln'.
yinfo-item01 = 'ebeln'.
select * from ekko into table i_ekko where ebeln = porder.
select * from ekpo into table i_ekpo for all entries in i_ekko
where ebeln = i_ekko-ebeln.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-cprog
I_INTERNAL_TABNAME = 'i_ekko'
I_STRUCTURE_NAME = 'ekko'
CHANGING
CT_FIELDCAT = fieldcat.
refresh fieldcat.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-cprog
I_INTERNAL_TABNAME = 'i_ekpo'
I_STRUCTURE_NAME = 'ekpo'
CHANGING
CT_FIELDCAT = fieldcat.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-cprog
IT_FIELDCAT = fieldcat
I_TABNAME_HEADER = 'i_ekko'
I_TABNAME_ITEM = 'i_ekpo'
IS_KEYINFO = keyinfo
TABLES
T_OUTTAB_HEADER = i_ekko
T_OUTTAB_ITEM = i_ekpo.
‎2011 Aug 30 12:12 PM
Hi,
What ever that is passed to Field Catalog merge Use CAPS
Example
EXPORTING
I_STRUCTURE_NAME = 'STRUCTURE' -
> Check this.
Hope this helps
‎2011 Aug 30 12:17 PM
‎2011 Aug 30 12:20 PM
Hi,
You have to pass 'EKKO' and 'EKPO' i.e in caps to the exporting parameter I_STRUCTURE_NAME of the function module
'REUSE_ALV_FIELDCATALOG_MERGE'.
I think this would work, if not pls let me know.
Thanks,
Radhika
‎2011 Aug 30 12:24 PM
No Radhika ,
I changed my complete code to caps ,again it is going to dump
‎2011 Aug 30 12:26 PM
‎2011 Aug 30 12:31 PM
‎2011 Aug 30 12:35 PM
‎2016 Mar 17 6:14 AM