‎2011 Jun 23 12:40 PM
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.
‎2011 Jun 23 1:26 PM
Try to use export and import parameters. mighe be your sessions are external.
‎2011 Jun 23 3:29 PM
it wont work as this opens an exteral session and export import is ABAP memory which works for internal session.
‎2011 Jun 23 3:58 PM
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]
‎2011 Jun 23 3:54 PM
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