Application Development and Automation 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: 
Read only

MIRO

Former Member
0 Likes
731

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

4 REPLIES 4
Read only

Former Member
0 Likes
634

Hi,

Try this

LMR1M001----- User exits in Logistics Invoice Verification

> EXIT_SAPLMR1M_003

Regards,

Aditya

Read only

RaymondGiuseppi
Active Contributor
0 Likes
634

If you look for BADI in MIRO, you should read [Note 1156325 - BAdIs in the Logistics Invoice Verification environment|https://service.sap.com/sap/support/notes/1156325]

Regards,

Raymond

Read only

former_member182371
Active Contributor
0 Likes
634

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

Read only

Former Member
0 Likes
634

s