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

DUMP in Select

Former Member
0 Likes
1,411

Hi All,

When i execute the below select query it goes for a dump and i have given the dump analysis also. Please tell me what is going wrong?

data: lc_matnr like mara-matnr,

lc_equnr like afih-equnr.

select single matnr into lc_matnr from equi

where equnr = lc_equnr.

DUMP:

Data type "EQUI" was found in a newer version than required.

*Error analysis:*

The data type "EQUI" was reloaded from the database while the program

was running.

However, the system found a version of the type that was newer than

the one required.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,380

define like this

data: lc_equnr like EQUI-equnr.

Regards,

Ajay

15 REPLIES 15
Read only

Former Member
0 Likes
1,381

define like this

data: lc_equnr like EQUI-equnr.

Regards,

Ajay

Read only

0 Likes
1,380

Hi,

Both the fields share the same dataelement EQUNR char 18. This could not be the problem.

Thanks,

Srinath S

Read only

0 Likes
1,380

>

> Both the fields share the same dataelement EQUNR char 18. This could not be the problem.

EQUNR and MATNR do not share the same data element. They do not even share the same domain. What's more, the two domains do not use the same converision exit. I'm not sure this is the source of the problem, but you might want to look into it.

Rob

Read only

0 Likes
1,380

I think he is saying that about afih-equnr and equi-equnr; as someone asked him to change the variable to equi-equnr.

But surely it is a one time issue, and should be fine if he run it again.

Read only

0 Likes
1,380

That's waht I thought at first, but the different conversion exits made me suspicious. On the other hand, if that's the problem, then it should probably just not find a matching record. Re-running it should be the first thing to do.

Rob

Read only

0 Likes
1,380

I meant EQUNR field of AFIH and EQUI tables share the same dataelement.

Read only

Former Member
0 Likes
1,380

hi, do like this

data: lc_matnr like mara-matnr,

lc_equnr like equi-equnr.

select single matnr into lc_matnr from equi

where equnr = lc_equnr.

thanks

Read only

Former Member
0 Likes
1,380

Hi Srinath,

Just check for the data elements for afih-equnr and equi-matnr.

Are they same ?

Regards,

Nitin.

Read only

0 Likes
1,380

Please have look at the error analysis... it says some thing as newer version found while reloading... but when i checked the versions of the table EQUI there is no new change has happened from past one year....

Read only

0 Likes
1,380

Did you try Thomas' suggestion - run it again?

Rob

Read only

ThomasZloch
Active Contributor
0 Likes
1,380

Sounds like there was a change to table EQUI imported into the system while your program was running. Did you try running it again, does the error still occur?

Thomas

Read only

Former Member
0 Likes
1,380

Hi,

lc_equnr should have some value ( either through parameter on internally in the program ) as u r using lc_equnr in where condition.

data: lc_matnr like mara-matnr,

lc_equnr like afih-equnr value 'XYXY'.

select single matnr into lc_matnr from equi

where equnr = lc_equnr.

Read only

Former Member
0 Likes
1,380

Try

data: lc_matnr like mara-matnr,
lc_equnr like afih-equnr.

select single matnr into (lc_matnr) from equi
where equnr = lc_equnr.

Read only

Former Member
0 Likes
1,380

Hi

I took the same code from the question (post),

When i compiled it and executed, it ran successfully.

Am in ECC 6.0

Regards

Raj

Read only

Former Member
0 Likes
1,380

Hi All,

Thanks for your help.

As suggested I ran the program several times but always it goes for a dump. Later i copied the program to new one, there everything is working fine.

The surprise is still the old program is going for dump and the copied program is working fine(Both has the same code) but i dont know the reason why it is happening.

But at last the issue is solved.

Once again i thank all of you for the ehlp.

Thanks,

Srinath S