I am checking for various condition types through this code for various orders. Each order has a different set of condition records.
My requirement: when a order has a condition record for the condition type 'ZAGR' (AGREED PRICE) it should execute that block and ignore all the other condition types for that record and directly go to 'ZBET'to fetch the final amount
How to incorporate that piece code here?
The code goes like this...
loop at cdata into zcdata where
knumv = bodyitabtotal-knumv.
when 'ZRAT' OR 'ZFLE' OR 'ZRCR' OR 'ZFIX'.
concatenate zzkeyword zpofield
separated by space
MOVE zcdata-kbetr to w_accitab-zrate.
MOVE zcdata-kwert to w_accitab-zsubtotal.
if zcdata-kbetr = ' ' AND zcdata-kwert = ' '.
MOVE ' ' TO w_accitab-zamount.
MOVE zcdata-kwert to w_accitab-zamount.