Skip to Content
Author's profile photo Sujeet Mishra

KO01 Internal Order Screen Enhancement

Internal Order Screen Enhancement: KO01/KO02


This document illustrates the way we can enhance Transaction Code KO01/02 to Create/Change Internal Orders.The below explanation will give you a brief idea to add some fields in Internal Order’s Assignment Tab. As an example we are taking Material Number and Customer Number  fields which we will add in Assignment Tab of Internal table.

Follow the steps below to Add Material Number and Customer Number in Assignment Tab.

Go to Transaction Code CMOD and Create Enhancement Project and add Enhancement ‘COOPA003(User-Defined Fields in the Order Master)’ .

SDN1.JPG

Click on Component tab as shown in above screen to check all the available components.

Here, we can see Include table CI_AUFK, This is a structure, and we need to create this structure using Transaction Code SE11.

               SDN1.JPG

Create structure CI_AUFK and add two fields which we want to add, we added two fields ZZMATNR (Material Number) and ZZKUNNR (Customer Number).

                  SDN1.JPG

Once we create above structure, we need to activate this structure CI_AUFK and also re-activate Database view COAS (Order Master for Controlling) & AUFKV (Transfer structure for orders).

                SDN1.JPG

                SDN1.JPG

Now, Go to transaction SE80, and copy few objects of function group KOXM. To function group’ XAUF’.

Object Type

Source(Function Group KOXM)

Target(Function Group XAUF)

Dynpro

SAPLKOXM 0100

SAPLXAUF 0100

Include

LKOXMTOP

ZXAUFTOP

Include

LKOXMF04

ZXAUFU04

Include

LKOXMF05

ZXAUFU05

Once we copied the entire above object, we need to activate thesame.

                    SDN1.JPG

Now Edit the include ZXAUFU04.

  • write imported data in global structures

  MOVE-CORRESPONDING I_AUFK TO GLOBAL_AUFK.

  MOVE-CORRESPONDING I_KAUF TO GLOBAL_KAUF.

  • decide wich subscreen is to be displayed

  IF ( GLOBAL_KAUF-PAR_LAYOU <> ‘ABCD’ ) AND

     ( GLOBAL_AUFK-AUART  <> ‘1234’ ).

    SUBSCREEN = ‘0100’.

  ELSE.

    SUBSCREEN = SPACE.

  ENDIF.

And In include ZXAUFU05, add the below code.

                   SDN1.JPG

Activate all the include.

Then Go to screen and activate the screen also.

                    SDN1.JPG

Once all the object got activated then activate the project.

Now you can have these two fields Material Number and Customer Number in your Internal Order’s Assignment Tab.

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      good work

      Author's profile photo Former Member
      Former Member

      Thanks for documenting it...

      Author's profile photo Terry Zhang
      Terry Zhang

      I've tried, but I can only add custom fields to General Data tab page, not Assignment tab page.

      How can I add the fields to Assignment tab page.

      Author's profile photo Nitin Kumar
      Nitin Kumar

      Hi Terry,

      I think, you need to create a new order layout and the required General data fields in Assignment Tab. And assign the same layout in Internal Order Type

      SPRO> Controlling > Internal Orders > Order Master Data > Screen Layout > Define Order layout

      Author's profile photo Former Member
      Former Member

      How to add custom tab to KO01 transaction. Its not adding custom field

      regs

      Sam

      Author's profile photo Dimitrii Korepin
      Dimitrii Korepin

      Nice article