4.12.10

SAP Note 11051 - Customer-specific posting strings (Customizing) .

Symptom

As of IS-H Release 2.11 (July 1994), it is possible to lay out the line item texts for a specific customer for copayment. The following conventions apply in this case:

- the customer function module must start with 'ZZ_'
- the following interface is mandatory:

Import parameter EINRI Reference structure TN01-EINRI
FALNR Reference structure NFAL-FALNR
PATNR Reference structure NPAT-PATNR
Export parameter POPTEXT Reference structure BSEG-SGTXT
- Example:
FUNCTION ZZ_POSTING_STRING.
*"
*"Lokale Schnittstelle:
*" IMPORTING
*" EINRI LIKE TN01-EINRI
*" FALNR LIKE NFAL-FALNR
*" PATNR LIKE NPAT-PATNR
*" EXPORTING
*" POSTEXT LIKE BSEG-SGTXT

TABLES: NPAT, NBEW,...
DATA: ...

* Datenbeschaffung
SELECT SINGLE * FROM NPAT WHERE PATNR = PATNR.
...

* Zuweisung an Belegpostionstext
POSTEXT = ...

ENDFUNCTION.

Cause and prerequisites

If the conventions are not adhered to, a runtime error can occur (incorrect interface) or the customer function module is not called at all (incorrect name)

Solution
Please check the interface and the syntax.

Key word: Copayment

No comments:

Post a Comment