cancel
Showing results for 
Search instead for 
Did you mean: 

Write Statement

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChristianFi
Active Participant
0 Kudos

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