Quantcast
Channel: SCN: Message List - SAP ERP Financials - Treasury Applications
Viewing all articles
Browse latest Browse all 5623

Re: SAP Forex treasury G/L account determination on house bank base

$
0
0

Tejpa,

You can implement BAdI TPM_ACCIF_TRAC, There are some methods that you can use, In the code you must have to identify what item you want to modify. By Product Type, Flow type etc. In your case Select house bank and account. This BAdI Allows you change G/L Account. I send to you a code that I used to fill Internal Order.

 

Regards.

Arturo.


METHOD if_ex_tpm_accif_trac~accit_exit.

* Only for 04Y.
  IF im_data-product_type = '04Y'.

* Only for Commisions
    IF im_data-dis_flowtype = 'SE3001' or
       im_data-dis_flowtype = 'SE3002' or
       im_data-dis_flowtype = 'SE3011' or
       im_data-dis_flowtype = 'SE3012' or
       im_data-dis_flowtype = 'SE3015'.

* If zuonr is filled
      IF NOT ch_accit_d-zuonr IS INITIAL.

        ch_accit_d-aufnr = ch_accit_d-zuonr.

        CLEAR:
          ch_accit_d-zuonr.
      ENDIF.
    ENDIF.
  ENDIF.

ENDMETHOD.


Viewing all articles
Browse latest Browse all 5623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>