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

Re-ATP at User Exit

We have a requirement, to change the Schedule line delivery date (VBEP-EDATU) through custom enhancement based on Goods Issue date ( VBEP-WADAT). Hence we placed our custom logic inside the exit USEREXIT_CHECK_VBEP, but we observed that after changing the delivery date in this user exit, the SAP is not recalculating the goods issue date based on modified delivery date. Please let us know is there any possibility to re-trigger the ATP check from this user exit. i.e. based on VBEP-EDATU , we need to recalculate WADAT, MBDAT etc.., In case of standard SAP changes, these values will be automatically populated through ATP check.

If we place our logic before ATP check i.e. USEREXIT_MOVE_FIELD_TO_VBEP, we will not get the goods issue date populated in this exit, but our whole logic is based on the Goods issue date ( VBEP-WADAT).

Finally the solution will be, to build our logic after ATP check and then needs to re-trigger ATP check based on the modified delivery date from the custom logic, but we are unable to re-trigger ATP check.

Please share your thoughts to proceed on this.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2012 at 12:50 PM

    Hi Ameet,

    Check if it is better to use:

    • USEREXIT_MOVE_FIELD_TO_VBEP (in the program MV45AFZZ)

    Hope it's useful.

    Regards,

    Ornella

    Add a comment
    10|10000 characters needed characters exceeded

    • I know this is a very old thread and probably you might have found a solution for this or shelved the idea, but here are my 2 cents.

      The incorrect index is due to the fact that SAP has another structure which stores part of the VBEP fields with EDATU. The program reads this partial VBEP using the values from XVBEP. Since the EDATU is changed in XVBEP the read on the other structure fails because of which you get the incorrect index error. The solution to this is modify EDATU field in that structure as well. I think that is IVBEP1 but take the help of an ABAPer to find out the correct structure.

  • Posted on Jul 05, 2012 at 12:05 PM

    You have to give an attempt with ATP exits recommended in the following note:-

    • Note 1644443 - Documentation on User Exits in Availability check


    G. Lakshmipathi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Lakshmipathi -

      We have already checked this note. This helps in triggering ATP before User Exit. We are looking to pass value to ATP after User Exit. All we need to know is the trigerring point for re-ATP the enter process.

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.