Skip to Content
author's profile photo
Former Member

Write Statement

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Apr 20, 2004 at 05:37 PM

    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 comment
    10|10000 characters needed characters exceeded