Application Development 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: 

ATP check

former_member239066
Participant
0 Kudos

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

Former Member
0 Kudos

Hi,

Yes.

Set VBAP-FIXMG to 'X'.

Ashutosh

0 Kudos

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.

0 Kudos

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?

0 Kudos

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.

brad_bohn
Active Contributor
0 Kudos

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.