Entering content frameFunction documentation Enhancement: MYCATS01 (R/3) Locate the document in its SAP Library structure

Definition

SAP enhancement for adjusting Input Help values in the CATS Notebook and Offline Travel Expenses so that they meet customer-specific requirements.

Use

The SAP Enhancement MYCATS01 allows you to make the following settings for the Input Help values in Offline Travel Expenses:

 

Standard Input Help Values (SAP)

Customer Specific Input Help Values

This graphic is explained in the accompanying text

Note, any changes that you make in the SAP system must also be made in the XML Repository for Offline Travel Expenses - in files ci_types.xml, ci_records.xml, and ci_tables.xml. The following naming conversions should be used:

Standard Input Help: PICKLIST_<feldname>, for example, PICKLIST_POSID, PICKLIST_CURRENCY

Customer-specific Input Help: Z_PICKLIST_<feldname>

Customer-specific Output Structure: Z_PICKLIST_REC_<feldname>. A customer-specific output structure contains a subset of the fields from your customer specific input help. The structure is used to blend out certain fields (for example personnel number, fields of customer-specific checks, and so on) that are not relevant for the user.

 

Input help values in Offline Travel Expenses are always dependent upon the personnel number. Therefore, the following rules apply for customer-specific Input Helps: The first column must always contain the personnel number.

The SAP enhancement MYCATS01 contains the following elements:

This graphic is explained in the accompanying text

Note, this reference can only relate to a data object that you have created using CREATE DATA. If you create the data object using a different method, the object will only exist for as long as the system needs it for processing the SAP enhancement. After this, it will no longer contain any useful results so that it will be useless if you want to access the data object from the reference.

 

Structure

IMPORTING

REFERENCE(SAP_PERNR) TYPE P_PERNR

REFERENCE(SAP_FIELDNAME) TYPE FIELDNAME

REFERENCE(SAP_PROFILE) TYPE TCATS-VARIANT

REFERENCE(SAP_LANGU) TYPE LANGU

EXPORTING

REFERENCE(REFERENCE_TO_NEW_PICKLIST) TYPE REF TO DATA

CHANGING

REFERENCE(SAP_PICKLIST) TYPE ANY TABLE

Example

You want to add values to the Input Help PICKLIST_CUSTOMER that doesn't contain any values in the standard system, and you want to change Input Help PICKLIST_POSID into a customer-specific Input Help so that you can add another column.

This graphic is explained in the accompanying text

In the source code, the input helps have the description "Picklist". Both terms have the same meaning.

ABAP Source Code

*-----------------------------------------------------------------*
* INCLUDE ZXMYCU04 *
*-----------------------------------------------------------------*

 

data: ls_picklist_customer type basics_picklist_customer,

lt_picklist_customer type basics_picklist_customer_table,

ls_picklist_posid type basics_picklist_posid,

ls_my_picklist_posid type my_picklist_posid,

lt_my_picklist_posid type my_picklist_posid_table.

 

field-symbols: <my_picklist> type any table.

 

 

case sap_fieldname.

 

when 'CUSTOMER'.

 

* append entries to standard picklist

move sap_pernr to ls_picklist_customer-pernr.

move 'Customer A' to ls_picklist_customer-customer.

append ls_picklist_customer to lt_picklist_customer.

...

.....

...

sap_picklist = lt_picklist_customer.

 

when 'POSID'.

 

* add a row to the standard picklist

 

CREATE DATA reference_to_new_picklist TYPE lt_my_picklist_posid.

ASSIGN reference_to_new_picklist->* TO <my_picklist>.

loop at sap_picklist into ls_picklist_posid.
move-corresponding ls_picklist_posid to ls_my_picklist_posid.
concatenate 'myText for' ls_picklist_posid-rproj
into ls_my_picklist_posid-customer_txt
separated by space.
append ls_my_picklist_posid TO lt_my_picklist_posid.
endloop.

<my_picklist> = lt_my_picklist_posid.

endcase.

*-----------------------------------------------------------------*

 

The following lines create the reference to your customer-specific Input Help:

This graphic is explained in the accompanying text

The use of the field symbol <my_picklist> (freely selectable name) is not limited for use only when adjusting the Input Help for field POSID. You can also use it to copy the changes to the Input Help values for other fields.

 

 

Leaving content frame