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

SAP & ABAP Memory

Former Member
0 Likes
889

Hi Friends,

I am using Set parameter id for controlling area in FI in my abap program.

it is working fine in my user id.

when it is run on different user id in the same client, it is not accepting it . its giving me an error.

can any one please share information on this.

Thanks in advance,

Roby

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
840

Parameter Id is shared between different sessions of same user login.

But what exactly the error you are facing.

Regards,

Wasim Ahmed

Parameter Id is shared between different sessions of same user login.

But what exactly the error you are facing.

Regards,

Wasim Ahmed

7 REPLIES 7
Read only

Manohar2u
Active Contributor
0 Likes
840

Hi Roby

Notes to follow while using set parameter id.

The global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program.

Do not use SAP memory as a temporary storage area, since parallel sessions belonging to the same user all use the same memory area.

Only store data of the types C, N, D, and T, as well as structures that consist of these types, in the SAP Memory.

You can create new parameter IDs using the ABAP Workbench.

Regds

Manohar

Message was edited by: Manohar Reddy

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
840

what is the error?

Regards,

Rich Heilman

Read only

dani_mn
Active Contributor
0 Likes
841

Parameter Id is shared between different sessions of same user login.

But what exactly the error you are facing.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
840

The problem is when i run the program in the same client from my user id , it is working , but when i run the same program for the same client from different user id , it is not setting the value that i have set using the parameter id .

problem in detail:

in my program i am setting a variable using parameter id.

when i run the program it creates two sessions .

when i run the first session it sets the value.

when i run the second session its not setting the value.

and more over if the run the program on different user logon in the same client , it is not at all setting the value.

please let me know how to rectify it .

Thanks in advance.

Roby

Read only

Manohar2u
Active Contributor
0 Likes
840

Roby,

Does this field has parameter id?

Could you check by pressing F1 & F9, can see parameter id value there.

Could you tell the field name?

Regds

Manohar

Read only

0 Likes
840

What i understand is that you are setting the value of Controlling area by running the program using your user id and then you are trying to see whether the value that you had set is available in SAP memory by logging onto a different userid.Well,my friend if this is what you are doing then this is what is happening.

1 ... You logging onto the SAP system and setting the value will remain in SAP memory as long as your userid is still active. i.e. if you log off from your used if the memory area that you have set is going to be cleared be it SAP memory or ABAP memory.

2. Check the same by logging on to the two userid's at the same time and try to access the global value in either of the sessions.If it's a parameter ID then u will definitely be able to see it in both the userid's.

Check for one more thing.See if you have put any conditional check in your program to set the parameter ID.

Read only

sridhar_k1
Active Contributor
0 Likes
840

Check parameters in ur user profile, if the parameter ur trying to set is there, and it's not in the other user's profile, add it and execute the program, see if it works..

Regards

Sridahr