SAP ABAP exporting list to memory
2012-07-04 12:04
411 查看
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
submit 关键字的作用就是在程序内部调用一个程序,and return 就是调用report之后,继续返回当前session。那么exporting list to memory的作用是什么呢?
This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN.
首先他必须要和 AND RETURN 一起使用,其次,它的功能是将report产生的list清单,写入ABAP 缓存里。我们可以通过几个有用的Function module 将这些信息读取、展示等。
不多说,给一个例子:ytest_0102 作为主程序,调用ytest0101,程序ytest0101里面的作用就是一个loop,里面用write语句打印出循环索引值。执行的结果证明,通过'LIST_FROM_MEMORY' 'WRITE_LIST'
两个Function module 可以将submit 产生的list 读取并展示。这个例子可以运用到BDC,batch job等批量作业上面。
REPORT ytest_0102.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT ytest0101 EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
结果截图
AND RETURN.
submit 关键字的作用就是在程序内部调用一个程序,and return 就是调用report之后,继续返回当前session。那么exporting list to memory的作用是什么呢?
This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN.
首先他必须要和 AND RETURN 一起使用,其次,它的功能是将report产生的list清单,写入ABAP 缓存里。我们可以通过几个有用的Function module 将这些信息读取、展示等。
不多说,给一个例子:ytest_0102 作为主程序,调用ytest0101,程序ytest0101里面的作用就是一个loop,里面用write语句打印出循环索引值。执行的结果证明,通过'LIST_FROM_MEMORY' 'WRITE_LIST'
两个Function module 可以将submit 产生的list 读取并展示。这个例子可以运用到BDC,batch job等批量作业上面。
REPORT ytest_0102.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT ytest0101 EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
结果截图
相关文章推荐
- SAP ABAP exporting list to memory ...SUBMIT 程序传输屏幕参数
- ABAP--如何进行sap的金额数据存储和显示之间的转换(CURRENCY_AMOUNT_DISPLAY_TO_SAP)
- How to list processes attached to a shared memory segment in linux?
- SAP ABAP编程 弹出按选择对话框函数-'POPUP_TO_CONFIRM'
- 转:ABAP MEMORY/SAP MEMORY/Shared buffer/DATABASE
- ABAP--如何进行sap的金额数据存储和显示之间的转换(CURRENCY_AMOUNT_DISPLAY_TO_SAP)
- Download ALV to PDF in SAP ABAP
- SAP Memory & ABAP Memory
- ABAP_Memory,SAP_Memory,Shared_Buffer,Database
- ABAP:How to Find Bapi for Particular Transaction in SAP
- SAP and ABAP Memory总结
- ABAP--How to use TEXTEDIT(SAP 的样例摘抄)
- ABAP Memory/SAP Memory/Shared Buffer/Database
- ABAP--如何进行sap的金额数据存储和显示之间的转换(CURRENCY_AMOUNT_DISPLAY_TO_SAP)
- SAP and ABAP Memory总结
- Upload Data from Excel File in ABAP using TEXT_CONVERT_XLS_TO_SAP
- ABAP--How to use TEXTEDIT(SAP 的样例摘抄)
- ABAP--How to use TEXTEDIT(SAP 的样例摘抄) Jack wu
- ECC 6.0 SR3 安装import abap出错ORA-04031: unable to allocate 116 bytes of shared memory和DbSl Trace: ORA-1403 when accessing table SA
- ABAP--How to use TEXTEDIT(SAP 的样例摘抄)