cancel
Showing results for 
Search instead for 
Did you mean: 

Advise on how to change values in debugger

egle_silinskiene
Explorer
0 Kudos

Cannot complete procedure for Copying wage type between country groupings. I have a problem that there are no model Wage types for my country grouping (LT). I found a solution to this problem, but I cannot succeed of finishing it. Here is the link to the solution. Could somebody more experienced with ABAP environment help?

http://wiki.scn.sap.com/wiki/display/ERPHCM/Copy+wage+type+between+country+groupings 

I will describe in detail of what I have done:

1. I went into SE38 and set a breakpoint

2. Then I went into OH11, I have selected COPY  and then my country grouping LITHUANIA. At the end of the same screen system tells " system 1 connected to Debugger'.  The debugger started.

3. I then changed the value of a variable SYSTEM from CUS into SAP. I cannot find how to save it and I am not sure I can somehow save it. Can I? It is the first time I even need to work with debugger... The usual SAVE on the top of the screen does not save anything. So I do not close the debugger and try to go into OH11.

If I go to the previously opened session of OH11, I cannot do there anything because the screen is locked by the system saying that " system 1 connected to Debugger'. If I try to open another session and execute OH11 there I cannot do anything also because the tables are locked by me in the previous session.

Accepted Solutions (1)

Accepted Solutions (1)

egle_silinskiene
Explorer
0 Kudos

Ok, I found another solution here:

The solution is to manually create the wage types;

You must manually create wage types in table T512W using MOLGA 99 wage types as reference.

Then in table T52D5, create wage type groups for the country grouping.

In SM31, then assign the wage types to the wage type groups in V_T52D7.

You may also need to update the wage types in tables T511B, T512Z, T512J where necessary.

It would not allow me to modify anything when I access table T52D5 with SE16. Accessing from IMG the systems says "do not change anything. SAP data"

jrg_wulf
Active Contributor
0 Kudos

Hi Egle,

once back to the debugger thing.

You change the value, press enter. Remove the break point (just click on it or press shift+F2)

then press F8. There's no need to close the debugger, the program (OH11) will get the control back from the debugger. The debugger will close automaticly after completing OH11.

When all went well, you will then see the additional button for copying cross country.

As for your single table aproach. If you have to modify T52D5 (usually you don't) you can do so. The message is only a warning.

Don't forget Viewcluster (SM34) V_T52EL if you want to pass results to FI.

Hope you get things right.

Regards - Jörg

egle_silinskiene
Explorer
0 Kudos

I finally have managed to copy via debugger. But once you try the same procedure for the second time, it does not work. The button 'Copy between country grouping' does not appear.  I discovered that I had to logout and login again for it to work. This was making me crazy because for the first time it worked and then it did not. Perhaps there is something else I do now know.

Thank you very much!

Answers (1)

Answers (1)

jrg_wulf
Active Contributor
0 Kudos

Hi Egle,

first things first.

i don't think it is very advisable to hoodwink the system into thinking you're on an sap system.

In order to create new wagetype from scratch, you can use view V_512_t which has the new entry button.

From there you can go through the variuos views of T512W or use V_512W_O.

I think it is to preferred over the suggested way - but nevertheless, here we go.

when you have changed the value of a variable in debugger, you just press enter, than it turns grey again and there you have the new value.

To complete the proceeding, you then simply press F8 (continue) and you will find yourself in OH11 again.

Best regards - Jörg

egle_silinskiene
Explorer
0 Kudos

Hi Jörg,


I have not tried to create new WT so far. So I am replying to your last passage.

I have done exactly like you suggested. I have changed a value, pressed enter and it turned out grey (blue in my case). Then I closed debugger and return to it once more. I see the old value there. If I am not closing the debugger I am having problem continuing with OH11