2007 May 25 12:40 PM
Hi all
Im trying to create an idoc with FM 'IDOC_WRITE_AND_START_INBOUND' but so times im getting time out I would like to do try /catch prevent the time out .
Im with difficulty to code the catch block can any one give some tips to catch the time out.
Thanks and regards
TRY.
... " TRY block (application coding)
'IDOC_WRITE_AND_START_INBOUND'
CATCH cx_... cx_... ...
... " CATCH block (exception handler)
ENDTRY.
2007 May 29 11:15 AM
Hi Luis,
If you use catch CX_ROOT it wil catch anything.
I suppose you have to call the 'IDOC_WRITE_AND_START_INBOUND' again in that catch block.
Regards,
Dirk.
2007 May 29 11:22 AM
Hi Luis,
I'm not sure if it's possible to catch time out, but might work with CX_ROOT.
You can also call SAPGUI_PROGRESS_INDICATOR after every idoc processing, which will reset the timer...however increase the network traffic. This approach is used in BD87.
Best regards,
Peter
2014 Aug 27 9:29 PM
I tried cx_root but it did not catch the time out error.
There was another solution suggested using asynchronous call but it won't work because I have to import parameters.
Apparently there is no way to catch this error.