Skip to Content
avatar image
Former Member

Re-triggering ATP check for Sales orders using program (SAPMV45A userexits)

Hi,

I want to trigger ATP check in SD user-exits. The automatic ATP check works fine. Suppose on the VA01 screen, I have two line items. I entered two line items - for line item 10 with 200 FT2 qty and line item 20 with 100 FT2 qty and hit enter, ATP check triggers automatically and works fine for both line items. But then when I change only the line item 20 qty to 50 FT2 then it triggers ATP for line 20 only and it doesn't trigger ATP for line item 10. I want to trigger re-ATP for both the line items as if I make line item 20 with qty 50 FT2 then I change the qty for line item 10 in userexit to 250 FT2. It displays 250 FT2 for line item 10 in screen but triggers ATP only for line item 20.

I want to trigger ATP for all the line items. Please help.

Sidd

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Nov 14, 2016 at 01:37 PM

    Why you want ATP to trigger for a line item when you are not changing the quantity? In SAP, certain things, you / your client needs to compromise on certain functionalities. For each and every small functionality, if you go for customization to restrict the standard, obviously, it will affect system performance.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello, I will change the qty for internally from exit not from VA01 screen. But ATP fires only for the line item(s) which we changed in screen, it doesnt call ATP again if we change the qty in exit. I want to trigger ATP for all line items, it doesnt matter I changed line item 20 qty in screen and line item 10 in exit, it should trigger ATP for both line items.

      Regards,

      Sidd

  • Nov 23, 2016 at 09:44 AM

    Although I agree with the above comment that ATP check should not be triggered manually unless absolutely necessary, you can do it by calling the PERFORM fcode_pore IN PROGRAM SAPMV45A.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2016 at 09:49 AM

    Mohanty,

    If you debug the SAP routines, there is a flag that gets set in one of the internal tables which identifies all the line items that have been ATP Checked. So, in your case unflag both line 10 and 20 and your job is done.

    Thanks & Best Regards,

    Babu

    Add comment
    10|10000 characters needed characters exceeded