‎2006 Apr 27 4:41 PM
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.
‎2006 Apr 27 4:48 PM
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
‎2006 Apr 27 4:48 PM
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
‎2006 Apr 27 4:58 PM
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
‎2006 Apr 27 5:53 PM
Hi
Thanks.
It is not ALV, anyhow thanks for the responses. i'll work on it.
arjun