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

ABAP Query - Differences in generated code after upgrade

Former Member
0 Likes
1,470

Hi all,

We have upgraded to ECC 6. from 4.6C. We are experiencing differences between the behaviour of some queries in different systems. This can be as subtle as some of the output parameters not appearing on the selection screen (such as the options within the output format box, i.e. ABAP list, ABC analysis etc), to actual syntax errors in queries where there is no difference between the infosets and queries in the two systems.

A pattern I have noticed is that there are big differences in the generated code behind the query transaction.

In production, where we have the problems, the generated code contains a lot of include programs starting with /1BCDWB/, I am not sure what these are, but the generated code in the systems that work don't have these. I am not sure what is triggering the code to generate differently, but I think if I can find out then it will point me in the right direction.

any help appreciated.

Stephen

4 REPLIES 4
Read only

Damean
Active Contributor
0 Likes
984

Hi Stephen, we notice the same characteristic in our upgraded ERP6 environment too. Even weirder, for the same exact query, our ERP6 SBX and ERP6 QA is exhibiting the same differences. Attempt to regenerate the query doesn't help either. If you know of any way to overcome this problem, please do share.

Read only

Former Member
0 Likes
984

Stephen,

I have noticed the queries are generated with two different formats. One is very compact and has multiple different includes each for data, selection screen, various selection screen events, etc. Other is a single big non-modular program.

We have also noticed generated program template gets reset to the non-modular kind, if additional code is added in the selection-screen code section of the infoset. They do not return to the original even after you undo the changes.

Read only

Former Member
0 Likes
984

Hello

Please check in SQ02 in Settings -> Global Settings the checkbox "Always use the old report structure" and in SQ01 insert query name then modify and in menu Extras -> Additional Special Attributes the checkbox "Use old report structure" to be the same in all landscape. If you find differences between systems then here is your problem. Align these options and regenerate the infosets and reports. I hope this helps.

Best regards,

Emanuel B.

Read only

0 Likes
984

Emanuel

Many thanks for the tip. After turning on the "Always use the old report structure" parameter you mentioned in your posting; the ABAP query is now fairly consistent.