19.1.11

SAP Note 18068 - Display version in the stock overview

Symptom:

Program RMMMBEST; Field Display version (T136-VERNU); Parameter ID VNR

In the stock overview, display version 1 is always defaulted and displayed when the stock overview is called from a different application. This is also true, however, when the user has entered a different display version for parameter ID VNR in the user master record.

Cause and prerequisites

The program ignores the user-specific configuration of the display version.

Solution
If you want the display version stored in parameter ID VNR to be displayed in your company, you must deactivate three lines and insert one line in report RMMMBEST (applies to Release 2.2 and 3.0):

RMMMBEST

. . .

* Evtl wird vom aufrufenden Programm eine Anzeigeversion mitgegeben
* IF NOT SY-CALLD IS INITIAL. "<-- deactivate
GET PARAMETER ID VNR FIELD VERNU.
* SET PARAMETER ID VNR FIELD DEF_VERNU. "<-- deactivate
* ENDIF. "<-- deactivate
IF VERNU IS INITIAL. "kann passieren nach 'Neue Selektion'
VERNU = DEF_VERNU.
ENDIF.

. . .

* --- SPA/GPA für Lagerort und Charge übernehmen bei Aufruf aus -
* --- anderer Anwendung
IF NOT SY-CALLD IS INITIAL.
PERFORM GPA_LGORT_CHARGE.
ENDIF.
SET PARAMETER ID VNR FIELD VERNU. "<--- NEW
START-OF-SELECTION.
*--- Lesen Materialgrunddaten mit Kurztext -------------------


In Release 2.1, instead of deactivating the above 3 lines, you must add 5 additional new lines to RMMMBEST (in addition to the one above):

. . .
DATA: VNR(3) TYPE C VALUE 'VNR'. "<-- NEW !!
* ------ Hilfsfelder, Merker ----------------------------------
DATA: SAV-BUKRS LIKE MARCV-BUKRS, "Hilfsfeld Buchungskreis
SAV-TEXT1 LIKE T157B-FTEXT, "Hilfsfeld Text1
SAV-TEXT2 LIKE T157B-FTEXT, "Hilfsfeld Text2

. . .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = '%_MS_MATNR-PUSH' OR
SCREEN-NAME = '%_MS_MATNR-MORE'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
GET PARAMETER ID VNR FIELD VERNU. "<-- NEW
IF VERNU IS INITIAL. "<-- NEW
VERNU = DEF_VERNU. "<-- NEW
ENDIF. "<-- NEW
. . .

No comments:

Post a Comment