cancel
Showing results for 
Search instead for 
Did you mean: 

Background Process doesn't work

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

The FuBa had to be from type remote. I see it after i call SM58.

Sandra_Rossi
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Sandra_Rossi
Active Contributor
0 Kudos

[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.

Former Member
0 Kudos

Moved from ABAP General to WDA forum...

Can you explain more about the WDA side and why you want to spawn background processing from it?

Cheers,

Julius

Edited by: Julius Bussche on Aug 16, 2009 11:15 PM

Sandra_Rossi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Sandra,

thanks for your replay. I don't want to submit a background job. I want to call the Function within my Web Dynpro application in order to process a background process.

regrads,

Sid