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

Debugging of Material usage Variance

Former Member
0 Likes
1,104

Hi All,

We have a Z report for Monthly Material Usage Variance for reporting.

The SAP Material Variance report is not calculating the Material Usage Variance Quantity & Value correctly for production order that have a target quantity and actual quantity that are equal to each other. In this case, the MUV quantity should be equal to 0. Instead a MUV Quantity is calculated and this results in a MUV value being calculated.

I would like to do the debugging.

I am new to SAP ABAP. Kindly, explain me what steps should I take to proceed.

Please give your suggestions.

Quick response will be appreciated <REMOVED BY MODERATOR>

Thanks & Regards

Edited by: Alvaro Tejada Galindo on Apr 4, 2008 5:48 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
972

Put a break-point on the statement where MUV is being calculated and then execute the program...it will start the debugger and then herein double click in variables to analyze their values...

Hi All,

We have a Z report for Monthly Material Usage Variance for reporting.

The SAP Material Variance report is not calculating the Material Usage Variance Quantity & Value correctly for production order that have a target quantity and actual quantity that are equal to each other. In this case, the MUV quantity should be equal to 0. Instead a MUV Quantity is calculated and this results in a MUV value being calculated.

I would like to do the debugging.

I am new to SAP ABAP. Kindly, explain me what steps should I take to proceed.

Please give your suggestions.

Quick response will be appreciated <REMOVED BY MODERATOR>

Thanks & Regards

Edited by: Alvaro Tejada Galindo on Apr 4, 2008 5:48 PM

5 REPLIES 5
Read only

Former Member
0 Likes
972

hi execute (f8) the report ...

then give /h in the command bar...it will go to the debugger..

or dolike this..

execute the report and then go to menu bar system->utilities->debug abap

regards,

venkat

Read only

Former Member
0 Likes
973

Put a break-point on the statement where MUV is being calculated and then execute the program...it will start the debugger and then herein double click in variables to analyze their values...

Read only

0 Likes
972

Hi Venkat & Amiya,

Thanks for your quick response.

I am not able to execute the report right now, as this is a month end report and executed in background on the month end only (on 30th or 31st of every month).

Kindly, let me know, is there any other way to find the bug in the program in this scenario or is there any way to execute the report in between periods.

Quick response will be appreciated.

Thanks & Regards.

Read only

0 Likes
972

If it's a report which is executed in the background ..then do as follows:

1)Put breakpoints at the places told to you by me before.

2) Go to SE37 and get the job name which executes this program.

3)Check it and in command field type jdbg and press enter the debugger will be started.

Now double click the variables and analyze the values...

Read only

Former Member
0 Likes
972

Hi,

Goto SE37,and change the job status to forground mode and u can change the values of the date parameters to any date in debugging mode. Put the date as 30 or 31st and execute in debugging mode.

Regards,

Reena