on 08-16-2009 7:07 PM
Hi Everybody,
i want to change some data on a database table through a background process but the data will not be changed:
I am working on IDES ECC 6.0 (2005)
CALL FUNCTION 'MY_BACKGROUNDD_PROCESS'
IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE'
EXPORTING
....
CALL FUNCTION 'START_OF_BACKGROUNDTASK'
EXPORTING
STARTDATE = SY-DATUM
STARTTIME = l_time
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
COMMIT WORK.
ENDIF.
If i call the function without: " IN BACKGROUND TASK AS SEPARATE UNIT DESTINATION 'NONE' " it works fine.
What could be the problem?
regards,
Sid
The FuBa had to be from type remote. I see it after i call SM58.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, defining a FM as RFC-enabled is a basic RFC requirement.
Note that when you call a RFC-DISabled FM "IN BACKGROUND TASK", you get a "hidden" dump CALL_FUNCTION_NOT_REMOTE : I mean you don't see the dump listing appear automatically on your screen as it happens with synchronous (sRFC) or asynchronous RFC (aRFC). You have to search for it in ST22.
Think about it...
If you create a task for the system in a seperate processing "unit", then when you start a task (which one?) back in your calling program... how would it know that you are wanting to start "the other one" and which "task" is that?
Cheers,
Julius
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Julius,
i am new to abap so i am trying to find a solution in SDN. I try it also without 'IN A SEPERATE UNIT' but without success. Is it necessary to call the function: 'START_OF_BACKGROUNDTASK' after it?
CALL FUNCTION 'MY_BACKGROUND_PROCESS'
IN BACKGROUND TASK DESTINATION 'NONE'
EXPORTING
....
Could you please give me an example how i can call my fuction 'MY_BACKGROUND_PROCESS' as a background task?
Thanks in advance!
Sid
[START_OF_BACKGROUNDTASK is explained in sap library|http://help.sap.com/saphelp_nw04/helpdata/EN/22/042585488911d189490000e829fbbd/frameset.htm]
You need it if you want to run the tRFC calls before the COMMIT WORK is reached.
It seems that you try to use some complex parts of ABAP, so maybe you'll succeed finally, but do you understand what you are doing? Why do you want to use tRFC, is it really needed ? As I don't know web dynpros, maybe you're right, but you should better post to the web dynpro forum, and explain more your web dynpro context.
As you don't mention RFC, I guess you just want to submit a background job (SM37) : you may only run a report with SUBMIT ... VIA JOB name NUMBER number (use also FM JOB_OPEN and JOB_CLOSE), and in this report you may call MY_BACKGROUNDD_PROCESS. You can find information about this topic in ABAP documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.