‎2011 Oct 06 12:48 AM
Hi all!
I'm on a G-ATP project and I need to do some changes in availability messages.
On the R/3 system, on VA01, when I try to create an order with no combinations created on APO for customer or material, etc.. a message is raised: "Characteristic combination not found for item <item code>".
This message is raised through a confirmation popup, but I need it to be sent as an ERROR MESSAGE, on the foot of the program.
The message is raised on include LV03VFN1, line 52 to be exact.
Now comes my question:
Right before the message calling, there is a call to a function:
* Begin of ND exit coding ----------------------------------------------
CALL FUNCTION 'ND_EXITS_ACTIVE_CHECK'
EXCEPTIONS
EXITS_NOT_ACTIVE = 1
OTHERS = 2.I imagine there is a way of finding an user-exit that displays this messages the way I want to ... but I can't find this user-exit anywhere.
Can anyone help me to find it? Or at least show me the way to it...?
Already looked at a lot of exits and still couldn't find the one to manipulate this message.
Thank you very much!
‎2011 Oct 06 6:38 PM
USEREXIT_AVAILABILITY_OUT might work for me... is there any way I can check on this user exit if the combination is valid?
If so, problem solved, but I still can't find anything that shows me the error...
Edited by: lfpmartin on Oct 11, 2011 7:42 PM
‎2011 Oct 12 9:12 PM
You can use exit that are available in Function Module AVAILABILITY_CHECK. this function module will call APO for GATP.
Here once the BAPI call is completed inside this FM for GATP you can check the return parameters and raise an error message as required.
‎2011 Oct 13 3:21 AM
I found the exit EXIT_SAPLATPC_002 on FM AVAILABILITY_CHECK_CONTROLLER.
When I'm on VA01 checking a material with a valid combination on APO, the system passes through this exit after the gatp check, but when there's no combination, the gatp check throws an exception that is treated BEFORE the exit 002... so I can't reach it...
Is this the right exit?
Could you suggest me another exit where I can see the results from the gatp check!?
Thanks!