6.12.10

SAP Note 11566 - PM order:IW31 Batch input capability w/ext.oprtns

Symptom

A PM order cannot be created (IW31) or changed (IW32) by batch input for external operations.
Reason: The order runs into errors, as data that is required for the external operation are missing when a control key is entered in the operation list with a '+' for external processing.
Error IW112 or error IW109.

Cause and prerequisites

Order design problem

Solution
Organizational method of action in batch input:
In batch input, first enter a control key in the operation list or the header operation that has 'X' of ' ' (external processing internal processing possible respectively). Go to the external data screen of the operation and activate all necessary entries. On the detail screen and on the operation list, then change the control key into a control key for external processing.

Release 2.1: Implement corrections P21K001539
In Releases later than Release 2.1, the source code is already contained
in the program.Note: the corrections must be implemented either manually or in the same
way as standard release upgrades.

ad 1.) P21K001539
Program LCOIHTOP:

*Control key characteristics
DATA: BEGIN OF STEUS, "<-----
OBL LIKE T430-LIEF VALUE '+', "<-----
OPT LIKE T430-LIEF VALUE 'X', "<-----
END OF STEUS. "<-----

Program: LCOIHI00:


MODULE PRICE_CHK_I00.

*--- only when external AVO = must -----------------------------------
CHECK T430-LIEF = STEUS-OBL. "<-----

PERFORM CHK_PRICE_F00 USING AFVGD-PREIS
AFVGD-PEINH
AFVGD-WAERS.
ENDMODULE.

...

MODULE EKGRP_CHK_I00 INPUT.

*--- only when external AVO = must -----------------------------------------*
CHECK T430-LIEF = STEUS-OBL. "<-----

IF AFVGD-EKGRP IS INITIAL.
SET CURSOR FIELD 'AFVGD-EKGRP'.
MESSAGE E111.
ENDIF.

ENDMODULE.

...

MODULE LTXA1_CHK_I00 INPUT.

CALL FUNCTION 'CO_TA_T430_READ'
EXPORTING
STEUS = AFVGD-STEUS
IMPORTING
STRUCT = T430
EXCEPTIONS
NO_ENTRY = 01.

*--- only when external AVO = must -----------------------------------------*
CHECK T430-LIEF = STEUS-OBL. "<-----

IF AFVGD-LTXA1 IS INITIAL.
MESSAGE E112.
ENDIF.
ENDMODULE.

...

MODULE SAKTO_CHK_I00 INPUT.

*--- only when external AVO = must -----------------------------------------*
CHECK T430-LIEF = STEUS-OBL. "<-----

IF AFVGD-SAKTO IS INITIAL.
SET CURSOR FIELD 'AFVGD-SAKTO'.
MESSAGE E113.
ENDIF.

ENDMODULE. " SAKTO_CHK_I00 INPUT

...

MODULE MATKL_CHK_I00 INPUT.

*--- only when external AVO = must -----------------------------------------*
CHECK T430-LIEF = STEUS-OBL. "<-----

IF AFVGD-MATKL IS INITIAL.
SET CURSOR FIELD 'AFVGD-MATKL'.
MESSAGE E117.
ENDIF.

ENDMODULE. " MATKL_CHK_I00 INPUT

...

MODULE LOSVG_LOSME_CHK_I00 INPUT.

CALL FUNCTION 'CO_TA_T430_READ'
EXPORTING
STEUS = AFVGD-STEUS
IMPORTING
STRUCT = T430
EXCEPTIONS
NO_ENTRY = 01.

*--- only when external AVO = must -----------------------------------------*
CHECK T430-LIEF = STEUS-OBL. "<-----

IF AFVGD-LOSVG IS INITIAL OR AFVGD-LOSME IS INITIAL.
IF AFVGD-LOSVG IS INITIAL.

Additional key words

IW31, IW32, IW34, IW36, IW38, ME083
PReq, required fields, required entries, service specifications
00055, E055, error message, error, PM02, PM03, SM02, SM03

Key word: Batch input

No comments:

Post a Comment