SAP ABAP 查看EXPORT/IMPORT中的数据

在新调试器中查看内存ID,可以通过点击NewTool或ReplaceTool选择SystemAreas(InternalOnly),然后在MEMORIES区域中查看。或者,切换到经典调试器,通过Goto,SystemAreas,ABAPMemory来显示。若要查看PARAMETERS,需打开SMEM区域。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

These memory IDs can be accessed in the debugger, but the option isn't accessible by default in the "new" Debugger. To display them you have two options:

  • In the new Debugger, change one of the tools you're using. Do this by clicking the "New Tool" or "Replace Tool" that you can see at the top of the vertical button column on the right of each subwindow. Open the Special Tools folder in the tree and select "System Areas (Internal Only)". In the second tab of this tool you can now see a list of areas. Double-click the MEMORIES("EXPORT/IMPORT memories") area or manually enter it in the Area input field to open the list of active memory IDs. Click through on any one to see its hexadecimal value.

 

  • In the menu bar, open Debugger and select "Switch to Classic Debugger". Once it opens, find the following in the menu bar: Goto, System Areas, ABAP Memory. The system areas will be displayed with the MEMORIES area selected by default.

 

Parameters

If you want to view the PARAMETERs that were set instead of memory IDs, the procedure is almost exactly the same. However, instead of opening the MEMORIES system area, open the SMEM ("SAP memory (SPA-GPA)") area.

 

 

SAP ABAP 中,function 函数是一种可重用的代码块,它接受输入参数并返回输出参数。在 function 函数中,可以使用多个参数类型,包括 importexport、changing 和 tables。其中,importexport 是最常用的参数类型之一。 下面,我们来解读一下 function 函数中的 exportimport 参数: 1. Import 参数 Import 参数是 function 函数的输入参数,它们传递给 function 函数以供其使用。Import 参数可以包含各种数据类型,如字符型、数字型、日期型等。在 function 函数中,可以使用 IMPORT 关键字定义 Import 参数。 例如,下面的代码定义了一个名为 iv_input 的 Import 参数: ``` FUNCTION sample_function. IMPORTING iv_input TYPE string. ``` 2. Export 参数 Export 参数是 function 函数的输出参数,它们由 function 函数返回。Export 参数也可以包含各种数据类型,如字符型、数字型、日期型等。在 function 函数中,可以使用 EXPORT 关键字定义 Export 参数。 例如,下面的代码定义了一个名为 ev_output 的 Export 参数: ``` FUNCTION sample_function. EXPORTING ev_output TYPE string. ``` 3. Import/Export 参数 Import/Export 参数是 function 函数的输入输出参数,它们既可以传递给 function 函数以供其使用,又可以由 function 函数修改并返回。Import/Export 参数可以包含各种数据类型,如字符型、数字型、日期型等。在 function 函数中,可以使用 IMPORTING 和 EXPORTING 关键字定义 Import/Export 参数。 例如,下面的代码定义了一个名为 iv_input_output 的 Import/Export 参数: ``` FUNCTION sample_function. IMPORTING iv_input_output TYPE string. EXPORTING ev_output TYPE string. ``` 总之,在 SAP ABAP 中,function 函数是一种非常重要的代码块,它们可以使用各种参数类型,包括 importexport、changing 和 tables。使用这些参数类型,可以方便地定义输入输出参数,从而实现代码的重用和灵活性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值