on 09-06-2012 12:37 PM
Hi,
We have a requirement to make supplier field editable once user create shopping cart based on certain condition (if SC is non catalog item).
There are some notes available but are for pricing and googling take me to class interface /SAPSRM/CL_PDO_DYN_MDF_IT_SC, which do not cater my requirement.
Has anyone come across this kind of development, if yes, please provide pointers.
Regards,
Ni3
Hello Nitin,
In Shopping cart for non catalog request you have Preferred Supplier field available right which you can utilize it. Are you trying to make Supplier field enable for non catalog shopping cart so that user can enter it and then it create PO automatically if supplier is present?
If so one of the place we have done through BBP_DOC_CHANGE_BADI. Whenever Shopping cart is saved with Preferred Supplier, Partner Function 00000039 to Partner function 00000019 for each line item.
Hope this helps.
Thank you
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spot on.
Thank you very much Ritesh.
That's what happens when you move from your area. This is new to me and was scratching my head over this. Your help indeed solve my issue.
What I did was other way round, I changed partner function from 19 to 39 and cleared deletion indicator. This give me desired result, supplier field is now in edit mode.
Regards,
Ni3
Hi,
You can make the field editable via SPRO
Cross-Application Basic Settings->Extensions and Field Control (Personalization)->Configure Field Control->Configure Control for Fields of Substructures->select the first record
All you need to do is create an overwrite exit for the mthod set_supplier and add your code there with the condition when Preferred supplier should be available.
Let me know if you need further help on this .
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nitin,
There is very thin red line between the functional consultant and a technical consultant. And these kind of tasks are generally performed by a technical consultant. Anyways its your call, you need to make the above settings along with an enhancement to the method that I have mentioned in the screenshot above in order to get it working as desired.
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.