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: 

Unable to update EKPO field at time of save in ME32k

former_member185116
Active Participant
0 Kudos

Hello all,

I want to update Tax Code field (in me31k and me32k) while saving ,

for this i have used exit EXIT_SAPMM06E_012 ,

but its not updating the Tax code,

below is my code,

if sy-tcode eq 'ME32K' or sy-tcode eq  'ME31K'.
  if i_ekko-bsart is NOT INITIAL.
    select SINGLE * FROM ZMM_AGMT_TAX INTO wa_agmt_tax WHERE zbsart eq     i_ekko-bsart.

    if sy-subrc = 0.
         lv_agmt_tax = wa_agmt_tax-zmwskz.
      endif.
      if tekpo[] is NOT INITIAL.
           loop at tekpo into wa_tekpo.
             wa_tekpo-mwskz = lv_agmt_tax.
             MODIFY tekpo FROM wa_tekpo TRANSPORTING mwskz.
           endloop.
       endif.
    endif.
endif.

where in ZMM_AGMT_TAX we are maintaing some tax codes based om agmt type BSART.

thanks in advance..


1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

This Exit FM is only provided for check, with a simple 'where-used' search you will note that it works with a local copy of data, so don't expect that changing those data will be copied back to main program, only the header customer fields can be changed (changing parameter c_ci_ekko)

Alas, no BAdI seem available (read 2300802 - ME_PROCESS_OUT_CUST is not called in ME31L/ME32L/ME31K/ME32K.) only the exit you found and it's only purpose is check, so you should look for some implicit enhancement for example.