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

material calculation

Former Member
0 Likes
507

Hi!

I need to modify a report, which gives the material quantity with the combination of plant, storage location etc.,

What i have been asked to do is, after getting the output,i need to put a text box at each material quantity, per each record. i need to enter some value in that each text item and after that i have to calculate the difference between the two in the next screen.

can anybody help in this regard in logic?

thanks

-arjun.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
476

Arjun,

I hope you are dealing with a editable ALV Grid.

If so, you can add a editable column next to the material qty field and also add a difference column. When the user enters, you can capture the data either in the data changed event, or data change finished event. In this data change finished would be easier to handle.

Now loop at the internal table, and update the difference column, and do a refresh of the ALV.

Regards,

Ravi

Note :Please mark all the helpful answers

3 REPLIES 3
Read only

Former Member
0 Likes
477

Arjun,

I hope you are dealing with a editable ALV Grid.

If so, you can add a editable column next to the material qty field and also add a difference column. When the user enters, you can capture the data either in the data changed event, or data change finished event. In this data change finished would be easier to handle.

Now loop at the internal table, and update the difference column, and do a refresh of the ALV.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
476

Hi

As per my understanding to your problem,

if u r not using ALV, add a text field at each material quantity column, enter the number.

and with Read line option you can do the diference calculation for each row and output the differnece in the next screen by creating a menu option.

for eg:

Data: D type i.

  • loop at the internal table and write the below

D = D + 1.

Read line D index sy-tabix.

...

and write the output(difference) record wise, in new page.

regs

Rakesh

Read only

Former Member
0 Likes
476

Hi

Thanks.

It is not ALV, anyhow thanks for the responses. i'll work on it.

arjun