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

lossing sap memory data

Former Member
0 Likes
696

i used SET Parameter in executable program.this prog in turns calls badi .In debug mode this badi opens new session as some RFC is triggered prior to badi. now in badi when i try to retrive parameter from sap memory using get parameter it fails.please suggest any other way.

4 REPLIES 4
Read only

kamesh_g
Contributor
0 Likes
657

Try to use export and import parameters. mighe be your sessions are external.

Read only

Former Member
0 Likes
657

it wont work as this opens an exteral session and export import is ABAP memory which works for internal session.

Read only

0 Likes
657

I would try to export the values to MEMORY DATABASE, like the following example.

TABLES INDX.

DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',

F1(4), F2 TYPE P,

BEGIN OF ITAB3 OCCURS 2,

CONT(4),

END OF ITAB3.

  • Before the export, fille the data

  • fields before CLUSTR.

INDX-AEDAT = SY-DATUM.

INDX-USERA = SY-UNAME.

  • Export data.

EXPORT F1 F2 ITAB3 TO DATABASE INDX(ST) ID INDXKEY.

[http://help.sap.com/saphelp_45b/helpdata/en/34/8e73a36df74873e10000009b38f9b8/content.htm]

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
657

Hello,

From the SAP help on SPA/GPA i quote:

In a program, SPA/GPA parameters can be created or assigned values only if a name exists for them in the table TPARA.

Did you maintain that param in TPARA table? If you've maintained check in the debugger if the SPA/GPA is populate:

1. New debugger: New Tool -> Special Tools -> System Areas -> SMEM(SPA-GPA)

2. Old Debugger: Goto -> System Areas -> SAP Memory

BR,

Suhas