18.1.11

SAP Note 18019 - Pricing report: Matchcode search

Symptom:

The search via matchcode on the pricing report selection screen does not work.

Cause and prerequisites

Program error.

Solution


1) Change program RV14AGEN: (advance correction possible)
...
...
...
*---------------------------------------------------------------------*
* FORM MATCHCODE_FINDEN *
*---------------------------------------------------------------------*
* ........ *
*---------------------------------------------------------------------*
FORM MATCHCODE_FINDEN.

CLEAR MATCHCODE. "new line
CALL FUNCTION 'RV_MACODE_DATA_FOR_FIELD'
EXPORTING
MCD_TABLE = P_KOTAB "change line
MCD_FIELD = USE_TAB-FIELDNAME
IMPORTING
MCD_MATCHCODE = MATCHCODE
EXCEPTIONS
MACODE_NOT_FOUND = 1.

IF SY-SUBRC = 0.
PERFORM ZEILE_BEARBEITEN(RV12A000).
ENDIF.
...
...

FORM TEXTPOOL_ABMISCHEN.
* ----------------- Textpool holen --------------------------
REFRESH LANGU_TEXTPOOL.
IMPORT LANGU_TEXTPOOL
LANGUAGELIST FROM MEMORY ID 'TEXT'. "change line
REFRESH X_TEXTPOOL.
* ------- Textpool der Systemsprache beim Generieren übernehm
READ TEXTPOOL SY-REPID INTO Z_TEXTPOOL LANGUAGE SY-LANGU.
...
...


2) Change program MV14AF0T:

FORM TEXTPOOL_GENER USING TITEL TS_KOSTAFF TS_KOGUELT.
...
...
SORT LANGU_TEXTPOOL BY ID KEY.

EXPORT LANGU_TEXTPOOL
LANGUAGELIST TO MEMORY ID 'TEXT'. "change line

ENDFORM.
...
...
3) Change program RV14AGER:
...
...
* ----------------- Textpool holen ---------------------------------
REFRESH LANGU_TEXTPOOL.
IMPORT LANGU_TEXTPOOL
LANGUAGELIST FROM MEMORY ID 'TEXT'. "change line
REFRESH X_TEXTPOOL.
* ------- Textpool der Systemsprache beim Generieren übernehmen ----
LOOP AT LANGU_TEXTPOOL WHERE SPRAS EQ SY-LANGU.
...
...

Important: Regenerate all pricing reports with report RV14ALLE after note 11758 has been implemented.

1 comment: