‎2006 Nov 03 8:32 AM
Hi guys,
is there a way to determine whether a process is in update task ? Simular to SY-BATCH, but for in update task. I haven't seen something like that.
I have a problem in update task where a screen is called, and it is causing a dump.
regards,
Hans
‎2006 Nov 03 12:43 PM
*Am I running in a update process?
CALL FUNCTION 'TH_IN_UPDATE_TASK'
IMPORTING
in_update_task = lv_update_process.
Regards,
Thomas
‎2006 Nov 03 8:46 AM
‎2006 Nov 03 8:54 AM
Hi Pankaj,
i dont think it's the solution. Because the sy-ucomm is depending on the program. 'BU' means sometimes buchen in german (or save). And i must call the screen after sy-ucomm=BU for online programs.
Hans
‎2006 Nov 03 11:02 AM
‎2006 Nov 03 11:22 AM
Hi hans,
1. i just tested one case.
2. If we call a FM, in update task,
<b> then the system variable SY-CPROG
will have the value
RSM13000</b>
(since it is called by some system program)
3. If we call this fm in normal mode thru some program,
sy-cprog will have the program name.
4. If we call this fm thru SE37,
then sy-cprog will contain
RS_TESTFRAME_CALL.
regards,
amit m.
‎2006 Nov 03 11:33 AM
Hi again,
<b>1. SY-CALLD</b>
2. it will be 'X' if fm is called directly.
3. It will be blank, if called in update task.
regards,
amit m.
‎2006 Nov 03 12:43 PM
*Am I running in a update process?
CALL FUNCTION 'TH_IN_UPDATE_TASK'
IMPORTING
in_update_task = lv_update_process.
Regards,
Thomas
‎2007 Jan 25 9:44 PM
‎2007 Jan 26 6:35 AM
Hi Dan,
the solution was function module TH_IN_UPDATE_TASK
Hans