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

Exit for custom transaction

Dear fellow ABAPers

We're using MB1B for creating documents on goods movement and

have used the exit EXIT_SAPMM07M_001 (ZXMBCU02) for some validations.

now that , a scenario has come to copy MB1B (SAPMM07m) to custom transaction.

All the changes required were done in that and working fine , but the exit is not called.

How to make that work ie., the exits/BADIs (currently implemented and that will be implemented in future) for MB1B to be called for my custom transaction/program (for ex: ZMB1B).

Regards

Prabumanoharan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2008 at 12:00 PM

    why do you need exits in you own code. just code normally .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2008 at 12:10 PM

    Hi

    The problem is the system can't find the exit in the custom transaction.

    U should consider the logic used to call the exit:

    In the program there's a code like:

    CALL CUSTOMER-FUNCTION <XYZ>

    So the system call the fm EXIT_<PROGRAM NAME>_XYZ

    If you've copied the std program SAPMM07M in a new custom program (perhaps ZAPMM07M) the system will search the exit EXIT_ZAPMM07M_001: it doesn't exist of course.

    So in your custom program u need to replace all calls of customer-exit:

    Instead of

    CALL CUSTOMER-FUNCTION <XYZ>

    U need to place

    CALL FUNCTION EXIT_<PROGRAM NAME>_XYZ

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 08:35 AM

    got 95% of the answer, issue solved, thanks to all

    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.