Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Report output

Former Member
0 Kudos

Hi,

Can you please help me in showing the net shell in my report outpot.

MENGE (Quantity)

25000

20000

- 20000

0 -


> This raw should be added since there total is = 0

100000

Thanks.

1 ACCEPTED SOLUTION

mahaboob_pathan
Contributor
0 Kudos

REPORT zk_test10.

TABLES:ekpo.

SELECT-OPTIONS:s_ebeln FOR ekpo-ebeln.

DATA:i_ekpo TYPE ekpo OCCURS 0 WITH HEADER LINE.

SELECT ebeln

menge

FROM ekpo

INTO CORRESPONDING FIELDS OF TABLE i_ekpo

WHERE ebeln IN s_ebeln.

LOOP AT i_ekpo.

  • WRITE:/ i_ekpo-menge.

IF sy-tabix = 5.

WRITE:/ 'total = 0'.

ENDIF.

WRITE:/ i_ekpo-menge.

ENDLOOP.

2 REPLIES 2

Former Member
0 Kudos

any suggestions please

mahaboob_pathan
Contributor
0 Kudos

REPORT zk_test10.

TABLES:ekpo.

SELECT-OPTIONS:s_ebeln FOR ekpo-ebeln.

DATA:i_ekpo TYPE ekpo OCCURS 0 WITH HEADER LINE.

SELECT ebeln

menge

FROM ekpo

INTO CORRESPONDING FIELDS OF TABLE i_ekpo

WHERE ebeln IN s_ebeln.

LOOP AT i_ekpo.

  • WRITE:/ i_ekpo-menge.

IF sy-tabix = 5.

WRITE:/ 'total = 0'.

ENDIF.

WRITE:/ i_ekpo-menge.

ENDLOOP.