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: 

Need help on Enhancements in IW31

Former Member
0 Kudos

Hi experts,

I want to create an Order, in the operations tab, my control key is 'PM03', and i click the external button. Then in the services tab, i can enter my service numbers. also, i can enter my cost element. I need to do some checkings on that particular cost element field (ESLL-KSTAR). so, when I want to save it, or press enter, the enhancement will kick in and run the checking. Can anyone tell me which enhancement i should use? which customer-functions or BADIs? or anything?

Thanks & regards

4 REPLIES 4

0 Kudos

Hi Minal,

Think you misunderstood me. it is not Tcode PM03..

It is tcode IW31.. PM03 is our external services. in the external services, we have to enter service numbers etc.. and also cost center.. i need to do a checking at this cost center when saving or pressing enter. so is there any customer-exit / badi exists?

thanks

Former Member
0 Kudos

Hi Putra...

I have the same problem in IW31, I need to do some checkings on cost field..

Can you resolve this problem??? Can you tell me how do it please?

Thanks...

Former Member
0 Kudos

Have a look at exit IWO10009

Use the following:

* get settlement rules from ABAP memory

  call function 'K_SETTLEMENT_RULE_GET'

    exporting

      objnr     = p_caufvd_imp-objnr

      x_all     = ' '

    tables

      e_cobra   = lt_cobra

      e_cobrb   = lt_cobrb

    exceptions

      not_found = 1

      others    = 2.

  if not sy-subrc = 0.

* if not found, then go to database for settlement rules

    call function 'K_SRULE_READ_ARCHIVE'

      exporting

        i_archive_handle = 0

        i_objnr          = p_caufvd_imp-objnr

        i_append         = ' '

      tables

        t_cobra          = lt_cobra

        t_cobrb          = lt_cobrb

      exceptions

        not_enough_info  = 1

        others           = 2.

  endif.

Program the validations you need.

Hope it helps, saludos!