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

Why changes are not seen

Former Member
0 Likes
592

Hi all,

Even if I have changed a part of the code of a program and activated it,

it still does not see the new part and runs according to old part.

For example even I have changed the ;

unpack prctr to prctr2.

to >>

if prctr cs sy-abcde.
"do nothing
else.

unpack prctr to prctr2.
wa-prctr = prctr2.

endif.

However the program runs as if I have not add if else... It also does not fall into debug mode.

What is the problem?

Thanks.

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
562

does it happen in another session? did you restart SE38 in the another session?

Read only

0 Likes
562

Thanks.

Yes Eric cartman, it happened,

the old code segment is this:


 Data: PRCTR like zpp_utlist-prctr.       
 prctr = wa-prctr.                        
 unpack prctr to wa-prctr.                

And what I have done is as follows:


  if prctr cs sy-abcde.

  else.
    unpack prctr to prctr2.
    wa-prctr = prctr2.
   endif.

However last change is not seen... It goes dump and shows me the error at the old code segment.

What is happening?

Read only

0 Likes
562

I think you only have to restart SE38 (or at least go back to start screen (where you enter program name)) than it should be OK (I assume this happens in the same server)

small remark:

if prctr cs sy-abcde.

this means that the variable prctr <i>contains</i> contains the string 'ABC...XYZ' (which I believe is close to impossible). If you want to check that prctr contains only letters than you need to use CO (instead of CS):

IF prctr CO sy-abcde.

Read only

Former Member
0 Likes
562

Hi Deniz,

Some times it happens like that if we change Attributes of that program.

Just copy the same code into other program and delete everything in the original program except report stmt and do activation part .aFterwards simply paste the code into original program.it may solve your problem.

Otherwise save the code, system-->Logoff.

Reward if useful

Regds

Sivaparvathi