Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>CATS0002



Index

CATS0002

Customer Enhancements for CATS
You can use this SAP enhancement to supplement the data entered using the Time Sheet.

The internal table ENRICH_TABLE is used to communicate with the SAP System. When the enhancement is called, the table contains one data record. You can then change the contents of the record and use the internal table ENRICH_TABLE to return it to the standard program.

Example: You want to replace the receiver cost center "0000000666", recorded on January 3, 1997, with the cost center that is currently valid (cost center "0000003200").


LOOP AT ENRICH_TABLE.
IF ENRICH_TABLE-RKOSTL = '0000000666'
AND ENRICH_TABLE-WORKDATE = '19970103'.
ENRICH_TABLE-RKOSTL = '0000003200'.
MODIFY ENRICH_TABLE.
ENDIF.
ENDLOOP.

You can also return more than one data record. The system then inserts another line for the new record.


Function/Program:
  • EXIT_SAPLCATS_002: CATS: Supplement Recorded Data

02-Oct-2005