‎2008 Mar 10 9:33 AM
HI,
can anyone tell me how to find the current loop pass in case of logical db.
As i have to put some condition when cursor goes to GET statement 2nd time..??
Mrunal
‎2008 Mar 10 9:40 AM
‎2008 Mar 10 9:46 AM
‎2008 Mar 10 10:06 AM
Hi,
You could first declare a variable and set it value initially to 0.Then just after the Get statement increment the value by 1.
So when the Get statement is executed for the first time,the value of variable will be 1,when it is executed the 2nd time,the value of variable will be 2 and so on...
Hope it works,
Thanks,
Sandeep.
‎2008 Mar 10 10:09 AM
U need to explicitly handle this in the program.
START-OF-SELECTION.
DATA V_I TYPE I.
Get Event starts
GET PERAS.
V_I = V_I + 1.
IF v_i = 2.
*write the condition ...
ENDIF.
END-OF-SELECTION.
‎2008 May 15 1:19 PM
..Or similarly
DATA count TYPE i VALUE 1.
GET BSEG.
* do something
ADD 1 TO count.
END-OF-SELECTION.