Re: remove data witha condition
Posted: 21.06.12 07:15
Hi,
you can place a loop in front of your store (-Trigger).
variables
numeric n_index
endvariables
setocc "INTRDMT",-1
n_index = $status
while (n_index > 0)
setocc "INTRDMT", n_index
; then your codeblock
if (ISSUED_QTY <= 0)
remocc "INTRDMT", 0
message "No ISSUED QTY is removed."
endif
n_index = n_index - 1
endwhile
if you are on 9.5, you may have a look at the forentity example:
forentity
Defines a loop that processes all the occurrences of an entity.
forentity EntityName
Your Proc Code
endfor
you can place a loop in front of your store (-Trigger).
variables
numeric n_index
endvariables
setocc "INTRDMT",-1
n_index = $status
while (n_index > 0)
setocc "INTRDMT", n_index
; then your codeblock
if (ISSUED_QTY <= 0)
remocc "INTRDMT", 0
message "No ISSUED QTY is removed."
endif
n_index = n_index - 1
endwhile
if you are on 9.5, you may have a look at the forentity example:
forentity
Defines a loop that processes all the occurrences of an entity.
forentity EntityName
Your Proc Code
endfor
This page has no comments.