Skip to Content
author's profile photo Former Member
Former Member

Update FI PO / MM PO invoice Housebank, Payment Method and Funds Center


I need to run MRIS every night to ceate FI PO / MM PO invoice automatically.However, before the invoices are created, I need to update housebank, payment method and funds center.

I understand that there are 2 badis:



However, they do not allow me to change the fields I want.

So I found an enhancement point in FM MRM_INVOICE_POST (mrm_invoice_post_04 SPOTS es_saplmrmp).

I used the following codes:

IF sy-tcode = 'MRIS'.

LOOP AT xaccit INTO lwa_accit.

RBKPV-HBKID = 'HBABC'. "MM housebank

RBKPV-ZLSCH = 'PMABC'. " MM payment method

lwa_accit-hbkid = 'HBABC'. " FI housebank

lwa_accit-zlsch = 'PMABC'. " FI payment method

lwa_accit-fistl = '100123'. " FI funds center


MODIFY xaccit FROM lwa_accit.

CLEAR lwa_accit.



When I run online mode, the fields are updated correctly. However, they are not updated if I run MRIS in background mode.

Any idea why?

Are there any better methods to overwrite housebank, payment method and funds center fields? For example, substitution? I checked GGB1 and doesn't seem to find anything suitable.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 02, 2008 at 10:24 AM


    It is different if you run online. If you run online, u can use sy-tcode = 'MRIS' But if you are running as a batch, sy-tcode will not be MRIS anymore. You can try using this Global variable t169 in your enhancement spot. Do a debug and you can see that the value in t169 is MRIS. Hope that helps 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.