Google+ Facebook Twitter MySpace SC

Sunday, November 25, 2012

Addition of extra fields in COOIS (Order info System)


Addition of extra fields in COOIS (Order info System)

The COOIS report (Order Info System) gives the complete information regarding Production Order like header report, Operation report, Component Report, document report.  
This document deals with the addition of extra fields in the output display of COOIS.  
For the demo purpose, I have added the material group (MATKL) for the production order material for header report.  
BADI Name: WORKORDER_INFOSYSTEM
Method: TABLES_MODIFY_LAY  
In the method TABLES_MODIFY_LAY there are many table parameters for different data display of the production order .In this scenario only the header detail structure is being extended with append structure.  
Add the extra fields to be displayed to through append structure to IOHEADER_TAB, here MATKL.  
In the method write the code for updating the field value.  
DATA : BEGIN OF st_matkl,
           matkl TYPE matkl,
           END OF st_matkl.
  DATA : st_header TYPE ioheader.
  LOOP AT ct_ioheader INTO st_header.
    IF NOT st_header IS INITIAL.
      SELECT SINGLE  matkl
             FROM mara
             INTO st_matkl
             WHERE matnr = st_header-matnr.
    ENDIF.
    st_header-matkl = st_matkl-matkl.
    MODIFY ct_ioheader FROM st_header.
  ENDLOOP.
Below is the screen shot with the material group field added :  

No comments:

Post a Comment