Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
sujeet2918
Active Contributor

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)’ .

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.

              

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

                 

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).

               

               

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.

                   

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.

                  

Activate all the include.

Then Go to screen and activate the screen also.

                   

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.

6 Comments