cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging a routine

Former Member
0 Kudos

Dear All,

in the update rule, we wrote a simple routine to fill a key figure at the InfoCube level.

We need to be able to debug it in order to view the values that are going to be inserted step by step.

We tried to insert the BREAK statement in the routine but when in the ODS we select "Update ODS Data in Data Target" nothing breaks.

Is there any easier way?

Thanks a lot.

Regards,

R.C.

Message was edited by: Roberto Colombari

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roberto,

By inserting a BREAK statement in the routine you won't be able to debugg as the upload process is done in background.

Instead you should insert a code like this:

data flag.

while flag ne 'X'. endwhile.

Then launch the process and go to transaction SM50 select the process and execute Program/Mode -> Program -> Debugging

Hope it helps,

Andreu

Former Member
0 Kudos

Equal or Nequal cos if I put your code the program finishes in sm50...

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks a lot.

It works

A question about the routines in the update rules.

At which step these routines for filling key fig with data are executed? At the row by row filling of the fact table?

Former Member
0 Kudos

Hi Roberto,

update rules works on each entire data package in start routine, row by row in single update rules and AFTER successful closing all this procedure, system insert records in fact table.

Oh, another thing...

If you want to debug (after loading process) your update/transfer rules, it's enough to right-click on 'data package' in monitor screen and execute 'simulate update'...enjoy your debug !!!

Hope it helps !

Bye,

Roberto