Hi,
How to use subtract or add operations in write statment.
For example, I want to subtract qty released - qty completed to arrive qty pending, If I execute below code I am getting error.
SELECT * FROM afpo.
WRITE :/ afpo-pgmng - afpo-wemng.
ENDSELECT.
Please guide me.
Regards & Thanks,
BV
ABAP Beginner.
this is not possible.
Define a variable for the calulated output.
data: l_menge like afpo-pgmng.
SELECT * FROM afpo.
l_menge = afpo-pgmng - afpo-wemng
WRITE :/ l_menge.
ENDSELECT.
Christian
Add a comment