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

How to get SAP memory and ABAP memory data using function module

Former Member
0 Likes
1,191

Hi All,

I want to extarct data regarding ABAP memory and SAP memory using function module.

Scenario :

I am trying to create customer using transaction FD01.I am calling a BDC for transaction FD01 using ZPROGRAM .After executing ZPROGRAM, parmeter id KUN has the value of the current customer created.I can use that by using set parameter command.

My Issue :

When i execute the the zprogram in two different session at same time and go in the Menu

click on Sap Memory option i see two different values against KUN parameter id .

Steps of how i am trying to create a customer

1) I Execute ZPROGRAM and Put customer 101 (Session 1)

2) Before saving customer 101 i go in Session 2 and execute the same ZPROGRAM and Put customer 102.

Then i go in session 1 and try to save the customer but the issue is that i KUN parameter id i get the value customer 2.

For example customer 101 and 102.

In sap memory it is how as G 102

and L 101.

What does G and L mean.

My requirement is to trap the value 101 .

Currently set parameter id gives me value 102.

So when i execute ZPROGRAM is there any function modules which will list all the SAP memory And ABAP memory values at the time the zprogram is executed .

Thanks & regards,

Chetan

1 ACCEPTED SOLUTION
Read only

Shafiq_Rehman1
Active Contributor
0 Likes
692

There is a table TPARA which stores memory ids. This may be helpful in your case.

1 REPLY 1
Read only

Shafiq_Rehman1
Active Contributor
0 Likes
693

There is a table TPARA which stores memory ids. This may be helpful in your case.