‎2010 Jan 27 12:55 PM
Dear Experts,
I have issue regarding automatic bank pick up.
I have activated partner bank type in my MIRO/FB60 and user has to enter this field manually while posting.
My user wantst to fill this field automatically based on the currency given while posting the invoice.
Ex: In miro we are giving currency as USD based on this the Partner bank type field to be filled as USD.
please advise is there any User exists or badi for getting this functionality.
Thanks
Balu
‎2010 Jan 27 1:07 PM
Hi,
Try this
LMR1M001----- User exits in Logistics Invoice Verification
> EXIT_SAPLMR1M_003
Regards,
Aditya
‎2010 Jan 27 1:12 PM
‎2010 Jan 29 10:48 AM
Hi,
1.- One possibility is in INVOICE_UPDATE (CHANGE_AT_SAVE):
IF SY-TCODE = 'MIRO' OR SY-TCODE = 'FB60'
CONSTANTS: c_rbkpvb(15) TYPE c VALUE '(SAPLMR1M)RBKPV'.
FIELD-SYMBOLS: <fs_rbkpvb> TYPE mrm_rbkpv.
ASSIGN (c_rbkpvb) TO <fs_rbkpvb>.
IF NOT <fs_rbkpvb>-waers IS INITIAL.
<fs_rbkpvb>-vbtyp = <fs_rbkpvb>-waers.
ENDIF.
ENDIF.
2.- Another possibility is in badi MRM_HEADER_CHECK (method HEADERDATA_CHECK)
try something like:
IF sy-tode = 'MIRO' OR sy-tcode = 'FB60'.
CONSTANTS: c_waers(21) TYPE c VALUE '(SAPLMR1M)RBKPV-WAERS'.
FIELD-SYMBOLS: <fs_waers> TYPE ANY.
ASSIGN (c_waers) TO <fs_waers>.
IF NOT <fs_waers> IS INITIAL.
CONSTANTS: c_bvtyp(21) TYPE c VALUE '(SAPLMR1M)RBKPV-BVTYP'.
FIELD-SYMBOLS: <fs_bvtyp> TYPE ANY.
ASSIGN (c_bvtyp) TO <fs_bvtyp>.
<fs_bvtyp> = <fs_waers>.
ENDIF.
ENDIF.
.
Best regards.
Edited by: Pablo Casamayor on Jan 29, 2010 12:24 PM
‎2010 Feb 16 6:21 AM