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

Can any one please execute the program in ECC 6.0 - Dynamic Select Dump

Former Member
0 Likes
862

Hi,

I am getting dump when I execute the following code in ECC 6.0 with Oracle DB. it works fine in 46, 47 unicode and non unicode and ERP2004.

If I remove the period '.' after '''4500016938''' it works fine. I just want to make sure it is ECC 6.0 issue.

TABLES: EKKO.

DATA L_WHERECOND TYPE TEXT50 OCCURS 0 WITH HEADER LINE.

CONCATENATE 'EBELN' 'EQ' '''4500016938''' '.'

INTO L_WHERECOND SEPARATED BY SPACE.

APPEND L_WHERECOND.

SELECT SINGLE * FROM EKKO

WHERE (L_WHERECOND).

WRITE: SY-SUBRC.

WRITE: EKKO-EBELN, ekko-ebeln.

I really appriciate for your help.

Thanks

Swamy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
835

short dump for me too in ECC6

EDIT: when i removed the '.' it worked, too.

Message was edited by:

robert phelan

Hi,

I am getting dump when I execute the following code in ECC 6.0 with Oracle DB. it works fine in 46, 47 unicode and non unicode and ERP2004.

If I remove the period '.' after '''4500016938''' it works fine. I just want to make sure it is ECC 6.0 issue.

TABLES: EKKO.

DATA L_WHERECOND TYPE TEXT50 OCCURS 0 WITH HEADER LINE.

CONCATENATE 'EBELN' 'EQ' '''4500016938''' '.'

INTO L_WHERECOND SEPARATED BY SPACE.

APPEND L_WHERECOND.

SELECT SINGLE * FROM EKKO

WHERE (L_WHERECOND).

WRITE: SY-SUBRC.

WRITE: EKKO-EBELN, ekko-ebeln.

I really appriciate for your help.

Thanks

Swamy

5 REPLIES 5
Read only

Former Member
0 Likes
836

short dump for me too in ECC6

EDIT: when i removed the '.' it worked, too.

Message was edited by:

robert phelan

Read only

0 Likes
835

Thanks Robert, Can you please tell me what is database you use?

Read only

0 Likes
835

We are running DB2.

Regards,

RIch Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
835

Yes, you do not need the "." at the end. The period is after the WHERE clause

WHERE (L_WHERECOND).    "<<---- RIGHT HERE

BTW, got a dump in my ECC6.0 system too.

Regards,

RIch Heilman

Read only

0 Likes
835

Thanks Robert & Rich. What database you are using?

Swamy