Google Search - Blog...........

ABAP - Function Modules On Counters Using Function Modules SET_COUNTER, INCREMENT_COUNTER.

DATA NUMBER TYPE I VALUE 5.

CALL FUNCTION 'SET_COUNTER'
EXPORTING
SET_VALUE = NUMBER.

DO 3 TIMES.
CALL FUNCTION 'INCREMENT_COUNTER'.
ENDDO.

CALL FUNCTION 'GET_COUNTER'
IMPORTING
GET_VALUE = NUMBER.

WRITE: / 'After processing NUMBER is :- ', NUMBER.

No comments:

Post a Comment