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: 

APO availability check when creating the sales order

Former Member
0 Kudos

Hi

when creating the sale sorder in ECC there is a availability check happens in SCM APO. now if the material is not availble in certain plant this creates purchase req ( STR ) in ECC. I am debugging the sales order tcode va01 to understand how this happens. I came across a BAPI BAPI_APOATP_CHECK , which is present in SCM system but called remotely from va01 tcode. But not sure how the purchase req is created. is it with in this BAPI or some where else. can somebody help me on this.

thanks

6 REPLIES 6

Former Member
0 Kudos

Hi Sudhakar,

You are performing your availability check in SCM. You haven't given much detail, but It sounds like you are saying that upon saving your Sales order in ECC, a purchase requisition is immediately being created in ECC.

This is standard SCM functionality for a number of possible GATP (Global Available to Promise) check configurations. Conceptually, ECC sends the ATP request to SCM using Core Interface. SCM applies the availability checking rules, and immediately creates a supply element in SCM to match up with the sales doc requirement. It sends this internal order (everything in SCM is called an order) back to ECC and ECC creates the Purchase req, again using the Core interface. Finally, ECC sends this newly created Purchase Req back to SCM, which then replaces its original internal supply element order in SCM with the PR created by ECC. All this happens in a matter of seconds, due the fact that all data accesses and storage in SCM is happening in LiveCache, a memory resident database management system.

Your SCM GATP functional lead can give you more detail. Here is the online overview of the concept.

http://help.sap.com/saphelp_scm50/helpdata/en/04/5e7237412a5249e10000009b38f842/frameset.htm

In another forum, you stated that you wished to "send the sales order number to purc reqis". Depending on your requirements, there are a number of ways to do this. Standard SAP functionality that supports linking a Sales order to a Purchase req or Purchase Order (or Production order, for that matter) would be to use either a Make To Order business scenario, or an Assemble To Order business scenario. SCM can be configured to support both of these. If you wish to pursue these areas, consult your PP or SCM functional lead.

Regards,

DB49

0 Kudos

Hi

thank you very much for your reply. yes u are perfectly right. we are doing the availability chk in SCM. The requirement is like this. when the PR is created in ECC we do not see any link to the sales order against which it has been created. so we want to put the sales order number in some field in the purchase requistion. but not sure where exactly we need to put the code. do u have any better suggestion on this.

thanks

0 Kudos

Hi Sudhakar,

Based on the meager information you have given so far, I would say that this requirement should not be solved with an ABAP solution (at least, not yet), this is a FUNCTIONAL problem. Have you gone to your functional PP or SCM person and explained the requirements to him? Tell him you think that you believe that the client should be using a MakeToOrder scenario.

Under this condition, the system will automatically place the Sales doc into any supply element, AND WILL MAINTAIN THE RELATIONSHIP, which any ABAP solution will not do.

Regards,

DB49

0 Kudos

Hi

thanks for the reply

I have talked our SCM person here and he told me that we are using make to stock scenaio and not the make to order . That is the clients requirement so we can not change that. So how to do we go about it.

thanks

Former Member
0 Kudos

marking this question as solved

0 Kudos

How did you manage to get the sales order number on the purchase requisition ? I also want to do this while using a make to stock strategy.