cancel
Showing results for 
Search instead for 
Did you mean: 

Make Asset Class required in KO01 / KO02

Former Member
0 Kudos
212

Hi all,

Is there some customizing option to make the "asset class" input field required (under the Investments tab in KO01 and KO02)?

I've already tried the field selection in KOT2_OPA, but asset class is not there.

Any help is appreciated.

Thanks in advance!

Regards,

Charles

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

By the answers I'm assuming that there's no customizing option for this.

I'll resolve the problem with exits.

Thank you all!

ajaycwa1981
Active Contributor
0 Kudos

Hi Charles

You need to use exit COOPA003 to add user defined fields to the IO Master... Rad its documentation in SMOD t code

This exit uses an Include CI_AUFK... You need to add the Asset Class Field here...

After this, you have to Write code in the following exit.. I am pasting the sample code below which I used to add PERNR field in the IO Master

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.

br, Ajay M

Former Member
0 Kudos

Hi Ajay,

I don't need include the field there. The input field is standard (not user defined field) and is already showing up in my screen.

I just need to force the user to fill it. If there's no customization option then I will have to implement exits, but this is not an option right now.

Thank you!

Charles

Former Member
0 Kudos

Hi, if you're talking about class for simulating depr, then you can do it via Investment profile - OITA(maintain class and put check box Fixed default class), then class in IO appear from investment profile

Former Member
0 Kudos

Hi Alex,

That's the field. But I can't put it fixed like you suggested (user requirement).

Thank you!

Charles

Former Member
0 Kudos

Hi,

You need to made validation under user exit. What ajay means is you have to change the exit by adding code field asset class to become mandatory. Please contact your Abapers to more information about the code given above.

hope helps

Former Member
0 Kudos

Hi,the way which I maintained not make field optional, but always substitute for this value. If user maintain own value,then after then system overwrite this value with value from profile. If this not solve your problem, then you need to use enhancement-