Skip to Content
avatar image
Former Member

Need help on Enhancements in IW31

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 02:55 AM
    • Former Member

      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

  • avatar image
    Former Member
    Jan 18, 2008 at 04:15 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2013 at 03:16 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded