Application Development and Automation 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: 
Read only

Trigger 'APO AVAILABILITY CHECK' using userexit

Former Member
0 Likes
1,285

HI all,

I tried searching for the solution on SCN for this issue but couldn't get any help.

I am updating 'First Date' using some logic for SO line item

I want to re trigger the Availability check using the updated 'First Date' so that Schedule line details will be calculated based on updated First date.

Can anybody please let me know how to trigger Availability check using user exit.

I tried 'AVAILABILITY_CHECK_CONTROLLER' but it alone cannot work. Please help.

Thanks,

Jitendra

2 REPLIES 2
Read only

Former Member
0 Likes
791

Guys,

To formulate the requirement again, in SO creation, I want to update "First Date' after standard Availability check is executed.

I tried MV45afzz, but somehow VBEP-EDATU value is overwritten.


After the 'First date' is updated, schedule line details should get displayed as per updated First Date.

I am not sure if only updating First date will work here or not.

If it does not work, I need to execute availability check again using updated "First Date'.



Thnks.

Jitendra


Message was edited by: Jitendra Nayak

Read only

0 Likes
791

Hi All,

I am able to display 'First Date' using exit MV45AFZB - USEREXIT_CHECK_VBEP  during SO creation.

But Schedule line details are not shown as per new 'First Date'. If I put the same date manually, schedule line details are  shown correctly as per new first date entered.

I guess when we update the 'First Date', ATP check is not triggered again.

So I added below code in USEREXIT_CHECK_VBEP to trigger ATP checks as per new VBEP-EDATU.

* Trigger Availability Check again

  PERFORM bestand_bedarf_gruppe_pruefen(sapfv45v) USING    vbak-vbeln

                                                                                            CHANGING lv_subrc.

Above subroutine is calling APO system and returning with availability details in back to ECC

Still it is not showing Scedule line dettails as per new First Date.

Any idea where I am going wrong.