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

User-Exit

Tcode: MIRO

Need to check a few conditions based on users of last change / created for PO & GR and then put a block for payment during invoice creation using MIRO.

What is the User-Exit that can be used for my requirement.

Thanks

Kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

10 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 10:05 AM

    hi skk

    am searching for MIRO (Enter Invoice). Not for MIGO.

    Any Help

    Thanks

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 10:34 AM

    I put breakpoint in all three exits:

    EXIT_SAPLMR1M_002

    EXIT_SAPLMR1M_003

    EXIT_SAPLMR1M_010

    But still No.

    Any more help.

    Thanks

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 09:52 AM

    Hi,

    When running MIGO, if you put a breakpoint on the FM PF_ASTAT_OPEN. This will show you the BADI/METHODS that are called.

    Then BADI being MB_MIGO_BADI.

    and make use of the exit MB_CF01 in the clude ZXMBCU01

    This exit will be triggered when u r daving the GR.

    <b>Reward points</b>

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 07:47 AM

    Hello,

    Make use of the BADI <b>INVOICE_UPDATE</b>

    VAsanth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 25, 2007 at 07:51 AM

    Kiran,

    Just some additional info.run this program to check all the user exits available for a particular transaction code.

    REPORT Z9 .

    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.

    tables : tstct.

    data : jtab like tadir occurs 0 with header line.

    data : field1(30).

    data : v_devclass like tadir-devclass.

    parameters : p_tcode like tstc-tcode obligatory.

    select single * from tstc where tcode eq p_tcode.

    if sy-subrc eq 0.

    select single * from tadir where pgmid = 'R3TR'

    and object = 'PROG'

    and obj_name = tstc-pgmna.

    move : tadir-devclass to v_devclass.

    if sy-subrc ne 0.

    select single * from trdir where name = tstc-pgmna.

    if trdir-subc eq 'F'.

    select single * from tfdir where pname = tstc-pgmna.

    select single * from enlfdir where funcname =

    tfdir-funcname.

    select single * from tadir where pgmid = 'R3TR'

    and object = 'FUGR'

    and obj_name eq enlfdir-area.

    move : tadir-devclass to v_devclass.

    endif.

    endif.

    select * from tadir into table jtab

    where pgmid = 'R3TR'

    and object = 'SMOD'

    and devclass = v_devclass.

    select single * from tstct where sprsl eq sy-langu and

    tcode eq p_tcode.

    format color col_positive intensified off.

    write:/(19) 'Transaction Code - ', "#EC NOTEXT

    20(20) p_tcode,

    45(50) tstct-ttext.

    skip.

    if not jtab[] is initial.

    write:/(95) sy-uline.

    format color col_heading intensified on.

    write:/1 sy-vline,

    2 'Exit Name', "#EC NOTEXT

    21 sy-vline ,

    22 'Description', "#EC NOTEXT

    95 sy-vline.

    write:/(95) sy-uline.

    loop at jtab.

    select single * from modsapt

    where sprsl = sy-langu and

    name = jtab-obj_name.

    format color col_normal intensified off.

    write:/1 sy-vline,

    2 jtab-obj_name hotspot on,

    21 sy-vline ,

    22 modsapt-modtext,

    95 sy-vline.

    endloop.

    write:/(95) sy-uline.

    describe table jtab.

    skip.

    format color col_total intensified on.

    write:/ 'No of Exits:' , sy-tfill. "#EC NOTEXT

    else.

    format color col_negative intensified on.

    write:/(95) 'No User Exit exists'. "#EC NOTEXT

    endif.

    else.

    format color col_negative intensified on.

    write:/(95) 'Transaction Code Does Not Exist'. "#EC NOTEXT

    endif.

    at line-selection.

    get cursor field field1.

    check field1(4) eq 'JTAB'.

    set parameter id 'MON' field sy-lisel+1(10).

    call transaction 'SMOD' and skip first screen.

    K.Kiran.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 09:48 AM

    hai vasath

    I implemented that badi given by you.

    Now I will have to update / create a PAYMENT BLOCK in invoice (MIRO) before saving. Thus invoice will not be posted and saved with this set payment block

    screen field name: INVFO-ZLSPR.

    Any clues on how to do this.

    Thanks,

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 10:16 AM

    hai skk,

    i already put a break point on those exits. but its not stopping there.

    i got these exits by running the std pgm we have.

    Any more inputs is highly appreciated

    Thanks

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2007 at 10:19 AM

    HI.

    Check this EXIT_SAPLMR1M_003.

    Regards.

    Jay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2007 at 06:02 AM

    I found the BADI.

    Thanks guys, who tried to help me.

    Thanks

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 27, 2007 at 06:02 AM

    Solved on my own.

    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.