Ansicht
Dokumentation

SAMPLE_INTERFACE_00503306 - Event: Condition Maintenance: Text Determination

SAMPLE_INTERFACE_00503306 - Event: Condition Maintenance: Text Determination

rdisp/max_wprun_time - Maximum work process run time   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module is an interface description only and does not contain any instructions. It is intended for developers of those additional components that provide their own function module at Event 00503306 (Condition maintenance: Text determination).

Function module SAMPLE_INTERFACE_00503306 must not be changed.

If you want to create your own function module that is to be accessed at the callup point mentioned above, proceed as follows:

  1. Copy the function module to your own name range.
  2. Do not change any transfer parameters !!
  3. Write your own coding in the copied function module.
  4. Save and activate your function module.
  5. Carry out the necessary settings in Customizing. Business Transaction Events

Functionality

In condition maintenance for pricing, prices or discounts/surcharges are created with reference to characteristics such as the material number. A descriptive text is determined for the characteristics in the condition maintenance header as well as for a characteristic in the lines. This function module allows you to influence text determination and carry out your own text determination.

The following parameters are available:

  • FIELDNAME
    Name of the characteristic field for which text determination should be carried out. The field is contained in the KOMG structure.
  • VALUE
    Content of characteristic field.
  • KOMG_I
    Contents of communication structure KOMG. Contains the value of individual characteristics from condition records that have just been processed.
  • KONP_I
    Condition information (item) KONP. The contents of this structure can be used for selection.
  • T681E_I
    Structure with information on the condition record. This information (for example, number of the condition table) can be used for selection.
  • TEXTSTRING
    (return value) An individual text can be returned in this string.
  • GET_TEXT
    (changeable) By deleting this field, you can deactivate standard text determination for the characteristic.

The following functions are available with this user exit:

  • Deactivating standard text determination for a particular characteristic
  • Implementing individual text determination. When implementing an indivdual check, standard text determination is not deactivated. If you want to suppress this, GET_TEXT must be deleted.

Example

You want to issue an individual text string 'SAMPLE_MAT' for the condition type ZPR0 in VKORG 0003 for the material 'Testmat':

FUNCTION BTE_INTERFACE_00503306.

*"----------------------------------------------------------------------

*"*"Lokale Schnittstelle:

*" IMPORTING

*" VALUE(FIELDNAME) TYPE CHAR30

*" VALUE(VALUE)

*" VALUE(KOMG_I) TYPE KOMG

*" VALUE(KONP_I) TYPE KONP

*" VALUE(T681E_I) TYPE T681E

*" EXPORTING

*" VALUE(TEXTSTRING) TYPE CHAR40

*" CHANGING

*" REFERENCE(GET_TEXT) TYPE CHAR1

*"----------------------------------------------------------------------

IF KONP_I-KSCHL eq 'ZPR0' AND KOMG_I-VKORG eq '0003'.

IF FIELDNAME eq 'MATNR' and VALUE eq 'Testmat'.

TEXTSTRING = 'SAMPLE_MAT'.

CLEAR GET_TEXT.

ENDIF.

ENDIF.

ENDFUNCTION.





Parameters

FIELDNAME
GET_TEXT
KOMG_I
KONP_I
T681E_I
TEXTSTRING
VALUE

Exceptions

Function Group

V13A

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 4357 Date: 20240523 Time: 050636     sap01-206 ( 61 ms )