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

ATP check

former_member239066
Participant
0 Likes
845

Hi Experts,

Is it possible to launch ATP check for all items in XVBAP in the user exit USEREXIT_MOVE_FIELD_TO_VBAK (MV45AFZZ)?

If yes, can you please tell me how?

Thanks,

Vitz.

Hi Experts,

Is it possible to launch ATP check for all items in XVBAP in the user exit USEREXIT_MOVE_FIELD_TO_VBAK (MV45AFZZ)?

If yes, can you please tell me how?

Thanks,

Vitz.

5 REPLIES 5
Read only

Former Member
0 Likes
759

Hi,

Yes.

Set VBAP-FIXMG to 'X'.

Ashutosh

Read only

0 Likes
759

Hi Ashutosh,

Thank you for ur reply.

Will this really work? At this point the structure VBAP is empty. Did u mean to set XVBAP-FIXMG to X?

Thanks,

Vitz.

Read only

0 Likes
759

Well, no, because that wasn't the question you asked. Are you trying to fix the results of ATP or are you trying to perform an ATP check? Why would you want to do either one in that user exit?

Read only

0 Likes
759

Hi Brad,

Thank you for your reply. Well the requirement is that the user will update the RDD in the SO header and they want the date on each line to be updated by the new RDD entered by the user.

For changing the date on each item there is no issue. I just have to change the date in XVBEP.

When this is done, they also want the ATP check to be peformed on each item in the SO based on the new date.

Thanks,

Vitz.

Read only

brad_bohn
Active Contributor
0 Likes
759

Yes, for a non-dialog approach, you can call the AVAILABILITY_CHECK function or use the BAPI_MATERIAL_AVAILABILITY function. As for the parameters, you can trace the call made by SAP to AVAILABILTY_CHECVK when you view the material availability at the item level or there are examples of the BAPI call on the site.