Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

re: perform new task

Former Member
0 Likes
616

Hi,

CALL FUNCTION ' ' STARTING NEW TASK '001'

PERFORMING f_task_end ON END OF TASK.

I have seen above code in some programs. What is the meaning of the above statement. Where can we use the above statement. Can any body explain.

rgds

p.kp

Hi,

CALL FUNCTION ' ' STARTING NEW TASK '001'

PERFORMING f_task_end ON END OF TASK.

I have seen above code in some programs. What is the meaning of the above statement. Where can we use the above statement. Can any body explain.

rgds

p.kp

3 REPLIES 3
Read only

Former Member
0 Likes
582

STARTING NEW TASK basically executes the function module asynchronously in a new task(LUW). PERFORMING .... will execute the routine f_task_end after this asynchronous call is completed.

Srinivas

Read only

0 Likes
582

Hi srinivas,

See this code

CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK '001' PERFORMING TEST ON END OF TASK.

In the form TEST iam writing just a simple write statement. But iam unable to print the write statement after coming back from transaction mm01.

rgds

p.kp

Read only

0 Likes
582

Hi,

Have you checked the documentation for this statement. Take a look at http://help.sap.com/saphelp_erp2005/helpdata/en/22/0425ac488911d189490000e829fbbd/content.htm.

As it says: <b>Once the called function is completed, the next dialog step in the calling program (such as AT USER-COMMAND) guides the system into the FORM routine that checks for results. </b>

Perhaps some flow logic of your program will be help us to assist you in task at hand.

Regards