Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

KO01 Internal Order Screen Enhancement

$
0
0

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 the same.

 

                    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.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>