Application Development 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: 

Behaviour of CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE'

0 Kudos

As per ABAP help documentation, the statement CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' should create a new main session in same user session.The behaviour is wrong as per documentation.

But current behaviour:

The statement CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' is creating a new user session.

Any reason?

5 REPLIES 5

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

I cross checked to see & i find a subtle alteration to your statement:)

An excerpt from SAP documentation :

When the destination NONE is used, a new main session is opened for the current user session

Source: [http://help.sap.com/saphelp_nw04/helpdata/en/3d/a846df17c1014e928626637ab06838/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/3d/a846df17c1014e928626637ab06838/content.htm]

It nowhere states "in the same user session".

BR,

Suhas

0 Kudos

current user session means same user session.

0 Kudos

Hello,

I feel that there is a difference in these 2 statements:

When the destination NONE is used, a new main session is opened for the current user session

CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' should create a new main session in same user session.

BR,

Suhas

0 Kudos

I changed the statement now:

As per ABAP help documentation, the statement CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' should create a new main session in current user session.The behaviour is wrong as per documentation.

But current behaviour:

The statement CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' is creating a new user session.

you check this behaviour using SM04 transaction

Any reason?

Edited by: Prakash PC on Mar 12, 2010 12:25 PM

Former Member
0 Kudos

Hi Prakash,

I'd agree with Suhas, that you're reading the documentation wrong. Here's your quote:

As per ABAP help documentation, the statement CALL FUNCTION fname STARTING NEW TASK DESTINATION 'NONE' should create a new main session in current user session.

If you look at the help, you can see that it says:

When the destination NONE is used, a new main session is opened for the current user session.

Do you see the difference? Also, note that in this context main session basically means that we're talking about a new external session:

Each task ID defines a separate RFC connection with its own context, meaning that, in the case of repeated function module calls of the same task ID, the global data of the relevant function group can be accessed, if the connection still exists.

In dialog processing, note that the maximum number of six main sessions cannot be exceeded, else an error message is displayed.

If you're still in doubt, check out the online ABAP documentation for [CALL FUNCTION - STARTING NEW TASK|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_STARTING.htm]. So I'd say the documentation is in line with the actual behavior.

Cheers, harald