2009 Feb 13 3:29 PM
Hello Gurus,
I am trying to work on situation where I have to wait for 2 seconds time in a loop until a event is created. I am using following looping but it does not work at all. The program exists as soon as it encounters loop.
loop.
g_ptsevent = 'Start'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = g_ptsobject
objkey = g_ptsobjid
event = g_ptsevent
IMPORTING
event_id = g_idevent
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
if v_idevent is initial.
WAIT UP TO 2 SECONDS.
else.
exit.
endif.
endloop.Regards,
Rajesh.
2009 Feb 13 3:32 PM
should
if v_idevent is initial.rather be
if g_idevent is initial.?
should
if v_idevent is initial.rather be
if g_idevent is initial.?
2009 Feb 13 3:32 PM
should
if v_idevent is initial.rather be
if g_idevent is initial.?
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |