Skip to Content
0
Former Member
Oct 12, 2006 at 08:01 AM

Logic

19 Views

Hello,

In ALV I am trying to move a text to a particular field only once in single column.

I want to display the text only once LV_COUNTER = 6,,but it gets displayed here four times like LV_COUNTER = 6,

LV_COUNTER = 7,LV_COUNTER = 8,LV_COUNTER = 9

How to change the code here....

IF LV_COUNTER = 6.

MOVE TEXT-015 TO WA_BPSTAB-MONDAY.

ENDIF.

IF LV_COUNTER = 10.

MOVE TEXT-005 TO WA_BPSTAB-MONDAY.

MOVE TEXT-006 TO WA_BPSTAB-TUESDAY.

MOVE TEXT-007 TO WA_BPSTAB-WEDNESDAY.

MOVE TEXT-008 TO WA_BPSTAB-THURSDAY.

MOVE TEXT-009 TO WA_BPSTAB-FRIDAY.

MOVE TEXT-010 TO WA_BPSTAB-SATURDAY.

MOVE TEXT-012 TO WA_BPSTAB-SUNDAY.

ENDIF.