SAP® Documentation

Single view

/SAPCND/TST_MASTERDATA_UNIT - Generic unit Test for condition masterdata

Vendor Master (General Section)   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

This report is a stand-alone ABAP unit test report which will test the common/ highly used use cases of condition technique. The use cases tested in this report are

Creation of condition records

Selection of condition records

Modification of condition records

Deletion of condition records

Overlap detection and resolution in condition records

Maintain the scales for the condition records.

Check for sequence number of condition supplement (KOPOS) in Condition Records

Overlap of Condition Records - without Select Call

The scope of the test will cater to multiple applications, multiple condition maintenance groups in an application and multiple usages.
The above mentioned use cases are tested in sequential order and also in random order.

Prerequisites

Condition technique business configuration objects must be available. This includes application, usages, tasks, condition maintenance groups, condition tables, condition types, field catalogs etc.

Features

Output

The output will be displayed in the standard ABAP unit test framework.

Activities

*SAP Internal only*,,
The master data required to create condition records is achieved by BADI's. The following BADI's are called in this report.
  1. /SAPCND/TST_UNIT_APP :
This BADI will return the condition maintenance groups for the application under process. If an application does not return any condition maintenance group then the application is not considered for condition technique ABAP unit test. This BADI needs be implemented by the application if it want to take part in condition technique masterdata ABAP unit test.
  1. /SAPCND/TST_UNIT_USG:
This BADI will check if the usage is ready for testing, fill the usage field values and the change values for the usage field which is used in modification for condition records testing. This BADI needs be implemented by the usage if it want to take part in condition technique masterdata ABAP unit test.
  1. /SAPCND/TST_APPL_FLD:
This BADI will fill the application field values which is used for creating condition records. This BADI needs be implemented by the application to get its possible application field values which is used in condition technique masterdata ABAP unit test.

Note

The above mentioned use cases are tested in the class /SAPCND/CL_MASTERDATA_UNIT_SRV. For details please refer to class documentation.






General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3255 Date: 20191023 Time: 091222     sap01-206 ( 14 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.