Sapass

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



Index

COPA0003

CO-PA: User Exits
This enhancement gives you greater flexibility in assigning postings to profitability segments.

The components comprise the function module EXIT_SAPLKEAK_001.

Function module EXIT_SAPLKEAK_001 lets you change or determine a characteristic group for manual posting to profitability segments. The import parameters contain all the fields known for Profitability Analysis at the point at which the profitability segment is determined. The import parameter I_CHAR_GROUP contains the characteristic group defined in Customizing. This enhancement can determine a different characteristic group using the transferred fields.

Example:

You have define characteristic group FI01 for the business transaction RFBU for direct postings in the Financial Accounting (FI) component. For account 801000, however, you want to use characteristic group FI02, since a more detailed assignment needs to be made than is possible using characteristic group FI01. Assume that the operating concern is S001. The user exit you define would look something like this:

E_CHAR_GROUP = I_CHAR_GROUP.

CASE I_ERKRS.

WHEN 'S001'.
IF IS_COBL-VORGN EQ 'RFBU' AND IS_COBL-HKONT EQ '0000801000'.
E_CHAR_GROUP = 'FI02'.
ENDIF.

ENDCASE.

Caution!

You must for the operating concern (CASE I_ERKRS ...), because the user exit is active for all operating concerns as soon as you enter enhancement COPA0003 in a project and activate it.


Function/Program:
  • EXIT_SAPLKEAK_001: User Exit for Determining the Characteristic Group

02-Oct-2005