on 04-20-2011 6:13 PM
Hi Experts,
We have a requirement in CRM E-Commerce Webshop, where if a user selects a ship-to-party other than Sold-to-Party, we need to default it back to Sold-To-Party.
To Acheive this, coding has been done in 'ORDER_SAVE' badi where in the we are adding the correct ship-to-party first and then deleting the worng sold-to-party in 2 CRM_ORDER_MAINTAIN calls.
When this piece of code is triggered, the bdoc goes into error stating the following message
'You cannot delete partner function Ship-to party (mandatory function in Standard order-procedTA)'...
Any pointers or suggestions in this regard would be of great help!
Regards,
Chaitanya.
Hello Chaitanya,
I am not sure about your requirement. If the sold-to should always be the same like the ship-to - why do you allow
to select the ship-to by the user ? You should maintain the Partner Det-Procedure in that way that the correct ship-to will be found. This is much easier than using a badi to get your reqirement.
However in PDP you can maintain a partner function as mandatory (field min. occurance to '1'), or if it is changeable or not.
Best regards
Rene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same considerations as Rene, but I guess you must have the reason for it. Anyway, about your problem, I would say that you coded the replacement of ship-to party in that way that you first delete ship to party partner and then add new one. And when you deleted the bdoc goes to error. Change the coding, so that you do direct eplacement.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.