‎2010 Jun 09 3:59 PM
Hi,
The situation is like this - I have some values in table control and i do the background processing on selected records then since the selected records are processed in bakground job so those records should no more appear in the screen now ....this was happening when i tried without background job..so for this background i put 'refresh' which was able to not let the processed record appear in the screen. but i dont want the refresh button......
how to let the table control get refershed after the background job is over so that the processed record will not appear after the job completion.
thx,
m
Moderator message: please use more descriptive subject lines from now on.
Edited by: Thomas Zloch on Jun 9, 2010 5:00 PM
‎2010 Jun 09 5:31 PM
At the time you submit the background process, you could delete the data row(s) and refresh your display. Or, show a status indicating that a job has been submitted. Sounds like your background job is running a while...
I have something similar in SALV. When the users fires the background job, I put out a message, change the status to in progress, and it stays that way, regardless how many times the user presses refresh, until my screen close and new data retrieval (from refresh button) for the display finds the data updated.
‎2010 Jun 09 8:37 PM
in PBO build your new internal table values.
Check whether any change has happened to any of the records existing in the internal table.
@breakpoint - i agree with you, but what if the background process fails for the particular record ?
Edited by: Keshav.T on Jun 10, 2010 1:13 AM
‎2010 Jun 09 10:29 PM
Can't you replace the table control with an ALV grid? I think this would be possible there... I recall at least several posts regarding the refresh, including automated (e.g. timed) one.
‎2010 Jun 14 5:35 PM
‎2010 Jun 15 4:56 AM
Hi,
in this case u can use auto refresh option...
Thanks & Regards,
Rahul Kanth Reddy
‎2010 Jun 15 5:05 AM
Hi,
try this: after you submit a job call aRFC (asynchronous RFC) function module. And in this FM check the job status from TBTCO table and wait for the job to complete. Once job completes exit the FM. SAP will call the subroutine 'REFRESH' once FM completes and in the subroutine you write logic to refresh the screen.
START-OF-SELECTION.
submit job.
CALL FUNCTION 'ZKUM_TEST' DESTINATION 'NONE' STARTING NEW TASK 'TEST'
PERFORMING REFRESH ON END OF TASK
EXPORTING JOB_NAME = 'TEST'.
AT USER-COMMAND.
sy-lsind = 0.
IF SY-UCOM EQ ''.
write logic to refresh the
ENDIF.
FORM REFRESH USING P_C type clike.
set USER-COMMAND 'REFRESH'.
ENDFORM.
-