User Exits: Purchasing
As of Release 4.5A, the existence of item texts is indicated by an icon on the item overview screen in all purchasing documents. This draws the buyer's attention to any additional information that may be available. Enhancement MM06E009 allows you to specify the texts for which the icon is to appear.
A customer uses the material master PO text in purchase orders merely to describe a material more precisely, whereas important additional information for the buyer is contained in a special internal comment.
In this case, the existence of the material master PO text would not be relevant to the icon.
In the standard system, the icon appears when the buyer enters new text or a text has been adopted from a preceding document.
The internal table UTHEAD in the interface of the function module
EXIT_SAPMM06E_022 contains all text IDs for which an item text (of the item being processed) exists. You can use parameter CH_TEXTFLAG to determine whether one of these texts is relevant to the icon.
In the following program example, a customer table ZTEXTS is read (with
the key "client", "text object", "text ID", "user name"). This table contains the user-specific stipulation whether or not a certain text type is relevant:
LOOP AT UTHEAD.
SELECT SINGLE * FROM ZTEXTS WHERE TDOBJECT = UTHEAD-TDOBJECT
- EXIT_SAPMM06E_022: Relevant Texts for "Texts Exist" Indicator