如何在BAPI中建立测试数据
2010-09-29 13:46
585 查看
直接在BAPI中手动输入测试数据显然又费时间又不现实.使用程序FBGENDAT可以实现测试目的.
Troubleshooting for BAPI problems is difficult if the parameters transferred to the interface are not completely available as a test data record. This is particularly problematic if the BAPI is called by RFC,and then debugging is very complicated or cannot be performed at all. For example, this is the case when the BAPI is called from SAP applications such as SRM and APO, but in particular, when the BAPI is called from external systems that are programmed with Java, MicrosoftVisual Basic or C++ and that use SAP integration technology such as BAPI ActiveX Control, C++ class libraries, or Java Connector.In these cases, it would be useful to have a complete test data recording the Function Builder, which could be used to reproduce the error in the target system.
1. For the user, under whose name the call is to be executed, enter parameter FBGENDAT = X. Use Transaction SU01
to do this. If the call comes from an external system, the caller can be an RFC user.
2. Execute report FBGENDAT to activate the generation of test data records for certain function modules. Enter the corresponding function module in the first line. Choosethe mode in which you want to generate the report and execute it.The displayed list shows all function modules for which the testdata generator is active and in which mode.
![](http://pic002.cnblogs.com/images/2010/145078/2010092913420318.jpg)
3. Start the BAPI call and check whether a test data record was generated in the Function Builder.
4. Deactivate the generation of test data records by deleting the entries in report FBGENDAT and resetting the user parameter.
Note 539978: Automatic generation of BAPI test data directory
Troubleshooting for BAPI problems is difficult if the parameters transferred to the interface are not completely available as a test data record. This is particularly problematic if the BAPI is called by RFC,and then debugging is very complicated or cannot be performed at all. For example, this is the case when the BAPI is called from SAP applications such as SRM and APO, but in particular, when the BAPI is called from external systems that are programmed with Java, MicrosoftVisual Basic or C++ and that use SAP integration technology such as BAPI ActiveX Control, C++ class libraries, or Java Connector.In these cases, it would be useful to have a complete test data recording the Function Builder, which could be used to reproduce the error in the target system.
1. For the user, under whose name the call is to be executed, enter parameter FBGENDAT = X. Use Transaction SU01
to do this. If the call comes from an external system, the caller can be an RFC user.
2. Execute report FBGENDAT to activate the generation of test data records for certain function modules. Enter the corresponding function module in the first line. Choosethe mode in which you want to generate the report and execute it.The displayed list shows all function modules for which the testdata generator is active and in which mode.
![](http://pic002.cnblogs.com/images/2010/145078/2010092913420318.jpg)
3. Start the BAPI call and check whether a test data record was generated in the Function Builder.
4. Deactivate the generation of test data records by deleting the entries in report FBGENDAT and resetting the user parameter.
Note 539978: Automatic generation of BAPI test data directory
相关文章推荐
- 网络游戏之性能测试规划(二)——如何建立有效的基准数据及环境(拟稿)
- Oracle中如何用一条SQL快速生成10万条测试数据(转)
- 如何准备性能测试数据
- js中如何建立model数据模型
- 转:如何准备性能测试数据
- SQL调优如何生成海量测试数据 推荐
- 如何使用GIST+LIBLINEAR分类器提取CIFAR-10 dataset数据集中图像特征,并用测试数据进行实验
- Oracle中如何用一条SQL快速生成10万条测试数据
- [转]使用CPPUNIT如何建立一个基于MFC的GUI测试框架
- 如何建立和使用Jmeter测试环境(初学者)
- 如何测试备份软件在关键应用上不丢失数据
- 如何建立数据分析中心
- 如何输入多组测试数据
- Azure上linux虚机使用fio测试磁盘,以及附加数据盘建立raid提高iops
- 如何建立和使用Jmeter测试环境(初学者)
- 如何建立测试管理体系
- 如何使用 Oracle12c/Pentaho/Microstrategy 建立数据仓库并实现商务智能
- 《LoadRunner没有告诉你的》之七——使用 LoadRunner 连续长时间执行测试,如何保证参数化的数据足够又不会重复?
- 【每日分享】如何高效制造测试数据
- Android如何在测试程序中删除被测应用私有的原始数据