Ansicht
Dokumentation

PRC_MAST_GET_KEY_FLDS_TEST - Program PRC_MAST_GET_KEY_FLDS_TEST

PRC_MAST_GET_KEY_FLDS_TEST - Program PRC_MAST_GET_KEY_FLDS_TEST

BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

This report tests the functionality of the function module /SAPCND/MNT_GET_KEY_FIELDS_SRV. The function module /SAPCND/MNT_GET_KEY_FIELDS_SRV fetches the condition table for the given input parameters, application, usage, condition type and condition group.

Prerequisites

Condition technique business configuration objects are available. This includes application, condition maintenance groups, condition tables, condition types, etc. This reports work only for PRT application.

Features

This report can be executed as a stand alone report or in a ABAP unit test framework. The report has seven test cases to check the functionalities of the function module /SAPCND/MNT_GET_KEY_FIELDS_SRV.

Output

The output will be displayed in the standard ABAP unit test framework or as a standard stand alone report output.

Activities

This report has two include programs.

1. prc_mast_get_key_flds_aunit_incl

This include program contains the definition and implementation of class cl_sapcnd_get_key_flds which has methods setup, sapcnd_get_key_flds and bapiret_to_aunit_assert.

2. prc_mast_get_key_flds_srv

This include program has seven test cases in it to check the functionalities of the function module /SAPCND/MNT_GET_KEY_FIELDS_SRV.

Case 1: When only application and condition type are given and usage and groupname are empty.

Inputs:

Application: PRT

Condn Type: 1CT2

Expected result: SAP00008 SAP00004

Case 2: When application condition type and Group name is given.

Inputs:

Application: PRT

Condn Type: 1CT2

Groupname: PRT_UT1

Expected result: SAP00008 SAP00004

Case 3: When Application, condition type and wrong group name is given.

Inputs:

Application: PRT

Condn Type: 1CT2

Groupname: PRT_FIELD

Expected result : None

Case 4: Repetation of case 1 to check whether the static variable buffering inside function module works correctly.

Inputs:

Application: PRT

Condn Type: 1CT2

Expected result: SAP00008 SAP00004

Case 5: When application, condition type and condition group name is given with usage not given.

Inputs:

Application: PRT

Condn Type: 1CT1

Expected result: SAP00008

Tables are fetched independent of usage.

Case 6: When application, condition type, usage and condition group given

Inputs:

Application: PRT

Condn Type: 1CT2

Usage: PR

Groupname: PRT_UT1

Expected result: SAP00008 SAP00004

Case 7: When application, condition type and wrong group name is given.

Inputs:

Application: PRT

Condn Type: 1CT2

Groupname: PRT_FIELD

Expected result : None






BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3648 Date: 20240601 Time: 011557     sap01-206 ( 50 ms )