How to use CATT?

本文介绍了使用CATT进行数据批量上传的方法。整体流程包括创建CATT测试用例并记录样本数据输入、下载源文件模板、修改源文件、从源文件上传数据。文中详细阐述了每个步骤的具体操作,如创建测试用例的事务执行、模板下载的参数设置等。

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


SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books
SAP CATT - Computer Aided Test Tool
User Guide for Data Upload[@more@]

The use of CATT is for bulk uploading of data

Although CATT is primarily a testing tool, it can be used for the upload of data.

Over-all procedure

The over-all procedure to upload data using CATT is as follows:
· Creation of the CATT test case & recording the sample data input.
· Download of the source file template.
· Modification of the source file.
· Upload of the data from the source file.

Details of each step are provided in the following paragraphs.

Detailed Procedure

Creation of the CATT test case:

Creation of the test case is completed as follows:
· Execute Transaction SCAT
· Name the test case.  Test case name must start with “Z”.  It is also good practise to include the transaction code in
  the test case name (e.g. Z_IE01_UPLOAD for the upload of equipment)
· Click the “Record” button.
· Enter the transaction code (e.g. IE01)
· Continue recording the transaction.  Ensure data is entered into every field that is to be used during the upload.
· Save the test case.

Download the source file template

Download of source file template is conducted in two stages as follows:
· Creation of import parameters:
· Within transaction SCAT, Double Click on the TCD line in the “Maintain Functions” screen.
· Click the Field List button (Field list is displayed).
· For every field that you wish to upload data, double click in the Column New field contents (This creates an
  import parameter).
· In the Maintain Import Parameter Pop-Up:
· Delete the default value if not required.
· Press Enter
· The New field contents column now contains the character & followed by the field name (e.g. &EQART).  This
  is the name of the import parameter.
· Repeat this for every field (in every screen) to be uploaded.
· Back out and save the CATT test case
· Download of source file template:
· Use the path GOTO -> Variants -> Export Default
· Select path and file name (e.g. C:TEMPZ_IE01_UPLOAD.TXT)
· Click Transfer

Modify the source file

The downloaded source file template is now populated with the data that is to be uploaded.  This is completed as follows:
· Using Excel, open the tab-delimited text file.
· Do not change any of the entries that already exist. 
  1st row contains the field names. 
  2nd row contains the field descriptions. 
  3rd row displays the default values which are set in the test case. 
  4th row contains a warning that changing the default values in the spreadsheet has no effect on the actual default values.
· The data to be uploaded can be entered in the spreadsheet from row 4 onwards (delete the 4th row warning &
  replace with data for upload).
· Save the file as a Text file (Tab delimited).

Upload data from the source file

Uploading the data is completed as follows:
· Execute the CATT test case
· In the Execute screen:
· Set processing mode to Errors or Background (your choice).
· Set variants to External from file.
· Click the Choose button and select the file to be uploaded.
· If uploading to another client, click the Remote execution button and select the RFC connection to the required client.
· If uploading to the current client, click the execute button.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/46681/viewspace-783367/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/46681/viewspace-783367/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值