Entering content frameFunction documentation R/3 Enhancement: Customer-Specific Tables Locate the document in its SAP Library structure

Use

The SAP Enhancement MYCAT02 allows you to transfer customer-specific tables from SAP R/3 to Offline Travel Expenses.
For example, you may want to use the contents of certain tables to complete customer-specific checks.

This graphic is explained in the accompanying text

If you want to transfer data from SAP R/3 to Offline Travel Expenses, you must create tables with the same structures in both SAP R/3 as well as the Offline Repository for Offline Travel Expenses (Files ci_types.xml, ci_tables.xml).

The SAP enhancement MYCATS02 contains the following elements:

 

The contents of the table are transferred to a customer-specific table in the Offline Repository (ci_tables.xml) for Offline Travel Expenses.

 

  1. Define the table, according to the R/3 structure, in the Offline Repository for Offline Travel Expenses. You do this in files ci_types.xml and ci_tables.xml Types and a table.
  2. Create a table in the SAP Enhancement MYCATS02 using command CREATE DATA. Generate a reference for this table using the field symbols. When you create the reference, use the table names from the Offline Repository.
  3. Populate the table with the required data.

Example: ABAP Source Code

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

* INCLUDE ZXMYCU05 *

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

data: reference_to_my_table type ref to data,

my_table type ty_my_table,

my_table_ln type line of my_table.

 

field-symbols: <my_table> type any table,

<field> type any.

 

create data reference_to_my_table type ty_my_table.

assign reference_to_my_table->* to <my_table>.

 

*fill my_table

my_table_ln-... = ...

append my_table_ln to my_table.

 

my_table_ln-... = ...

append my_table_ln to my_table.

 

...

.....

...

 

<my_table> = my_table.

 

assign component 1 of structure reference_table to <field>.

<field> = 'Z_MY_TABLE'.

assign component 2 of structure reference_table to <field>.

<field> = reference_to_my_table.

append reference_table.

Leaving content frame