‎2007 Oct 15 1:13 PM
Hi All,
In my current task, I have to change the value of 'ZVEND_PATH' parameter ID. But I am not finding set parameter in the program.
Is there a transaction where I can see the values of this parameter ID.
get parameter id 'ZVEND_PATH' field fpm.
Hardik
‎2007 Oct 15 1:18 PM
you have to use
SET parameter id
and
GET parameter id
see the below information..
SAP memory is a memory area to which all main 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 can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
SAP global memory retains field value through out session.
set parameter id 'MAT' field v_matnr.
get parameter id 'MAT' field v_matnr.
They are stored in table TPARA.
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. 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.
ABAP memory is temporary and values are retained in same LUW.
export itab to memory id 'TEST'.
import itab from memory Id 'TEST'.
Here itab should be declared of same type and length.
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
ABAP Memmory & SAP Memmory
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
HOPE IT WILL HELP U..
Thanks & Regards
ilesh 24x7
‎2007 Oct 15 1:19 PM
Check this:
PARAMETERS: P_VKORG TYPE VKORG MEMORY ID VKO.
SET PARAMETER ID 'VKO' FIELD p_vkorg.
set the value to sap memory under id vko for p_vkorg.
GET PARAMETER ID 'VKO' FIELD p_vkorg1.
get the value from sap memory under id vko to p_vkorg1.
data vkorg type tvko-vkorg.
p_vkorg1 TYPE tvko-vkorg.
initialization.
clear vkorg.
get parameter id VKO field vkorg.
if not vkorg is initial.
p_vkorg1 = vkorg.
endif.
set parameter id: 'VKO' field p_vkorg1.
in the calling program
get parameter id: 'VKO' field p_vkorg.
free memory id: 'VKO'.
it is always necessary to free memory id after setting it.
Please give me reward points...
‎2007 Oct 15 1:19 PM
Hi,
Yoou can see it in the debuging mode, in the debuggin press memory On and look up the memory allocation and memory, there you can see the values
regards
Sudheer
‎2007 Oct 15 1:44 PM
Hi ,
Tkx fo reply.
In my program, there is no statement called SET Parameter. It has only GET Parameter. however if i debug the code it holds 'C:\Data' .
so can somebody pl tell, where and how to find SET Parameter value.
Sudheer,
I switched on the memory, could u pl tell me where to find memory allocation and memory.
Thanks,
Hardik