Programme SAP RHBAS_CHECK_INFTY - Testing of Decoupled Infotypes

Purpose
You can use this program to test decoupled infotypes. In doing so, youtest the business logic of the infotype. You have already implementedthe business logic in an ABAP-OO class and entered it into the decoupledinfotype framework using the view V_T777DITCLASS.

Features

Selection screen
In the group box Selection, specify the infotype that you want totest. Also specify the object that you want to test (planversion, object type, and object ID
).
Also enter the corresponding subtype if you only want the business logicfor the infotype to be defined for this particular subtype.
You can make entries in the fields Planning Status, StartDate, and End Date to restrict the selection of infotype datathat is subsequently read and displayed.
In the Further Settings group box, you can define how theinfotype framework is controlled. The system forwards the settings youmake here (except for the automatic text recognition) to the infotypeframework without any additional interpretation.
If you select Automatic Text Recognition Active, the systemautomatically determines texts belonging to the field values of theinfotype data and outputs these texts. The indicator thus controls theprogram itself and not the infotype framework.

Overview screen
On the overview screen, you see all infotype records that meet thecriteria entered on the selection screen. You can now create, copy,change, or delete data records.

Activities
Select the infotype records you want and choose one of the followingoptions:

  • Create Data Record

  • You can create a new infotype data record by choosing Create DataRecord on the overview screen. In the dialog box, you can enter thekey fields of the data record. The fields displayed are the fields fromthe HRIPKEY structure. With the values entered here, the business logicof the infotype is called and made available to a new infotype container(with a default value, if necessary).
    Choose Continue. The Infotype Record dialog box appears.
    Here you see all fields of the selected infotype. You can enter thedesired field values here. Along with the actual values for the field,you also see the following field information:
    Input help
    If the system can determine an input help for the field, a symbol isdisplayed in the Input Help column. The input help is determinedby calling the class CL_HRBAS_GENERIC_F4_HELP, which then evaluates theData Dictionary. Therefore, if the infotype in is used in anapplication, the input help displayed there will only be the same as theone displayed here if the application also uses the classCL_HRBAS_GENERIC_F4_HELP. Otherwise, there may be differences betweenthe input help displayed here and the input help in the application.
    You have the following options for displaying the determined input help:
    If you place the cursor in the field and choose F4, you see the inputhelp as it was created, meaning it has all of the relevant columns.
    If you choose the symbol in the Input Help field, the input helpis abridged and only field values and the relevant text are displayed.Any additional columns for the input help are hidden in this display.This display is used if the input help is used to fill a dropdown listbox.
    Metadata
    This column contains the specific field attributes, that is theattributes Mandatory Field, Not Modifiable, or Do NotDisplay. These attributes are defined by SAP using the viewV_T777IFPROPS. You can override or enhance the attributes with your ownvalues using the view V_T777IFPROPC.
    Value Text
    If you have selected the Automatic Text Recognition Activeindicator on the selection screen, the system displays the automatictext recognition result in this column. This text recognition is basedon the analysis of information from the Data Dictionary. If the systemeither cannot find any texts or if the texts found contains errors, youcan access it directly in the text recognition process. For moreinformation, see the documentation for thereport RS_TEST_IDENTIFY_TEXT (Test Report for Text Recognition
    ). Using this report, you can receive information about the processand technical background of automatic text recognition.
    Choose Save to complete the creation of the data record. Beforesaving, you can check the data record for consistency. In this case, thesystem runs through the business logic of the infotype without savingthe data. The data is only written to a buffer and then discarded.
    If the system finds inconsistencies when checking or saving, itgenerates corresponding error messages that are placed in the messagehandler. You see the messages in the upper part of the dialog box abovethe list of infotype fields.
    If fields are provided for the message via the business logic, theDisplay symbol is shown after the message in the Detailcolumn of the appropriate message line. Choose this symbol to displaythe list of field names.
    • Copy Data Record

    • You can create a new infotype data record by choosing an existing datarecord as a template. On the overview screen, select the relevant datarecord and choose Copy.
      You can then edit the data record in accordance with the optionsdescribed under Create Data Record.
      • Change Data Record

      • You can change a data record selected on the overview screen. You havethe options described under Create Data Record available.
        • Delete Data Record

        • You can delete a data record selected on the overview screen. If thebusiness logic of the infotype finds an error, it forwards acorresponding message to the message handler. The message is thenoutput.