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

diff between internal session and external session

Former Member
0 Likes
1,270

Hi,

i would like to know the difference between internal and external session and

how these session technically handle.

10 REPLIES 10
Read only

Former Member
0 Likes
1,137

u mean to say BDC...Internal Session is Call Transaction Method whereas External session is Session method.....Means call transaction executes data and posts into SAP. Session method needs to be run from SM35 and then gets posted into SAP.

Read only

Former Member
0 Likes
1,137

1. return code - for session No , for call transaction yes

2. database update - for session synchronous,for call transaction asynchronous/synchronous

3. processing - for session -time-dalayed , for call transaction - immediately

4. transactions - for session - more than one,for call transaction only one

5. error log - for session -will be created,for call transaction- will not be created

hope this will help you in understanding the differences between the sessions

Read only

Former Member
0 Likes
1,137

Hi,

May be you are asking about SAP memory and ABAP Memory,

SAP Memory - Available over the sessions

Use Memory ID's

ABAP Memory - Available in current session only Example : funcntion modules.

Read only

0 Likes
1,137

Hi Rao,

exactly i wanted to know about that only so please let me know that

a user can have up to six session. so i am getting confuse for that only whether

one session or all six abap session are internal session .so which one called external session .

thanks

Rao

Read only

Former Member
0 Likes
1,137

let me know about which sessions you want to know. reward points if the above details that i provided are helpful

Read only

0 Likes
1,137

HI Kumar,

Exactly i want to know about ABAP Session so because we can have upto

six session so which called internal session and which one external and how data

can be pass to them.

Thanks

Read only

Former Member
0 Likes
1,137

hi,,

internal session means from sap screen you have option called create session.

external session means you have to go for login to the system again whcih is related external session

Read only

0 Likes
1,137

Hi Reddy,

I want to know about that only so please let me know in detail because

we can have upto six session ,so does all these six sessions are called internal

session . how can we pass data to internal session ( import and export).So what

about Set and Get parameters.

Thanks

Reddy

Read only

Former Member
0 Likes
1,137

hi,,

internal session ( means ABAP/4 memory ) when u r using call transaction or u can write t code in command field in that case internal session can genrate means from sap screen you have option called create session.

external session (means sap memory) whenever u login to sap in that case external session genrate or xternal session means you have to go for login to the system again whcih is related external session .

regard

deepak

Read only

Former Member
0 Likes
1,137

Hi,

In general each user can open up to six R/3 windows in a single SAPgui session. Each of these windows corresponds to a session on the application server with its own area of shared memory.

The first application program that you start in a session opens an internal session within the main session. The internal session has a memory area that contains the ABAP program and its associated data. When the program calls external routines (methods, subroutines or function modules) their main program and working data are also loaded into the memory area of the internal session.

Only one internal session is ever active. If the active application program calls a further application program, the system opens another internal session. Here, there are two possible cases: If the second program does not return control to the calling program when it has finished running, the called program replaces the calling program in the internal session. The contents of the memory of the calling program are deleted. If the second program does return control to the calling program when it has finished running, the session of the called program is not deleted. Instead, it becomes inactive, and its memory contents are placed on a stack.

The memory area of each session contains an area called ABAP memory. ABAP memory is available to all internal sessions. ABAP programs can use the EXPORT and IMPORT statements to access it. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.

All ABAP programs can also access the SAP memory. This is a memory area to which all sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters are often used to preassign values to input fields. You can set them individually for users, or globally according to the flow of an application program. SAP memory is the only connection between the different sessions within a SAPgui.

Check the below links for more information...

http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm

I hope this answers yor question

Regards,

Vara

I hope this solves your quesiton....