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: 

User Exit in MIRO

0 Kudos
405

Hi Everyone,

I need to validate the item tax code and pass an error message to the header level custom field.

I am using MM08R002 and fn module EXIT_SAPLMR1M_001 it is triggering when user is selecting any line item in the po and try to save it ..

The problem here is when I throw the error message, the header level fields fields are non editable. I need the header level fields editable and validate the item data.

Please suggest ideas.

Thanxs

regards

vijay

1 ACCEPTED SOLUTION

former_member182371
Active Contributor
0 Kudos
168

Hi,

for MIRO transaction you should considre using fm MRM_PROT_FILL

e.g.


DATA: gt_errtab    TYPE TABLE OF mrm_errprot,
      gs_errtab    TYPE mrm_errprot.


        CLEAR gs_errtab.
        gs_errtab-msgty = 'E'.
        gs_errtab-msgid = 'ZMESSAGE_CLASS'.
        gs_errtab-msgno = '045'.
        gs_errtab-source = 'Q'.
        APPEND gs_errtab TO gt_errtab.

        CALL FUNCTION 'MRM_PROT_FILL'
          TABLES
            t_errprot = gt_errtab.

Best regards.

10 REPLIES 10

Former Member
0 Kudos
168

keep popping up info message till user changes it

come out after 2nd or 3rd time, because user may want to come out without making change.

Former Member
0 Kudos
168

This message was moderated.

0 Kudos
168

Hi,

Thanks for your information.

@Vivek, If the user presses save, with the information message the user can proceed further and saves the document.

Is there a BADI/User exit available where I can do some operation after saving the invocie document via MIRO transaction?

Thanks and Regards,

Vijay

0 Kudos
168

hi,

use this badi.

INVOICE_UPDATE.

0 Kudos
168

Hi,

INVOICE_UPDATE badi does not have a method to do operation after save. it contains methods for CHANGE_AT_SAVE

CHANGE_BEFORE_UPDATE

CHANGE_IN_UPDATE

But i want to do the operation after the document number is updated in the database.

Thanks and Regards,

Vijay

0 Kudos
168

long back I had handled this kind of requierment by popping up info message box.

on SAVE isn't control coming back to your user exit ? if not, you would need code in one more user exit.

0 Kudos
168

DO ONE THING FIRST U UPDATE YOUR DOCUMENT THEN AFTER U CALL BADI SO IN BADI PASS ALL CHANGE DATA

Former Member
0 Kudos
168

hi

try badi's

MRM_HEADER_CHECK.

LMR1MF79, LMR1MI1N, LMR1MI2G

hope this helps

regards

Aakash Banga

former_member182371
Active Contributor
0 Kudos
169

Hi,

for MIRO transaction you should considre using fm MRM_PROT_FILL

e.g.


DATA: gt_errtab    TYPE TABLE OF mrm_errprot,
      gs_errtab    TYPE mrm_errprot.


        CLEAR gs_errtab.
        gs_errtab-msgty = 'E'.
        gs_errtab-msgid = 'ZMESSAGE_CLASS'.
        gs_errtab-msgno = '045'.
        gs_errtab-source = 'Q'.
        APPEND gs_errtab TO gt_errtab.

        CALL FUNCTION 'MRM_PROT_FILL'
          TABLES
            t_errprot = gt_errtab.

Best regards.

0 Kudos
168

Hi Pablo,

Your reply have solved my problem.

I have given points for solved answer:-)

Thanks,

Vijay

Edited by: Vijay Dhanasekar on Nov 24, 2008 8:25 AM