!--a11y-->
Sending Customer-Specific Tables or Standard Texts to CATS notebook
Use
You can use the MYCATS02 SAP enhancement to implement the following enhancements:
- Use a table to transfer customer-specific tables from SAP R/3 to CATS notebook
You can use the contents of any table for your own customer checks.
- Use a table to transfer standard texts you have created in SAP R/3 to CATS notebook
Users can then select the standard texts as long texts in CATS notebook. This enables you to manage frequently used long texts centrally, and save users from entering long texts manually. You must create the table as described below. The table must have the reserved name
Z_PICKLIST_STND_TXT.
In both cases, you must create tables with identical structures in SAP R/3 and the offline repository of CATS notebook to be able to transfer data from SAP R/3 to CATS notebook.
The
MYCATS02 SAP enhancement consists of the following elements:
SAP_PERNR, SAP_PROFILE, SAP_LANGU
Use these elements to select standard texts according to the user’s personnel number, data entry profile, and language.
REFERENCE_TABLE
This element contains two fields:
The table_name field, which contains the name of the table in the offline repository of CATS notebook.
The ref_to_table field, which contains a reference to the table in SAP R/3 that you create in the MYCATS02 SAP enhancement.
Transferring customer-specific tables to CATS notebook
If you want to transfer data in a customer-specific table to CATS notebook, to use it for customer-specific checks, for example, you have to proceed in the same way as you would to transfer standard texts.
CATS notebook checks the name of the table you transfer using the MYCATS02 SAP enhancement:
- If the name of the table is
Z_PICKLIST_STND_TXT, and the table has the structure shown above, the texts in the table are transferred to CATS notebook as standard texts.
If not, the content of the table is transferred to the customer-specific table in the offline repository, but is not used by CATS notebook. You can use it for customer-specific checks using the ITimeSheetChecker interface, for example.
Transferring standard texts to CATS notebook
Create the file ci_types.xml in the offline repository of CATS notebook.
In the ci_types.xml file, define the following table:
<type name="Z_STANDARD_TEXT" basetype="char" length="80"/>
<type name="Z_COUNTER_STD_TEXT" basetype="char" length="3"/>
<type name="Z_STANDARD_TEXT_ID" basetype="char" length="15"/>
<type name="Z_LANGU" basetype="char" length="1"/>
Create the file ci_tables.xml in the offline repository of CATS notebook.
- Define the following types in the
ci_tables.xml file:
<columns>
<column name="PERNR" type="T_PERNR_D"/>
<column name="STANDARD_TEXT_ID" type="Z_STANDARD_TEXT_ID"/>
<column name="COUNTER" type="Z_COUNTER_STD_TEXT"/>
<column name="LANGU" type="Z_LANGU"/>
<column name="TEXT" type="Z_STANDARD_TEXT"/>
</columns>
Define the following index in the ci_tables.xml file. In CATS notebook, picklists are always dependent on the personnel number. The PERNR field must therefore always come first.
<indicees>
<index name="primary" isprimary="yes">
<index-column name="PERNR"/>
<index-column name="POSID"/>
</index>
</indicees>
Use the CREATE DATA command in the MYCATS02 SAP enhancement to create a table (see the example) and use the field symbols to create a reference to the table. When creating the reference, use Z_PICKLIST_STND_TXT as the table name.
The first column of the table must contain the personnel number. It must be named PERNR and be of the NUMC 8 category.
Enter the required texts in the Z_PICKLIST_STND_TXT table (see the example).
- Note that the length of the text (STANDARD-TEXT field) is restricted to 80 characters.
- You can create texts of more than one line by using several table entries with the same
STANDARD_TEXT-ID and sequential line numbers (COUNTER field). The following convention applies: The text in the table entry numbered 000 is displayed in CATS notebook in the picklist for long texts, and not as a line of text in the input field for long texts. You must therefore create at least two table entries for each text: entry 000 for the picklist and entry 001 for the first line of text.
If you do not want to manage the texts in the SAP enhancement, you can manage them in a separate database table and have them read into the MYCATS02 SAP enhancement.