cancel
Showing results for 
Search instead for 
Did you mean: 

Require to make supplier field editable in SC

former_member434229
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member434229
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

former_member434229
Active Participant
0 Kudos

Hi Naveen,

Thanks for your response.

This is something functional consultant can have better understanding as I can not touch config. setting, don't know what implications it may have on other objects.

Anyway, I will keep this in my knowledge basket for future reference.

Regards,

Ni3

Former Member
0 Kudos

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