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

Regarding Aging Report

Former Member
0 Likes
992

Hi,

In one of My report is using for calculating the age for material.In that report first i am selecting the all quantites from MARD table then for each material i am calculating the quantity from MCHB table fnally i am calculating the age and calculating the quantity for other columns like MARD(qty) - MCHB(Qty) and it will display in other columns.

But My problem is when we executed the report at the same time if i ran the T.Code for MM1B for transfer the goods by using Movement type 311 that time i got negative values in other columns.

In debugg mode i have observed following points.

1.After fetching the MARD qty for XXXXX material(Ex :100) and put into one internal table,if you transfer the goods by using Movement type 311 then if you fetch the data from MCHB table and do the calculation it will get the negative value .

Could you please tell me how to avoid the these negattive values.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
958

Hello

And why you executed the report at the same time if i run the T.Code for MB1B ?

First do transfer the goods, but then form report. All values will be positive.

Hello

And why you executed the report at the same time if i run the T.Code for MB1B ?

First do transfer the goods, but then form report. All values will be positive.

6 REPLIES 6
Read only

Former Member
0 Likes
959

Hello

And why you executed the report at the same time if i run the T.Code for MB1B ?

First do transfer the goods, but then form report. All values will be positive.

Read only

0 Likes
958

Vipin,

As Dzed mentioned you can avoid running the report when MB1B is running.

Just check if you can put a validation in the zprogram which checks if MB1B transaction is running,if running give an error message "Report can't be executed as MB1B is under execution currently" else as usually carry on executing the report.

May be there will be a field which lets us know whether a transaction is under execution or not which can be used in the above said validation.

K.Kiran.

Read only

0 Likes
958

Hi,

Thanks for your response.That report it will take nearly 2 Hrs time to execute at that same time some users to do the these transfer....

Read only

0 Likes
958

Thanks Kiran,

Could you please tell me what is that field for validation.

Read only

0 Likes
958

Vipin,

I guess it is SY-CALLD.But the thing is how to find that MB1B is under execution,may be a Basis Guy can help you with some inputs,not so sure.

K.Kiran.

Read only

Former Member
0 Likes
958

hi nipin

i got to prepare a report for finding material age.

could you please help me which tables and fields i have to check for?

thanks&regards

deepika.