Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Additional custom field on the assignments tab KO01

Former Member
0 Kudos

Hi Geeks ,

I have a requirement to add a new custom field to the assignments tab of the tcode KO01. This new field is not available in the structure CI_AUFK . Is it achievable via enhancement COOPA003 ? If yes , then how ? . A <removed by moderator> response would really be appreciated.

Thanks,

Preetinder singh.

Edited by: Thomas Zloch on Nov 4, 2011 11:28 PM

3 REPLIES 3

Former Member
0 Kudos

Proceed as follows:

You can use the CMOD transaction to create an enhancement project for the COOPA003 enhancement.

You can use the SE11 transaction to create the CI_AUFK structure as described above. Transfer three fields into this structure and activate it:

Field name Data element

ZZMATNR MATNR (Material nummer)

ZZKUNNR KUNNR (Debitor)

ZZTEXT30 TEXT30 (30-character text)

It is recommended that you reactivate the COAS and AUFKV views separately.

Copy the following objcts from the KOXM function group to the XAUF function group, using the SE80 transaction (Workbench Organizer). There, display the KOXM function group, position

the cursor on the source object, and copy it to the corresponding target object.

Caution

When you copy, the target objects are overwritten. If the target objects already exist, then insert the source code for the source object into the target object.

Object type Source Target

Screen SAPLKOXM 0100 to SAPLXAUF 0100

Include (Top include) LKOXMTOP to ZXAUFTOP

Include (PBO) LKOXMF04 to ZXAUFU04

Include (PAI) LKOXMF05 to ZXAUFU05

The ZXAUFTOP still requires changes to the source code. Use the SE38 transaction (ABAP Editor) to process this include. Detailed instructions are contained in the source code as

comments.

Activate the enhancement project. The fields should now be available in the master data maintenance, and should be saved.

Function/Program:

EXIT_SAPMKAUF_002: Function callup for customer fields: PBO data SAP -> Customer

EXIT_SAPMKAUF_003: Function callup for customer fields: PAI data customer -> SAP

Include ZXAUFU04 (part of EXIT_SAPMKAUF_002)

&----


*& 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.

&----


*& Include ZXAUFU04

&----


************************************************************************

  • This include is part of the example programm for

  • customer exit COOPA003.

*

  • To activate the example, copy it to the include ZXAUFF05.

  • Remove the asteriks indicating a comment line in the first column.

*

  • Make sure ZXAUFF05 doesn't exist yet! Use cut-and-paste instead.

************************************************************************

----


  • INCLUDE LKOXMF05 *

----


    • give only customer fields back to SAP-Programm

*C_USER_CI_AUFK-ZZMATNR = GLOBAL_AUFK-ZZMATNR.

*C_USER_CI_AUFK-ZZKUNNR = GLOBAL_AUFK-ZZKUNNR.

*C_USER_CI_AUFK-ZZTEXT30 = GLOBAL_AUFK-ZZTEXT30.

Edited by: ZAHID HAMEED on Nov 5, 2011 12:37 PM

0 Kudos

Hi Zahid ,

Thanks for your valuable response . There was a similar enhancement done in some other system and i was able to display my field on the general data tab via that ehancement , but , my requirement is to display the field on the assignments tab instead. How to know that which screen number is to be created under which program to display a field on the assignments tab ? For the general data tab a screen has been created for program SAPLXAUF .

Thanks and regards,

Preetinder Singh.

Former Member
0 Kudos

Hi,

Try BADI "INTERNAL_ORDER_EXTND". for your purpose.

Thanks,

Vijay