Skip to Content
0
Former Member
Apr 21, 2008 at 02:11 PM

Grouping

16 Views

Hello all,

can someone please let me know what I am doing wrong.

Problem:

at loop the value of wa_delivery-rbtxt always changes from *HAZ* to ********.

Thus the case statements could not be executed.

What is wrong with my code and how can I change it that the case statements would be executed as I want.

LOOP AT GT_DELIVERY INTO WA_DELIVERY.

AT NEW VBELN.

**Count orders according to storage condition (section 1)

CASE WA_DELIVERY-RBTXT.

WHEN ' *HAZ* '.

ADD 1 TO SC1_ORDER.

AT NEW POSNR.

ADD 1 TO SC1_LINE.

ENDAT.

WHEN 'Storage condition 1'.

ADD 1 TO SC2_ORDER.

AT NEW POSNR.

ADD 1 TO SC2_LINE.

ENDAT.

ENDCASE.

ENDAT.

ENDLOOP.

<REMOVED BY MODERATOR>

Thanks

Blacky.

Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:04 PM