cancel
Showing results for 
Search instead for 
Did you mean: 

Product availability check - changes to delivery proposals

former_member566355
Participant
0 Kudos

Hi all,

At the time of sales order creation, product availability check takes place in APO

Some validations are required to put in place before system gives delivery proposals in APO screen. This is required before the proposal screen is displayed. e.g. change the quantity proposed.

Is there any way ( e.g. user exit) to achieve the same ON APO SIDE ?

On ECC side, user exit APOAT005 is available which can be used to change confirmed quantities. But requirement is to change it in APO before the proposals are given.

Regards,

RS

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_thinschmidt
Contributor
0 Kudos

Hi,

You might use the BADI /SAPAPO/IF_ATP_REQ_ITEM_CONF Method CHANGE to change the confirmation for an item.

best regards,

Michael

former_member566355
Participant
0 Kudos

Dear Michael,

Thanks for your response.

It is working fine. We are able to change the confirmations beforehand.

Is there any user exit to change quantities in planning book, before the control comes back into ECC sales order.

e.g. after user accepts the proposal by clicking on icon 'Delivery proposal'

Regards,

RS

Former Member
0 Kudos

RS,

???? To which planning book are you referring?

Best Regards,

DB49

former_member566355
Participant
0 Kudos

Hi DB,

Let me clarify it further. The requirement is also detailed in following thread

http://forums.sdn.sap.com/thread.jspa?threadID=2137543&tstart=0

The requirement is to change data in DP planning book. Actually the confirmation quantities are changed based on validation put on, after reading the DP planning book using BAPI_PBSRVAPS_GETDETAIL.The validations are basically the product allocation data.

Now, once user accepts/rejects the delivery proposals, data update is required back in the same DP planning book again.

Regards,

RS

former_member209769
Active Contributor
0 Kudos

Hi RS,

For updating the data in the planning book, you could use BAPI_PBSRVAPS_CHANGEKEYFIGVAL2.

Good documentation is available in BAPI itself on how to use it.

PS: Use BAPI BAPI_PBSRVAPS_GETDETAIL2 to read the data as required.

Thanks - Pawan

former_member566355
Participant
0 Kudos

Hi Pawan,

We are using the same BAPI's to read and change allocation data.

The point is the 'read' BAPI is used to put validations and change the confirmation quantities using BADI '/SAPAPO/IF_ATP_REQ_ITEM_CONF'.

Now the point is to trigger the planning book 'change' BAPI, once the confirmation are changed.

Am stuck up with the trigger point.

Regards,

RS

former_member209769
Active Contributor
0 Kudos

Hi RS,

Within my knowledge, I can only propose a workaround solution that you could possibly use at the time of saving of Sales Order.

User exit MV45AFZZ, form USEREXIT_SAVE_DOCUMENT. Since at this time, the logic would be in R/3 you would need to create a RFC enabled Z funtion module which could update the planning book data in APO using the BAPI in APO.

This isn't a straight forward solution, so if someone could give you an exit which could be used in APO, try using that.

Thanks - Pawan.

former_member906762
Participant
0 Kudos

Hello Pawan ,

                        Can you please throw some light on this situation

              We are currently using CTM to generate Purreq(Location B) and Preqrel (Location A). Then we are doing an ATP check the sales order at B is getting a confirmation quantity but in RRP3 we cannot see a confirm quantity agaianst the Purreq nor Preqrel.

Say this result is after CTM run and ATP

                                            B                                           A

                                                                                      Stock (2,2)

                                           Sales order (2,2)               

                                            Pur req (2,0)                             Preq rel (2,0)

Now those quantities are the (Rec/ReqQTY ,Confirmed QTY).....now in the above scenario the Product Availability at A should show Cumulative ATP as 0 but it is still showing as 2 ...that is because the confirmed quantity against Preq rel is 0.

Now when we run RulesBased stock transfer using BOP...we have the following results.

                                              B                                           A 

                                                                                      Stock (2,2)

                                           Sales order (2,2)               

                                            Pur req (2,2)                             Preq rel (2,2)

Can any one throw some light on what is happening ....it seems the ATP is not giving confirmed quantitties against the Stock transfers generated by CTM .

REgards,

Nick