07-29-2005 8:51 AM
Hi
I work in EBP system, and i made a specific work in LBBP_POCF0o program. It is in the displaying items of a purchase order.
This is what i done:
LOOP AT t_screen_items WHERE del_ind NE 'X'.
w_old_total = w_old_total + t_screen_items-value.
CLEAR:t_screen_items.
ENDLOOP.
loop at gt_item where del_ind ne 'X'.
w_new_total = w_new_total +
( gt_item-GROSS_PRICE * gt_item-quantity ).
clear: gt_item.
endloop.
if w_new_total GT w_old_total.
MESSAGE I001(ZBBP_PO) WITH
'elle possède un montant supérieur'
' à celui déterminé intialement.'
'Veuillez modifier la commande.'.
MOVE 'X' TO w_checksum_flag.
endif.
My problem is that if i use the elevator at the screen, the system is looping only at the first element visible on the screen, so the "LOOP AT t_screen_items" is wrong. i don't understand why the sytem doesn't count all the elements of the internal table t_screen_items...
Thank you for your help.
07-29-2005 9:01 AM
I dont seem to understand ur requirements clearly. Pls be more clear.
07-29-2005 3:54 PM
Well, i will try to be more clearly...
My problem is very suprising..In the purchase order screen, if there's more than 10 items, there's an elevator (or ascencor) to permit displaying the items which are hidden. And so, when i use the elevator, and when i want to see the details of the item, the "loop at t_item_screens" only begins at the first item visible. For exemple, if i have 13 items, i want to see the 11th item, i have to use the elevator, and then in the "loop at t_item_screens", the loop will do only 3 times the loop, it will begin only from the 11th item... The loop won't begin at the first element.... I really don't understand.
Sorry if i'm not clearly... Anyway, thank you for your help.