Skip to Content

Update target field with total net price in ME31K and ME32K

Hello all,

In ME31K and ME32K transaction

i want to display the total of the above net price(10100.00) in target field in header section

the above value 10100.00 should be displayed in target field,

at the same time the target field should be disabled for the user,

is there any suitable exit to achieve this.

i tried with BADI = ME_PROCESS_PO_CUST,

but i was unable to capture the data.

thanks in advance.

me31k-1.jpg (86.8 kB)
me32k-2.jpg (98.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Oct 25, 2016 at 11:50 AM

    Please paste the code used to get the value of net and on which method .

    use the below

    IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

    im_item->get_data( )

    ENDMETHOD.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 25, 2016 at 12:20 PM

    Hi trevor,

    thanks for your reply,

    i will once again re write my code using the above said BADI..

    meanwhile i have used exit = EXIT_SAPLEBND_002.

    if sy-tcode eq 'ME31K' or sy-tcode eq 'ME32K'.
    data : wa_ekpotab type BEKPO.
     data : lv_ktwrt type ekko-ktwrt.
    
     loop at it_bekpo into wa_ekpotab.
    
     lv_ktwrt = lv_ktwrt + wa_ekpotab-netpr.
    
     endloop.
    
     e_cekko-ktwrt = lv_ktwrt.
     e_cekko-gnetw = lv_ktwrt.
    
    endif.

    but the target field is not getting updated,

    also how do i remove mandatory for target field.

    regards,

    vinay.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2016 at 01:09 PM

    Hi Vinnay,

    please update me on the progress based on my experience will advise

    to use BADI other than User Exit function module and to remove mandatory talk to your MM functional to change it in configure not to be mandatory.

    Regards,

    Trevor

    Add comment
    10|10000 characters needed characters exceeded

    • Hi trevor,

      already some logic written for some other purpose in this

      IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

      i have put a break point here , however this is not getting triggered when i created or changed a contract agreement through ME31K or ME32K.

      po1.jpg (158.5 kB)
      po2.jpg (159.6 kB)
  • Oct 25, 2016 at 01:57 PM

    trevor,

    we can not use this BADI as it is of type with in SAP,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2016 at 01:41 PM

    Hi

    Please use the below class and break point that method as i did then

    go to transaction me32k then keep on the checking the proper BADI when after changing or saving

    Add comment
    10|10000 characters needed characters exceeded