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

Error message on Availability check

luizfelipe_martin
Product and Topic Expert
Product and Topic Expert
0 Likes
1,445

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!

3 REPLIES 3
Read only

luizfelipe_martin
Product and Topic Expert
Product and Topic Expert
0 Likes
1,075

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

Read only

0 Likes
1,075

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.

Read only

luizfelipe_martin
Product and Topic Expert
Product and Topic Expert
0 Likes
1,075

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!