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: 

output right from the start instead of in the bottom

Former Member
0 Kudos
66

Hello Experts!

Is there any a way to write the <b>"results"</b> of some variables from a report

in the upper part instead of in the bottom part as usual.

Generally is there no possibility to place an output of values

which are being evaluated within a loop iteration.

Assume I intend to write quantity not in the end of the list but at the

beginning of the list.

e.g.

Report ..... 

data:  quantity type i, 
          cust-nr type i. 
.. 
LOOP 
write:/ cust-nr , ' has ordered'
quantity = quantity + 1. 
ENDLOOP 
write:/ quantity, 'ustomers didn't order'.

3 REPLIES 3

Former Member
0 Kudos
38

Hi Ilhan,

You could do a simple double loop:

Report ..... 
 
DATA:
  quantity type i, 
  cust-nr  type i. 
.. 
LOOP 
  quantity = quantity + 1. 
ENDLOOP 
write:/ quantity, 'Customers didn't order'.
LOOP 
  write:/ cust-nr , ' has ordered'
ENDLOOP 

Regards,

Rob.

Former Member
0 Kudos
38

Hi

Check the ABAP statement 'BACK' and 'RESERVE'. It will helpful to achieve your requirement.

Regards

Viswa

(Assign points if helpful)

0 Kudos
38

Rob Veenstra and Sundar Viswa many thanks for your quickly reply.

SKIP TO LINE ZEILE n

is exactly what I was looking for.

friendly regards

Ilhan