28.1.11

SAP Note 19525 - Price change - ASSIGN_LENGTH_0 - transaction VK12

Symptom:

If you want to change a price via transaction VK12, the following runtime error can occur: ASSIGN_LENTGH_0 (SAPMV13A).
This termination occurs if you want to change the prices via the function -> Edit -> Price change -> Enter 'Absolute amount' -> Transfer. The termination then occurs if you want to return to the fast entry.

Cause and prerequisites

Program error.

Solution
Error corrected in Release 2.2E.
Make the following changes:
Program: MV13AF0P
...
FORM PREIS_MESSAGE.
FIELD-SYMBOLS: , , , , , .

SY-FDPOS = STRLEN( RV13A-KONWAAE ).
IF NOT SY-FDPOS IS INITIAL. "<-- insert ASSIGN RV13A-KONWAAE(SY-FDPOS) TO .
IF RV13A-KONWAAE EQ '%' AND RV13A-KPROAE EQ SPACE.
RV13A-KPROAE = RV13A-KBETRAE.
RV13A-KPROAE = RV13A-KPROAE * 10.
ENDIF.
ENDIF. "<-- insert

IF NOT RV13A-KPROAE IS INITIAL.
* prozentuale Änderung
SY-FDPOS = STRLEN( RV13A-KPROAE ).
IF NOT SY-FDPOS IS INITIAL. "<-- insert ASSIGN RV13A-KPROAE(SY-FDPOS) TO
.
ENDIF. "<-- insert
IF RV13A-KPROAE GT 0.
* Preis erhöht ASSIGN TEXT-305 TO .
ELSE.
* Preis verringert ASSIGN TEXT-304 TO .
ENDIF.
ELSE.
* absolute Änderung
SY-FDPOS = STRLEN( RV13A-KBETRAE ).
IF NOT SY-FDPOS IS INITIAL. "<-- insert ASSIGN RV13A-KBETRAE(SY-FDPOS) TO
.
ENDIF. "<-- insert
IF RV13A-KBETRAE GT 0.
* Preis erhöht

No comments:

Post a Comment