Skip to Content
0
Former Member
Feb 09, 2012 at 04:45 AM

Questions for "Do.. varying statement".

447 Views

Hi all.

I have a problem.

I want upgrade system from SAP R/3 Enterprise to EHP4 FOR SAP ERP 6.0 / NW7.01.

I have a work area with some field

Data: begin of work_area,
   LA01 type c value "01",
   LB01 type c value "02",
   LA02 type c value "11",
   LB02 type c value "12",
   LA03 type c value "21",
   LB03 type c value "22",
end of work_area.

data:begin of work_area2,
   LA01 like work_area-LA01,
   LB01 like work_area-LB01,
end of work_area2.

** In old system**
Do 2 times.
   varying work_area2 from work_area-la01 next work_area-la02.
Enddo.

***In new system***
Do 2 times.
   varying work_area2-la01 from work_area-la01 next work_area-la02.
   varying work_area2-lb01 from work_area-lb01 next work_area-lb02.
Enddo.

I don't want use many varying statement in new system.

Can you help me some solutions?

Thanks.