SAP and ABAP Memory总结
SAP内存使用SET/GET parameters方法;
GET PARAMETER ID 'MAT' field p_matnr.
ABAP内存使用 EXPORT 和 IMPORT 方法;
import p_matnr = p_matnr from memory id 'ZTESTMAT'
SAP内存可以被所有的主session访问,内存数据可以在同一个session中不同程序之间,或者不同session之间共享数据;
ABAP内存只能在同个session的不同程序之间共享数据;
SAP内存在整个终端session时间内都有效;
ABAP内存只能在一个session时间内有效;
SAP内存用于屏幕默认值输入;
ABAP内存用于模块之间传替数据
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
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.
The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
The contents of the ABAP/4 memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
EXPORT ITAB TO MEMORY ID 'TD' (ID is the name of memory, you don't need to create it ).
IMPORT ITAB FROM MEMORY ID 'TD'
EXPORT ITAB TO MEMORY ID 'TD'
IMPORT ITAB FROM MEMORY ID 'TD'
parameters PL_BUKRS like VBRK-BUKRS memory id P_BUKRS default '1000'.
select-options PI_KUNRG for VBRK-KUNRG.
select-options PI_FKDAT for VBRK-FKDAT.
select-options PI_VBELN for VBRK-VBELN.
select-options PI_VGBEL for VBRP-VGBEL.
selection-screen end of block b1.
SAP and ABAP Memory总结相关推荐
- 程序间数据共享与传递(3):EXPORT/IMPORT、SAP/ABAP Memory
ABAP Memory(同一用户的同一窗口Session) l 保存数据 EXPORT[FROM ] [FROM ] ... TO MEMORY ID <</span>key&g ...
- 程序间数据共享与传递(1):EXPORT/IMPORT、SAP/ABAP Memory
EXPORT 语句 EXPORT {p1 = dobj1 p2 = dobj2 ...} | {p1 FROM dobj1 p2 FROM dobj2 ...} | (ptab) TO | { ME ...
- ABAP Memory/SAP Memory/Shared Buffer/Database
ABAP 提供了IMPORT/EXPORT 和 SET / GET PARAMETER 语句,可对用户内存/服务器内存/数据库进行存储和访问.不过可能很多人对此还不是很了解,下面我们通过实例来测试它们 ...
- SAP Memory ABAP Memory超级详细解析
以前做enhancement的时候用过parameter id 和 memory id, 但很多其他语法用法我是没接触过的, 今天看了Palm同鞋做的文档SAP Memory & ABAP M ...
- 如何在 SAP BTP ABAP 编程环境里直接调用 ABAP On-Premises 系统的 RFC 函数
首先登录 ABAP On-Premises 系统,运行事物码:aco_proxy,为 RFC 函数 RFC_SYSTEM_INFO 和 RFC_READ_TABLE, 生成代理类元数据,格式为 xml ...
- 我的第一个SAP PROXY ABAP Program(SAP PO 开发五)
登陆PO服务器,启动JAVA客户端三步(SAP PO 开发一) 搭建一个WebService接口环境(SAP PO 开发 二) 用SAP PO连通一个WebService接口(SAP PO 开发 三) ...
- 程序间数据共享与传递(2):EXPORT/IMPORT、SAP/ABAP Memory
IMPORT语句 IMPORT {p1 = dobj1 p2 = dobj2 ...} | {p1 TO dobj1 p2 TO dobj2 ...} | (ptab) FROM | { MEMOR ...
- SAP中ABAP格式与JSON格式互转方法研究
一.JSON概念 JSON(JavaScript Object Notation) 是一种轻量级的 数据交换 格式. JSON数据格式示例: { "学生": [ {"姓名 ...
- ABAP memory中的Export和Import
可以用于SUBMIT方式调用其他ABAP程序后,数据只能通过某个透明表暂存,在由主程序查询透明表取得结果的情况, 用memory中的Export和Import的好处是不用在通过透明表转数据了,先把子程 ...
最新文章
- 一起谈.NET技术,OnLoad与Page_Load的差异分析
- [置顶] 【C#】 Socket通讯客户端程序
- pyppeteer有java版本吗_Pyppeteer中文文档_序言_安装_基本使用及注意事项
- 云服务器显示隐藏文件,云服务器显示隐藏文件
- Python输出当前时间
- VMware 安装LINUX系统(一)
- datagrid 什么时候结束编辑_小规模纳税人免税政策什么时候结束?有答复了
- 数值类型小数点后是否可以接零问题
- android-x86 下载地址
- 谷粒学院【网上教育】总结
- 人物-李彦宏:李彦宏
- Java教程(一)---JDK和Maven安装配置
- 量化投资知识,量化交易
- 机械设计:机械加工中获得工件尺寸精度的常用方法!
- 基于BP神经网络PID控制+Simulink仿真
- 如何给程序添加数字签名 sign
- 渗透测试成功的8个关键
- Matlab使用-meshgrid函数(网格矩阵)
- 非常时期的情人节,只能云表白了
- 获取文件哈希值_图解:什么是哈希?
热门文章
- 你是别人眼中的废物产品经理吗?
- 《Linux内核原理与分析》第三周作业
- 10.19文件管理课程笔记
- Git与Github操作指南(入门)
- shell中trap捕捉到信号的处理
- 期望文件系统格式在“1”到“4”之间;发现格式“6”
- java基础知识回顾之java Thread类学习(七)--java多线程安全问题(死锁)
- iptables中文man文档
- ubuntu apache 完全删除
- 理清竞争关系与互补关系,转自“XIAOTIE”