“I would like to explain about eCATT scenario on ABAP Objects. In this scenario I am explaining from Test Script Creation about ABAP Objects and the Command is “Createobj”. For this scenario we need to know about global classes or at least you should know about standard classes and I am not explaining about System data container. I explained in my previous scenario”.
Creating Test Script.
Go to Transaction “SECATT”.
Enter the test script named “ZTEST_OOABAP”.
Enter the Title, Component and System data Container.
Procedure
-
In the parameter list, create a parameter with the reference type that you want to instantiate.
-
In the command editor, set the focus where the command is to be entered.
-
Choose Pattern.
-
In the Group field, choose ABAP Objects.
-
In the Command field, choose CREATEOBJ.
-
If you want to create a parameter, enter the name of the wanted class in the Class field.
-
In the Object Instance Parameter field, enter the parameter name.
-
Choose Enter.
-
In the Interface field, accept or change the suggested name.
-
Choose Enter.
The above process as shown in below screen
Save and Test the Object.
In the “Start Options” screen.
Press the “Execute” Button.
The result is as shown below.
No comments:
Post a Comment