‎2016 Mar 11 1:56 PM
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
‎2016 Mar 13 3:39 PM
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
‎2016 Mar 14 6:48 PM
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.