Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Incorrect value in the dynamic table.

sandeepreddyj6
Participant
0 Likes
2,149

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.

8 REPLIES 8
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,455

Hi,

What ever that is passed to Field Catalog merge Use CAPS

Example

EXPORTING

I_STRUCTURE_NAME = 'STRUCTURE' -


> Check this.

Hope this helps

Read only

0 Likes
1,455

Hii VENKAT

no use .i tried it.

Read only

Former Member
0 Likes
1,455

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

Read only

0 Likes
1,455

No Radhika ,

I changed my complete code to caps ,again it is going to dump

Read only

0 Likes
1,455

CAPS


keyinfo-header01 = 'EBELN'.
keyinfo-item01 = 'EBELN'.

Read only

0 Likes
1,455

Hey Jose Maria ...

I solved it. Very helpful anwser.

Read only

sandeepreddyj6
Participant
0 Likes
1,455

i got it

Read only

Former Member
0 Likes
1,455

THANK YOU ITS REALLY HELPFULL